focused-codebase-scan
Use when a worker needs a quick targeted codebase scan before planning or implementation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when a worker needs a quick targeted codebase scan before planning or implementation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
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 | focused-codebase-scan |
| description | Use when a worker needs a quick targeted codebase scan before planning or implementation |
| type | colony |
| domains | ["codebase","analysis","scanning"] |
| agent_roles | ["surveyor-provisions","surveyor-nest","surveyor-disciplines","surveyor-pathogens","scout"] |
| workflow_triggers | ["colonize","plan"] |
| task_keywords | ["scan","quick","targeted","map","survey"] |
| priority | normal |
| version | 1.0 |
A rapid, focused codebase assessment that produces targeted documents without the overhead of a full analysis. Think of it as the colony sending a scout ahead -- quick reconnaissance, not a full survey. Perfect when you need specific answers fast.
QUICK: Top-level scan. Framework, language, structure. <30 seconds.
TARGETED: Focused scan of specific area. Dependencies, security, API, etc.
HEALTH: Codebase health check. Tests, coverage, debt indicators.
SECURITY: Security-focused scan. Auth patterns, secrets, vulnerabilities.
DEPS: Dependency analysis. Outdated, vulnerable, unused packages.
PATTERNS: Convention scan. Code style, naming, architectural patterns.
1. Detect project type from config files (package.json, etc.)
2. Count files by type and directory
3. Identify entry points and main modules
4. Check for test framework and CI configuration
5. Scan for obvious anti-patterns (TODOs, FIXMEs, hardcoded values)
6. Produce summary report
1. Scope the scan to the requested area
2. Read only relevant files (e.g., only dependency files for DEPS mode)
3. Analyze within scope, ignore everything else
4. Produce focused report with actionable findings
Metrics scanned:
- Test coverage: Test files vs source files ratio
- Dependency health: Outdated, vulnerable, deprecated
- Code complexity: File sizes, function lengths
- Debt indicators: TODO, FIXME, HACK comment counts
- Documentation: README presence, inline doc coverage
- Consistency: Pattern adherence across modules
Write scan results to .aether/data/scans/:
scan-{mode}-{timestamp}.md
Sections:
Summary: One-paragraph overview
Findings: Key discoveries (good and bad)
Metrics: Relevant numbers
Recommendations: Top 3 actions based on findings
Raw Data: Detailed findings for reference
--shallow: File names and directory structure only
--normal: File contents scanned, patterns detected (default)
--deep: Full AST analysis where possible, data flow tracing
SCAN -- {mode} | {project_name}
Files scanned: {count} | Duration: {time}
Health score: {1-10}
Key Findings:
{finding 1}
{finding 2}
{finding 3}
Recommendations:
1. {top recommendation}
2. {second recommendation}
3. {third recommendation}
Report: .aether/data/scans/scan-{mode}-{timestamp}.md
Quick scan:
"Node.js/Express API, 47 source files, 12 test files. Uses PostgreSQL via Prisma. 5 TODOs found, 2 FIXMEs. Health: 7/10. Recommend: add tests for auth module."
Security scan:
"3 findings: hardcoded JWT secret in config.ts:42, no rate limiting on auth endpoints, CORS allows all origins. Health: 4/10. Recommend: immediate secret rotation."