Table of Contents
Example: Volunteer Football Club
🌐 English · Dansk · Bahasa Melayu
A filled-in AI Prompt Template for a small system run by volunteers in a youth football club where teenagers play. Stack: Blazor and PostgreSQL, with role based access control (RBAC).
This page shows the input you give the agent and the shape of what it will steer toward. The agent still asks questions and stops for review at every step; the documents are produced one by one, not all at once.
1. The prompt
Use the create-project skill. Start a new project.
Idea (one sentence): A membership and match-results system for a volunteer
youth football club, so the secretary can register members and place them in
the right age team, trainers can record matches, and members can see results.
Belief that would kill it if false: the club's volunteers will keep the register
and results up to date in the system instead of in spreadsheets and chat groups.
Validated or a hunch: hunch (the club works today with a spreadsheet).
Stage: prototype for one club, volunteers build and run it in spare time.
Constraints: 3 months, no budget, 2 volunteer developers, hosting on a small VPS.
Members are teenagers, so personal data (name, birth date, contact) is
sensitive and GDPR applies; a guardian is the contact for minors.
Product Owner: <name, chair of the club> (language: <English or Danish>,
domain: volunteer sports club administration)
Reviewer for each step: <name, a board member who is not the author>
Acceptor: <name, the club chair>
Can I reach the people the system is for: yes (secretary, two trainers, members)
Project name: volunteer-football-club (kebab-case; also the folder and the git repository)
User interface or API: a web application; wireframes: none yet (the agent proposes them)
Security profile: exposed service or personal data (members are teenagers; I confirm it at review)
Technology (record as ADRs, do not decide silently):
Platform: Blazor on ASP.NET Core (Server or WebAssembly: propose and ask)
Database: PostgreSQL
Security: login with role based access control; roles Secretary, Trainer, Member
Main things users must be able to do:
- Secretary: add a member to the club
- Secretary: find the football team for a new member based on age (one-year steps)
- Trainer: add football matches
- Member: see the results of matches
Rules:
- Planning first: no code, nothing under src/ or tests/.
- One step at a time; stop for my review after each document.
- Ask every question a step forces, with options and a recommendation.
- Do not commit, push or open a pull request unless I ask.
1a. From Business Case to code
The agent walks one reviewed step at a time. Every step ends the same way: you
review, the agent records an RC-* review record, and on Go the row is
Accepted and the next step may start.
| Step | Artifact | In this example |
|---|---|---|
| 0 Intake | answers written into the Business Case, the registry and the Stakeholder Analysis | The questions of section 2 |
| 1 Business Case | BC, with the security requirements and the data classification |
Personal data of minors, GDPR, the guardian |
| 2 Stakeholder Analysis | SA |
Secretary, trainers, members, the chair |
| 3 Security Baseline | SBL: the profile and a decision for each of B01 to B18 |
Right after the Stakeholder Analysis, before the Project Plan; the largest profile |
| 4 Project Plan | PP |
Four gateways, section 6 |
| 5 Stories, use cases, priority | US, UCD, MoSCoW label, and a role matrix because there are several actors |
The RBAC matrix of section 3 is that role matrix |
| 6 Milestones and tasks | MIL; each applying control becomes a task |
The tasks are issues once the milestone is Accepted |
| 7 Threat Model | THM |
After the milestones and before the design; section 8 |
| 8 Use cases and design | UC, DM, SSD, OC, SD, DCD, ERD, TP with the security tests, ADRs |
UC-001 to UC-004, the dictionary, the ADRs of section 2 |
| 9 Operations Plan | OPS, before the first release |
Before MIL-003, because real members are then registered |
| 10 Code | src/ and tests/, one pull request per task that Closes #N, reviewed against qc-programming-csharp.md; a GUI test runs in Docker or Windows Sandbox |
Only when the milestone is Accepted with a Go review |
2. Questions the agent will raise
These are real ambiguities in the prompt. A good run asks them rather than guessing.
| Question | Why it matters | Options |
|---|---|---|
| How is "age" counted for the team? | Decides which team a child belongs to | Age on 1 January of the season year (common in football), age on the match date, age on the member's birthday |
| What is one "age step"? | The user said one-year steps | Team U13 takes players aged 12 and under 13 at the reference date; U14 the next year, and so on |
| What if no team exists for that age? | The use case needs an alternative flow | Show the nearest team, or "no team" and let the secretary decide |
| Can a member play up an age group? | Real clubs do | Allow a Secretary override with a recorded reason |
| Which results may a member see? | RBAC and privacy of minors | Own team only, or the whole club |
| Does a trainer see only their own teams? | RBAC scope | Yes: a trainer is assigned to teams |
| Who is the contact for a minor? | GDPR | A guardian record linked to the member |
| Blazor Server or WebAssembly? | Hosting, latency, offline | Server (simpler, needs live connection), WebAssembly (client download) |
3. RBAC
Roles are the actors of the use case diagram and the roles of the system. Each permission cites the use case that needs it.
| Permission | Secretary | Trainer | Member |
|---|---|---|---|
| Add / edit a member | ✔ | ||
| View member contact data | ✔ | own team only | |
| Find team for a member (by age) | ✔ | ||
| Assign member to a team | ✔ | ||
| Add / edit a match and its result | own teams only | ||
| View match results | ✔ | ✔ | ✔ (own team) |
| Manage users and roles | ✔ |
Design consequences the agent should record as ADRs:
- Authentication and role claims via ASP.NET Core Identity.
- Authorization policies per use case, not per page.
- "Own team" is a data rule (a trainer is assigned to teams), not only a role, so the database needs a
TeamTrainerrelation.
4. Use cases (brief)
| ID | Actor | Goal | Main flow | Alternative flows |
|---|---|---|---|---|
| UC-001 | Secretary | Add a member to the club | Enter name, birth date, guardian contact. System validates and stores the member. | Duplicate member found; guardian missing for a minor; invalid birth date |
| UC-002 | Secretary | Find a football team for a new member based on age | Select the member (or enter a birth date). System computes the age on the reference date and lists the team whose age class matches. | No matching team; member is on the boundary; secretary overrides with a reason |
| UC-003 | Trainer | Add football matches | Choose own team, enter opponent, date, venue and score. System stores the match. | Match already exists; date in the future (record a fixture, no result yet); trainer not assigned to the team |
| UC-004 | Member | See the results of matches | Log in. System lists played matches and scores for the member's team, newest first. | No matches yet; member not on a team |
UC-001 and UC-002 are naturally one flow in practice (register, then place). Keep them separate: each is a goal of the actor with its own tests, and UC-002 is reused when a member changes age group each season.
5. Domain model: PO terms and IT terms
The PO uses club language. The dictionary maps each term to its IT name. (If the club speaks Danish, the PO terms are Danish and the IT terms stay English.)
| PO term | IT term | Notes |
|---|---|---|
| Member | Member |
A person registered at the club |
| Guardian | Guardian |
Contact for a minor |
| Team | Team |
A squad in one age class and season |
| Age class | AgeClass |
e.g. U13; defined by an age range in one-year steps |
| Season | Season |
Defines the reference date for age |
| Match | Match |
A played or planned game |
| Result | MatchResult |
Goals for and against |
| Secretary, Trainer, Member | roles Secretary, Trainer, Member |
RBAC roles |
@startuml
hide circle
entity Member
entity Guardian
entity Team
entity AgeClass
entity Season
entity Membership
entity Match
entity MatchResult
entity UserAccount
Member ||--o{ Membership : has
Team ||--o{ Membership : includes
AgeClass ||--o{ Team : classifies
Season ||--o{ Team : "belongs to"
Team ||--o{ Match : plays
Match ||--o| MatchResult : has
Member }o--o{ Guardian : "contact for"
UserAccount |o--o| Member : "may be"
UserAccount }o--o{ Team : "trainer of"
@enduml
This is an illustration, drawn in PlantUML like every diagram of the framework. The real Domain Model, Operation Contracts and ERD are created in the project, one per use case, and reviewed.
6. Milestones the agent will propose
| Gateway | Deliverable | Go/No-Go (examples) |
|---|---|---|
| MIL-001 Baseline | Business Case, Stakeholder Analysis, Security Baseline, Project Plan accepted | Reviewer Go; PO language and domain recorded; profile and every opt-out decided |
| MIL-002 Design | UC-001 to UC-004, domain model, dictionary, Threat Model, Test Plan, ADRs (Blazor hosting, PostgreSQL, Identity) | Each artifact Go; RBAC matrix agreed; every High threat has a mitigation and a test |
| MIL-003 Secretary release | UC-001, UC-002 in production use, Operations Plan | Secretary registers 10 real members; age placement correct on the club's boundary cases; a restore has been tried |
| MIL-004 Trainer and member release | UC-003, UC-004 | A trainer enters a match; a member sees it |
Tasks inside a milestone that are an actor's goal point at a use case; plain tasks (create the solution, set up PostgreSQL migrations, CI) say they need none.
7. Code stage
Once MIL-003 is Accepted with a Go review and its tasks are issues, the
agent may write C# under src/:
coding-conventions(C#) andclean-architectureapply: domain rules (age class calculation) free of Blazor and PostgreSQL; EF Core / Npgsql behind a port.- Tests first for the age rule: boundary dates, 1 January, leap day births, a member exactly on the class limit.
- Each task is a branch and a pull request that
Closes #N; the code is reviewed againstqc-programming-csharp.mdand recorded as anRC-*.
8. Security and operations
The system holds the personal data of teenagers and is exposed to the internet, so the prompt names the largest profile and the Product Owner confirms it at review. How to use each artifact is on Security and operations.
The security artifacts sit in the workflow in three places (see section 1a): the Security Baseline after the Stakeholder Analysis and before the Project Plan, the Threat Model after the milestones and before the design, and the Operations Plan before the first release.
Security Baseline (SBL). Profile: exposed service or personal data.
All 18 controls apply; none is opted out. An excerpt:
| Control | How it is met |
|---|---|
| B01 Security requirements and data classification | Business Case: name, birth date and contact data are personal data; those of minors need a guardian; GDPR applies |
| B02 Threat model | The Threat Model below, before the design is accepted |
| B06 Secret handling | Connection string and Identity keys only in CI secrets and the server's secret store, scanned for in every pull request |
| B08 Security and negative tests | The tests of the Test Plan below |
| B11 Deployment with dry run, approval and rollback | The Operations Plan; the previous release stays on the VPS |
| B14 Backup and a tested restore | Nightly encrypted PostgreSQL backup off the VPS; a restore is tried before MIL-003 |
| B15 Incident response | A personal data breach is reported to the data protection authority within 72 hours (GDPR Article 33) |
| B17 Decommissioning | A member who leaves has the personal data deleted, as the retention rule says |
Threat Model (THM). Assets: members' personal data, guardians' contact data,
user accounts and roles, match results, the backups. Boundaries: browser to the
Blazor application, the application to PostgreSQL, the administrator to the VPS.
| Threat | Category | Rating | Mitigation | Test |
|---|---|---|---|---|
| T-001 A trainer reads the contact data of another team's member | Information disclosure | High | Authorization policy per use case and the data rule "own team" (TeamTrainer) |
TC-020 |
| T-002 A stolen volunteer password gives the Secretary role | Spoofing | High | ASP.NET Core Identity lockout and a second factor for the Secretary | TC-021 |
| T-003 A member edits a match result | Tampering | High | Server-side authorization on UC-003; the Member role is read-only | TC-022 |
| T-004 SQL injection | Tampering | Medium | EF Core with parameters only | TC-023 |
| T-005 A backup is copied from the VPS | Information disclosure | High | Backups are encrypted, the key is kept apart from them | TC-024 |
| T-006 Data of a former member is kept | Information disclosure | Medium | A retention rule and a deletion step when a member leaves | TC-025 |
Test Plan (TP). One negative test per High threat: TC-020 a trainer of U13
asks for a U14 member's contact data and gets 403; TC-021 five wrong passwords
lock the account; TC-022 a Member posts a result and gets 403; TC-024 opens a
backup without the key and fails. Each cites its threat, and a test of the
restore is TC-026.
Operations Plan (OPS). Written before MIL-003, because the Secretary then
registers real members. Monitoring: uptime and failed logins, an alert to the
Secretary and one developer. Patching: monthly, a critical fix within 7 days.
Backup: nightly, kept 30 days, restore tried before MIL-003 and every quarter.
Rollback: redeploy the previous release. Incidents: severity levels, the chair
decides, the breach report within 72 hours. Vulnerabilities: a security contact
address on the club's site. Decommissioning: personal data deleted, accounts and
keys revoked, an anonymous result archive kept.
9. What to check afterwards
- The age rule and its reference date are in the Business Case or a use case, not only in code.
- Every RBAC permission cites a use case.
- Personal data of minors and the guardian's role are in the Business Case constraints.
- Every PO term has an IT term in the dictionary.
- Every design decision (Blazor hosting model, auth, data access) is an ADR.
- Every High threat has a mitigation, a test case and, if accepted, a risk exception with owner, approver and expiry date.
- The Operations Plan has a tested restore before real members are registered.
- Reviews were done by someone other than the author.
SQA and QC Framework
- Home
- Description
- Artifacts
- Install
- Badges
- GUI Testing
- Candidate Stories
- Security and operations
- Prompt Log
- AI Prompt Template
- Example: Football Club
- Example: Prime Numbers
- Appendix
Related
Languages