Skip to content

feat(skills): support root-level disable-model-invocation with per-target overrides - #1928

Merged
dyoshikawa merged 1 commit into
dyoshikawa:mainfrom
sybers:feat/skills-root-disable-model-invocation
Jun 19, 2026
Merged

feat(skills): support root-level disable-model-invocation with per-target overrides#1928
dyoshikawa merged 1 commit into
dyoshikawa:mainfrom
sybers:feat/skills-root-disable-model-invocation

Conversation

@sybers

@sybers sybers commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Users can now set disable-model-invocation once at the rulesync skill frontmatter root and have it applied to every supported tool (claudecode, cursor, zed, pi, qwencode, factorydroid).
A value set inside a tool section still wins, so single-target opt-outs remain possible.

…rget overrides

Users can now set disable-model-invocation once at the rulesync skill
frontmatter root and have it applied to every supported tool (claudecode,
cursor, zed, pi, qwencode, factorydroid). A value set inside a tool
section still wins, so single-target opt-outs remain possible.
@dyoshikawa
dyoshikawa merged commit 190adc3 into dyoshikawa:main Jun 19, 2026
6 checks passed
@dyoshikawa

Copy link
Copy Markdown
Owner

@sybers Thank you!

dyoshikawa pushed a commit to hernaninverso/rulesync that referenced this pull request Jun 19, 2026
PR dyoshikawa#1928 wired a root-level `disable-model-invocation` default into six
tools, but factorydroid lacked a per-target section schema, so it could not
honor a per-tool override and dropped the value on import — contradicting the
documented "any tool section can override" claim.

- Add a `factorydroid` section (with `disable-model-invocation`) to the
  rulesync skill frontmatter schema and input type.
- Resolve the value in FactorydroidSkill.fromRulesyncSkill via the shared
  helper (root default + per-target override) and round-trip it back into the
  `factorydroid` section in toRulesyncSkill, matching the other five tools.
- Extract a shared `resolveDisableModelInvocation` helper and replace the
  copy-pasted resolution expression in all six tool skill files
  (claudecode, cursor, zed, pi, qwencode, factorydroid).
- Document the `factorydroid` skill section and re-sync skills/rulesync/.
- Add unit tests for the helper and for factorydroid per-target override
  (including the `false`-over-`true` edge case) and import round-trip.

Ref: dyoshikawa#1928

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants