Skip to content

agent: require explicit Claude invocation for release, deploy and publish - #6

Merged
jikovec merged 1 commit into
mainfrom
claude/skill-invocation-safety-20261009
Oct 9, 2026
Merged

jikovec merged 1 commit into
mainfrom
claude/skill-invocation-safety-20261009

Conversation

@jikovec

@jikovec jikovec commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Work object

There is no Issue in this repository. This PR implements the owner's direct task request of 2026-10-09 to integrate Claude Code skill discovery, including invocation safety for release, deployment and publication skills. No Issue was created because the task did not authorize Issue creation.

Authority basis

The owner's current task request authorizes this change and its delivery as a branch and draft pull request. It explicitly asks that release, deployment and publication skills not be invoked automatically by Claude. This PR is the reviewable adoption step for that policy change, and it takes effect only if the owner merges it. It cannot authorize itself. No merge, settings or release authority is exercised here.

Executor

Claude Code (model Claude Opus 5.5), working in an isolated task worktree created from main at 9ec1280.

Outcome

  • .claude/skills/{release,deploy,publish}/SKILL.md now set disable-model-invocation: true.
    • Claude Code still discovers these skills, and they still run on an explicit /release, /deploy or /publish.
    • Claude can no longer load them on its own judgement.
  • Unchanged: canonical skills/, the Codex adapters in .agents/skills/, the .codex/skills compatibility link and the other eight Claude adapters.
  • scripts/validate_agent_toolkit.py requires the field, with value true, on exactly those three Claude adapters and accepts only the matching exact adapter text. It still rejects the field on canonical skills, Codex adapters and the other Claude adapters.
  • Claude discovery itself already worked on main; this changes invocation control only.

Verification

Checks run and results:

  • python3 scripts/validate_agent_toolkit.py (with PyYAML via nix-shell -p python3Packages.pyyaml): passed. Output: 11 canonical skills; bindings, adapters, links and routing coverage valid.
  • python3 -m unittest discover -s tests -v: 13 tests passed. Three are new: missing gate, false value, and gate on another Claude adapter, a Codex adapter or a canonical skill.
  • git diff --check and git diff --cached --check: clean.
  • Fresh clone of this branch, checked with Claude Code 2.1.284 in a non-interactive session (one turn, plan mode, no tool use):
    • The init event lists all 11 skills.
    • The model's own skill listing omits deploy, publish and release and keeps the other 8. On main, all 11 were model-invocable.
    • The @AGENTS.md import is loaded.
    • The active verify is this repository's adapter. Claude Code's bundled skill of the same name is overridden, which is documented precedence.
  • codex debug prompt-input in the same clone renders without a model call. It still lists all 11 .agents/skills adapters once each, with the .codex/skills link intact.

Checks not run and why:

  • Hosted CI (Agent toolkit workflow) runs on this pull request; its result is not yet observed.
  • Behavioral routing evaluation is outside this structural change.

Documentation impact

.agent/README.md documents the single Claude-only metadata exception and how validation enforces it.

Security and privacy

  • Safety-tightening only: three consequential workflows can no longer be selected automatically by Claude.
  • No credentials, personal data or private details are added.

Compatibility and rollout

  • Claude Code users invoke /release, /deploy or /publish explicitly. Codex discovery and invocation are unchanged.
  • To roll back, revert this commit.

Deployment effect

  • None. Merging runs only the read-only Agent toolkit validation workflow on main.
  • It deploys, publishes or releases nothing, and changes no organization default community file.

Explicit non-actions

  • Not merged. No Issue, release, deployment, settings change or workflow dispatch.
  • Other branches and checkouts were not modified.

Checklist

  • The change is limited to its stated work object and scope.
  • Acceptance criteria are reconciled (owner task brief; no Issue).
  • Documentation is updated where needed.
  • No credentials, personal data, private source, or inappropriate internal details are included in a public location.
  • Discovered material work is tracked separately instead of silently widening this PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_019FBkjn2iYo9reVS3VHAWj8

…lish

Add disable-model-invocation: true to the Claude Code adapters for the
release, deploy and publish skills, so Claude loads them only when the
user explicitly invokes /release, /deploy or /publish. Canonical skills,
Codex adapters and the other Claude adapters keep the portable
name/description frontmatter.

The validator now requires the field on exactly those three Claude
adapters, accepts the matching exact adapter text, and still rejects the
field everywhere else. Three regression tests cover a missing gate, a
false value, and a gate on another adapter or canonical skill.
@jikovec
jikovec marked this pull request as ready for review October 9, 2026 18:03
@jikovec
jikovec merged commit b33b0a6 into main Oct 9, 2026
3 checks passed
@jikovec
jikovec deleted the claude/skill-invocation-safety-20261009 branch October 9, 2026 18:04
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.

1 participant