brownfield-codebase-analysis
Use during colonize to understand an existing codebase before planning work
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use during colonize to understand an existing codebase before planning work
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use when Codex is asked to colonize, plan, build, continue, swarm, or seal an Aether colony and must mirror wrapper orchestration safely
Use when Codex is asked to initialize or set up an Aether colony and should refine intent before running init
Use when Codex is asked to run Aether Oracle or discuss flows and should refine scope before research or clarification
Use when acceptance criteria need unit, integration, or end-to-end tests generated from implementation context
Use when delivered functionality needs acceptance-criteria verification before a phase advances
Use when a phase involves LLMs, AI agents, RAG, ML inference, or prompt/tool integration design
| source | shipped |
| name | brownfield-codebase-analysis |
| description | Use during colonize to understand an existing codebase before planning work |
| type | colony |
| domains | ["analysis","onboarding","codebase-intelligence"] |
| agent_roles | ["surveyor-provisions","surveyor-nest","surveyor-disciplines","surveyor-pathogens","scout","architect"] |
| workflow_triggers | ["colonize"] |
| priority | normal |
| version | 1.0 |
When a colony lands on an existing codebase (brownfield project), it needs structured understanding before it can plan work. This skill performs deep analysis producing a colonization report -- the colony's orientation map.
1. Scan top-level files: package.json, Cargo.toml, go.mod, pyproject.toml, etc.
2. Identify primary language, framework, and build system
3. Detect test framework and CI/CD configuration
4. Map directory structure (top 3 levels)
5. Identify entry points (main files, index files, config files)
1. Trace import/dependency graph from entry points
2. Identify architectural patterns (MVC, microservices, monorepo, etc.)
3. Map module boundaries and their responsibilities
4. Detect data flow: where data enters, transforms, and persists
5. Catalog external service integrations
1. Extract all public API endpoints (REST, GraphQL, RPC)
2. Map function signatures of exported/public modules
3. Identify CLI commands if applicable
4. Document authentication and authorization patterns
5. Note rate limiting, versioning, and deprecation markers
1. Identify database type and schema (SQL models, NoSQL documents)
2. Map ORM/ODM usage and migration patterns
3. Trace data flow from user input to persistence
4. Identify caching layers and strategies
5. Catalog background jobs and queue systems
1. Search for TODO, FIXME, HACK, XXX comments
2. Identify deprecated dependency usage
3. Detect dead code paths (unused exports, unreachable branches)
4. Flag inconsistent patterns (mixed state management, duplicate utilities)
5. Note security anti-patterns (hardcoded secrets, SQL injection risks)
Write structured documents to .aether/data/colonization/:
tech-stack.md -- Language, frameworks, tools, versionsarchitecture.md -- System design, module map, data flowsapi-catalog.md -- All public interfacesdata-layer.md -- Storage, schemas, migrationstech-debt.md -- Prioritized debt inventorycolony-orientation.md -- Executive summary for colony onboarding.gitignore: Never analyze node_modules, vendor, or build artifacts. COLONIZATION REPORT -- {project_name}
Language: {primary} ({version})
Framework: {name} ({version})
Architecture: {pattern}
Modules: {count} identified
APIs: {count} endpoints
Data Stores: {list}
Tech Debt Items: {count} ({critical} critical, {high} high)
Colonization Score: {1-10} (10 = fully understood)
Key Risks: {top 3 risk areas}
Recommended First Phase: {suggestion}
Colonize a Node.js API:
"Colonizing... Detected Express.js API with PostgreSQL, Redis cache, and Bull queue system. 47 endpoints cataloged. 23 tech debt items found (3 critical: auth token rotation, SQL string concatenation in user search, expired SSL cert in config). Colony orientation complete."
Re-colonize after changes:
"Incremental colonization... 3 new modules detected, 2 APIs changed. Tech debt reduced by 5 items. Colonization score improved from 6 to 8."