7
Description
Tirsvad edited this page 2026-11-13 06:48:43 +01:00

Description

🌐 English · Dansk · Bahasa Melayu

The problem it solves

An AI agent can write a lot of plausible documents and code quickly. What it cannot do on its own is know which document comes first, when it is good enough, or who is allowed to say so. Left alone it drifts: code appears before anyone agreed on the problem, documents contradict each other, and nobody can tell what was reviewed.

The framework fixes three things:

  1. Order. Documents are created in a fixed chain; each needs the one before it.
  2. Gates. Every step ends with a review against a written checklist. A step is done only when the review says Go.
  3. Memory. The project's state is its own documents. There is no tracker file; an agent resumes by reading them.

The artifact chain

Business Case ─▶ Stakeholder Analysis ─▶ Project Plan ─▶ Milestones (MIL)
                                                              │
                                              tasks synced as Issues
                                                              ▼
        Use Cases / User Stories ─▶ Domain Model ─▶ SSD ─▶ Operation Contract
                                                              ▼
                                   Sequence Diagram ─▶ DCD ─▶ ERD ─▶ CODE

Every box is an artifact type with a short code (BC, SA, PP, MIL, UC, DM, ...). The full list, what each requires and which checklist reviews it is the artifact catalog.

Each document starts with a ## Metadata table (ID such as BC-001, CrossReference, language and domain) and ends with a ## Version History whose latest row carries the status: Proposed, Accepted, Deprecated or Rejected.

The plan-first gate

Code is the last step, not the first. Nothing goes under src/ or tests/ unless:

  1. a milestone document is Accepted and its latest review is Go;
  2. the task is a row in that milestone's ## Tasks table (ideally already an issue);
  3. the task cites the use case or design artifact it implements, or is a plain technical task.

A request such as "build me X" is therefore answered with a plan and a list of issues, then a request for a go-ahead. Only the user can waive this, in chat, for that one request. Optional git hooks enforce it at commit time with a Task: MIL-NNN#N trailer. The rule is defined once in plan-first-gate.md.

Review: the QC checklists and review records

A QC checklist is one Markdown file per artifact type (qc-use-case.md, qc-erd.md, ...). Each criterion is tagged with an ISO/IEC 25010:2023 quality characteristic and marked Mandatory or Optional. See the checklists wiki. The checklists are in two folders: qc/artifacts/ for documents and qc/code/ for source code, scripts, YAML files and CI workflows.

A review produces a review record (RC-NNN) in docs/sqa/reviews/: every criterion is transcribed and marked Pass, Fail or N-A with evidence, then the verdict is Go, Go-with-conditions or No-Go. The reviewer is never the author. Documents written in the Product Owner's language are also reviewed against the cross-cutting language and domain checklist QC-LANG-001. The procedure is review-checklist-process.md.

Two languages, one dictionary

The Product Owner (PO) speaks the domain; the developers speak IT. The framework keeps both honest:

  • PO-facing documents (Business Case, use cases, domain model, ...) use the PO language and PO terms.
  • IT-facing documents (operation contracts, sequence diagrams, DCD, ERD) use IT terms.
  • The dictionary (DICT) records every pair: "Member" (PO) = Player table (IT).

Metadata keys, headings, IDs and statuses stay in English because scripts read them.

The folder structure of the code you build

The default layout of a project's src/ and tests/, for clean architecture. The tree is shown in C# casing; other languages keep the layers and take their casing from coding-conventions.

📁 MyApp/
├── 📁 src/
│   ├── 📦 MyApp.Domain/                 # Core business rules; framework-independent
│   │   ├── 📂 Abstract/                 # IEntity.cs and other base contracts
│   │   ├── 📂 Attributes/
│   │   ├── 📂 Entities/
│   │   ├── 📂 ValueObjects/
│   │   ├── 📂 Repositories/             # Interfaces
│   │   └── 📂 Errors/
│   ├── 📦 MyApp.Application/            # Use cases and orchestration
│   │   ├── 📂 UseCases/
│   │   ├── 📂 Dto/
│   │   └── 📂 Ports/                    # Interfaces for external services
│   ├── 📦 MyApp.Infrastructure/         # Implementations and external systems
│   │   ├── 📂 Persistence/
│   │   ├── 📂 Repositories/
│   │   ├── 📂 Messaging/
│   │   └── 📂 Config/
│   └── 📦 MyApp.Presentation/           # UI, HTTP, CLI, or other entry points
│       ├── 📂 Features/
│       │   ├── 📂 Orders/
│       │   │   ├── 🖼️ OrderListView.xaml
│       │   │   ├── 🧠 OrderListViewModel.cs
│       │   │   └── 🧠 OrderDetailsViewModel.cs
│       │   └── 📂 Customers/
│       └── 📂 Shared/
├── 📁 tests/
│   ├── 🧪 unit/
│   ├── 🧪 integration/
│   └── 🧪 e2e/
├── 📄 README.md
└── 📄 LICENSE

