bspec-story-implementation
Skill1 starsChanged 7 months agoMITView on GitHub
Implementation skill for Bruno's personal spec workflow. Works one GitHub story at a time, either implementing directly or routing non-trivial work back to technical architecture while keeping delivery scoped to the smallest useful vertical slice.
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-reviewSkill
- bspec-story-syncSkill
- bspec-technical-architectureSkill
- bspec-workflowSkill
- 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
57 rules. About 0 are common, 44 are distinctive, and 13 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈44
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 only when working a single GitHub story issue.
- Distinctive: line 18
Use the workflow state labels and structured comment markers defined by the shared workflow contract.
- Distinctive: line 30
Use only when all are true:
- Distinctive: line 40
Use when any are true:
- Distinctive: line 53
Use when product intent is not clear enough to proceed safely.
- Very specific: line 57
before coding, create or update a lightweight implementation_plan
- Distinctive: line 58
keep it in the GitHub issue comment
- Very specific: line 65
keep feature-specific execution detail here, not in architecture_document
- Distinctive: line 69
before starting development, ensure the repo is in a clean state
- Distinctive: line 70
if the working tree has unrelated staged, unstaged, or untracked changes, stop and ask the user how to proceed instead of mixing work
- Distinctive: line 72
create a fresh branch for the story from the updated main.
- Distinctive: line 73
Use a descriptive branch name that includes the story ID or issue number when possible, and avoid long or generic names that make it hard …
- Distinctive: line 84
create or update a PR whenever implementation proceeds
- Very specific: line 85
use .github/PULL_REQUEST_TEMPLATE.md if present as the default PR body template.
- Distinctive: line 86
keep the PR summary short and focused on delivered work
- Distinctive: line 91
check CI results for the related PR or branch before claiming the slice is review-ready
- Distinctive: line 92
if the PR only delivers part of the story, say what remains out of scope
- Distinctive: line 94
Do not use the PR as the canonical planning source.
- Distinctive: line 126
use Conventional Commits for any commits created during implementation
- Very specific: line 127
prefer types like feat, fix, refactor, test, or docs based on the change
- Distinctive: line 128
prefer a short scope that matches the affected area when it is obvious
- Distinctive: line 129
use imperative, lowercase subjects without a trailing period
- Distinctive: line 143
check the repo state before starting implementation work
- Very specific: line 146
follow architecture_document and linked ADRs when they cover the needed decisions
- Distinctive: line 148
read the latest structured review summary before coding when review feedback exists
- Very specific: line 149
if implementation reveals material architectural drift, stop and update or hand off updates to architecture_document
- Distinctive: line 154
check GitHub Actions or required checks after pushing the branch or updating the PR
- Distinctive: line 155
update GitHub with a structured implementation summary and the correct workflow state
- Distinctive: line 156
keep planning in the issue comment and keep the PR body focused on delivered work
- Very specific: line 160
do not move a story to status/in-review until the relevant local validation is complete and the current CI state is known
- Distinctive: line 161
if a PR exists, prefer checking PR checks first
- Distinctive: line 162
if no PR exists yet but the branch was pushed, check the latest branch workflow runs
- Distinctive: line 163
if checks are still running, either wait for completion or stop and report that review is pending CI
- Distinctive: line 164
if CI fails, inspect the failing workflow or job output and either fix the issue or stop with a clear explanation
- Distinctive: line 165
only treat CI as non-blocking when the failing check is clearly unrelated to the story and you explicitly report that exception
- Very specific: line 191
start with gh pr checks <pr-number> to see the current check state tied to the PR
- Very specific: line 192
if checks are still running, use gh pr checks <pr-number> --watch
- Very specific: line 193
if you need the underlying GitHub Actions run, use gh run list --branch <branch-name> --limit 5 and pick the newest relevant run
- Very specific: line 194
use gh run view <run-id> to inspect workflow names, job names, conclusions, and the GitHub Actions URL
- Very specific: line 195
use gh run view <run-id> --log-failed to read only failing job output first
- Very specific: line 196
use gh run view <run-id> --log when you need full job logs or more context
- Distinctive: line 197
when reporting validation, name the relevant check or workflow conclusion, not only "CI passed"
- Distinctive: line 203
if prior review feedback exists, resolve it explicitly and report what changed
- Distinctive: line 204
if validation fails, fix the issue or stop with a clear explanation instead of guessing
- Distinctive: line 205
if scope, architecture, or product intent becomes unclear, stop and route back to the right stage
- Distinctive: line 209
do not write a substitute architecture plan in the issue
- Distinctive: line 213
stop after the handoff
- Distinctive: line 217
ask one targeted product question
- Distinctive: line 223
run the narrowest relevant automated tests first
- Distinctive: line 224
run broader checks when the change surface warrants it
- Distinctive: line 226
check the current GitHub Actions or required check status after pushing code when CI exists for the repo
- Distinctive: line 227
never claim success without naming the tests or checks performed
- Distinctive: line 228
when CI was checked, name the PR checks or workflow runs reviewed and their conclusion
- Distinctive: line 229
if validation cannot be run, say exactly why and what remains unverified
- Distinctive: line 247
default to direct implementation
- Distinctive: line 249
keep scope tied to one issue
- Distinctive: line 250
prefer end-to-end progress over layer work
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Story Implementation
Use this skill only when working a single GitHub story issue.
Philosophy
- GitHub issues are the source of truth for executable stories.
- The PRD owns
whatandwhy. architecture_documentowns the stable technical direction: stack, contracts, boundaries, and cross-cutting decisions.implementation_planowns the story-specific execution detail for the active slice and lives in the GitHub issue comment.- ADRs own durable architecture decisions that should outlive one implementation pass.
- Most issues should still go straight to implementation.
- Use the workflow state labels and structured comment markers defined by the shared workflow contract.
Decision Policy
Classify the issue as exactly one of:
direct-implementneeds-tech-designblocked
direct-implement
Use only when all are true:
- product intent is clear
- the smallest useful slice is obvious
- and one of the following is true:
- the work is straightforward, with no schema or migration changes, no auth or security boundary changes, no new external integration or infrastructure change, and no broad refactor
architecture_documentor linked ADRs already cover the risky technical decisions closely enough for implementation to proceed safely
needs-tech-design
Use when any are true:
- schema, migration, or backfill work needs architecture clarification
- auth, roles, permissions, or secrets need architecture clarification
- external APIs, queues, webhooks, cron jobs, or infrastructure choices are not covered well enough
- a large refactor or shared abstraction change would alter module boundaries
- performance-sensitive or concurrency-sensitive work has unresolved tradeoffs
- multiple viable approaches with real tradeoffs exist
- the issue spans a larger feature or epic whose technical direction should be captured once and reused
architecture_documentis missing, stale, or not explicit enough for the needed decision
blocked
Use when product intent is not clear enough to proceed safely.
Implementation Planning Rules
- before coding, create or update a lightweight
implementation_plan - keep it in the GitHub issue comment
- include:
- target slice
- touched modules or files
- contract, schema, or migration changes for this slice
- validation plan
- explicit out-of-scope items
- keep feature-specific execution detail here, not in
architecture_document
Repository Start Rules
- before starting development, ensure the repo is in a clean state
- if the working tree has unrelated staged, unstaged, or untracked changes, stop and ask the user how to proceed instead of mixing work
- fetch the latest
mainfrom the remote before starting implementation work - create a fresh branch for the story from the updated
main. - Use a descriptive branch name that includes the story ID or issue number when possible, and avoid long or generic names that make it hard to track the work.
Recommended branch examples:
us-001-bookmark-create
issue-123-bookmark-createPull Request Rules
- create or update a PR whenever implementation proceeds
- use
.github/PULL_REQUEST_TEMPLATE.mdif present as the default PR body template. If the template is not present or does not fit the story, use the recommended structure below instead. - keep the PR summary short and focused on delivered work
- link the story issue explicitly in the
Linked Issuessection - include the validation actually performed
- include current CI or required check status
- include concrete test evidence, not only a checklist
- check CI results for the related PR or branch before claiming the slice is review-ready
- if the PR only delivers part of the story, say what remains out of scope
Do not use the PR as the canonical planning source.
Recommended PR structure:
## What Was Done
- brief implementation summary
- notable user-facing or architecture-impacting change
## Linked Issues
- Closes #123
## Validation
- tests run
- manual verification
## CI / Checks
- named PR checks or workflow runs reviewed
- their current conclusion
## Follow-ups / Out Of Scope
- remaining work intentionally left out of this PR
- explicit note when something remains unverifiedCommit Rules
- use Conventional Commits for any commits created during implementation
- prefer types like
feat,fix,refactor,test, ordocsbased on the change - prefer a short scope that matches the affected area when it is obvious
- use imperative, lowercase subjects without a trailing period
Examples:
feat(bookmarks): add bookmark creation flow
fix(search): handle empty query state
refactor(storage): extract bookmark repository
test(bookmarks): cover duplicate URL validationDirect Implementation Rules
- work one issue at a time
- check the repo state before starting implementation work
- fetch
mainfrom the remote and branch from it before changing code - implement the smallest useful vertical slice first
- follow
architecture_documentand linked ADRs when they cover the needed decisions - restate the target slice, constraints, and known review feedback before changing code
- read the latest structured review summary before coding when review feedback exists
- if implementation reveals material architectural drift, stop and update or hand off updates to
architecture_document - minor local implementation adjustments do not require architecture updates; note them in the implementation summary instead
- reuse existing repo patterns
- avoid speculative abstractions
- run relevant validation
- check GitHub Actions or required checks after pushing the branch or updating the PR
- update GitHub with a structured implementation summary and the correct workflow state
- keep planning in the issue comment and keep the PR body focused on delivered work
CI And Checks Rules
- do not move a story to
status/in-reviewuntil the relevant local validation is complete and the current CI state is known - if a PR exists, prefer checking PR checks first
- if no PR exists yet but the branch was pushed, check the latest branch workflow runs
- if checks are still running, either wait for completion or stop and report that review is pending CI
- if CI fails, inspect the failing workflow or job output and either fix the issue or stop with a clear explanation
- only treat CI as non-blocking when the failing check is clearly unrelated to the story and you explicitly report that exception
Preferred gh commands:
# Quick view of PR checks
gh pr checks <pr-number>
# Watch checks until completion
gh pr checks <pr-number> --watch
# List recent workflow runs for the branch
gh run list --branch <branch-name> --limit 5
# Inspect a workflow run summary
gh run view <run-id>
# Show failed job logs only
gh run view <run-id> --log-failed
# Show full logs for the run
gh run view <run-id> --logHow to use them:
- start with
gh pr checks <pr-number>to see the current check state tied to the PR - if checks are still running, use
gh pr checks <pr-number> --watch - if you need the underlying GitHub Actions run, use
gh run list --branch <branch-name> --limit 5and pick the newest relevant run - use
gh run view <run-id>to inspect workflow names, job names, conclusions, and the GitHub Actions URL - use
gh run view <run-id> --log-failedto read only failing job output first - use
gh run view <run-id> --logwhen you need full job logs or more context - when reporting validation, name the relevant check or workflow conclusion, not only "CI passed"
Feedback Loop
- implement in small, reviewable slices
- validate after each meaningful slice, not only at the end
- if prior review feedback exists, resolve it explicitly and report what changed
- if validation fails, fix the issue or stop with a clear explanation instead of guessing
- if scope, architecture, or product intent becomes unclear, stop and route back to the right stage
Needs-Tech-Design Rules
- do not write a substitute architecture plan in the issue
- point the work to
/bspec:arch - apply or preserve the needs-tech-design workflow state
- reference the stale or missing section of
architecture_documentwhen possible - stop after the handoff
Blocked Rules
- ask one targeted product question
- make it a question that changes implementation
- stop after asking
Validation Rules
- run the narrowest relevant automated tests first
- run broader checks when the change surface warrants it
- include manual verification when user-visible behavior changes
- check the current GitHub Actions or required check status after pushing code when CI exists for the repo
- never claim success without naming the tests or checks performed
- when CI was checked, name the PR checks or workflow runs reviewed and their conclusion
- if validation cannot be run, say exactly why and what remains unverified
- move the issue into the correct workflow state when stopping
Definition Of Done
A story slice is done only when all are true:
- the delivered slice satisfies the relevant acceptance criteria for the scope actually implemented
- the code follows existing repo patterns or justified local conventions
- relevant automated tests were added or updated when needed and are passing
- relevant manual verification was performed when the change affects user-visible behavior
- relevant CI or required PR checks were reviewed and are passing, pending with explanation, or explicitly called out as unrelated failures
- any material architecture changes are reflected in
architecture_documentor routed back to the architecture stage - related documentation is updated or added.
- GitHub was updated with what changed, how it was validated, any remaining follow-up, and a structured implementation summary
Rules
- default to direct implementation
- escalate to the architecture stage only on real technical risk or stale architecture
- keep scope tied to one issue
- prefer end-to-end progress over layer work
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.

