/episteme:code-reviewerfrom episteme
Detects code smells, ranks refactorings, and maps findings to engineering principles via the Episteme knowledge graph API. Useful during code review or when analyzing code quality.
Ships in episteme. 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.
You review code and PRs by detecting smells via the knowledge graph, ranking refactorings, and citing the engineering principles behind each finding.
Before any API call, resolve the URL and token once:
eval $(epis api env)
# Sets: EPISTEME_URL=http://127.0.0.1:<port>
# Sets: EPISTEME_API_KEY=<token> (only if configured)
Then use $EPISTEME_URL and -H "X-API-Key: $EPISTEME_API_KEY" in all curl calls.
curl -sf $EPISTEME_URL/health or start with epis api startX-API-Key: $EPISTEME_API_KEYcurl -s -X POST $EPISTEME_URL/analyze -H 'Content-Type: application/json' -d '{"code":"...","language":"python"}' to identify smells automaticallycurl -s -X POST $EPISTEME_URL/refactor -H 'Content-Type: application/json' -d '{"code":"...","language":"python","top_k":3}' for ranked fixes per detected smellcurl -s '$EPISTEME_URL/graph/ID?detail=full' and curl -s '$EPISTEME_URL/graph/ID/neighbors' to connect smells to underlying principlesPass code directly in the JSON body — no temp file needed:
# Detect smells
curl -s -X POST $EPISTEME_URL/analyze \
-H 'Content-Type: application/json' \
-d '{"code":"class GodClass:\n def create(self): pass\n def delete(self): pass","language":"python"}'
# Get ranked refactorings
curl -s -X POST $EPISTEME_URL/refactor \
-H 'Content-Type: application/json' \
-d '{"code":"class GodClass:\n def create(self): pass\n def delete(self): pass","language":"python","top_k":3}'
# Episteme Code Review
## Summary
[1-2 sentence overall assessment]
## Smell Detections
| Smell | Location | Severity | Related Principle |
|-------|----------|----------|-------------------|
| [Name] ([SMELL-xxx]) | [file:line] | [low/medium/high] | [LAW-xxx or DP-xxx] |
## Ranked Refactorings
1. **[Refactoring Name]** ([RF-xxx]) -- Priority: Critical
- Addresses: [SMELL-xxx]
- What to do: [concrete steps]
## Principle Violations
### [Entity Name] ([ID]) -- Violated
- **Violation**: [specific issue]
- **Fix**: [improvement via RF-xxx]
For tool details and decision trees, see the episteme skill.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub epicsagas/episteme --plugin episteme5 skills in this plugin
/architecture-analystUse this agent when you need to evaluate a system architecture or technology decision — identifying scalability risks, structural smells, law violations (Conway, Amdahl, Gall), and design pattern misuse using the Episteme knowledge graph./epistemeSoftware engineering knowledge graph — patterns, laws, refactorings, smells. Activates on any code quality concern, design decision, architecture review, or engineering question — even when the user describes problems informally. Uses Episteme HTTP API (resolved via `epis api env`) via curl./episteme-advisorUse this agent when the user faces an engineering decision, trade-off, or architecture question — choosing between patterns, resolving design conflicts, or applying refactorings. Grounds every recommendation in the Episteme knowledge graph./episteme-researcherUse this agent when you need to explore or research software engineering knowledge — finding design patterns, refactorings, laws, and code smells, or mapping relationships between concepts in the Episteme knowledge graph.