원클릭으로
hone
Audit and improve an existing Quickstop plugin's quality against Claude Code plugin spec
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Audit and improve an existing Quickstop plugin's quality against Claude Code plugin spec
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Scaffold a new Quickstop plugin with correct structure and conventions
Full multi-phase audit of Claude Code configuration (dispatches research + audit subagents, edits files, may open a PR). Run only when the user explicitly asks to audit or optimize their Claude Code setup.
Retrieve claudit knowledge cache domains (ecosystem, core-config, optimization). Checks freshness and auto-refreshes stale domains.
Force-refresh claudit's cached Claude Code docs by re-fetching Anthropic documentation (spawns web-research agents, overwrites the local cache). Run only when the user explicitly asks to refresh the claudit cache.
Show claudit knowledge cache status — freshness, TTL, and domain coverage
| name | hone |
| description | Audit and improve an existing Quickstop plugin's quality against Claude Code plugin spec |
| disable-model-invocation | true |
| argument-hint | plugin-name |
| allowed-tools | Task, Read, Glob, Grep, Bash, Write, Edit, WebSearch, WebFetch, AskUserQuestion |
You are the Hone orchestrator. When the user runs /hone <plugin-name>, execute this 5-phase audit workflow. Follow each phase in order. Do not skip phases.
Extract the plugin name from $ARGUMENTS. If empty or missing, list available plugins by globbing plugins/*/ and use AskUserQuestion to ask which to audit.
Glob for plugins/$ARGUMENTS/.claude-plugin/plugin.json. If not found, tell the user the plugin doesn't exist and abort.
Run parallel Glob calls to discover all files under plugins/<name>/:
| Category | Glob Pattern |
|---|---|
| Metadata | plugins/<name>/.claude-plugin/*.json |
| Skills | plugins/<name>/skills/*/SKILL.md |
| Skill references | plugins/<name>/skills/*/references/*.md |
| Agents | plugins/<name>/agents/*.md |
| Hooks | plugins/<name>/hooks/*.json |
| MCP | plugins/<name>/.mcp.json |
| Docs | plugins/<name>/README.md |
| Legacy | plugins/<name>/commands/*.md |
| All files | plugins/<name>/**/* |
Get line counts for all discovered files via a single Bash call: wc -l <file1> <file2> ...
=== PLUGIN MAP ===
Plugin: <name> v<version>
Skills (N):
skills/<skill>/SKILL.md XX lines
skills/<skill>/references/foo.md XX lines
Agents (N):
agents/<agent>.md XX lines
Hooks:
hooks/hooks.json XX lines
Metadata:
.claude-plugin/plugin.json XX lines
README.md XX lines
Legacy:
[commands/ if found]
Total: N files, ~N lines
=== END MAP ===
Tell the user:
Phase 1: Building expert context from official plugin documentation...
Invoke /claudit:knowledge ecosystem to retrieve ecosystem knowledge.
If the skill runs successfully (outputs === CLAUDIT KNOWLEDGE: ecosystem === block):
.claude/skills/smith/references/plugin-spec.md for plugin-authoring-specific detail (plugin.json schema, directory conventions) that the ecosystem cache may not cover at full depthIf the skill is not available (claudit not installed — the invocation produces an error, is not recognized as a command, or produces no knowledge output):
Dispatch 2 research subagents in parallel using the Task tool. Both must be foreground.
In a single message, dispatch both Task tool calls:
Research Plugin Spec:
description: "Research plugin spec docs"subagent_type: "research-plugin-spec"prompt: "Build expert knowledge on Claude Code plugin, skill, and sub-agent authoring. Read the baseline from .claude/skills/smith/references/plugin-spec.md first, then fetch official Anthropic documentation. Return structured expert knowledge."Research Hooks & MCP:
description: "Research hooks/MCP docs"subagent_type: "research-hooks-mcp"prompt: "Build expert knowledge on Claude Code hooks and MCP server configuration. Fetch official Anthropic documentation. Return structured expert knowledge."Once both return, combine results:
=== EXPERT CONTEXT ===
## Plugin System Knowledge
[Results from research-plugin-spec]
## Hooks & MCP Knowledge
[Results from research-hooks-mcp]
=== END EXPERT CONTEXT ===
Tell the user:
Expert context assembled. Dispatching audit agents...
Phase 2: Analyzing plugin against expert knowledge...
Read all plugin files before dispatching. Each agent needs:
Dispatch 5 agents in parallel — the four content audits plus audit-boundary. Send all five Task tool calls in a single message.
audit-structure:
description: "Audit plugin structure"subagent_type: "audit-structure"prompt: Include Expert Context + the full plugin manifest with paths and line counts. The agent checks directory layout, required files, naming conventions.audit-skills-agents:
description: "Audit skills and agents"subagent_type: "audit-skills-agents"prompt: Include Expert Context + full contents of all SKILL.md and agent .md files. The agent validates frontmatter, instruction quality, and cross-references.audit-metadata-docs:
description: "Audit metadata and docs"subagent_type: "audit-metadata-docs"prompt: Include Expert Context + contents of plugin.json, marketplace.json entry, plugin README.md, and root README.md entry. Also include the plugin directory path for the security scan. The agent checks version consistency, docs quality, and secrets.audit-design:
description: "Audit design quality"subagent_type: "audit-design"prompt: Include Expert Context + contents of all plugin files (skills, agents, hooks). The agent assesses over-engineering, hook quality, and design patterns.audit-boundary:
description: "Audit plugin boundary compliance"subagent_type: "audit-boundary"prompt: Include Expert Context + plugin name and root path (plugins/<name>/). The agent audits surface declaration, silent consumer-artefact mutation, hook invariants, and manifest/script drift.Once all audit agents return, read the scoring rubric:
${SKILL_ROOT}/references/scoring-rubric.mdApply the rubric to audit findings. For each applicable category:
Categories, weights, and audit sources:
| Category | Weight | Audit Source |
|---|---|---|
| Skill Quality | 20 | audit-skills-agents |
| Structure Compliance | 15 | audit-structure |
| Agent Quality | 15 | audit-skills-agents |
| Metadata Quality | 10 | audit-metadata-docs |
| Hook Quality | 10 | audit-design + audit-boundary |
| Documentation | 10 | audit-metadata-docs + audit-boundary |
| Over-Engineering | 10 | audit-design |
| Security | 10 | audit-metadata-docs + audit-boundary |
Weights sum to 100.
Scope-aware scoring: If a plugin has no component for a category (e.g., no hooks), that category scores 100 (neutral) unless the plugin clearly needs it.
overall = sum(category_score_i * weight_i / 100 for all 8 categories)
Look up letter grade from rubric's grade threshold table.
Compile ranked recommendations from all audit findings (including boundary findings):
╔══════════════════════════════════════════════════════════╗
║ HONE QUALITY REPORT ║
║ Plugin: <name> v<version> | Overall: XX/100 Grade: X ║
╚══════════════════════════════════════════════════════════╝
Skill Quality ████████████████████░░░░░ XX/100 X
Structure Compliance ████████████████████░░░░░ XX/100 X
Agent Quality ████████████████████░░░░░ XX/100 X
Metadata Quality ████████████████████░░░░░ XX/100 X
Hook Quality ████████████████████░░░░░ XX/100 X
Documentation ████████████████████░░░░░ XX/100 X
Over-Engineering ████████████████████░░░░░ XX/100 X
Security ████████████████████░░░░░ XX/100 X
For visual bars: █ for filled (score/100 * 25 chars), ░ for remaining. Append numeric score and letter grade.
After the scorecard, present:
Use AskUserQuestion with multiSelect: true to let the user choose which recommendations to apply. Group by priority (Critical, High, Medium, Low). Include estimated score impact.
Format each option as:
Include a "Skip — no changes" option.
For each selected recommendation:
Common fix types:
Plugin boundary findings (from audit-boundary):
After implementing fixes, re-score affected categories and show before/after:
Score Delta:
Skill Quality 65 → 85 (+20)
Metadata Quality 70 → 95 (+25)
Overall 72 → 84 (+12) Grade: C → B
Check if any files were modified in Phase 4. If no changes were made, skip this phase.
Use AskUserQuestion (single-select):
command -v gh — verify gh CLI availablegh auth status — verify authenticatedIf PR delivery is selected:
CURRENT_BRANCH=$(git rev-parse --abbrev-ref HEAD)git checkout -b hone/<plugin>-improvements-$(date +%Y-%m-%d-%H%M)plugins/<name>/, .claude-plugin/marketplace.json, and README.md<Plugin> v<version>: hone quality improvements (score XX → YY)
- [List key changes]
git push -u origin <branch-name>gh pr create --base $CURRENT_BRANCH:
<Plugin> v<version>: hone quality improvementsgh api for each changed file (educational comments explaining what changed and why)If gh is not available or PR creation fails, show git diff --stat and explain what was changed.
.claude/skills/smith/references/plugin-spec.md