No slash command · from archon-os
Analyzes Claude Code usage patterns and evaluates prompt quality with scoring and optimization suggestions.
Ships in archon-os. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
AI-consumed reference. Optimized for Claude to read during execution. Human-readable explanation: see docs/architecture/HIERARCHICAL_PLANNING.md or docs/getting-started/ depending on topic.
Two modes: Usage Analytics (how you use Claude Code) and Prompt Quality (evaluate/optimize a specific prompt).
For task-intake validation (before executing a user request), use the 6-dimension benchmark in rules/core/prompt-validation.md — that's a different check (task completeness, not prompt craftsmanship) and should run at /run pre-execution per rules/core/no-assumption.md.
Trigger: /prompts:evaluate [--days N]
node "${CLAUDE_PLUGIN_ROOT}/scripts/metrics/evaluate-prompts.cjs" --days 7
Analyzes prompt logs from .claude/metrics/prompts/{date}.jsonl. Reports: intent distribution, feature utilization, complexity profile, suggestions, usage score (0-100).
If no data: prompt-logger hook collects automatically. Return after a few sessions.
Trigger: "evaluate this prompt", "optimize this prompt", or user pastes a prompt for review.
Step 1 — Classify. Infer intent, task type (coding/creative/RAG/agent/reasoning), constraints (format, tone, tools), target model.
Step 2 — Score. Rate 0-10 on 5 dimensions:
dimensions[5]{dimension,what_to_check}:
Clarity,"Is intent unambiguous? Can the model misinterpret?"
Instruction Quality,"Are steps specific? Is the task decomposed well?"
Efficiency,"Token waste? Redundant phrasing? Could say the same in fewer words?"
Robustness,"Edge cases handled? Hallucination controls? Fallback behavior?"
Output Alignment,"Format specified? Easy to parse? Deterministic output?"
Calibration: 0-3 poor, 4-6 acceptable, 7-8 good, 9-10 excellent.
Step 3 — Detect Issues. List specific problems:
Step 4 — Optimize. Rewrite in two versions:
Goals: preserve intent, reduce tokens, improve structure, add missing constraints, ensure parseable output.
{
"task_type": "...",
"score": 0-10,
"breakdown": {
"clarity": 0-10,
"instruction": 0-10,
"efficiency": 0-10,
"robustness": 0-10,
"output_alignment": 0-10
},
"issues": ["specific issue 1", "specific issue 2"],
"suggestions": ["actionable suggestion 1"],
"optimized_prompt": {
"minimal": "...",
"production": "..."
}
}
principles[6]{principle}:
Principle > checklist — 3 clear rules beat 20 vague ones
Show don't tell — one example > paragraph of explanation
Structured output > prose — JSON/TOON/tables when parseable output needed
Remove what the model already knows — don't teach coding basics to Claude
Constraint what varies — only specify behavior the model wouldn't do by default
Token budget awareness — every word costs money at scale
Trigger: user suspects a prompt is unstable, or before shipping a prompt to production.
Run the prompt N = 3 times (separate contexts, identical input). Compare outputs.
variance_level = percentage_of_non_matching_content_across_runs
- <10% STABLE — ship as-is
- 10-30% LOW VARIANCE — minor differences, usually acceptable
- 30-60% UNSTABLE — prompt needs constraints to reduce ambiguity
- >60% CHAOS — rewrite the prompt before any use
| Dimension | What "same" means |
|---|---|
| Structure | Same sections, same formatting, same order |
| Key facts | Same numbers, names, file paths |
| Decision | Same conclusion/recommendation |
| Format | Same JSON keys, same table headers |
Prompt: "Review this PR and list issues"
Runs: 3
Variance: 42% (UNSTABLE)
Divergence:
- Run 1 listed 5 issues (security, perf, style)
- Run 2 listed 3 issues (missed perf and style findings)
- Run 3 listed 7 issues (added subjective style nitpicks)
Root cause: No constraint on issue categories or severity threshold.
Recommendation: Change prompt to: "List issues at severity >= warning. Categories: security, correctness, performance. Skip style/formatting."
Cost: 3× single-run. Worth it for prompts that will run 50+ times.
antipatterns[6]{pattern,fix}:
"You are an expert...",Remove — model capability is fixed by model choice
"Please note that...",Remove — filler phrase
"It is important to always...",Rewrite as direct instruction
Repeating the same rule in 3 sections,Deduplicate — state once
Explaining what JSON is,Remove — model knows JSON
Step-by-step for trivial tasks,Remove steps — just state the goal
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub nguyenthienthanh/archon --plugin archon-os45 skills in this plugin
/agent-detectorCRITICAL: MUST run for EVERY message. Detects agent, complexity, AND model automatically. Without this, tasks route to wrong agents and use wrong models, degrading quality and wasting tokens./api-designerDesigns RESTful APIs with endpoint naming, versioning strategies (URL path, header-based), pagination (offset and cursor), error response schemas, and OpenAPI conventions. Use when the user asks about REST API design, creating endpoints, URL structure, API versioning, status codes, Swagger, or OpenAPI specs./bugfix-quickFast bug fixes with root cause investigation + TDD. Enforces 'no fix without root cause' discipline and verification protocol. Without this skill, fixes are applied at symptoms instead of sources, and bugs return.Other plugins' skills for the same job