Set up a project
Once, in the repo root; the store is a subdirectory that the .aitodo.yaml pin points to.
On this page
$ tkt init myproject --workspace-dir .tickets --pin $ tkt group new "Payments" --kind project --prefix PAY --description "Card payments" $ tkt ticket new "Partial refunds" -g payments --type feature --description "Refund part of a payment" --details "Finance refunds a partial amount." --ac "Part of a payment is refunded"
Details6 items
Never use the repo root as the store (it creates tickets/, groups/, docs/, gotchas/ at its root). Then fill in the group descriptor (## Overview, conventions, verification): every ticket inherits it (Docs and gotchas). Read: tkt ticket get PAY-001.
-
tkt init [name] [--workspace-dir PATH] [--pin [--force]]is idempotent: when the store exists it says so and exits 0 (--pinstill runs). Without--workspace-dirit initializes the resolved root. It creates.aitodo/(config.yaml,counters.json,.gitignore,templates/) andtickets/,groups/,docs/,gotchas/.--pinwrites./.aitodo.yaml(a relative path under the cwd;workspace:only with a name); a different existing file is refused without--force(ERR_ID_DUPLICATE). -
tkt group new <name> --kind project|component --prefix PREFIX [--id ID] [--repo R --branch B --base-ref B]: the prefix is at most 10 upper-case letters or digits, starting with a letter; the default id is the name lower-cased with spaces as hyphens (punctuation stays: pass--id, elseERR_ID_INVALID). A group's first anchor needs--repo. -
The setup script beside the skill:
scripts/init-project-store.sh PREFIX "Project name" [repo-url] [store-dir], run from the project root. It runstkt initandtkt group new(with a repo URL also therepoAnchor, branchmain), seeds the four body sections with TODOs and prints theexport AITODO_WORKSPACE_DIR=…line. Idempotent; without a repo URL it prints thetkt group edit <id> --repo <url> --branch main --base-ref mainto run. -
tkt where [--json]: the root, the name, which source won and whether it is initialized:{root, workspace, source, projectFile, initialized},sourceisflag,env,file <path>ordefault; it also names the credentials file (credentials,credentialsSource). -
A local store pinned to a coordinator (
.aitodo/server.yaml) gets acoordinator: <url> (project <id>) serves ids, leasesline: ids and leases come from the server, everything else is local; undertkt --offlineorAITODO_OFFLINE=1it addsoffline: this call uses the local counters.--json:coordinator{url, project, serves, offline, pinFile},nullwithout a pin. It reads the pin only, never the server. This is not thestore: servermode (there the whole store is on the server andtkt wheresaysstore: server).
Commands on this page#
tkt initInitialize a new workspace on disk (optionally pinned to the current directory)→
tkt whereShow which workspace root the commands use here, and which source won→
tkt group newCreate a new group (optionally with a repoAnchor)→