7
Description
Tirsvad edited this page 2026-10-28 17:04:46 +01:00

Description

🌐 English · Dansk · Bahasa Melayu

Purpose

Software teams review code but rarely review the documents that code comes from: business case, stakeholders, use cases, design. This project defines what "good" means for each, writes it as checklists, and puts an AI agent inside the process so the checks are cheap enough to be done every time.

Repository layout

Path What it is
framework/ Git submodule: the reusable framework. No project data
framework/qc/ Nested submodule: the QC checklists (artifacts/ for documents, code/ for code, scripts and automation)
docs/ This project's artifacts
AGENTS.md The rules AI agents follow here

Inside docs/:

Path Artifact
business-case.md, stakeholder-analysis.md, project-plan.md, kpi.md Baseline: why, who, when
milestones/ One document per gateway: Go/No-Go criteria and tasks
use-case-diagram.md, user-stories.md, use-cases/uc-NNN/ Requirements; each use case has its own folder with its SSD, operation contract and sequence diagram
domain-model.md, dictionary.md, dcd.md, erd.md Design, and the PO term / IT term dictionary
adr/ Architecture Decision Records
sqa/reviews/ One RC-* review record per review
sqa/traceability-matrix.md, sqa/governance.md How artifacts link, who decides
artifact-registry.md Where each type lives, next version, PO language and domain

The folder structure of code built with the framework

This repository holds documents, not application code. A project that uses the framework and builds code lays out src/ and tests/ for clean architecture as below (the tree is 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, the presentation pattern is MVVM for a user interface and MVC for an API, and wireframes (also one in the first prompt) are the first edition the AI follows. The definition is the clean-architecture skill, "Folder structure". See the skill.

How work flows

idea ─▶ Business Case ─▶ Stakeholders ─▶ Plan ─▶ Milestones ─▶ Issues ─▶ Code
            │                │            │          │                    │
         review (RC)      review       accept     review (RC)         review (RC)
  1. Plan first. No code under src/ or tests/ until a milestone is Accepted with a Go review and the task is a row in it.
  2. Every step ends in a review against the type's checklist. The review is a record in docs/sqa/reviews/; the reviewer is never the author.
  3. Issues close with the work. Each pull request description has one Closes #N per completed issue (Refs #N for partial work).
  4. Humans merge, unless the user chose autonomous mode. By default (supervised) agents never commit, push or open a PR unless asked, and never merge. In autonomous mode, which the user asks for in chat for the rest of the session, the agent accepts as a recorded stand-in and merges once checks are green.

Conventions worth knowing

  • IDs: BC-001, UC-001, RC-048. Stakeholders are S01-style IDs, used for owners and reviewers instead of role names.
  • Status lives in the latest row of each document's ## Version History: Proposed, Accepted, Deprecated, Rejected.
  • Commit column: after committing, resolve-pending-commits.sh replaces pending with the commit link, in a follow-up commit (no amend).
  • Language: PO-language documents exist once, in that language; the registry's Languages section names it.
  • Framework changes are made in the framework repository (commit, push, CHANGELOG.md, tag), then this project moves the submodule to the new tag and commits the pointer.

The AI side

Agents read AGENTS.md, then discover skills in .agents/skills/ (Codex and this harness) or .claude/skills/ (standalone Claude Code). You rarely name a skill; the request is matched against skill descriptions:

You say Skill used
"Create the stakeholder analysis" artifact
"Review the business case" artifact (review procedure)
"Where does the project stand?" / "Build X" create-project
"Plan the next phase and sync to Gitea" project-planning
"Write the C# for task MIL-003#2" coding-conventions

Credentials

Scripts that call the git host (sync-project.sh --apply) need TOKEN_FOR_GITEA_ISSUES from the gitignored .env. It is never printed or committed.