gsd-map-codebase
Skill1 starsChanged 3 months agoMITView on GitHub
Output language: Respond automatically in the user's conversation language. Produce a durable reference of an existing codebase so future work doesn't start from zero context. The output is a set of Markdown files in memory/.planning/codebase/. 1. Directory structure — Run find . -maxdepth 3 -type f (or deeper as needed). Ignore node_modules/, .git/, dist/, build/, __pycache__/, .venv/. 2. Tech stack markers — Look for: - package.json, requirements.txt, go.mod, Cargo.toml, Gemfile, etc. - Dockerfile, docker-compose.yml, k8s/, helm/ - Config files (vite.config.*,…
5 other projects use a version of this.
Adopted by
Most recently taken up by
- sp1e/claude-skillstheir own version, first seen Oct 12, 2026
- open-gsd/get-shit-done-reduxtheir own version, first seen Oct 8, 2026
- adrianoanthonymma16-boop/opencode-agentstheir own version, first seen Sep 16, 2026
- open-gsd/gsd-coretheir own version, first seen Sep 2, 2026
- ZaneL1u/cloud-cli-proxytheir own version, first seen May 9, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- open-gsd/get-shit-done-redux★ 11ksame name
- open-gsd/gsd-core★ 11ksame name
- ZaneL1u/cloud-cli-proxy★ 57same name
- adrianoanthonymma16-boop/opencode-agents★ 1same name
- sp1e/claude-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository56 other files it gives its agents.
- C31-1stSkill
- C31-adopt-projectSkill
- C31-brainstormSkill
- C31-coding-disciplineSkill
- C31-compound-refreshSkill
- C31-compoundSkill
- C31-context-engineeringSkill
- C31-curatorSkill
- c31-daily-intelSkill
- C31-debugSkill
- c31-devSkill
- C31-grillSkill
- C31-lfgSkill
- C31-planSkill
- C31-researchSkill
- C31-specSkill
- C31-stormSkill
- C31-strategySkill
- C31-workflow-bug-reproductionSkill
- C31-workSkill
- rl-workflowSkill
- C31-cvideoSkill
- c31-loopSkill
- c31-sxsSkill
- teachSkill
- video-content-analysisSkill
- agent-reachSkill
- kimiimSkill
- skillhub-preferenceSkill
- c31-communitySkill
- c31-growSkill
- c31-gutcheckSkill
- c31-marketSkill
- c31-mvpSkill
- c31-priceSkill
- c31-processSkill
- c31-sellSkill
- c31-validateSkill
- c31-valuesSkill
- growth-hackerSkill
- c31-improve-codebase-architectureSkill
- C31-multi-reviewSkill
- C31-review-adversarialSkill
- C31-review-architectureSkill
- C31-review-securitySkill
- C31-reviewSkill
- c31-wizardSkill
- external-privacy-guardSkill
- find-skillsSkill
- gsd-new-projectSkill
- gsd-progressSkill
- gsd-quickSkill
- gsd-shipSkill
- humanize-aiSkill
- time-awarenessSkill
- worker-safetySkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 5
Use when the user says "map codebase", "analyze codebase", "代码库分析", "brownfield", "existing code", or needs to understand a legacy …
- Distinctive: line 29
Before planning a refactor, migration, or major feature on a legacy codebase
- Distinctive: line 30
After inheriting a project with no documentation
- Distinctive: line 31
When onboarding a new contributor who needs orientation
- Distinctive: line 67
Commit message style if visible in git log
- Very specific: line 78
Create directory memory/.planning/codebase/ if it doesn't exist.
- Distinctive: line 79
Write one file per topic. Each file uses YAML frontmatter:
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Multilingual Triggers
| Language | Trigger phrases |
| EN | gsd-map-codebase |
| ZH | 分析代码库, 代码库分析 |
| JA | コードベース分析 |
Output language: Respond automatically in the user's conversation language.
Map an Existing Codebase
Produce a durable reference of an existing codebase so future work doesn't
start from zero context. The output is a set of Markdown files in
memory/.planning/codebase/.
When to Use
- User says "map this codebase", "analyze the repo", "what's in this project?"
- Before planning a refactor, migration, or major feature on a legacy codebase
- After inheriting a project with no documentation
- When onboarding a new contributor who needs orientation
Execution Flow
Phase 1: Scan
- Directory structure — Run
find . -maxdepth 3 -type f(or deeper as needed). Ignorenode_modules/,.git/,dist/,build/,__pycache__/,.venv/. - Tech stack markers — Look for:
package.json,requirements.txt,go.mod,Cargo.toml,Gemfile, etc.Dockerfile,docker-compose.yml,k8s/,helm/- Config files (
vite.config.*,webpack.config.*,tsconfig.json, etc.)
- Architecture signals — Count of services/modules, entry points, API definitions, database schema files, message queue configs, event bus usage.
Phase 2: Detect
Tech Stack (for STACK.md)
- Primary language(s) and versions
- Framework(s) and runtime
- Build tools and package managers
- Database(s), caches, message queues
- Deployment / CI platform(s)
- Testing frameworks
Architecture (for ARCHITECTURE.md)
- Pattern: monolith, modular monolith, microservices, serverless, etc.
- Communication style: REST, GraphQL, gRPC, events, message bus
- Data flow: where is state, where is compute, what is the boundary
- Key entry points and hot paths
Conventions (for CONVENTIONS.md)
- Naming: files, classes, functions, variables, branches
- Folder structure: by feature, by layer, by domain
- Import / module organization
- Code style (formatter, linter config if detectable)
- Commit message style if visible in git log
Concerns (for CONCERNS.md)
- Security: secrets in code, exposed ports, auth patterns
- Performance: synchronous blocking calls, N+1 queries, unbounded loops
- Debt: TODO/FIXME count, deprecated dependencies, code duplication
- Reliability: missing tests, error handling gaps, no retry logic
- Scalability: hardcoded limits, single points of failure
Phase 3: Write Artifacts
Create directory memory/.planning/codebase/ if it doesn't exist.
Write one file per topic. Each file uses YAML frontmatter:
---
topic: <topic-name>
generated_at: <ISO-8601 timestamp>
---STACK.md — Bulleted inventory of languages, frameworks, infra. ARCHITECTURE.md — Narrative + a simple ASCII or bullet diagram. CONVENTIONS.md — Patterns the team follows. Note deviations. CONCERNS.md — Ranked by severity: High / Medium / Low. Include file paths. STRUCTURE.md — Directory tree (pruned) with one-line purpose per directory. TESTING.md — Test frameworks, coverage signals, mock strategy, gaps.
Phase 4: Summarize
Return a concise summary:
- Lines of code / file count (approximate)
- Primary stack
- One-line architecture description
- Top 3 concerns
- Location of the artifact files
Rules
- Never modify source code — This skill is read-only.
- Label assumptions — If you infer something without direct evidence, mark it
(assumption). - Keep paths repo-relative — Never absolute paths.
- Skip generated artifacts —
node_modules,dist, lockfiles are metadata only. - Stay under 300 lines total output across all files combined. Be terse.
- Idempotent — Re-running should overwrite artifacts cleanly.
Example Artifact (STACK.md)
---
topic: stack
generated_at: 2026-05-19T01:30:00+08:00
---
# Tech Stack
- **Language**: TypeScript 5.4 (Node 20)
- **Framework**: Express + React 18 (Vite)
- **Package Manager**: pnpm
- **Database**: PostgreSQL 15 (Prisma ORM)
- **Cache**: Redis (ioredis)
- **Queue**: BullMQ on Redis
- **Testing**: Vitest + Playwright
- **CI**: GitHub Actions
- **Deploy**: Docker Compose on AWS EC2Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

