feat: add Claude Code plugin (setup / tune / debug / doctor skills)#86
Draft
tak848 wants to merge 4 commits into
Draft
feat: add Claude Code plugin (setup / tune / debug / doctor skills)#86tak848 wants to merge 4 commits into
tak848 wants to merge 4 commits into
Conversation
Bootstrap a Claude Code plugin bundled in this repo: - .claude-plugin/marketplace.json (single-plugin marketplace, name=tak848-ccgate) - .claude-plugin/plugin.json (semver 0.9.1, tracks the ccgate binary version) Skills (setup / tune / debug / doctor) and README updates follow.
- /ccgate:setup walks first-time install, hook registration, and provider configuration. Stops at diffs in plan mode. - /ccgate:tune drives append_allow / append_deny edits from `ccgate <target> metrics --details N`, with a git-tracked vs untracked layer check to avoid silent no-op edits.
- /ccgate:debug starts from `ccgate <target> metrics --json --details N` and walks decision (deny / fallthrough / 401 / plan-mode) branches. Hands off to /ccgate:tune when an edit is the right fix; never writes itself. - /ccgate:doctor audits binary, version freshness (GitHub API -> git ls-remote fallback), hook registration (Claude + Codex feature flag + project trust), config layer candidates (existence + tracked state + effective for linked vs main worktree), provider sanity per layer, and metrics/log presence. Read-only.
Document the bundled plugin install path and the four skills, with a plan-mode safety note. Same scope on the ja side, keeping engineer English terms (skill / plugin / install / provider).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Hand ccgate setup, rule tuning, deny / 401 debug, and environment audit to an AI through Claude Code. The docs (
README.md,docs/configuration.md,docs/rule-tuning.md,docs/api-key-helper.md,docs/claude-code.md,docs/codex-cli.md,docs/providers.md) are mature enough to back AI-driven workflows, and bundling skills alongside those docs keeps them in sync.What
Bundle a Claude Code plugin in this repo:
.claude-plugin/marketplace.json(single-plugin marketplace,name: tak848-ccgate).claude-plugin/plugin.json(name: ccgate, semver tracking the ccgate binary version)/ccgate:setup— install + hook registration + bring-up/ccgate:tune— rule refinement fromccgate <target> metrics --details N/ccgate:debug— root cause for deny / fallthrough / 401/ccgate:doctor— read-only environment auditdocs/ja/README.mdget aClaude Code pluginsection pointing at install + skillsInstall (subject to short-form verification):
/plugin marketplace add tak848/ccgate→/plugin install ccgate@tak848-ccgate.Draft until the skills, README sections, and local install verification land on this branch.