From Agency
Use when assessing a codebase or diff for quality, security, performance, or architecture problems before review or shipping — surfaces decidable findings as graph artefacts.
How this skill is triggered — by the user, by Claude, or both
Slash command
/agency:analyzeThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<!-- agency-generated: v1 -->
Analyze runs decidable transforms over source and reports findings on the quality, security, performance, and architecture axes as graph nodes the orchestrator can reason about, rather than prose opinions.
| Verb | Role | Brief | Reference |
|---|---|---|---|
architecture | transform | Dependency-graph + structural checks: import cycles, file LOC thresholds. | details |
cleanup | act | Focused mode: analyse for dead-code findings only, draft a patch plan. | details |
graph | transform | Query the provenance graph — a census of node types + a typed listing (read the graph). | details |
improve | act | Read prior Analysis findings, draft an improvement plan as a Reflection. | details |
paths | transform | Spec 048 intent-path analysis: long chains + verb sequences. | details |
performance | transform | AST-based hot-path lint: nested O(n²), += in loop, unbounded while True. | details |
quality | transform | Decidable lint findings: unused imports, long lines, long functions, long files. | details |
run | act | Run the requested analysis axes and record an Analysis + per-Finding nodes. | details |
security | transform | Decidable security patterns: eval/exec, hardcoded credentials, pickle.load, shell=True. | details |
await call_tool('capability_analyze_architecture', {'intent_id': 'intent:abc'})
Drive this capability's verbs by WALKING a skill one phase at a time (progressive disclosure, recorded as provenance):
code-analysis (discipline): scope → axes → run → review → apply
— walk it: await call_tool('capability_develop_skill_walk', {'name': 'code-analysis', 'inputs': {}, 'intent_id': '…'})Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub netzkontrast/agency --plugin agency