Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Write Ticket?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/steven-zhc-write-ticket-lingtai)
---
name: write-ticket
description: Use when turning a task, a bug or a discussion into tickets for Lingtai to work — a GitHub issue or a `lingtai ticket new`.
---
# Write a ticket for Lingtai
A ticket's body is handed whole to the agent that does the work, and the review
agent measures the change against it. What the body leaves undecided, the agent
guesses and the reviewer refuses, one paid round at a time. This skill closes
those gaps before anything is spent: **split, draft, check, ask, then hand over.**
Lingtai itself requires only a kind label. Everything else here is how to get
the work built the way the person meant it.
## 1. Split: one ticket, one thing
Every ticket is:
- **Single** — one feature, one fix, one change. A ticket that makes four
decisions is four tickets.
- **Landable** — one attempt can finish and land it, and the person can check
the result in one sitting. If the honest answer to *what will the diff look
like?* is *it depends on what the agent finds*, it is research: make the
research its own ticket, whose result is the fact you were missing.
- **Checkable** — every line of *Done when* can be checked by a person or a test.
Documentation is a ticket of its own. Tickets that change the same files are
ordered with *blocked by* (GitHub's issue dependencies, or
`lingtai ticket new --blocked-by`), never with prose in the body. A large task
can be an epic with the tickets attached as sub-issues; Lingtai works the
tickets, never the epic.
## 2. Draft
Read the code before you write about it. Every claim about the code — *X
exists*, *nothing calls Y* — carries the file and line you just read; a claim
nobody found the line for stays out.
Use this shape, the same rows as the handbook's *Writing a ticket*, and leave
out a recommended section only when it would be empty:
```markdown
| | |
|---|---|
| **Problem** | one sentence: the failure seen, not the area it is in |
| **Watch out** | the trap: what costs money, fails silently, or went wrong before |
## Evidence
The exact output, and file:line for each claim about the code.
## Edges
One line per case and its rule: a read that fails, a restart halfway,
two runs at once, an empty or unknown value. Say "does not apply" where so.
## Out of scope
What the reviewer must not hold this ticket to.
## Done when
- [ ] checkable by a person or a test
```
**Required:** the problem and *Done when*. **Recommended:** the rest, more of
it the larger the ticket. A typo fix is a title and one line of *Done when*.
A `feature` ticket can add a `## Use cases` section after the table: one `###`
heading per use case, a sentence or two each saying what a person does and what
they see. Lingtai's acceptance step checks the change against them. Do not write
test steps there; the acceptance agent derives those itself.
Write `[NEEDS CLARIFICATION: …]` wherever you do not know. Do not guess.
## 3. Check each draft
- [ ] It does one thing, and I can say what its diff looks like
- [ ] Every line of *Done when* can be checked
- [ ] The trap is at the top, not in the third paragraph
- [ ] Every claim about the code says where
- [ ] It says what is out of scope
- [ ] Documentation is a ticket of its own
- [ ] Tickets that change the same files are ordered with *blocked by*
- [ ] It has a kind label, and `lingtai:hold` if it is not ready
`lingtai:hold` holds a ticket only once the recipe's `source.exclude` lists it;
a new recipe excludes no label. If the person's recipe does not list it, say so
rather than promise a hold.
## 4. Ask
Read the draft as the reviewer will: the ticket and nothing else. List what is
still undecided — every `[NEEDS CLARIFICATION]`, every place two readings would
build different things, every *Done when* a test cannot check. Ask the person
about the few that would change the most, each as one question with two to four
options and your recommendation first. Put the answers into the body, not into a
Q&A section. Do not hand over a ticket that still has a marker in it.
## 5. Hand over
Give the person each ticket ready to open, in order, with its kind label and its
*blocked by*. On GitHub:
```sh
gh issue create --title "<what is true when it is done>" --label <kind> [--label lingtai:hold] -F body.md
```
Then set each *blocked by*. `issue_id` is the blocker's `.id`, not its number,
and `-F` sends it as an integer where `-f` would send a string the API refuses:
```sh
gh api repos/<owner>/<repo>/issues/<n>/dependencies/blocked_by \
-F issue_id=$(gh api repos/<owner>/<repo>/issues/<blocker> --jq .id)
```
Without GitHub:
```sh
lingtai ticket new --title "<…>" --label <kind> [--blocked-by <n>] --body - < body.md
```
Add `--project <p>` when more than one project is registered.
Open them only when the person asks you to. Never write *close*, *closes*,
*fixes* or *resolves* next to a `#number` in a ticket: GitHub closes that issue
when the ticket's change merges.