generate-use-case
Create, refine, and review source-backed architecture use-case documents with actors, goals, flows, requirements, data handling, compliance controls, acceptance criteria, and stakeholder feedback. Use
SKILL.mdskills/generate-use-case/SKILL.md
GitHubGenerate Use Case
Workflow
- Read the target repository's root
AGENTS.md. Whenproject_nameis supplied, normalize it to lowercase letters, digits, and hyphens and loadprofiles/<project_name>/profile.yamlfrom the toolkit; reject an unknown project instead of choosing a nearby profile. Read the profile'sproject_instructions.agentsand everydocument_instructions.use_caseMarkdown file completely, resolving those paths relative to the toolkit root. Also read the target repository'sarchitecture/toolkit-profile.yamlwhen present, existing use cases, stakeholder notes, and relevant sources. Stop on a missing configured instruction. The target repository's rootAGENTS.mdremains authoritative; selected profile instructions may strengthen but not weaken it. - Resolve the next
UC-NNNor the referenced existing use case. Never reuse or renumber an identifier. - Copy assets/use-case-template.md; replace every placeholder and remove irrelevant optional sections.
- Separate stakeholder facts from proposals and assumptions. Ask focused questions when ambiguity changes scope, data handling, acceptance criteria, or risk.
- Describe the main success flow and material alternate/error flows without prescribing architecture prematurely.
- Apply the governance profile and the privacy/AI checklist in references/use-case-quality.md. Treat applicability as
To verifywhen the project has not established it. - Keep status
Draftwhile feedback is unresolved. UseReviewedonly with a cited stakeholder review source andApprovedonly with explicit authority. - Save under
architecture/use-cases/UC-NNN-<slug>.mdunless the repository has an established equivalent.
Rules
- Use observable, testable language.
- Include only the minimum personal or health data categories needed; never include real subject data.
- Identify human decisions and automation boundaries for legal-, clinical-, or other high-impact outcomes.
- Preserve a concise feedback/change log when updating a reviewed draft.
- Link related ADDs, diagrams, ADRs, tasks, and evidence using repository-relative paths or authorized identifiers.
- Treat profile document instructions as domain-specific constraints. They may strengthen this workflow but must not override repository instructions, supplied evidence, lifecycle gates, or the prohibition on inferred approval and classification.
- Report the selected project key and each loaded instruction path so document-generation provenance is visible.
Output
Return the draft path, status, assumptions, blocking questions, governance outcome, and recommended next step (stakeholder review, $generate-bdr, or $generate-add when a BDR is demonstrably unnecessary).