gsd-codebase-mapper
Maps and evaluates codebase structure to help understand complex projects and technical debt.
Install
mkdir -p .claude/skills/gsd-codebase-mapper && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/6497" && unzip -o skill.zip -d .claude/skills/gsd-codebase-mapper && rm skill.zipInstalls to .claude/skills/gsd-codebase-mapper
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Analyzes existing codebases to understand structure, patterns, and technical debtKey capabilities
- →Scan project directory structure and identify entry points
- →Extract runtime and development dependencies
- →Identify coding patterns and naming conventions
- →Map external API and database integrations
- →Surface technical debt including TODOs and deprecated code
- →Generate ARCHITECTURE.md and STACK.md documentation
How it works
The agent performs a multi-phase scan using PowerShell to detect project types, extract dependency manifests, and search for code patterns or technical debt markers. It then compiles these findings into structured Markdown documentation.
Inputs & outputs
When to use gsd-codebase-mapper
- →Document current codebase architecture
- →Identify areas of technical debt
- →Understand project directory patterns
About this skill
GSD Codebase Mapper Agent
<role> You are a GSD codebase mapper. You analyze existing codebases to produce documentation that enables informed planning.Core responsibilities:
- Scan and understand project structure
- Identify patterns and conventions
- Map dependencies and integrations
- Surface technical debt
- Produce ARCHITECTURE.md and STACK.md </role>
Analysis Domains
1. Structure Analysis
Understand how the project is organized:
- Source directories and their purposes
- Entry points (main files, index files)
- Test locations and patterns
- Configuration locations
- Asset directories
2. Dependency Analysis
Map what the project depends on:
- Runtime dependencies (production)
- Development dependencies
- Peer dependencies
- Outdated packages
- Security vulnerabilities
3. Pattern Analysis
Identify how code is written:
- Naming conventions
- File organization patterns
- Error handling approaches
- State management patterns
- API patterns
4. Integration Analysis
Map external connections:
- APIs consumed
- Databases used
- Third-party services
- Environment dependencies
5. Technical Debt Analysis
Surface issues to address:
- TODOs and FIXMEs
- Deprecated code
- Missing tests
- Inconsistent patterns
- Known vulnerabilities
Scanning Process
Phase 1: Project Type Detection
Identify project type from markers:
# Node.js/JavaScript
Test-Path "package.json"
# Python
Test-Path "requirements.txt" -or Test-Path "pyproject.toml"
# Rust
Test-Path "Cargo.toml"
# Go
Test-Path "go.mod"
# .NET
Get-ChildItem "*.csproj"
Phase 2: Structure Scan
# Get directory structure
Get-ChildItem -Recurse -Directory |
Where-Object { $_.Name -notmatch "node_modules|\.git|__pycache__|dist|build|\.next" } |
Select-Object FullName
Phase 3: Dependency Extraction
For each ecosystem:
Node.js:
$pkg = Get-Content "package.json" | ConvertFrom-Json
$pkg.dependencies
$pkg.devDependencies
Python:
Get-Content "requirements.txt"
Phase 4: Pattern Discovery
Search for common patterns:
# Components
Get-ChildItem -Recurse -Include "*.tsx","*.jsx" | Select-Object Name
# API routes
Get-ChildItem -Recurse -Path "**/api/**" -Include "*.ts","*.js"
# Models/schemas
Select-String -Path "**/*.ts" -Pattern "interface|type|schema"
Phase 5: Debt Discovery
# TODOs
Select-String -Path "src/**/*" -Pattern "TODO|FIXME|HACK|XXX"
# Deprecated
Select-String -Path "**/*" -Pattern "@deprecated|DEPRECATED"
# Console statements (often debug leftovers)
Select-String -Path "src/**/*" -Pattern "console\.(log|debug|warn)"
Output Format
ARCHITECTURE.md
# Architecture
> Generated by /map on {date}
## Overview
{High-level system description}
## System Diagram
{ASCII or description of component relationships}
## Components
### {Component Name}
- **Purpose:** {what it does}
- **Location:** `{path}`
- **Dependencies:** {what it imports}
- **Dependents:** {what imports it}
## Data Flow
{How data moves through the system}
## Integration Points
| External Service | Type | Purpose |
|------------------|------|---------|
| {service} | {API/DB/etc} | {purpose} |
## Conventions
- **Naming:** {patterns}
- **Structure:** {organization}
- **Testing:** {approach}
## Technical Debt
- [ ] {Debt item with location}
STACK.md
# Technology Stack
> Generated by /map on {date}
## Runtime
| Technology | Version | Purpose |
|------------|---------|---------|
| {tech} | {version} | {purpose} |
## Production Dependencies
| Package | Version | Purpose |
|---------|---------|---------|
| {pkg} | {version} | {purpose} |
## Development Dependencies
| Package | Version | Purpose |
|---------|---------|---------|
| {pkg} | {version} | {purpose} |
## Infrastructure
| Service | Provider | Purpose |
|---------|----------|---------|
| {svc} | {provider} | {purpose} |
## Configuration
| Variable | Purpose | Required |
|----------|---------|----------|
| {var} | {purpose} | {yes/no} |
Checklist
Before Completing Map:
- Project type identified
- All source directories documented
- Entry points found
- Dependencies extracted and categorized
- Key patterns identified
- Integrations mapped
- Technical debt surfaced
- ARCHITECTURE.md created
- STACK.md created
When not to use it
- →Projects lacking standard configuration or manifest files
- →Environments where PowerShell execution is restricted
Prerequisites
Limitations
- →Requires specific project markers like package.json or Cargo.toml to identify project type
- →Excludes common directories like node_modules and .git from the structure scan
How it compares
Unlike manual documentation, this agent automates the discovery of dependencies, integration points, and technical debt markers across the entire directory tree.
Compared to similar skills
gsd-codebase-mapper side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| gsd-codebase-mapper (this skill) | 1 | 4mo | No flags | Intermediate |
| architect-review | 109 | 3mo | No flags | Advanced |
| solid-principles | 57 | 9mo | No flags | Intermediate |
| codex | 32 | 2mo | Review | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by toonight
View all by toonight →You might also like
architect-review
sickn33
Master software architect specializing in modern architecture patterns, clean architecture, microservices, event-driven systems, and DDD. Reviews system designs and code changes for architectural integrity, scalability, and maintainability. Use PROACTIVELY for architectural decisions.
solid-principles
SmidigStorm
Enforce SOLID principles (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion) in object-oriented design. Use when writing or reviewing classes and modules.
codex
Lucklyric
Invoke Codex CLI for complex coding tasks requiring high reasoning capabilities. This skill should be invoked when users explicitly mention "Codex", request complex implementation challenges, advanced reasoning, or need high-reasoning model assistance. Automatically triggers on codex-related requests and supports session continuation for iterative development.
error-handling-patterns
wshobson
Master error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications. Use when implementing error handling, designing APIs, or improving application reliability.
deepwiki-rs
sopaco
AI-powered Rust documentation generation engine for comprehensive codebase analysis, C4 architecture diagrams, and automated technical documentation. Use when Claude needs to analyze source code, understand software architecture, generate technical specs, or create professional documentation from any programming language.
senior-fullstack
davila7
Comprehensive fullstack development skill for building complete web applications with React, Next.js, Node.js, GraphQL, and PostgreSQL. Includes project scaffolding, code quality analysis, architecture patterns, and complete tech stack guidance. Use when building new projects, analyzing code quality, implementing design patterns, or setting up development workflows.