bspec-workflow
Skill1 starsChanged 7 months agoMITView on GitHub
Shared conventions for Bruno's personal spec-driven workflow. Defines logical artifacts, issue labels, workflow states, story IDs, implementation planning, and review markers.
In this repository36 other files it gives its agents.
- skills/backend-best-practices/AGENTS.mdAGENTS.md
- adr-writerSkill
- application-healthchecksSkill
- backend-best-practicesSkill
- bspec-prd-discoverySkill
- bspec-story-implementationSkill
- bspec-story-reviewSkill
- bspec-story-syncSkill
- bspec-technical-architectureSkill
- conventional-commitsSkill
- copier-scaffoldSkill
- devenvSkill
- direnvSkill
- docker-composeSkill
- dockerfileSkill
- docker-setupSkill
- docs-writerSkill
- github-actions-dockerSkill
- gitleaks-setupSkill
- golang-developmentSkill
- golang-slogSkill
- golang-testingSkill
- playwright-devenvSkill
- project-webappSkill
- readme-writerSkill
- release-drafter-setupSkill
- release-drafterSkill
- release-notesSkill
- renovate-pr-triageSkill
- renovate-setupSkill
- structured-loggingSkill
- summarize-articleSkill
- summarize-youtube-videoSkill
- tailwind-v4Skill
- vicinae-extensionsSkill
- zensical-setupSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
28 rules. About 0 are common, 15 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
13
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill at the start of every spec-driven workflow command.
- Very specific: line 18
If docs/spec-workflow.yml exists, read it first and use it to override the defaults below.
- Distinctive: line 20
If no config file exists, use the defaults below.
- Distinctive: line 57
Use these logical names in workflow prompts and reasoning:
- Very specific: line 73
if prd_document is a string, treat it as a single-file PRD
- Very specific: line 74
if prd_document is an object, treat index as the project-level PRD entrypoint and sections_directory as the feature/detail directory
- Distinctive: line 75
keep project-wide goals, users, constraints, priorities, and overview content in the PRD index
- Distinctive: line 76
keep feature-specific product detail in section files when multi-file mode is enabled
- Distinctive: line 77
when a feature exists both inline in the index and in a section file, treat the section file as canonical
- Very specific: line 78
keep the workflow logically simple: one prd_document, even when it spans multiple files
- Very specific: line 100
Keep business scope in prd_document.
- Very specific: line 101
Keep technical stack, API contracts, module structure, and system boundaries in architecture_document.
- Very specific: line 102
Keep story-specific sequencing, touched files, and slice details in implementation_plan.
- Very specific: line 103
Do not overload architecture_document with story-by-story execution detail.
- Very specific: line 108
If architecture_document exists and is clearly Approved, treat it as binding technical context for issue generation, implementation, and …
- Very specific: line 109
If architecture_document is missing, Draft, or In Review, /bspec:sync may still proceed from prd_document alone.
- Very specific: line 110
Use /bspec:arch when technical risk, ambiguity, or drift justifies architecture work.
- Very specific: line 142
if technical architecture is missing or materially stale, move to status/needs-tech-design
- Distinctive: line 153
Do not treat PR comments or PR descriptions as the planning source of truth.
- Distinctive: line 164
Use stable IDs in this form:
- Very specific: line 180
When a story issue exists, write the issue reference back into the PRD file that owns the relevant section of prd_document using a compact …
- Distinctive: line 187
Use path-aware traces when helpful, for example:
- Distinctive: line 196
Use these markers for durable machine-readable workflow summaries:
- Distinctive: line 204
Do not guess at the review target.
- Distinctive: line 206
If the user gives an issue, PR, or URL, use that.
- Distinctive: line 207
If exactly one current story is unambiguous, use it.
- Distinctive: line 212
Keep the workflow simple and single-file by default, and split feature sections only when the PRD becomes painful.
- Distinctive: line 213
Put repo-specific conventions here, not in every skill.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
BSpec Workflow
Use this skill at the start of every spec-driven workflow command.
Purpose
Provide one shared workflow contract for artifact names, GitHub labels, workflow states, story IDs, implementation planning, review semantics, and structured feedback markers.
Commands should load this skill first, then load the task-specific skill.
Optional Repo Config
If docs/spec-workflow.yml exists, read it first and use it to override the defaults below.
If no config file exists, use the defaults below.
prd_document supports two shapes:
- string form for single-file mode
- object form for index-plus-sections mode
Expected config shape:
version: 1
artifacts:
prd_document:
index: docs/PRD.md
sections_directory: docs/prd
architecture_document: docs/ARCHITECTURE.md
adr_directory: docs/adr
issues:
managed_label: bspec
story_label: story
status_labels:
ready: status/ready
in_progress: status/in-progress
in_review: status/in-review
needs_fixes: status/needs-fixes
blocked: status/blocked
needs_tech_design: status/needs-tech-design
implementation:
plan_location: issue-comment
comments:
implementation_marker: "<!-- bspec:implementation -->"
review_marker: "<!-- bspec:review -->"
design_drift_marker: "<!-- bspec:design-drift -->"Logical Artifacts
Use these logical names in workflow prompts and reasoning:
prd_documentarchitecture_documentimplementation_planadr_directory
Default Artifact Locations
prd_document=docs/PRD.mdby default, ordocs/PRD.mdplusdocs/prd/*when multi-file mode is configuredarchitecture_document=docs/ARCHITECTURE.mdimplementation_plan= the current issue comment for the active storyadr_directory=docs/adr
PRD Resolution Rules
- if
prd_documentis a string, treat it as a single-file PRD - if
prd_documentis an object, treatindexas the project-level PRD entrypoint andsections_directoryas the feature/detail directory - keep project-wide goals, users, constraints, priorities, and overview content in the PRD index
- keep feature-specific product detail in section files when multi-file mode is enabled
- when a feature exists both inline in the index and in a section file, treat the section file as canonical
- keep the workflow logically simple: one
prd_document, even when it spans multiple files
Truth Model
prd_document= working and canonical business/product truth during discovery and refinement, whether stored in one file or in an index plus section filesarchitecture_document= canonical technical architecture truthimplementation_plan= story-specific execution detail for the active implementation, stored in the GitHub issue comment- GitHub issues = executable work truth
- ADRs = optional durable architecture decisions
Stage Order
Default workflow:
- spec discovery
- optional technical architecture
- GitHub issues
- implementation
- review
Workflow Design Rules
- Keep business scope in
prd_document. - Keep technical stack, API contracts, module structure, and system boundaries in
architecture_document. - Keep story-specific sequencing, touched files, and slice details in
implementation_plan. - Do not overload
architecture_documentwith story-by-story execution detail.
Architecture Usage Rule
architecture_documentis optional for issue generation.- If
architecture_documentexists and is clearlyApproved, treat it as binding technical context for issue generation, implementation, and review. - If
architecture_documentis missing,Draft, orIn Review,/bspec:syncmay still proceed fromprd_documentalone. - Use
/bspec:archwhen technical risk, ambiguity, or drift justifies architecture work.
GitHub Issue Labels
Apply these labels to every workflow-managed story issue:
bspecstory- exactly one status label from the list below
Optional labels:
area/<name>priority:p0priority:p1priority:p2
Workflow Status Labels
Exactly one of:
status/readystatus/in-progressstatus/in-reviewstatus/needs-fixesstatus/blockedstatus/needs-tech-design
Default Status Transitions
/bspec:synccreates new stories asstatus/ready/bspec:implementmovesstatus/readyorstatus/needs-fixestostatus/in-progress- if technical architecture is missing or materially stale, move to
status/needs-tech-design /bspec:archupdatesarchitecture_documentand can move blocked issues back tostatus/ready- once implementation is validated and review-ready, move to
status/in-review - review feedback that blocks completion moves to
status/needs-fixes - blocked execution moves to
status/blocked - closing the issue marks the story done
Implementation Plan Rule
- The canonical
implementation_planlives in the GitHub issue comment, not in the PR. - The PR body explains what was delivered, how it was validated, the CI or check state, and any follow-up or out-of-scope items.
- Do not treat PR comments or PR descriptions as the planning source of truth.
Review Semantics
/bspec:reviewis read-only for repo files and code./bspec:reviewmay still update GitHub comments and workflow labels.- An
approvedorapproved-with-follow-upsreview means the PR is ready to merge. - The issue remains
status/in-reviewuntil the PR is merged or the issue is otherwise closed.
Story ID Convention
Use stable IDs in this form:
US-001
US-002
US-003Issue title format:
[US-001] User can create a projectPRD Linkback Convention
When a story issue exists, write the issue reference back into the PRD file that owns the relevant section of prd_document using a compact subsection such as:
#### GitHub Issues
- [US-001 / #123](https://github.com/example/repo/issues/123) User can create a projectUse path-aware traces when helpful, for example:
## PRD Trace
- prd_document: docs/prd/project-setup.md :: Feature: Project SetupStructured Comment Markers
Use these markers for durable machine-readable workflow summaries:
<!-- bspec:implementation --><!-- bspec:review --><!-- bspec:design-drift -->
Review Targeting Rule
Do not guess at the review target.
- If the user gives an issue, PR, or URL, use that.
- If exactly one current story is unambiguous, use it.
- Otherwise ask for a target.
Rules
- Keep the workflow simple and single-file by default, and split feature sections only when the PRD becomes painful.
- Put repo-specific conventions here, not in every skill.
- Let task skills own policy, not paths.
- Let commands own orchestration, not duplicated workflow contracts.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

