phase-dependency-analysis
Use when phase or task ordering needs dependency, overlap, or blast-radius analysis
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when phase or task ordering needs dependency, overlap, or blast-radius analysis
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 | phase-dependency-analysis |
| description | Use when phase or task ordering needs dependency, overlap, or blast-radius analysis |
| type | colony |
| domains | ["analysis","dependency-management","planning"] |
| agent_roles | ["route_setter","architect","scout"] |
| workflow_triggers | ["plan"] |
| task_keywords | ["dependency","dependencies","ordering","parallel","blast radius"] |
| priority | normal |
| version | 1.0 |
Analyzes phase dependencies through three lenses -- file overlap, semantic dependencies, and data flow -- to auto-suggest optimal phase ordering. Produces a dependency graph that the roadmap-manager can use to validate or restructure the colony's execution plan.
aether plan is run and the roadmap has phases without explicit dependenciesFor each phase in the roadmap:
.aether/roadmap.mdRecord per-phase data:
phase: {N}
title: {title}
files_expected: [{paths or glob patterns}]
apis_produced: [{interface names}]
apis_consumed: [{interface names}]
data_models: [{model names}]
shared_state: [{global state, config, env vars}]
Compare every pair of phases for file overlap:
overlap(A, B) = |files_expected(A) files_expected(B)| / |files_expected(A) files_expected(B)|
Classification:
Record overlaps:
## File Overlap Matrix
| | P1 | P2 | P3 | P4 |
|---|---|---|---|---|
| P1 | -- | H | L | M |
| P2 | H | -- | L | L |
| P3 | L | L | -- | M |
| P4 | M | L | M | -- |
Determine logical dependencies between phases:
For each phase pair, classify the relationship and assign a dependency type:
pair: ({A}, {B})
relationship: {producer-consumer | foundation-extension | independent | mutually-exclusive}
direction: {A->B | B->A | none | conflict}
confidence: {high | medium | low}
reasoning: {why this relationship exists}
Trace data dependencies between phases:
data_flow:
- model: {User}
created_by: [Phase 1]
read_by: [Phase 2, Phase 4]
modified_by: [Phase 3]
implies: Phase 1 -> Phase 2, Phase 1 -> Phase 3, Phase 1 -> Phase 4
Combine all three analyses into a unified dependency graph:
nodes: [{phase numbers}]
edges:
- from: {A} to: {B}
type: {hard | soft | none}
sources: [{file_overlap | semantic | data_flow}]
confidence: {high | medium | low}
Edge types:
From the dependency graph, produce:
Output:
## Suggested Phase Ordering
### Sequential Chain (hard dependencies)
Phase 1 -> Phase 3 -> Phase 5
### Parallel Group A (no dependencies between)
Phase 2, Phase 4
### Parallel Group B (no dependencies between)
Phase 6, Phase 7 (both depend on Phase 5)
### Risk: Soft Dependencies
- Phase 2 -> Phase 4 (data_flow: shared User model, could conflict on schema changes)
Mitigation: Phase 4 should read User model as read-only, coordinate schema changes through Phase 3
Save the complete analysis:
# Colony Dependency Graph
## Summary
{N} phases analyzed, {X} hard dependencies, {Y} soft dependencies, {Z} parallel groups.
## Phase Data
{per-phase data from Step 1}
## File Overlap Matrix
{from Step 2}
## Semantic Relationships
{from Step 3}
## Data Flow Map
{from Step 4}
## Dependency Edges
{from Step 5}
## Ordering Suggestions
{from Step 6}
## Confidence Assessment
| Edge | Confidence | What would change it |
|------|-----------|---------------------|
| {A->B} | {H/M/L} | {evidence needed} |
Never rely on a single analysis type. File overlap alone misses semantic dependencies. Semantic analysis alone misses data conflicts. All three must agree before marking a dependency as "none."
Low-confidence edges should be escalated to the architect for manual review. The analyzer makes recommendations; the architect makes decisions.
When a new phase is added, don't re-anze everything. Compare only the new phase against existing ones. Update the graph incrementally.
.aether/context/dependency-graph.md -- full analysis.aether/context/dependency-matrix.json -- machine-readable overlap/edge data.aether/roadmap.md dependency fields (if queen approves suggestions)4-phase project to build a CRUD app.
File overlap: low between all phases (different files). Semantic: Phase 1 (models) -> Phase 2 (API) -> Phase 3 (frontend) -> Phase 4 (tests). Data flow: models created in Phase 1 consumed by all others.
Result: linear chain. No parallelism possible. Graph confirms the obvious ordering.
6-phase project with frontend and backend tracks.
File overlap: zero between frontend and backend phases. Semantic: Phase 1 (DB schema) is foundation for both tracks. Data flow: shared data model, but read-only on frontend.
Result: Phase 1 first, then Phase 2+3 (backend) and Phase 4+5 (frontend) in parallel. Phase 6 (integration) depends on both tracks. Significant time savings.
Phases 3 and 5 appear independent but both modify the User model schema.
File overlap: medium (shared migration files). Semantic: independent goals but shared data model. Data flow: both write to User table.
Result: soft dependency detected. Recommendation: sequential with Phase 5 reading the schema that Phase 3 establishes. Risk flagged if both try to run migrations simultaneously.