Skip to content
AID v2.3.0 is out.See what's new →
Skills

aid-create-stack

  • name — aid-create-stack
  • description — Realize a ready stack seed from .aid/design/stack.md into the project’s technology (C0) Knowledge Base document — languages, runtimes, frameworks, package managers, and build and test tooling, each with its version. Use this skill when a stack seed is ready and the project has no technology-stack document yet. When it creates the document it also registers it in .aid/settings.yml and .aid/knowledge/README.md in the same run, which opts that document into the Conformance Lane permanently — a choice you are making by running this skill. To revise C0 content this lifecycle already committed, use /aid-update-stack; to create or revise a configuration option within a chosen stack rather than the stack itself, use /aid-create-config or /aid-update-config. Produced by the aid-architect agent and independently verified by aid-reviewer (full verify). Allocates a work-NNN folder.
  • allowed-tools — Read, Glob, Grep, Bash, Write, Edit, Agent
  • argument-hint — [<direction>] — which parts of the stack seed to realize

Definition: canonical/skills/aid-create-stack/SKILL.md

flowchart TB
  classDef aidNode color:#fff
  classDef aidEntry fill:#166534,stroke:#14532d,color:#fff
  classDef aidExit fill:#991b1b,stroke:#7f1d1d,color:#fff
  classDef aidDecision fill:#92400e,stroke:#78350f,color:#fff
  classDef aidLoopBack fill:#1e3a8a,stroke:#1e3a8a,color:#fff
  classDef aidStep fill:#1a2035,stroke:#d4a853,color:#f1f5f9
  n1(["INTAKE"])
  n2["CREATE"]
  n3["VERIFY"]
  n4["PRESENT<br/>hard stop -- the user decides"]
  n5(["DONE"])
  n1 --> n2
  n2 --> n3
  n3 -.-> n2
  n3 --> n4
  n4 --> n5
  class n1 aidEntry
  class n2 aidStep
  class n3 aidLoopBack
  class n4 aidStep
  class n5 aidExit
  class n1 aidNode
  class n2 aidNode
  class n3 aidNode
  class n4 aidNode
  class n5 aidNode

Every node in the chart above, in chart order, with the exact canonical/ text it was derived from.

1 · INTAKE · entry

canonical/skills/aid-create-stack/SKILL.md#L39-L53
## State: INTAKE
1. **Allocate** through the Work Initiation Gate exactly as the contract's Allocation rule
requires (`canonical/skills/aid-design/SKILL.md` INTAKE step 4 is the shape), with
`initiator: aid-create-stack`. `phase` is not driven.
2. **Read the seed** at `.aid/design/stack.md`.
3. **Resolve the destination by concern, not filename.** This skill binds concern **C0**
(technology, `canonical/aid/templates/kb-authoring/concern-model.md`). The seed's
`## Destination` names the resolved path; where it does not, resolve C0 against
`.aid/settings.yml` `knowledge.doc_set`, falling back to the C0 row of
`canonical/aid/templates/kb-authoring/domain-doc-matrix.md`, and confirm with the user.
An ambiguous realization is **asked**, never picked silently. The seed also names a
**second** destination -- the project's D document, for the rejected alternatives.
4. **Read the whole destination** if it exists, and note its `source:` field.
5. **Classify complexity** for the `aid-architect` dispatch (verifier tier >= producer).

Source: canonical/skills/aid-create-stack/SKILL.md#L39-L53 · full step: canonical/skills/aid-create-stack/SKILL.md#L39-L55

2 · CREATE · step

canonical/skills/aid-create-stack/SKILL.md#L59-L61
## State: CREATE
**Exactly three conditions refuse. There is no fourth.**

Source: canonical/skills/aid-create-stack/SKILL.md#L59-L61 · full step: canonical/skills/aid-create-stack/SKILL.md#L59-L93

3 · VERIFY · loop-back

canonical/skills/aid-create-stack/SKILL.md#L97-L100
## State: VERIFY
**Full verify**, as `design-lifecycle.md` defines it. Not clean -> loop to CREATE; the
3-cycle circuit breaker there escalates to IMPEDIMENT + `lifecycle: Blocked`.

Source: canonical/skills/aid-create-stack/SKILL.md#L97-L100 · full step: canonical/skills/aid-create-stack/SKILL.md#L97-L102

4 · PRESENT — hard stop — the user decides · step

canonical/skills/aid-create-stack/SKILL.md#L106-L111
## State: PRESENT (hard stop -- the user decides)
Set `lifecycle: Paused-Awaiting-Input`. Present the realized document and assert: the seed
was consumed only for what was written; on the creation path both registration surfaces were
written; the rejected alternatives went to the D document; and anything routed to
`/aid-update-stack` is named.

Source: canonical/skills/aid-create-stack/SKILL.md#L106-L111 · full step: canonical/skills/aid-create-stack/SKILL.md#L106-L113

5 · DONE · exit · UNSPECIFIED

canonical/skills/aid-create-stack/SKILL.md#L117-L119
## State: DONE
Set `lifecycle: Completed`, `updated` now, append a `## Lifecycle History` row.

Source: canonical/skills/aid-create-stack/SKILL.md#L117-L119 · full step: canonical/skills/aid-create-stack/SKILL.md#L117-L119

Report an issue with this page →