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 within src/. Every new file must be re-exported in src/internal.ts.
  • Feature type must exist in src/types/restrictedStrings.ts before any settings or graph code can reference it.
  • Both graph types: Every feature needs entries for both 'graph' and 'localgraph' in the enableFeatures record in src/settings/settings.ts.
  • i18n keys: All user-facing strings go through the t() function (from ../internal). Add keys to i18n/en.json first, then other locales.
  • Save settings pattern: Every setting change callback must call ExtendedGraphInstances.plugin.saveSettings() after mutating ExtendedGraphInstances.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';
Related skills
Installs
1
GitHub Stars
1
First Seen
Apr 16, 2026