Skip to content

Extensions

Modes that only make sense at one workplace (deploys, internal tools, channel rules) live in a folder of your own, outside the repo, listed under extensions in the settings:

my-extension/
modes.md | Mode | Use when | Not when | — one row per mode, same as the router's table
modes/<mode>.md one file per mode, in the same shape as the built-in ones
rules.md optional: extra rules for every mode; they add to the shared rules, never loosen them
templates/ optional
scripts/ optional
  • No overriding. config.py check refuses a mode name already taken by a built-in mode or another extension, and a row without its file. To adjust a built-in mode, write a rule in rules.md; a shared rule wins over it.
  • Scoped. only_in keeps an extension out of unrelated projects.
  • Suggested, not started. The router runs config.py modes first and only suggests extension modes, never starts one unasked.
  • Never blocks. A broken extension is skipped with a one-line warning; the built-in modes keep working.
  • Not in the description. A task phrased without /jsmd may never load the skill. A line in the work repo’s AGENTS.md, such as “for releases, suggest /jsmd deploy”, closes that gap.