Decide · ops SKILL.md
disable-model-invocation for deploy/PR/billing skills
WhenUse when a skill would send, pay, deploy, force-push, or merge if the model auto-loaded it.
StopNever let the agent attach a destructive skill from context. Human types /skill-name.
Steps
- For deploy, production migrate, force-push, paid APIs, or “open a PR and merge”: set disable-model-invocation: true in the SKILL.md frontmatter.
- The skill then loads only on /skill-name. The agent will not attach it from context.
- Port old commands instead of rewriting: type /migrate-to-skills. Dynamic rules (alwaysApply: false, no globs) become auto skills. User/workspace slash commands become skills with disable-model-invocation: true.
- Do not migrate alwaysApply: true rules or globbed rules — they already have explicit triggers. User rules are not on disk and are skipped.
- After migrate, review .cursor/skills/ and Settings → Rules. Commit the folder so the team shares the slash menu.
- Example frontmatter: name: open-pr / description: Commit current changes, push, and open a pull request. Use only when the user runs /open-pr. / disable-model-invocation: true.
LoadSKILL.md frontmatter disable-model-invocation: true.
SourceCursor docs
--- name: disable-model-invocation for deploy/PR/billing skills description: Use when a skill would send, pay, deploy, force-push, or merge if the model auto-loaded it. --- # disable-model-invocation for deploy/PR/billing skills When: Use when a skill would send, pay, deploy, force-push, or merge if the model auto-loaded it. Stop: Never let the agent attach a destructive skill from context. Human types /skill-name. 1. For deploy, production migrate, force-push, paid APIs, or “open a PR and merge”: set disable-model-invocation: true in the SKILL.md frontmatter. 2. The skill then loads only on /skill-name. The agent will not attach it from context. 3. Port old commands instead of rewriting: type /migrate-to-skills. Dynamic rules (alwaysApply: false, no globs) become auto skills. User/workspace slash commands become skills with disable-model-invocation: true. 4. Do not migrate alwaysApply: true rules or globbed rules — they already have explicit triggers. User rules are not on disk and are skipped. 5. After migrate, review .cursor/skills/ and Settings → Rules. Commit the folder so the team shares the slash menu. 6. Example frontmatter: name: open-pr / description: Commit current changes, push, and open a pull request. Use only when the user runs /open-pr. / disable-model-invocation: true. Load: SKILL.md frontmatter disable-model-invocation: true.
