What this skill does
factory-architect orchestrates the architecture-decisions lifecycle. It coordinates individual architecture-related skills (architect-init, architect-specify, architect-clarify, architect-implement, architect-analyze) to maintain a consistent AD.md at the project root.
It operates as a Kind-A DAG orchestrator in alignment with the shared executor engine contract in factory-mission/references/executor.md.
When to use
- You want to bootstrap, refine, or analyze a project's system-level design and decisions (ADRs) end-to-end.
- You want to verify that architectural viewpoints conform to the Rozanski & Woods methodology.
When NOT to use:
- For product-requirements definition (use
factory-productinstead). - For feature-level software execution (use
factory-missioninstead).
Lifecycle DAG & Step Resolution
factory-architect implements a fixed named-skill DAG (fixed step resolution):
Greenfield Route (default on empty project)
specify(generatephase) -> Invokearchitect-specifyto collaboratively capture ADR drafts in.adlc/drafts/adr/.clarify⭐ (clarifyphase) -> Invokearchitect-clarifyto run interactive quality checks and mark ADRs Accepted (human sign-off gate).implement(buildphase) -> Invokearchitect-implementto compile accepted ADRs intoAD.md(by sub-systems) and promote them todocs/adlc/memory/adr/.analyze(analyzephase) -> Invokearchitect-analyzeto verify AD/ADR consistency and output a severity-ranked report.
Brownfield Route (default if code exists but no ADRs)
init(generatephase) -> Invokearchitect-initto reverse-engineer draft ADRs from the existing architecture.clarify⭐ →implement→analyze(same as Greenfield).
Refresh Route (default if AD.md and memory ADRs already exist)
analyze(analyzephase) -> Run architect-analyze first to detect drift.clarify⭐ →implement→analyze(drift-correction cycle).
Shared Executor Overrides
factory-architect overrides the shared executor engine primitives as follows:
- Publish Target: Fixed to
local. Outputs are written todocs/adlc/memory/adr/anddocs/adlc/architect/AD.md. If tracker-integrated, atrackercompletion summary comment is also posted. - Output Types: Steps use the following
output_typeassignments:specify/init→draft(ADR drafts stay in.adlc/drafts/adr/, not published to comment bus)clarify⭐ →decision(accepted/rejected ADR list published to comment bus)implement→artifact-ref(AD.md path reference published, content stays on disk)analyze→findings(severity-ranked consistency report published to comment bus)
- Correction Loop: If
analyzereturnsCRITICALorHIGHconsistency errors, the executor routes back toclarifywith the analyze marker inreads_from.clarifyreads the findings from the PR/MR/issue comment bus (or local fallback). This loop is bounded bymax_corrections(default 2); if exceeded, the orchestrator halts for human review. - Supervision Default:
hybrid. A human gate is hard-enforced atclarify⭐ (for ADR approvals) and at finalAD.mdreview. - Pre-flight Check: Verifies that the
architect-*lifecycle skills are installed in the workspace before beginning Phase 0.