agentleFS
krzysztofsurdykrzysztofsurdy/code-virtuoso/skills/tools/ticket-writer/SKILL.md

ticket-writer

Skill36 starsChanged 6 days agoMITView on GitHub

Interactive tool that writes a ticket of the right type (story, subtask, bug, epic, or initiative) with its own structure and quality checks, ready to paste into any tracker. Use when asked to write a ticket, draft a user story, file a bug, or scope an epic.

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 9 are distinctive, and 1 is 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.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If the user's intent is clear from context (e.g., they said "write a bug report" or "create an epic for checkout redesign"), skip the menu …

    line 67
  2. Distinctive:

    Read the matching reference file for the selected type:

    line 71
  3. Distinctive:

    Ask only the questions the reference lists for the selected type.

    line 91
  4. Distinctive:

    Skip optional fields silently: if the user says "skip" or leaves them blank.

    line 94
  5. Distinctive:

    Follow up on ambiguous answers: If the user says "it's slow", ask "slow compared to what, and by how much?"

    line 95
  6. Very specific:

    Never invent facts: If the user cannot provide environment info, reproduction steps, or metrics, leave those fields out and note the gap in …

    line 96
  7. Distinctive:

    Use the type's output template.

    line 100
  8. Distinctive:

    Links: Leave placeholders for parent epic / related tickets / PRs rather than inventing IDs.

    line 105
  9. Distinctive:

    Before showing the final output, run the checks listed in the type's reference file.

    line 109
  10. Distinctive:

    Write a related ticket (e.g., a story under the epic just written)

    line 125

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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

Ticket writer

Pick the right ticket type, then fill in only the fields that type needs. A story is not a bug, and an epic is not an initiative. Each type has its own audience, scope, and definition of done. Mixing them produces vague tickets that nobody can act on and that bloat the backlog.

Core Principles

PrincipleMeaning
Type drives structureThe type decides the required fields. Never use a single template for everything
Outcomes over outputsDescribe the change the work creates, not the activity performed
Small enough to finishStories and subtasks fit a sprint; epics fit a quarter; initiatives span multiple quarters
Testable acceptanceEvery story, subtask, and bug has acceptance criteria that a reviewer can verify
Context, not prosePrefer tables, lists, and labelled sections over paragraphs, because readers skim
One ask per ticketIf a ticket has two unrelated goals, split it
Vertical slicesA story or subtask should be a thin, demoable path through every layer, not one layer of a feature, and should name the tickets that block it. See spec-driven-development references/slicing.md

Type hierarchy and selection

Tickets form a hierarchy. Pick the highest level where the work still has a single, coherent purpose.

Initiative  (multi-quarter strategic outcome)
  Epic      (quarter-scale goal, one product area)
    Story   (sprint-scale user-visible value)
      Subtask  (implementation slice of a story)
    Bug     (defect against current behaviour)
    Issue   (anything else - chore, spike, question)

When to use each type

TypeAudienceScopeTypical durationKey question
InitiativeExecs, product leadershipCross-team strategic goal1-4 quartersWhat outcome do we want for the business or users?
EpicProduct, engineering, designSingle product area, multiple stories1 quarterWhat capability or experience are we delivering?
StoryDev team, QA, PMOne user-facing changeFits in a sprintAs a [user], what can I now do?
SubtaskOne developerTechnical slice of a storyHours to 1-2 daysWhat specific implementation step does this cover?
BugDev team, QAA deviation from intended behaviourFix-sizedWhat is broken, and how do I reproduce it?
IssueDev teamChore, spike, question, tech debt, docsVariableWhat needs attention that isn't user-facing work?

Type decision tree

  1. Is this a deviation from intended behaviour? -> Bug
  2. Is this a strategic goal spanning multiple teams or quarters? -> Initiative
  3. Is this a large body of work that needs to be broken down but belongs to one product area? -> Epic
  4. Is this user-visible value that fits in a sprint? -> Story
  5. Is this an implementation slice of an existing story? -> Subtask
  6. None of the above (chore, spike, investigation, tech debt, question)? -> Issue

Workflow

Phase 1: Type selection

