Skip to content

feat: add claude-scope Claude Code skill (#139)#142

Merged
bminier merged 1 commit into
devfrom
feat/139-claude-code-skill
May 20, 2026
Merged

feat: add claude-scope Claude Code skill (#139)#142
bminier merged 1 commit into
devfrom
feat/139-claude-code-skill

Conversation

@bminier

@bminier bminier commented May 20, 2026

Copy link
Copy Markdown
Owner

Closes #139.

Summary

  • New Claude Code skill at skill/claude-scope/SKILL.md that wraps the existing claude-scope-cli binary — lets Claude view and move Claude Code permission rules between settings scopes in conversation.
  • No wrapper scripts. The CLI's --json output is already machine-readable; the skill is SKILL.md instructions only. Less surface to maintain, no duplication of the CLI's arg shape.
  • Safety protocol baked in: the skill always runs move --dry-run first, shows the preview, requires explicit confirmation, then applies — mirroring the GUI's confirm modal. The CLI independently refuses bad writes regardless of caller.
  • skill/README.md documents the cargo install prerequisite and how to install the skill into ~/.claude/skills/.

Context

This is Layer 2 of the now-split #13. Layer 1 (the CLI) was already shipped; #13 was closed and split into #139 (this), #140 (move-key), #141 (doctor).

Verification

Smoke-tested every command the SKILL.md tells Claude to use, against the real repo:

  • version --json, scopes --json, list-rules --json, show --effective --json — all produce the documented JSON.
  • move … --dry-run --json — produces the preview, exits 0, writes nothing (confirmed the source rule still present afterward).
  • Failure paths — nonexistent rule and same-scope move both exit 1 with error: … on stderr, as the SKILL.md's "Exit codes" section documents.

Test plan

  • Install the skill (cp -r skill/claude-scope ~/.claude/skills/), start a fresh Claude Code session, ask it to move a permission rule — confirm it triggers, dry-runs first, and waits for confirmation before applying.
  • Confirm it does not trigger on unrelated mentions of "settings".

Notes

The repo README.md / mdbook could get a pointer to skill/ in a follow-up doc sync — left out here to keep this PR focused.

🤖 Generated with Claude Code

A Claude Code skill that wraps the existing `claude-scope-cli` binary so
Claude can view and move Claude Code permission rules between settings
scopes in conversation, without alt-tabbing to the GUI.

No bundled wrapper scripts — the CLI's `--json` output is already
machine-readable and Claude parses JSON natively, so the skill is
SKILL.md instructions only. The skill's safety protocol mirrors the
GUI's confirm modal: always run `move --dry-run` first, show the
preview, get explicit confirmation, then apply.

Lives in `skill/` at the repo root (per the #13 discussion) so the
skill and the CLI it targets stay in lockstep on argument shape.
`skill/README.md` covers the `cargo install` prerequisite and how to
install the skill into `~/.claude/skills/`.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@bminier bminier merged commit 199a886 into dev May 20, 2026
12 checks passed
@bminier bminier deleted the feat/139-claude-code-skill branch May 20, 2026 02:34
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.

Claude Code skill wrapping the claude-scope CLI

1 participant