code-smells
SKILL.md
Code Smells (Detection + Guidance)
Use this skill when users ask to assess code for smells, refactoring opportunities, maintainability issues, or general code quality.
Operating rules
- Diagnose first: identify and classify smells before proposing edits.
- Use canonical smell names from this skill's catalog exactly.
- Anchor findings to concrete evidence (file/function/line or behavior).
- Pair smell findings with this quality checklist when applicable:
- Input validation at boundaries
- No code injection
- Error handling
- Configuration and constants
- Architecture and design
- Frontend safety
- Type hints (Python)
- Documentation hygiene
- Do not refactor automatically; only propose changes unless implementation is explicitly requested.
- Prioritize findings by impact and risk.
Workflow
- Confirm the review scope (files, functions, modules, PR, or snippet).
- Detect smells using the reference catalog.
- Report findings with: smell name, evidence, impact, suggested refactoring(s), and risk/effort.
- Include relevant quality-check names from the operating-rules checklist for context.
- If no smells are found, state that explicitly and note any residual risks or test gaps.
- Apply code changes only when the user explicitly asks to implement refactors.
Reference triggers (open when clearly relevant)
- Code smell/refactoring opportunity/maintainability/quality review ->
skills/code-smells/references/smells/index.md
References
skills/code-smells/references/index.md- References index for this skillskills/code-smells/references/smells/index.md- Smell catalog with one reference file per smell
Weekly Installs
2
Repository
bout3fiddy/agentsGitHub Stars
31
First Seen
Feb 23, 2026
Security Audits
Installed on
amp2
gemini-cli2
github-copilot2
codex2
kimi-cli2
cursor2