If the user provided a type as an argument, use it. Otherwise present a selectable menu (use AskUserQuestion or the platform's equivalent interactive prompt) listing the six types with their one-line descriptions from the table above. Never dump the full table as plain text. Keep the menu compact.

If the user's intent is clear from context (e.g., they said "write a bug report" or "create an epic for checkout redesign"), skip the menu and confirm the inferred type with a single yes/no prompt.

Phase 2: Load the type-specific reference

Read the matching reference file for the selected type:

TypeReference
Storyreferences/story.md
Subtaskreferences/subtask.md
Issuereferences/issue.md
Bugreferences/bug.md
Epicreferences/epic.md
Initiativereferences/initiative.md

Each reference contains:

  • The required fields
  • The optional fields
  • A field-by-field questionnaire (questions, options, follow-ups)
  • The output template
  • Quality checks specific to that type

Phase 3: Run the Questionnaire

Ask only the questions the reference lists for the selected type. Rules:

  1. Batch compatible questions (3-4 per prompt) when using an interactive menu tool. Use free-text prompts only when the answer is truly free-form (title, description, reproduction steps).
  2. Skip optional fields silently if the user says "skip" or leaves them blank. Do not add empty placeholders.
  3. Follow up on ambiguous answers. If the user says "it's slow", ask "slow compared to what, and by how much?"
  4. Never invent facts. If the user cannot provide environment info, reproduction steps, or metrics, leave those fields out and note the gap in a ## Open Questions section rather than fabricating values.

Phase 4: Assemble the ticket

Use the type's output template. Apply these formatting rules to every type:

  • Title: Imperative mood for stories/subtasks/issues ("Add password reset via email"), descriptive for bugs ("Payment confirmation email not sent after successful charge"), outcome-oriented for epics/initiatives ("Reduce checkout abandonment by 30%").
  • Body: Markdown with section headings. No emojis unless the user explicitly requests them.
  • Labels: Suggest labels based on type and content (e.g., bug, severity:high, area:checkout).
  • Links: Leave placeholders for parent epic / related tickets / PRs rather than inventing IDs.

Phase 5: Quality check

Before showing the final output, run the checks listed in the type's reference file. Common failures to catch:

SymptomFix
Acceptance criteria describe implementation ("implement X service")Rewrite in terms of observable outcomes ("when user does X, system does Y")
Bug has no steps to reproduceMark as "Open Questions" and ask the user to provide them
Epic has no success metricAdd a metric or downgrade to a story
Story doesn't name a user ("we need to...")Rewrite with a concrete persona ("As a returning customer, I want...")
Initiative lists features instead of outcomesReframe key results as measurable changes, not shipped features
Subtask is larger than its parent storySplit the story or merge the subtasks

Phase 6: Deliver

Show the final ticket to the user in a code block so they can copy-paste it. Then offer:

  1. Edit a field
  2. Change the type (if the content no longer fits)
  3. Write a related ticket (e.g., a story under the epic just written)
  4. Done

Quick reference: field matrix

Which fields are required (R), optional (O), or not used (-) per type.

FieldStorySubtaskIssueBugEpicInitiative
TitleRRRRRR
User personaR-OOOO
User story sentenceR-O-O-
Problem statementO-ORRR
Acceptance criteria (Given/When/Then)RRORO-
Steps to reproduce---R--
Expected / actual behaviour---R--
Environment---R--
Severity---R--
PriorityOOOROO
Scope / out of scopeO-O-RR
Success metrics----RR
Key results----OR
Objective----OR
Milestones----OR
Parent linkOROOO-
Child list----OO
Definition of doneRRORO-
Technical notesOOOOO-
EstimateOOOOO-
DependenciesOOOOOO

Integration with other skills

SituationRecommended Skill
Writing the PRD that the stories will flow fromproduct-manager
Designing the architecture behind an epicarchitect
Writing acceptance criteria and test plans for a storyqa-engineer
Tracking initiatives as part of a delivery planproject-manager
Writing the commit and PR for a story once implementedpr-message-writer

Reference files

ReferenceContents
story.mdUser story fields, INVEST checklist, Given/When/Then acceptance criteria, template and example
subtask.mdSubtask fields, parent linkage rules, technical acceptance criteria, Definition of Done guidance
issue.mdGeneric issue template for chores, spikes, tech debt, questions, and docs tasks
bug.mdBug report fields, severity vs priority matrix, environment capture, reproduction steps
epic.mdEpic fields, problem statement, success metrics, in/out of scope, milestones, child stories
initiative.mdInitiative fields, OKR alignment, objective and key results, outcome vs output, epic roll-up

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.

Reviews can't be read right now.

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.