Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Codebase Consolidation

ASecurity

Analyze, consolidate, and document codebases through multi-perspective analysis. Use when reviewing project structure, planning refactoring, creating documentation, or assessing technical debt.

76 stars
0 votes
0 copies
1 views
Added 2/8/2026
developmentgorefactoringapisecuritydocumentation

Works with

api

Security Analysis

A100/100

Scanned 2/12/2026

Install to Claude Code

$npx -y skills add majiayu000/claude-skill-registry --skill codebase-consolidation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Codebase Consolidation?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Codebase Consolidation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-codebase-consolidation/badge)](https://www.skillsdirectory.com/skills/majiayu000-codebase-consolidation)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: codebase-consolidation
description: Analyze, consolidate, and document codebases through multi-perspective analysis. Use when reviewing project structure, planning refactoring, creating documentation, or assessing technical debt.
---

# Codebase Consolidation & Analysis

Systematically analyze codebases to identify consolidation opportunities, document architecture, and generate actionable insights.

## Quick Reference

- **[Analysis Dimensions](analysis-dimensions.md)** - 8 analysis dimensions with detailed criteria
- **[Consolidation Patterns](consolidation-patterns.md)** - Common refactoring patterns with examples
- **[Report Templates](report-templates.md)** - Output format templates

## When to Use

- Starting on a new codebase - Understand structure quickly
- Planning refactoring - Identify consolidation opportunities
- Code review preparation - Comprehensive analysis before changes
- Documentation needs - Generate architecture docs
- Technical debt assessment - Quantify and prioritize improvements
- Onboarding new developers - Create codebase overview
- Pre-release audits - Quality and security review

**Don't use for**: Single file analysis, quick bug fixes, simple feature additions

## Core Purpose

Comprehensive codebase analysis:
- **Code Duplication** - Find duplicate code for consolidation
- **Architectural Analysis** - Document system structure and patterns
- **Refactoring Opportunities** - Identify improvement areas
- **Technical Debt Assessment** - Quantify and prioritize debt
- **Documentation Generation** - Create architecture diagrams and docs
- **Multi-Perspective Analysis** - Review from architect, developer, product views
- **Quality Metrics** - Complexity, coverage, maintainability

## Analysis Dimensions

| Dimension | Focus |
|-----------|-------|
| Code Duplication | Find duplicate/similar code blocks |
| Architectural Structure | System architecture and component relationships |
| Code Organization | Module structure and separation of concerns |
| Refactoring Opportunities | Large files, complex functions |
| Technical Debt | TODOs, missing tests, outdated deps |
| Quality Metrics | LOC, complexity, coverage |
| Design Patterns | Patterns and anti-patterns in use |
| Cross-Cutting Concerns | Error handling, logging, security |

See **[analysis-dimensions.md](analysis-dimensions.md)** for detailed criteria.

## Analysis Workflow

1. **Discovery** - Project structure, file counts, configuration
2. **Dependency Analysis** - cargo tree, outdated, audit
3. **Duplication Detection** - Large files, tech debt markers
4. **Complexity Analysis** - LOC statistics, long functions
5. **Architecture Mapping** - Components, dependencies, data flow
6. **Quality Assessment** - Coverage, linting, formatting
7. **Documentation Review** - Doc generation, API documentation
8. **Synthesis** - Comprehensive report with recommendations

## Output Formats

- **Executive Summary** - Health score, key metrics, priorities
- **Architecture Documentation** - System diagram, patterns, data flows
- **Refactoring Roadmap** - Phased plan with tasks and estimates
- **Technical Debt Report** - Quantified debt, payoff strategy
- **Onboarding Document** - Developer guide to codebase

See **[report-templates.md](report-templates.md)** for complete templates.

## Best Practices

✓ Start with high-level structure, use automated tools, prioritize findings, provide concrete examples with file paths, estimate effort, consider multiple perspectives

✗ Don't analyze without clear goals, only report problems, provide generic advice, ignore context, recommend big rewrites, overwhelm with detail

See **[consolidation-patterns.md](consolidation-patterns.md)** for refactoring patterns and examples.

Attribution

majiayu000majiayu000
View sourceMore from majiayu000 →
SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Know which skills are safe — weekly.

Best new skills + every skill we flagged as malicious. From the team that scanned 103,619.

Join free

Related Skills

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

284722 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2192 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Tanstack Start

Build a full-stack TanStack Start app on Cloudflare Workers from scratch — SSR, file-based routing, server functions, D1+Drizzle, better-auth, Tailwind v4+shadcn/ui. Use whenever the user mentions TanStack Start, asks to scaffold a full-stack Cloudflare app with SSR, wants an SSR dashboard, or asks for a React 19 + Cloudflare Workers app with file-based routing and server functions — even if they don't name TanStack Start specifically. No template repo — Claude generates every file fresh per ...

9881 votes

Pentest

PTES-aligned adversarial security audit for backend, frontend, and mobile applications. Produces a CVSS-scored Hacker Report with verified PoCs and phased remediation.

5491 votes
View all in development →