ticket-delivery
Skill22 starsChanged 9 months agoMITView on GitHub
End-to-end ticket workflow - from ticket analysis through investigation, planning, TDD implementation, committing, and PR creation. Adapts to your environment via a supplement file created on first run. Use when starting work on a ticket, implementing a feature end-to-end, or following a structured development workflow from ticket to PR.
- Commits and pushes
In this repository44 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- accessibilitySkill
- api-designSkill
- cicdSkill
- clean-architectureSkill
- database-designSkill
- debuggingSkill
- design-patternsSkill
- dispatching-parallel-agentsSkill
- git-workflowSkill
- microservicesSkill
- performanceSkill
- refactoringSkill
- scrumSkill
- securitySkill
- solidSkill
- subagent-driven-developmentSkill
- testingSkill
- verification-before-completionSkill
- composer-dependenciesSkill
- finishing-branchSkill
- php-upgradeSkill
- worktree-opsSkill
- architectSkill
- backend-devSkill
- frontend-devSkill
- product-managerSkill
- project-managerSkill
- qa-engineerSkill
- scrum-masterSkill
- agent-creatorSkill
- agentic-rules-writerSkill
- agent-teamsSkill
- brainstormingSkill
- dispatching-agent-teamsSkill
- image-annotateSkill
- plugin-creatorSkill
- pr-message-writerSkill
- report-writerSkill
- stakeholder-update-writerSkill
- ticket-writerSkill
- using-ecosystemSkill
- web-screenshotSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
37 rules. About 0 are common, 25 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈25
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 14
Before anything else, check for a supplement file stored alongside this skill (e.g., .supplement.md in the skill directory).
- Very specific: line 17
Read the file and load all $VARIABLE values for use throughout the workflow.
- Distinctive: line 20
Run an interactive setup. Present an interactive prompt (or the platform's equivalent) for each question, wait for the answer, then proceed …
- Distinctive: line 34
After saving, confirm: "Supplement saved.
- Distinctive: line 63
Ask the developer: "Please paste the ticket title, description, and acceptance criteria."
- Distinctive: line 81
If no integration tool is configured: Ask developer to paste relevant error details or stack traces.
- Distinctive: line 88
If manual: Ask developer to paste relevant log snippets if available.
- Distinctive: line 101
Ask the developer: "Does this look correct?
- Distinctive: line 113
Do NOT create a feature branch yet - that happens in Phase 5 after planning.
- Distinctive: line 123
Run these in parallel when using sub-agents, or sequentially as a single agent:
- Distinctive: line 127
Check properties, relationships, validation rules
- Very specific: line 128
If using an ORM ($ORM): check mappings, migrations, schema
- Distinctive: line 138
Check authentication/authorization on relevant endpoints
- Distinctive: line 141
If the ticket involves admin functionality, investigate admin controllers or configuration
- Distinctive: line 142
Check how admin interfaces relate to the underlying models
- Very specific: line 147
If read-only queries are available ($DB_QUERY_COMMAND): verify current data state if relevant
- Distinctive: line 155
After all areas are explored, compile:
- Distinctive: line 169
Create a detailed plan before writing any code.
- Distinctive: line 199
If the implementation involves design decisions, consider consulting specialized skills:
- Distinctive: line 217
After plan approval, create the feature branch.
- Very specific: line 233
Follow a strict TDD cycle.
- Very specific: line 238
Run it to confirm it fails: $TEST_COMMAND path/to/TestFile
- Distinctive: line 242
Write the minimum code to make each test pass:
- Very specific: line 244
Run the specific test: $TEST_COMMAND path/to/TestFile
- Distinctive: line 249
Look for duplication, unclear naming, or structural improvements
- Distinctive: line 254
Run the broader test suite to catch regressions:
- Very specific: line 262
Commit using the project's conventions ($COMMIT_FORMAT):
- Distinctive: line 275
After all changes are committed, generate a summary:
- Very specific: line 303
Use the pr-message-writer skill if available, or create the PR directly.
- Very specific: line 309
Use $VCS_CLI (e.g., gh, glab) to create the PR:
- Distinctive: line 319
Test plan / how to verify
- Very specific: line 327
If the report-writer skill is available, invoke it to create a work summary report covering:
- Distinctive: line 344
TDD is not optional: Write tests first. If the project has no test infrastructure, flag this to the developer and discuss before proceeding.
- Distinctive: line 348
Never force-push to the main branch: Always work on feature branches.
- Distinctive: line 350
Ask when uncertain: If the ticket is ambiguous, ask the developer rather than guessing.
- Distinctive: line 356
Handle failures gracefully: If tests fail unexpectedly, if the codebase does not match expectations, or if the ticket requirements are …
- Very specific: line 358
Security first: Never commit secrets, credentials, or sensitive data.
≈ “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
Ticket Workflow
End-to-end workflow that takes a ticket ID and drives it through analysis, codebase investigation, planning, TDD implementation, committing, and PR creation. Adapts to your stack via an interactive supplement created on first run.
Phase 0: Environment Supplement
Before anything else, check for a supplement file stored alongside this skill (e.g., .supplement.md in the skill directory).
If supplement exists
Read the file and load all $VARIABLE values for use throughout the workflow.
If supplement is missing
Run an interactive setup. Present an interactive prompt (or the platform's equivalent) for each question, wait for the answer, then proceed to the next. Save all answers to a supplement file stored alongside this skill (e.g., .supplement.md in the skill directory).
Questions to ask (see supplement reference for full details):
- Ticket system - GitHub Issues / GitLab Issues / Jira / Linear / Other? Integration tool name for fetching tickets?
- Version control - Bitbucket / GitHub / GitLab? CLI tool (
gh,glab)? Main branch name? - Error tracking - Bugsnag / Datadog / Sentry / none? Integration tool name?
- Logging - CloudWatch / Datadog / ELK / Grafana / none? Tool access or manual paste?
- Database - ORM (ActiveRecord / Doctrine / Eloquent / Prisma / TypeORM / none)? Read-only query command?
- CI/CD hooks - Pre-commit hooks to skip? (e.g.,
SKIP=lint,test git commit) - Testing framework - Go test / Jest / PHPUnit / pytest / RSpec / other? TDD style preference (London / Chicago)?
- Architecture - Monolith / microservices? Admin panel? API layer (REST / GraphQL / both)?
- PR conventions - Branch naming pattern? Commit message format?
After saving, confirm: "Supplement saved. You can edit it anytime at the supplement file path or delete it to re-run setup."
Delegation Strategy
This workflow can use a multi-agent team when available. The coordinating agent delegates to specialized sub-agents for parallel investigation.
Approach
| Strategy | Purpose |
| Coordinating agent | Orchestrates the full workflow, delegates investigation, reviews results |
| Investigation sub-agents (x1-3) | Explore specific codebase layers in parallel during Phase 3 |
| Implementation sub-agent | Executes TDD cycles during Phase 6 (or the coordinating agent does this directly) |
Delegate to specialized sub-agents if available. Use delegation only when the ticket scope justifies parallel investigation. For small bug fixes, a single agent can handle everything alone.
Phase 1: Ticket Intelligence Gathering
Step 1.1 - Fetch Ticket Details
If $TICKET_MCP_TOOL is configured:
Use $TICKET_MCP_TOOL to fetch ticket $TICKET_IDIf no integration tool is configured: Ask the developer: "Please paste the ticket title, description, and acceptance criteria."
Step 1.2 - Parse Ticket Information
Extract and organize:
- Title and description
- Acceptance criteria (numbered list)
- Ticket type (bug / feature / improvement / refactor)
- Priority and linked tickets
- Attachments or screenshots (note them for later)
Step 1.3 - Fetch Error Context (bugs only)
If $ERROR_TRACKING_MCP_TOOL is configured and ticket is a bug:
Use $ERROR_TRACKING_MCP_TOOL to fetch error details linked in the ticketExtract: stack trace, affected file paths, frequency, first/last seen.
If no integration tool is configured: Ask developer to paste relevant error details or stack traces.
Step 1.4 - Fetch Log Context (if applicable)
If $LOGGING_TOOL is configured:
Fetch relevant log entries around the error timeframe.
If manual: Ask developer to paste relevant log snippets if available.
Step 1.5 - Summarize Findings
Present a structured summary:
TICKET: $TICKET_ID
TYPE: [bug|feature|improvement|refactor]
SUMMARY: [one-line summary]
ACCEPTANCE CRITERIA: [numbered list]
ERROR CONTEXT: [if bug - stack trace summary, affected files]
INITIAL HYPOTHESES: [2-3 possible approaches]Ask the developer: "Does this look correct? Any additional context before I investigate the codebase?"
Phase 2: Branch Setup
git fetch origin
git checkout $MAIN_BRANCH
git pull origin $MAIN_BRANCHDo NOT create a feature branch yet - that happens in Phase 5 after planning.
Phase 3: Codebase Investigation
Investigate the codebase to understand the area affected by the ticket. Adapt the investigation to your project's architecture ($ARCHITECTURE).
Investigation Areas
Run these in parallel when using sub-agents, or sequentially as a single agent:
3a - Entity / Model Layer
- Find domain models or entities related to the ticket
- Check properties, relationships, validation rules
- If using an ORM (
$ORM): check mappings, migrations, schema
3b - Service / Business Logic Layer
- Find services, handlers, use cases related to the ticket
- Trace the execution flow from entry point to persistence
- Identify dependencies and collaborators
3c - API Layer (if applicable)
- REST: Find controllers, routes, request/response DTOs
- GraphQL: Find types, resolvers, mutations related to the feature
- Check authentication/authorization on relevant endpoints
3d - Admin Panel (if configured)
- If the ticket involves admin functionality, investigate admin controllers or configuration
- Check how admin interfaces relate to the underlying models
3e - Repository / Data Access Layer
- Find repositories, query builders, or data access objects
- Understand existing query patterns for the affected area
- If read-only queries are available (
$DB_QUERY_COMMAND): verify current data state if relevant
3f - Test Layer
- Find existing tests for the affected area
- Identify test patterns used (unit, integration, functional)
- Note any test fixtures, factories, or helpers
Investigation Summary
After all areas are explored, compile:
AFFECTED FILES: [list of files that will likely need changes]
DEPENDENCIES: [services, classes, interfaces involved]
EXISTING TESTS: [test files covering the affected area]
DATABASE IMPACT: [schema changes needed, if any]
API IMPACT: [endpoint changes, if any]
RISK AREAS: [parts of the codebase that could break]Phase 4: Implementation Planning
Create a detailed plan before writing any code.
Step 4.1 - Plan Structure
## Implementation Plan for $TICKET_ID
### Changes Required
1. [File path] - [What changes and why]
2. [File path] - [What changes and why]
...
### New Files
1. [File path] - [Purpose]
...
### Test Plan
1. [Test file] - [What to test]
2. [Test file] - [What to test]
...
### Migration / Schema Changes
[If applicable]
### Order of Operations
1. [First step - typically write failing tests]
2. [Second step]
...Step 4.2 - Design Consultation
If the implementation involves design decisions, consider consulting specialized skills:
| Situation | Recommended Skill |
| Design patterns needed | design-patterns |
| Code smells / refactoring | refactoring |
| SOLID principles | solid |
| PR message writing | pr-message-writer |
| Work summary report | report-writer |
Step 4.3 - Plan Approval
Present the plan to the developer and wait for approval before proceeding. "Here is my implementation plan. Shall I proceed, or would you like changes?"
Phase 5: Branch Creation
After plan approval, create the feature branch.
Using $BRANCH_PATTERN from supplement:
git checkout -b $BRANCH_PATTERNExample patterns:
feat/PROJ-123-short-descriptionfix/PROJ-123-short-descriptionPROJ-123/short-description
Phase 6: TDD Implementation
Follow a strict TDD cycle. Use $TEST_COMMAND from supplement.
Step 6.1 - Write Failing Tests First
For each item in the test plan:
- Write the test
- Run it to confirm it fails:
$TEST_COMMAND path/to/TestFile - Confirm the failure is for the RIGHT reason (not a syntax error)
Step 6.2 - Implement to Make Tests Pass
Write the minimum code to make each test pass:
- Implement the change
- Run the specific test:
$TEST_COMMAND path/to/TestFile - Confirm it passes
Step 6.3 - Refactor
After tests pass:
- Look for duplication, unclear naming, or structural improvements
- Refactor while keeping tests green
- Re-run tests after each refactor step
Step 6.4 - Run Full Test Suite
Run the broader test suite to catch regressions:
$TEST_COMMAND [relevant test directory or suite]Fix any failures before proceeding.
Step 6.5 - Commit Changes
Commit using the project's conventions ($COMMIT_FORMAT):
$SKIP_HOOKS git add [specific files]
git commit -m "$COMMIT_FORMAT"For large changes, make multiple focused commits rather than one monolithic commit.
Phase 7: Implementation Summary
After all changes are committed, generate a summary:
## Implementation Summary for $TICKET_ID
### Changes Made
- [File]: [What changed and why]
- [File]: [What changed and why]
### Tests Added/Modified
- [Test file]: [What is tested]
### Commits
- [hash]: [message]
### Verification
- All new tests pass: YES/NO
- Existing tests pass: YES/NO
- Schema changes applied: YES/NO/N/A
### Notes
- [Any caveats, follow-up work, or decisions made during implementation]Phase 8: PR Creation
Use the pr-message-writer skill if available, or create the PR directly.
Using pr-message-writer skill
Invoke the skill with the implementation summary and ticket context to generate a well-structured PR description.
Direct PR creation
Use $VCS_CLI (e.g., gh, glab) to create the PR:
git push -u origin HEAD
$VCS_CLI pr create --title "$TICKET_ID: [short description]" --body "[PR body]"The PR body should include:
- Link to the ticket
- Summary of changes
- Test plan / how to verify
- Screenshots (if UI changes)
- Any deployment notes
Phase 9: Report Generation
If the report-writer skill is available, invoke it to create a work summary report covering:
- Ticket details and acceptance criteria
- Investigation findings
- Implementation decisions
- Test coverage
- PR link
This is optional but recommended for complex tickets.
Critical Rules
- Never skip Phase 0. The supplement ensures the workflow adapts to your stack. Without it, the skill cannot function correctly.
- Always get plan approval before coding. Phase 4 must end with explicit developer approval.
- TDD is not optional. Write tests first. If the project has no test infrastructure, flag this to the developer and discuss before proceeding.
- Commit granularity matters. One logical change per commit. Do not bundle unrelated changes.
- Never force-push to the main branch. Always work on feature branches.
- Ask when uncertain. If the ticket is ambiguous, ask the developer rather than guessing. Wrong assumptions waste more time than a quick question.
- Respect existing patterns. Match the project's coding style, naming conventions, and architectural patterns - even if you would do it differently.
- Keep the developer informed. At the end of each phase, provide a brief status update. Do not silently proceed through multiple phases.
- Handle failures gracefully. If tests fail unexpectedly, if the codebase does not match expectations, or if the ticket requirements are unclear - stop and communicate rather than pushing through.
- Security first. Never commit secrets, credentials, or sensitive data. If a ticket requires configuration changes, use environment variables or configuration files that are in
.gitignore.
Reference Files
| Reference | Contents |
| supplement-questions | Full details on each supplement question, options, follow-ups, and example entries |
Integration with Other Skills
| Situation | Recommended Skill |
| Design patterns needed during planning | design-patterns |
| Code smells discovered during investigation | refactoring |
| SOLID violations found during review | solid |
| Writing the PR description | pr-message-writer |
| Generating a work summary report | report-writer |
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.

