From blueprint
Simplify code for clarity and maintainability while preserving functionality
npx claudepluginhub urso/claudev --plugin blueprintThis skill is limited to using the following tools:
Simplify and refine code for clarity, consistency, and maintainability while preserving exact functionality. Focuses on uncommitted changes unless specific files are provided.
Provides Ktor server patterns for routing DSL, plugins (auth, CORS, serialization), Koin DI, WebSockets, services, and testApplication testing.
Conducts multi-source web research with firecrawl and exa MCPs: searches, scrapes pages, synthesizes cited reports. For deep dives, competitive analysis, tech evaluations, or due diligence.
Provides demand forecasting, safety stock optimization, replenishment planning, and promotional lift estimation for multi-location retailers managing 300-800 SKUs.
Simplify and refine code for clarity, consistency, and maintainability while preserving exact functionality. Focuses on uncommitted changes unless specific files are provided.
${CLAUDE_PLUGIN_ROOT}/scripts/list-rules.sh$ARGUMENTS
Parse for:
--story <story-file> for context (optional)!git diff --name-only HEAD
!git diff --name-only --cached
!bash ${CLAUDE_PLUGIN_ROOT}/scripts/list-rules.sh "" "" style
If files specified: Use those files.
If no files specified: Use the changed files from the pre-computed context above.
Filter out non-code files:
*.md, *.json, *.yaml, *.yml, *.txt, *.lock.git/, node_modules/, vendor/, dist/, build/.go, .py, .js, .ts, .tsx, .rs, etc.)If no files to simplify, report and exit.
Read applicable style rules from the pre-computed context above to understand project conventions.
Output format (pipe-separated): filename|name|applies-to|tags|paths|description
If --story specified, read the story document to understand:
For each file, read and look for opportunities to:
Reduce complexity:
Improve clarity:
Apply project standards:
For each simplification:
Report what was simplified:
## Simplification Summary
Simplified N file(s):
### path/to/file.go
- Lines 45-52: Flattened nested if statements
- Line 78: Replaced ternary chain with switch
### path/to/other.ts
- Lines 12-20: Consolidated duplicate validation logic
- Line 35: Removed unused variable
No changes needed:
- path/to/clean.go
Never change what the code does - only how it's written. All original features, outputs, and behaviors must remain intact.
Choose readable, explicit code over compact solutions. Three clear lines are better than one clever line.
Do NOT:
/develop-fix for that)Good candidates:
Leave alone: