-
Read the source Superpowers Spec and compute its repository-relative path.
-
Read docs/assets/builder/asset-index.yaml when it exists and verify the source Superpowers Spec is listed as a formal asset_kind: spec asset for the phase.
-
If the source Superpowers Spec is not listed, add a fallback derivation change that creates or registers a formal asset_kind: spec asset for the original source Spec, with repo-relative path, current source hash, phase id, and asset-index membership. This fallback records the source document itself; it must not rewrite, move, or delete the original source Spec.
-
Read relevant existing L1/L2/L3 assets under docs/solutions/.
-
Use the templates under templates/ to add, modify, or delete durable business assets.
-
Use agentic-memory family conventions for source fidelity, durable knowledge shape, and archive-compatible structure. Do not shell out to agentic-memory CLI from this skill.
-
Write L1/L2/L3 asset changes only after the user has requested derivation or repair.
-
Run deterministic CLI lint or doctor:
agentic spec-derivation lint --manifest docs/assets/builder/derivations/<phase-id>.yaml <workspace>
Module fallback:
PYTHONPATH=python python -m agentic_core.cli spec-derivation lint --manifest docs/assets/builder/derivations/<phase-id>.yaml <workspace>
-
When long_document_mode triggers, create a source chunk index, dispatch read-only chunk extraction subagents when available, collect source-chunk-fact-packet outputs, synthesize the source coverage ledger as the main agent, and block if any critical chunk remains incomplete.
-
In long-document derivation, preserve source_chunk_index_ref and source_coverage_ledger_ref in the manifest and keep business-flow.operations grounded in source-backed operation contracts.
-
If deterministic lint fails for structural reasons, run CLI repair once.
-
If business meaning is missing or inconsistent, run semantic doctor and semantic repair using prompts/doctor.md and prompts/repair.md.
-
Re-run deterministic lint after semantic repair.
-
Prepare the confirm request for Agent Chat / agent-runtime.