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 checkrefuses 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 inrules.md; a shared rule wins over it. - Scoped.
only_inkeeps an extension out of unrelated projects. - Suggested, not started. The router runs
config.py modesfirst 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
/jsmdmay never load the skill. A line in the work repo’s AGENTS.md, such as “for releases, suggest/jsmd deploy”, closes that gap.