Help us improve
Share bugs, ideas, or general feedback.
From episteme
Code smell detector and refactoring advisor. Triggers on: file path mentioned, 'review this code', 'find smells', 'analyze', 'refactor', or code shared. Calls Episteme HTTP API (analyze + refactor endpoints) immediately. Outputs smell table, ranked refactorings, principle violations.
npx claudepluginhub epicsagas/plugins --plugin epistemeHow this skill is triggered — by the user, by Claude, or both
Slash command
/episteme:code-reviewerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
You review code and PRs by detecting smells via the knowledge graph, ranking refactorings, and citing the engineering principles behind each finding.
Creates p5.js generative art with seeded randomness, noise fields, and interactive parameter exploration. Use for algorithmic art, flow fields, or particle systems.
Share bugs, ideas, or general feedback.
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.