Configure agent skills: Gitea issue tracker, triage labels, domain docs
Scaffold the per-repo configuration the engineering skills read: - docs/agents/issue-tracker.md: Gitea (git.rwiesner.com/alex/pi-subagent) driven by the `gt` CLI, including Gitea's native issue dependencies and the absence of sub-issues - docs/agents/triage-labels.md: the five canonical triage roles at their default label strings - docs/agents/domain.md: single-context layout (root GLOSSARY.md + docs/adr/) - AGENTS.md: the `## Agent skills` block pointing at each of the above
This commit is contained in:
commit
496e6334c9
4 files changed
+142
No files matched your search
@@ -0,0 +1,13 @@
|
||||
## Agent skills
|
||||
|
||||
### Issue tracker
|
||||
|
||||
Issues live as Gitea issues on `git.rwiesner.com` (`alex/pi-subagent`), driven by the `gt` CLI. See `docs/agents/issue-tracker.md`.
|
||||
|
||||
### Triage labels
|
||||
|
||||
The five canonical triage roles, each label string equal to its role name. See `docs/agents/triage-labels.md`.
|
||||
|
||||
### Domain docs
|
||||
|
||||
Single-context: `GLOSSARY.md` and `docs/adr/` at the repo root. See `docs/agents/domain.md`.
|
||||
@@ -0,0 +1,51 @@
|
||||
# Domain Docs
|
||||
|
||||
How the engineering skills should consume this repo's domain documentation when exploring the codebase.
|
||||
|
||||
## 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 (most repos):
|
||||
|
||||
```
|
||||
/
|
||||
├── 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…_
|
||||
@@ -0,0 +1,63 @@
|
||||
# Issue tracker: Gitea
|
||||
|
||||
Issues and specs for this repo live as Gitea issues at https://git.rwiesner.com/alex/pi-subagent.
|
||||
Use the `gt` CLI for all operations.
|
||||
|
||||
`gt` infers the repository from the `origin` remote; `-R OWNER/REPO` overrides it. Run `gt doctor`
|
||||
to confirm which repository a command will hit.
|
||||
|
||||
## Conventions
|
||||
|
||||
- **Create an issue**: `gt issue create --title "..." --body "..."`, or `-F -` to read a multi-line body from stdin. `--json number -q '.number'` prints just the new number.
|
||||
- **Read an issue**: `gt issue view <number> --json number,title,body,labels,assignees,state,url`, plus `--comments` for the conversation, or `gt issue comment list <number> --json author,body`.
|
||||
- **List issues**: `gt issue list --state open --json number,title,body,labels,state --jq '[.[] | {number, title, body, labels: [.labels[].name]}]'`, with `--label`, `--state`, `--assignee`, `--search` filters. `comments` in list output is a count, not the comments — read those per issue.
|
||||
- **Apply / remove labels**: `gt issue edit <number> --add-label "..."` / `--remove-label "..."`; `--set-labels a,b` replaces them all. Labels must already exist in the repository: `gt label list`, `gt label create <name> -c <hex> -d "..."`.
|
||||
- **Comment on an issue**: `gt issue comment <number> -b "..."`.
|
||||
- **Close**: `gt issue close <number> -c "..."` records the explanation and closes in one request. Safe to re-run on an already-closed issue.
|
||||
- **Reopen**: `gt issue reopen <number>`.
|
||||
|
||||
## Parent and blocking relationships
|
||||
|
||||
Gitea has **no sub-issues**. Record parentage with `Part of #<parent>` at the top of the child body
|
||||
and a task list of the children in the parent body.
|
||||
|
||||
Gitea does have **native issue dependencies**, the canonical, UI-visible form of blocking:
|
||||
|
||||
- **Add an edge**: `gt issue create --blocked-by <n>,<n> ...`, or `gt issue edit <child> --add-blocked-by <n>,<n>`; `--blocking` / `--add-blocking` records the same edge from the other side.
|
||||
- **Read the edges**: `gt issue view <n> --json blocked_by,blocks`. Entries carry only `{number, repository}` — no state — so resolve each blocker's state with `gt issue view <n> --json state`, or intersect against `gt issue list --state open --json number`. A ticket is unblocked when every blocker is closed.
|
||||
- **Lift an edge**: `gt issue edit <child> --remove-blocked-by <n>`.
|
||||
|
||||
## 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>`, then `gt pr view <number> --comments` for the conversation and reviews, and `gt pr diff <number>` for the diff.
|
||||
- **List external PRs for triage**: `gt pr list --state open --json number,title,author,labels,url`, then drop the ones the repo owner opened.
|
||||
- **Comment / label / close**: `gt pr comment <n> -b "..."`, `gt pr edit <n> --add-label` / `--remove-label`, `gt pr close <n> -c "..."`.
|
||||
|
||||
Gitea reports a `kind` of `issue` or `pull`, and `gt issue` commands accept a PR number too, so
|
||||
`--kind all` lists both. A bare `#42` may be either: check `gt issue view 42 --json kind`.
|
||||
|
||||
## When a skill says "publish to the issue tracker"
|
||||
|
||||
Create a Gitea issue at https://git.rwiesner.com/alex/pi-subagent/issues.
|
||||
|
||||
File issues only when the resolved repository is the user's own. `gt doctor` names the repository it
|
||||
will use; if it does not say `alex/pi-subagent`, stop and ask rather than filing elsewhere.
|
||||
|
||||
## 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**: a single issue labelled `wayfinder:map`, holding the Notes / Decisions-so-far / Fog body. Create the label first if the repository lacks it (`gt label create wayfinder:map`), then `gt issue create --title "..." --body "..." --label wayfinder:map`.
|
||||
- **Child ticket**: an issue with `Part of #<map>` at the top of the body and an entry in the map's task list. Labels: `wayfinder:<type>` (`research`/`prototype`/`grilling`/`task`). Once claimed, the ticket is assigned to the driving dev.
|
||||
- **Blocking**: see **Parent and blocking relationships**.
|
||||
- **Frontier query**: `gt issue list --state open --label wayfinder:<type> --json number,title` intersected with the map's task list, dropping any with an open blocker (see **Read the edges**) or an assignee; 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.
|
||||
@@ -0,0 +1,15 @@
|
||||
# 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 |
|
||||
|
||||
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.
|
||||
Reference in new issue
Block a user