refine-story
Skill2 starsChanged 6 months agoMITView on GitHub
Ticket refinement and gap analysis - analyzes existing tickets, identifies gaps, scans codebase, and generates refined documentation. Use when improving existing tickets or doing a quick gap check.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- adolfoaranaes12/BMAD-ENHANCEDtheir own version, first seen Jan 28, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- adolfoaranaes12/BMAD-ENHANCED★ 2same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository45 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- improveSkill
- teamSkill
- ccf-architecture-contractSkill
- ccf-build-and-envSkill
- ccf-change-controlSkill
- ccf-debugging-playbookSkill
- ccf-doc-sync-campaignSkill
- ccf-dogfood-and-driftSkill
- ccf-domain-referenceSkill
- ccf-failure-archaeologySkill
- ccf-onboarding-tourSkill
- ccf-parity-playbookSkill
- ccf-release-and-installSkill
- ccf-testing-and-qaSkill
- improveSkill
- teamSkill
- add-referenceSkill
- ai-updateSkill
- app-blueprintSkill
- buildSkill
- check-readinessSkill
- deploySkill
- developSkill
- draft-storySkill
- error-analyzeSkill
- factorySkill
- fetch-docsSkill
- generate-internal-appSkill
- impactSkill
- improveSkill
- indexSkill
- iterative-reviewSkill
- merge-resolveSkill
- mock-endpointSkill
- planSkill
- promoteSkill
- scaffold-design-systemSkill
- searchSkill
- setupSkill
- teamSkill
- skill-nameSkill
- update-trackerSkill
- validateSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 17
Run gap analysis (quick scan + gap report)
- Distinctive: line 18
If gaps found, present gap report and collaborate to fill
- Distinctive: line 77
Search for affected components in the codebase to ground the analysis.
- Distinctive: line 98
After updating local docs, sync to tracker.
- Distinctive: line 99
Check if ticket exists → create if not, update if yes
- Distinctive: line 100
If tracker was updated since last local commit, compare and merge
≈ “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
Story Refinement
Refine existing tickets for the development team. Write for a technical audience — direct, concise, specific identifiers.
When to use this vs /draft-story:
/refine-story— Existing ticket that needs improvement/draft-story— New requirements or design document → create new tickets
Process
- User provides ticket content or ID
- Run gap analysis (quick scan + gap report)
- If gaps found, present gap report and collaborate to fill
- Generate docs in
docs/stories/TICKET-{id}/
Step 1: Gap Analysis
Gap Report Template
Technical Gaps
| Gap Type | Status | Details |
| Field/property specifications | OK / Missing | {missing} |
| Entity relationships | OK / Missing | {missing} |
| Type definitions | OK / Missing | {missing} |
| Enum/picklist values | OK / Missing | {missing} |
Business Logic Gaps
| Gap Type | Status | Details |
| Trigger conditions | OK / Missing | {missing} |
| Calculation formulas | OK / Missing | {missing} |
| Workflow steps | OK / Missing | {missing} |
| Validation rules | OK / Missing | {missing} |
Integration Gaps
| System | Status | Details |
| {External System 1} | OK / Missing / N/A | {missing} |
| {External System 2} | OK / Missing / N/A | {missing} |
Security Gaps
| Gap Type | Status | Details |
| Access control | OK / Missing | {missing} |
| Field-level security | OK / Missing | {missing} |
| Sharing/visibility rules | OK / Missing | {missing} |
Testing Gaps
| Gap Type | Status | Details |
| Acceptance criteria testable | OK / Missing | {missing} |
| Edge cases defined | OK / Missing | {missing} |
| Error scenarios | OK / Missing | {missing} |
Readiness Summary
Refinement Status: Ready / Needs Minor Refinement / Needs Major Refinement
Priority Questions:
- {Most critical}
- {Second}
- {etc.}
Step 2: Codebase Scan
Search for affected components in the codebase to ground the analysis.
If the ticket involves libraries or frameworks, fetch documentation using the /fetch-docs skill pattern (resolve-library-id then get-library-docs) to verify API capabilities and catch any assumptions based on outdated behavior. This is especially important for integration gaps — knowing the real API surface prevents specifying features that don't exist.
Step 3: Collaborate & Fill Gaps
Present gap report. Work through priority questions before drafting.
Step 4: Output Files
Create in docs/stories/TICKET-{id}/:
| File | Purpose |
story.md | Ticket with ACs, technical spec |
solutions-components.md | Components changed/created |
how-to-test.md | Test instructions |
manual-steps.md | Manual pre/post deployment steps |
Step 5: Tracker Sync
After updating local docs, sync to tracker. Follow write-to-tracker rule:
- Check if ticket exists → create if not, update if yes
- If tracker was updated since last local commit, compare and merge
- Push updated content
Quality Checklist
- Specific mappings with identifiers (not display names)
- Explicit values verified from source of truth
- Clear relationships with entity names
- Trigger conditions defined
- No verbose Given/When/Then
Related Skills
/draft-story- New tickets from requirements/check-readiness- Automated readiness validation- Domain skills - Project-specific context
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.