Dependencies point inward: Presentation and Infrastructure reference Application and Domain, and Domain references nothing. The presentation pattern is MVVM for a user interface and MVC for an API. Wireframes, also one given in the first prompt, are the first edition the AI follows. All of it is defined in the clean-architecture skill ("Folder structure").

The skills

Skills are instruction packs an AI agent loads when your request matches their description. You do not have to name them.

Skill Use it to
create-project Start or resume a project from an idea. Asks the intake questions, reads where the project stands, walks the chain one reviewed step at a time
artifact Create, edit or review any document under docs/ (one skill for every type, with scripts doing the mechanical parts)
project-planning Break a phase into tasks and sync phases and tasks to Gitea/GitHub as Milestones and Issues
coding-conventions Write or review Python, C, C++, C#, shell, YAML files or CI workflows against shared and per-language rules
clean-architecture Layer code so business rules do not depend on framework or database

One artifact skill (instead of one per type) cuts always-loaded context by about 80%; the reasoning is in Why one artifact skill.

The scripts

Script What it does Parameters
new-artifact.sh Scaffold a document with its ID, links and metadata <SHORT>, --file <path>, --title, --id, --cite <ID>=<path> (repeatable), --force
find-crossreferences.sh Find documents a new one should reference <SHORT-NAME>
resolve-pending-commits.sh After a commit, replace pending with the commit link <file>...
sync-project.sh Dry run by default: print milestones and issues. --apply creates them on Gitea/GitHub; --accepted-only keeps the ones that are Accepted with a Go review --milestone <MIL-NNN>, --host gitea or --host github, --owner, --repo, --api-base <url>, --with-project, --accepted-only, --apply
check-plan.sh The plan-first gate check (called from the commit-msg hook) <commit-message-file>, env PLAN_GATE=1, ALLOW_UNPLANNED=1
check-languages.sh Fail on a missing or invalid Language or Domain row; --list prints them --list
check-readme.sh Fail when a README drifts from the template none
check-qc-tags.sh Fail when a QC criterion lacks an ISO/IEC 25010:2023 characteristic [DIR]
quality-overview.sh Count criteria and review results per ISO/IEC 25010:2023 characteristic --checklists DIR, --reviews DIR
install-skills.sh Copy skills, agents and rules into .agents/ and .claude/ --dry-run
update-framework.sh Move the framework/ submodule to a release tag and adopt it; never pushes [<tag>], --dry-run, --commit, --agents-overwrite
install-git-hooks.sh Install the git hooks and switch the opt-in gates on or off --enable-plan-gate or --disable-plan-gate, --enable-language-check or --disable-language-check, --enable-readme-check or --disable-readme-check
render-diagrams.sh Render PlantUML text through a server you name [path]..., --server <url> (or env PLANTUML_URL, or the PlantUML server row of the project registry), --out <dir>
ci-publish-milestones.sh The steps of the sync-milestones workflow of git-workflows that publishes accepted milestones ensure-tools or publish, env DRY_RUN
test-*.sh Repeatable tests of the scripts, run in a scratch folder none (one test script per script above, and test-shell-format.sh)

Supervised and autonomous mode

An agent works supervised by default: it edits, summarises and stops; the user reviews and a reviewer merges. In autonomous mode, which the user asks for in chat and which lasts for the rest of the session, the user only accepts the plan; the agent then creates and reviews the artifacts as a recorded stand-in (AI as stand-in for S02, Mode: autonomous, not independent), commits, opens the pull request, accepts it and merges it once its checks are green. It stops after three failed rounds, on work outside the plan, on destructive actions and on security findings, and it never bypasses required checks or branch protection.

Versioning

Releases are tagged vMAJOR.MINOR.PATCH and listed in CHANGELOG.md. A project pins a tag; moving the pin is a deliberate commit in that project. The QC checklists version independently (QC-BC-001).

What it is not

  • Not a code generator: it governs how code is planned, written and reviewed.
  • Not a tracker: your git host's Milestones and Issues are the tracker; the framework syncs to them.
  • Not enforced by CI by default: the gates are procedure plus opt-in hooks.