Add agent skills config: Gitea issue tracker, triage labels, domain docs

This commit is contained in:
alex committed 2026-11-26 15:18:35 +00:00
commit e728839e97
4 files changed
+130

No files matched your search

+13
View File
@@ -0,0 +1,13 @@
## Agent skills
### Issue tracker
Gitea issues at <https://git.rwiesner.com/alex/timepi>, driven by the `gt` CLI. See `docs/agents/issue-tracker.md`.
### Triage labels
The five canonical roles map 1:1 to `needs-triage`, `needs-info`, `ready-for-agent`, `ready-for-human`, `wontfix`. See `docs/agents/triage-labels.md`.
### Domain docs
Single-context: one `GLOSSARY.md` and `docs/adr/` at the repo root. See `docs/agents/domain.md`.
+53
View File
@@ -0,0 +1,53 @@
# Domain Docs
How the engineering skills should consume this repo's domain documentation when exploring the codebase.
This repo is **single-context**: one glossary and one ADR directory at the root.
## Before exploring, read these
- **`GLOSSARY.md`** at the repo root, or
- **`GLOSSARY-MAP.md`** at the repo root if it exists: it points at one `GLOSSARY.md` per context. Read each one relevant to the topic.
- **`docs/adr/`**: read ADRs that touch the area you're about to work in. In multi-context repos, also check `src/<context>/docs/adr/` for context-scoped decisions.
If any of these files don't exist, **proceed silently**. Don't flag their absence; don't suggest creating them upfront. The `/skill:domain-modeling` skill (reached via `/skill:grill-with-docs` and `/skill:improve-codebase-architecture`) creates them lazily when terms or decisions actually get resolved.
## File structure
Single-context repo (this repo):
```
/
├── GLOSSARY.md
├── docs/adr/
│ ├── 0001-event-sourced-orders.md
│ └── 0002-postgres-for-write-model.md
└── src/
```
Multi-context repo (presence of `GLOSSARY-MAP.md` at the root):
```
/
├── GLOSSARY-MAP.md
├── docs/adr/ ← system-wide decisions
└── src/
├── ordering/
│ ├── GLOSSARY.md
│ └── docs/adr/ ← context-specific decisions
└── billing/
├── GLOSSARY.md
└── docs/adr/
```
## Use the glossary's vocabulary
When your output names a domain concept (in an issue title, a refactor proposal, a hypothesis, a test name), use the term as defined in `GLOSSARY.md`. Don't drift to synonyms the glossary explicitly avoids.
If the concept you need isn't in the glossary yet, that's a signal: either you're inventing language the project doesn't use (reconsider) or there's a real gap (note it for `/skill:domain-modeling`).
## Flag ADR conflicts
If your output contradicts an existing ADR, surface it explicitly rather than silently overriding:
> _Contradicts ADR-0007 (event-sourced orders), but worth reopening because…_
+47
View File
@@ -0,0 +1,47 @@
# Issue tracker: Gitea
Issues and specs for this repo live as Gitea issues at <https://git.rwiesner.com/alex/timepi>. Use the `gt` CLI for all operations. Run it inside this clone; it resolves the repository from `origin`.
## Conventions
- **Create an issue**: `gt issue create -t "..." -b "..."`. For multi-line bodies use a heredoc: `gt issue create -t "..." -F - <<'EOF' ... EOF`. Pass labels at creation with `-l <name>` (repeatable).
- **Read an issue**: `gt issue view <n> --json number,title,body,labels,comments,state` (add `--comments` for the thread as text).
- **List issues**: `gt issue list -s open -L 100 --json number,title,labels`, filtered with `-l <label>`, `-s {open|closed|all}`, `-S <search>`.
- **Sub-issues**: Gitea has none. Put `Part of #<parent>` at the top of the child body and list the children in a task list in the parent body.
- **Blocking**: Gitea's native issue dependencies. Add an edge with `gt issue create --blocked-by 3,4 ...` or `gt issue edit <child> --add-blocked-by <blocker>`, and lift it with `--remove-blocked-by`. Read them with `gt issue view <n> --json blocked_by,blocks`; entries are `{number, repository}` with no state, so a ticket is unblocked when every blocker's `gt issue view <n> --json state` reads `closed`.
- **Gitea refuses to close an issue that still has open dependencies** (`HTTP 412 cannot close this issue because it still has open dependencies`). Close the blockers first, or lift the edge with `--remove-blocked-by` before closing.
- **Comment on an issue**: `gt issue comment <n> -b "..."` (`-F -` for a heredoc body).
- **Apply / remove labels**: `gt issue edit <n> --add-label "..."` / `--remove-label "..."`.
- **Close**: `gt issue close <n> -c "..."`, which posts the comment before closing. On an already-closed issue this is a no-op, so check `gt issue view <n> --json state` when it matters.
- **Delete**: `gt issue delete <n> --yes`; without `--yes` it asks for confirmation and leaves the issue in place.
Gitea shares one number space across issues and pull requests, so a bare `#42` may be either: read `gt issue view 42 --json kind`, which returns `issue` or `pull`, or filter a listing with `gt issue list --kind {issues|pulls|all}`.
## Pull requests as a triage surface
**PRs as a request surface: no.** _(Set to `yes` if this repo treats external PRs as feature requests; `/skill:triage` reads this flag.)_
When set to `yes`, PRs run through the same labels and states as issues, using the `gt pr` equivalents:
- **Read a PR**: `gt pr view <number>`, `gt pr view <number> --comments`, and `gt pr diff <number>`.
- **List external PRs**: `gt issue list --kind pulls -s open --json number,title,author,labels`, then drop those whose `author` is you or a collaborator.
- **Comment / label / close**: `gt pr comment`, `gt pr edit --add-label` / `--remove-label`, `gt pr close`.
## When a skill says "publish to the issue tracker"
Create a Gitea issue.
## When a skill says "fetch the relevant ticket"
Read it as in **Read an issue** above.
## Wayfinding operations
Used by `/skill:wayfinder`. The **map** is a single issue with **child** issues as tickets.
- **Map**: an issue labelled `wayfinder:map` holding the Notes / Decisions-so-far / Fog body.
- **Child ticket**: an issue with `Part of #<map>` at the top of its body, added to a task list in the map body. Labels: `wayfinder:<type>` (`research`/`prototype`/`grilling`/`task`).
- **Blocking**: see **Blocking** under Conventions.
- **Frontier query**: list the map's open children, drop any with an assignee or with a blocker whose state is not `closed`; first in map order wins.
- **Claim**: `gt issue edit <n> --add-assignee @me`, the session's first write.
- **Resolve**: `gt issue comment <n> -b "<answer>"`, then `gt issue close <n>`, then append a context pointer (gist + link) to the map's Decisions-so-far.
+17
View File
@@ -0,0 +1,17 @@
# Triage Labels
The skills speak in terms of five canonical triage roles. This file maps those roles to the actual label strings used in this repo's issue tracker.
| Label in mattpocock/skills | Label in our tracker | Meaning |
| -------------------------- | -------------------- | ---------------------------------------- |
| `needs-triage` | `needs-triage` | Maintainer needs to evaluate this issue |
| `needs-info` | `needs-info` | Waiting on reporter for more information |
| `ready-for-agent` | `ready-for-agent` | Fully specified, ready for an AFK agent |
| `ready-for-human` | `ready-for-human` | Requires human implementation |
| `wontfix` | `wontfix` | Will not be actioned |
All five exist on `alex/timepi` in Gitea (created via `gt label create`).
When a skill mentions a role (e.g. "apply the AFK-ready triage label"), use the corresponding label string from this table.
Edit the "Label in our tracker" column to match whatever vocabulary you actually use.