codebase-classification
Classify codebases before modification to choose appropriate development approach
npx skills add majiayu000/claude-skill-registry --skill codebase-classification --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Codebase Classification Skill Analyze and classify codebases before making changes to ensure appropriate development approach. ## Overview Before modifying any codebase, classify it to determine whether to: - **Follow existing patterns** (Disciplined) - **Gradually improve** while following conventions (Transitional) - **Propose improvements** to legacy patterns (Legacy) - **Establish best practices** from scratch (Greenfield) ## Classification Types ### 1. Disciplined Codebase **Signals:** - Consistent code style (formatting, naming conventions) - Comprehensive test coverage (>70%) - Clear module boundaries and interfaces - Type hints/annotations throughout - Up-to-date dependencies - Active CI/CD pipeline - Good documentation (README, docstrings) **Approach:** Follow existing patterns strictly. Don't introduce new conventions. ### 2. Transitional Codebase **Signals:** - Mixed code quality (some areas good, others not) - Partial test coverage (30-70%) - Some type hints, inconsistent usage - Active development with modernization efforts - Dependencies somewhat current **Approach:** Follow existing conventions in touched areas. Propose improvements for new code. ### 3. Legacy Code
- Overview
- Classification Types
- 1. Disciplined Codebase
- 2. Transitional Codebase
- 3. Legacy Codebase
- 4. Greenfield Codebase
- Quick Classification Checklist
- Decision Matrix
- Behavior Guidelines
- When Disciplined
- When Transitional
- When Legacy
- When Greenfield
- Examples
What does the codebase-classification skill do?
Classify codebases before modification to choose appropriate development approach
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill codebase-classification --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
