agentleFS
BostonOrangeBostonOrange/claude-code-framework/skills/draft-story/SKILL.md

draft-story

Skill2 starsChanged 6 months agoMITView on GitHub

Create new tickets from business requirements or design documents. Analyzes requirements, scans codebase, identifies gaps and open questions, and drafts complete refined tickets.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create complete, refined tickets from business requirements or design documents.

    line 8
  2. Distinctive:

    Ask clarifying questions (Who, What, Why, When, Where)

    line 34
  3. Distinctive:

    If doc covers multiple tickets, propose split and ask which to draft

    line 48
  4. Distinctive:

    After surfacing open questions, do not stop:

    line 56
  5. Distinctive:

    All resolved → ticket is implementation-ready.

    line 60
  6. Distinctive:

    Every draft must include an Open Questions section.

    line 66
  7. Very specific:

    Create docs/stories/TICKET-{id}/ (or DRAFT-{name}/) with:

    line 79
  8. Distinctive:

    After drafting locally, sync to work item tracker.

    line 90
  9. Very specific:

    Keep DRAFT-{name}/ folder.

    line 102
  10. Very specific:

    No verbose Given/When/Then — go direct

    line 110
  11. Distinctive:

    When sourced from a design doc, add section references for traceability

    line 111
  12. Distinctive:

    When all open questions are resolved:

    line 116

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Draft Story

Create complete, refined tickets from business requirements or design documents. Write for a technical audience — direct, concise, specific identifiers over display names.

When to use this vs /refine-story:

  • /draft-story — New requirements or design document → create new tickets
  • /refine-story — Existing ticket that needs improvement or gap analysis

Input Sources

1. Business Requirements (ad-hoc)

User describes a business need or feature request verbally. Follow the full interview process.

2. Design Documents (pasted or fetched)

User provides a structured design document. These typically include:

  • Objective / Overview
  • Open Questions
  • Technical Design (data flows, endpoint specs, field mappings)
  • Data Model Changes
  • Business Logic
  • Integration Details

Design docs may cover multiple tickets — propose how to split.

Process

From business requirements:

  1. User describes business need
  2. Ask clarifying questions (Who, What, Why, When, Where)
  3. Explore codebase for relevant patterns
  4. Fetch documentation using the /fetch-docs skill pattern (resolve-library-id then get-library-docs) when the solution involves external dependencies — verify actual API capabilities before committing to a technical approach
  5. Propose solution options if multiple approaches exist
  6. Draft complete ticket
  7. Present open questions for stakeholder follow-up
  8. Save to docs/stories/TICKET-{id}/ or docs/stories/DRAFT-{name}/

From design documents:

  1. User provides design document content
  2. Parse all sections — identify scope, TBDs, and open questions
  3. Clarify architecture early: sync vs async, data flow direction
  4. Explore codebase to verify existing components
  5. Identify gaps: what the doc leaves unresolved
  6. If doc covers multiple tickets, propose split and ask which to draft
  7. Draft complete ticket with design doc section references
  8. Surface open questions — grouped by source (doc TBDs vs codebase gaps)
  9. Resolve open questions interactively — work through each one
  10. Save to docs/stories/TICKET-{id}/ or docs/stories/DRAFT-{name}/

Open Question Resolution Loop (Step 9)

After surfacing open questions, do not stop:

  1. Present questions grouped by priority (blocking → important → nice-to-have)
  2. For each question: state recommendation, ask for decision, update ticket
  3. After all addressed:
    • All resolved → ticket is implementation-ready. Mark as ready.
    • Some deferred → mark as needs refinement. List deferred items clearly.
  4. An implementation-ready ticket can go straight to /factory

Open Questions Output

Every draft must include an Open Questions section. Group by source:

  1. From the design doc — TBDs, explicitly listed questions
  2. From codebase analysis — naming conflicts, missing config, pattern mismatches
  3. From gap analysis — ambiguous rules, missing specs, unclear contracts

Each question must include:

  • Reference to the source section
  • Context — what the source says and why it's a problem
  • Impact — what's blocked if unresolved
  • Recommendation — suggested resolution with trade-offs

Story Documentation

Create docs/stories/TICKET-{id}/ (or DRAFT-{name}/) with:

FileContent
story.mdFull ticket with ACs, technical spec
solutions-components.mdComponents to change/create
how-to-test.mdTest instructions
manual-steps.mdManual pre/post deployment steps (if needed)

Tracker Sync

After drafting locally, sync to work item tracker.

Creating a new ticket

{{TRACKER_CREATE_TICKET}}

After creation:

  1. Extract new ticket ID from response
  2. Rename local folder: DRAFT-{name}/ → TICKET-{id}/
  3. Update story.md title
  4. Confirm to user with link

If user declines sync

Keep DRAFT-{name}/ folder. Remind to create ticket later.

Writing Style

  • Specific field/property mappings with identifiers
  • Explicit values (enum values verified from source, not display names)
  • Clear relationships with entity names
  • Trigger conditions for automation
  • No verbose Given/When/Then — go direct
  • When sourced from a design doc, add section references for traceability
  • Tables over paragraphs

Factory Pipeline Integration

When all open questions are resolved:

/draft-story (resolve everything)
    → Ticket marked "Ready for Sprint"
    → /factory TICKET-{id} (automated from here)

Related Skills

  • /refine-story - Refine existing tickets
  • /factory - End-to-end pipeline (next step after drafting)
  • /check-readiness - Automated readiness validation
  • /update-tracker - Push ticket content to tracker

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.