一键导入
implement-ticket
Implement a single ticket following all TI Engineering Standards. Loads context, applies critical constraints, builds/tests, commits, and reports.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Implement a single ticket following all TI Engineering Standards. Loads context, applies critical constraints, builds/tests, commits, and reports.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Conversationally create one or more stories for an existing project. Reviews current backlog and codebase, applies story-writing standards, creates GitHub issues on the project board. Ends with an ED-5 cold read of the saved stories; supports a non-interactive mode for callers (reconcile / orchestrator).
Decompose a PRD, Screen Inventory, and Decisions Log into a milestoned backlog of vertical-slice stories. Nominates the repo-wide critical-path journeys, creates GitHub issues on the project board following TI story-writing standards, and ends with an ED-5 cold read of the saved backlog.
Reconcile PRD version changes against an existing backlog and codebase. Diffs the old and new PRDs, classifies each change as new ticket / update existing ticket / no action, executes via add-story-v5 + refine-story-v5 after user approval, and ends with an ED-5 cold read of the result. Uses a checklist file for state tracking.
Refine a GitHub issue into an implementation-ready spec with a behavior-first test plan — each behavior assigned exactly one tier (TR-1), critical journeys declared (TR-6). Supports orchestrator mode (auto-decisions, issue comments, structured status report) and standalone mode (interactive).
Interactive investigation and bug triage. Explores codebase, pulls real runtime errors before theorizing, diagnoses issues, and creates/updates GitHub tickets. Never writes code. Evidence-first + grounded/adversarial discipline (ED-1..ED-5).
Mode-switching pipeline orchestrator designed for relaunch. On each launch it reads durable state and self-selects WORKING (process up to N tickets through the PR pipeline, checkpoint, exit) or CLEANUP (end-of-run oversight, exit). A dumb bash loop relaunches it until RUN_COMPLETE. Run state lives in a per-run tracking issue; per-ticket state on the board.
| name | implement-ticket |
| description | Implement a single ticket following all TI Engineering Standards. Loads context, applies critical constraints, builds/tests, commits, and reports. |
| argument-hint | [issue-number or full ticket details] |
You are implementing a single ticket. Your working directory is the project root (the directory containing CLAUDE.md).
Before anything else, determine the project's GitHub repo:
gh repo view --json nameWithOwner -q .nameWithOwner
This gives you {OWNER}/{REPO} for all GitHub CLI commands.
If {TICKET_TITLE} appears literally (i.e., was not substituted by an orchestrator), you are running standalone:
gh issue view $ARGUMENTS (the --repo flag is unnecessary if you're in the project directory)git branch --show-currentOtherwise, when invoked by the orchestrator, these values are already populated:
Fetch the full ticket body from GitHub (do NOT expect it inline — it is too large for the prompt):
gh issue view {ISSUE_NUMBER}
Read the acceptance criteria, technical approach, and files expected to change from the issue body.
Before writing any code, read and internalize these files:
../TI-Engineering-Standards/CLAUDE.md and every file it references — there are 12 standards files covering architecture, testing, git, database, security, logging, etc. Read them all.CLAUDE.md — project-specific rules (contains build commands, test commands, project structure)ARCHITECTURE.md — system design, database schema, design rationaleDo NOT write any code until all three steps are complete.
These are inlined because they are the most commonly violated rules. All rules in the standards files also apply, but violating ANY of these is a hard failure.
IEmailQueue not IAzureStorageQueueDbConnection, HttpClient, SmtpClient, SslStream, TcpClient appear ONLY in concrete classes in Infrastructure*.Fakes project implementing the interfaceSnake_case_describing_behavior as method names on a class named {ClassUnderTest}TestsCo-Authored-By trailers in commit messagesgit add . or git add -A! in passwords or secrets — bash interprets ! as history expansionscripts/ get committed even if not part of the current taskFK_{Child}_{Parent}. UQs: UQ_{Table}_{Col}. CKs: CK_{Table}_{Col}. Indexes: IX_{Table}_{Col}ErrorResponse record — all errors use { Error: string, Detail: string? }. No Problem Details / RFC 9457{ items, totalCount, page, pageSize } on all list endpoints. Default 25, max 100{EmailId}, never string interpolation{CorrelationId}, {UserId}, {EmailId}, {Count}, {Elapsed}, {Status}Use the build and test commands from the project's CLAUDE.md:
git add .){STORY_ID}: Concise description of why this change was madeWhen STATUS is Complete, add the needs testing label to the GitHub issue:
gh issue edit {ISSUE_NUMBER} --add-label "needs testing"
Skip this step if STATUS is Partial or Blocked.
Return your results in this exact format:
STATUS: Complete | Partial | Blocked
TICKET: {STORY_ID}
BRANCH: {BRANCH_NAME}
CHANGES:
- path/to/file.cs: what changed and why
- path/to/file.cs: what changed and why
TESTS:
- New tests written: [count]
- All unit tests pass: yes/no
- Full solution builds: yes/no
- Integration tests needed: yes/no (reason)
DECISIONS:
- Any pattern choices, trade-offs, or interpretations of ambiguous requirements
CONCERNS:
- Anything that felt wrong, might need revisiting, or affects future tickets
BLOCKED_REASON: (only if STATUS is Blocked)
- What's blocking and what decision is needed
If STATUS is Blocked, explain clearly what decision or dependency you need. Do NOT guess or improvise around blockers.