phase-context-gathering
Use when a phase needs implementation context, file inventory, or gray-area analysis before work proceeds
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when a phase needs implementation context, file inventory, or gray-area analysis before work proceeds
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
| name | phase-context-gathering |
| description | Use when a phase needs implementation context, file inventory, or gray-area analysis before work proceeds |
| source | shipped |
| type | colony |
| domains | ["analysis","codebase-intelligence","requirements"] |
| agent_roles | ["scout","architect","watcher"] |
| workflow_triggers | ["plan","build"] |
| task_keywords | ["context","gray area","insufficient","unfamiliar","dependencies"] |
| priority | normal |
| version | 1.0 |
Adaptively gathers implementation context by scanning the codebase, detecting gray areas (underspecified regions), and deep-diving into each. Produces a CONTEXT.md that gives builders everything they need without ambiguity.
aether build fails due to missing information about existing code.aether/roadmap.md.Execute a parallel scan across the codebase:
For each context area:
1. Glob for files matching keywords/patterns
2. Grep for relevant function names, types, or constants
3. Read top-level directory structure of related modules
4. Check for existing tests in the area
Record findings in a structured inventory:
area: {name}
files_found: [{paths}]
relevant_patterns: [{patterns found}]
test_coverage: {exists | partial | missing}
confidence: {high | medium | low}
Identify gray areas where information is incomplete:
Score each gray area:
severity: {blocking | significant | minor}
blocking: cannot proceed without resolving
significant: could cause rework if wrong assumption made
minor: unlikely to affect outcome
For each blocking or significant gray area:
git log --oneline -10 -- {path})For each resolved gray area, record:
area: {name}
finding: {what was discovered}
resolution: {how to handle it}
confidence: {high | medium | low}
source: {file:line or git:hash}
If a gray area cannot be resolved through codebase investigation:
Produce the context document:
# Phase {N} Context: {Title}
## Summary
{2-3 sentence overview of the codebase landscape relevant to this phase}
## File Inventory
| Area | Files | Status | Confidence |
|------|-------|--------|------------|
| {area} | {paths} | {status} | {H/M/L} |
## Key Interfaces
### {Interface Name}
- Location: {file:line}
- Signature: {type signature or API shape}
- Purpose: {what it does}
- Used by: {consumers}
## Established Patterns
### {Pattern Name}
- Where used: {files/modules}
- Example: {code snippet or reference}
- Applies to: {what this phase should follow}
## Gray Areas Resolved
### {Area Name}
- Finding: {what was discovered}
- Resolution: {what builders should do}
- Confidence: {H/M/L}
- Source: {file:line}
## Open Questions
### {Question}
- Impact if wrong: {consequence}
- Default approach: {recommended path}
- Needs: {queen | architect} review
## Test Landscape
- Framework: {test runner and libraries}
- Pattern: {how tests are organized}
- Coverage in area: {assessment}
- Existing fixtures: {relevant test data factories}
When you encounter an unfamiliar import, follow it: read the source file, check its exports, and understand its role. Never assume an import does what its name suggests -- verify.
Look at 3-5 nearby files to infer conventions. A single file might be an outlier. Consistent patterns across multiple files indicate a real convention.
.aether/phases/{phase}/CONTEXT.md -- the gathered context.aether/phases/{phase}/state.md with context_gathered: truePhase requires adding new REST endpoints. Context gatherer scans:
/src/routes/ directory with Express router pattern/src/middleware/auth.ts/tests/routes/ with supertest-based integration testsCONTEXT.md documents the Express+Joi+supertest stack, the auth middleware contract, and the test file naming convention. No gray areas -- confidence high.
Phase requires "email notifications." Context gatherer finds:
/src/utils/email.ts (undocumented)/src/services/notifications.tsGray area: which email system should the phase use? Deep dive reveals the utility is legacy (last commit 6 months ago) and the service is current (active development). Resolution: use the notification service, document the legacy utility as deprecated. Open question flagged if the legacy utility should be removed.
New builder agent joins colony for phase 7. Context gatherer produces a comprehensive CONTEXT.md covering: project architecture overview, directory structure, key module responsibilities, testing conventions, and a list of the 5 most recently modified files in the phase scope. Builder starts with full situational awareness.