my-claude-code-setup is a starter configuration and memory-bank template for Claude Code, providing project guidance and reusable setup for Claude Code sessions. Developers use it to organize Claude Code behavior, memory, commands, skills, subagents, hooks, and settings. The catalogue entries are components of this Claude Code workflow.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
git clone --depth 1 https://github.com/centminmod/my-claude-code-setupWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/centminmod/my-claude-code-setup/refactor-code)<a href="https://agentmods.dev/commands/centminmod/my-claude-code-setup/refactor-code"><img src="https://agentmods.dev/badge/commands/centminmod/my-claude-code-setup/refactor-code/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/centminmod/my-claude-code-setup/refactor-code"><img src="https://agentmods.dev/badge/commands/centminmod/my-claude-code-setup/refactor-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.07105 |
| Opus 5.5 | $0.00000 | $0.02842 |
| Sonnet 5.5 | $0.00000 | $0.01421 |
| Haiku 4.5 | $0.00000 | $0.00711 |
Grade C, and why
refactor-code scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Asks the agent to reveal its instructionsmediumSystem prompt leakage
Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.
## FINAL OUTPUT INSTRUCTIONS Unrestricted tool accessmediumExcessive agency
A wildcard tool grant or "run any command" leaves no least-privilege boundary at all.
- Execute any code changes How it starts
The opening of the file, as written. The whole thing — 877 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Refactoring Analysis Command
⚠️ CRITICAL: THIS IS AN ANALYSIS-ONLY TASK ⚠️
DO NOT MODIFY ANY CODE FILES
DO NOT CREATE ANY TEST FILES
DO NOT EXECUTE ANY REFACTORING
ONLY ANALYZE AND GENERATE A REPORT
You are a senior software architect with 20+ years of experience in large-scale refactoring, technical debt reduction, and code modernization. You excel at safely transforming complex, monolithic code into maintainable, modular architectures while maintaining functionality and test coverage. You treat refactoring large files like "surgery on a live patient" - methodical, safe, and thoroughly tested at each step.
YOUR TASK
- ANALYZE the target file(s) for refactoring opportunities
- CREATE a detailed refactoring plan (analysis only)
- WRITE the plan to a report file:
reports/refactor/refactor_[target]_DD-MM-YYYY_HHMMSS.md - DO NOT execute any refactoring or modify any code
OUTPUT: A comprehensive markdown report file saved to the reports directory
REFACTORING ANALYSIS FRAMEWORK
Core Principles (For Analysis)
- Safety Net Assessment: Analyze current test coverage and identify gaps
- Surgical Planning: Identify complexity hotspots and prioritize by lowest risk
- Incremental Strategy: Plan extractions of 40-60 line blocks
- Verification Planning: Design test strategy for continuous verification
Multi-Agent Analysis Workflow
Break this analysis into specialized agent tasks:
- Codebase Discovery Agent: (Phase 0) Analyze broader codebase context and identify related modules
- Project Discovery Agent: (Phase 1) Analyze codebase structure, tech stack, and conventions
- Test Coverage Agent: (Phase 2) Evaluate existing tests and identify coverage gaps
- Complexity Analysis Agent: (Phase 3) Measure complexity and identify hotspots
- Architecture Agent: (Phase 4) Assess current design and propose target architecture
- Risk Assessment Agent: (Phase 5) Evaluate risks and create mitigation strategies
- Planning Agent: (Phase 6) Create detailed, step-by-step refactoring plan
- Documentation Agent: (Report) Synthesize findings into comprehensive report
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 877 lines · 0 tokens per session scan C d6163921ab22
refactor-code is a command published in the GitHub repository centminmod/my-claude-code-setup (2,667 stars, last pushed 8d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 7,105 tokens. A static security scan graded it C with 2 findings (asks the agent to reveal its instructions, unrestricted tool access). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
sp.analyze
Perform a non-destructive cross-artifact consistency and quality analysis across spec.md, plan.md, and tasks.md after task generation.
check-file
Perform comprehensive analysis of $ARGUMENTS to identify code quality issues, security vulnerabilities, and optimization opportunities.
assemble-team
Assemble a pre-built agent team for parallel work - review, feature, debug, cross-platform, full-stack, or research.
fix-comments
Address PR review comments by implementing requested changes automatically.
address
Address code review feedback — corroborate, validate, and implement changes from a review's final.md.
translate-review-to-single-human
Translate a multi-reviewer code review into a single human-voice GitHub PR comment.