# Quick start

Your first agent ticket in five minutes, in an empty folder: a store, a group, a spec doc, a ticket that points at one section of it, and the three steps of the loop.

Every command runs as written, and the output shown is what the docs test checks.

1. Check the install ([Install](/en/docs/get-started/install.md#start-install)).

   ```console
   $ tkt --version
   ```

2. Create a store in the `.tickets/` subfolder and pin it to the folder: `--pin` writes `.aitodo.yaml`, so every `tkt` command run here uses this store.

   ```console
   $ tkt init demo --workspace-dir .tickets --pin
   Workspace 'demo' initialized
   ```

3. Create a group with the `PAY` prefix. Without the group's repo anchor (`--repo`, `--branch`, `--base-ref`) no ticket can start.

   ```console
   $ tkt group new Payments --kind project --prefix PAY --repo https://example.com/shop.git --branch main --base-ref main --description 'Card payments and refunds'
   Created group payments
   ```

4. Write a short spec doc and store it. The ticket will point at its `## CSV export` section.

   `spec.md`:

   ```text
   # Payments spec

   ## CSV export

   Export the refunds of a day as CSV, one row per refund.
   ```

   ```console
   $ tkt doc new payments-spec --file spec.md --description 'What the CSV export delivers'
   Doc saved doc://payments-spec
   ```

5. Create a ticket in the `todo` status. It needs a description (`--details`, the body's `## Description`) and, as a feature, an acceptance criterion (`--ac`). `tkt` already suggests the doc from the words they share.

   ```console
   $ tkt ticket new "CSV export" -g payments --status todo --description "Export payments as CSV" --details "Finance needs the payments in a spreadsheet." --ac "The CSV has one row per payment"
   Created ticket PAY-001
   ```

6. Link the doc's section to the ticket: in the bundle the agent gets exactly this section, not the whole doc.

   ```console
   $ tkt ticket ref add PAY-001 doc://payments-spec --anchor "## CSV export"
   Added doc://payments-spec on PAY-001
   ```

7. Read it the way the agent will. The context guard hints say what is missing: `UNSCOPED_TICKET` only notes that there is no `## In Scope` section.

   ```console
   $ tkt ticket get PAY-001
   UNSCOPED_TICKET
   ```

8. Add one more acceptance criterion.

   ```console
   $ tkt ticket ac add PAY-001 "The CSV has one row per refund"
   Added 2 to PAY-001
   ```

9. Run the context guard again. Only info hints are left, so the exit code is 1 (0: clean, 2: a warning, 3: a block).

   ```console
   $ tkt ticket lint PAY-001
   [INFO] UNSCOPED_TICKET
   exit code: 1
   ```

10. The first step of the loop: the agent claims the next startable ticket and moves it to `in_progress`.

    ```console
    $ tkt next --claim --assignee me
    Claimed PAY-001
    ```

11. While working it writes back what it learned: a dated note in the ticket's `## Notes` section.

    ```console
    $ tkt ticket note PAY-001 "Exported with the csv module"
    Created ## Notes on PAY-001
    ```

12. At the end it hands the ticket over for review; `done` is your call. An agent can do all of this: give it the skill or `/llms.txt` ([The skill and machine resources](/en/docs/agents/resources.md#ref-resources)).

    ```console
    $ tkt ticket update PAY-001 --status in_review
    Updated ticket PAY-001
    ```

## Details

Next: the [steps of the loop](/en/docs/guides/loop/steps.md#loop-steps) one by one, the parts of the [Context Bundle](/en/docs/concepts/context-bundle.md#context-bundle), and an [example](/en/docs/examples/plan-doc-to-epic.md#guide-example-plan-doc) that turns a plan doc into an epic and its stories in one go.

## Related

- Guide: [Install](/en/docs/get-started/install.md): One line installs the tkt CLI (this server's version) and the Claude Code skill; on Windows: irm https://tkt.ideathon.me/install.ps1 \| iex.
- Guide: [The skill and machine resources](/en/docs/agents/resources.md)
- Guide: [The loop, step by step](/en/docs/guides/loop/steps.md)
- Concept: [The Context Bundle](/en/docs/concepts/context-bundle.md): One read that returns everything a ticket needs, the milestone tier included.
- Example: [From a plan doc to an epic with tickets](/en/docs/examples/plan-doc-to-epic.md): A plan doc becomes an epic and its stories in one step, without AI: the doc is the epic, each H2 is a story, the - \[ \] lines are the acceptance criteria, and…
