extended-graph-plugin-feature
Installation
SKILL.md
Add a New Feature to Extended Graph
Critical
- Barrel export rule: ALL internal imports MUST use
"../internal"or"../../internal". Never import from specific files withinsrc/. Every new file must be re-exported insrc/internal.ts. - Feature type must exist in
src/types/restrictedStrings.tsbefore any settings or graph code can reference it. - Both graph types: Every feature needs entries for both
'graph'and'localgraph'in theenableFeaturesrecord insrc/settings/settings.ts. - i18n keys: All user-facing strings go through the
t()function (from../internal). Add keys toi18n/en.jsonfirst, then other locales. - Save settings pattern: Every setting change callback must call
ExtendedGraphInstances.plugin.saveSettings()after mutatingExtendedGraphInstances.settings.
Instructions
Step 1: Add the Feature type string
Edit src/types/restrictedStrings.ts. Add your feature's kebab-case identifier to the Feature union type.
// src/types/restrictedStrings.ts
export type Feature = 'auto-enabled' | 'tags' | ... | 'layers' | 'yourFeature';