From 65ec310f985b85e8f54b368a3b2f1a534c6ad37a Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Wed, 11 Nov 2026 20:06:53 +0000 Subject: [PATCH] docs(agents): configure the engineering skills for Gitea Record where the engineering skills find the issue tracker (Gitea Issues on mortis/kamino), the triage label mapping (the repo's scoped Status/ and Reviewed/ labels) and the domain-docs layout (single-context), and point to them from an Agent skills section in CLAUDE.md. Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG --- CLAUDE.md | 14 ++++++++++ docs/agents/domain.md | 53 ++++++++++++++++++++++++++++++++++++ docs/agents/issue-tracker.md | 21 ++++++++++++++ docs/agents/triage-labels.md | 13 +++++++++ 4 files changed, 101 insertions(+) create mode 100644 docs/agents/domain.md create mode 100644 docs/agents/issue-tracker.md create mode 100644 docs/agents/triage-labels.md diff --git a/CLAUDE.md b/CLAUDE.md index dd31d7b..9529f35 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -35,6 +35,20 @@ or create tags: those are the operator's. - Changes that can affect a consumer need a changelog fragment (`changelogs/fragments/`). New files are covered by `REUSE.toml`; third-party-derived content needs its own annotation. +## Agent skills + +### Issue tracker + +Issues live in Gitea Issues on `mortis/kamino`, used through the `gitea-issues` skill and the Gitea MCP tools. See `docs/agents/issue-tracker.md`. + +### Triage labels + +The five triage roles map onto the repo's scoped `Status/` and `Reviewed/` labels. See `docs/agents/triage-labels.md`. + +### Domain docs + +Single-context: `GLOSSARY.md` and `docs/adr/` at the root, both created lazily. See `docs/agents/domain.md`. + ## Workflows (`.gitea/workflows/`) - Never `pull_request_target`. A fork `pull_request` run gets no secrets and a read-only job token; a same-repo pull request does get the org Actions secrets, so nothing but `image.yml` may reference them. Pass ref, repo and name values to diff --git a/docs/agents/domain.md b/docs/agents/domain.md new file mode 100644 index 0000000..5320530 --- /dev/null +++ b/docs/agents/domain.md @@ -0,0 +1,53 @@ +# 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//docs/adr/` for context-scoped decisions. + +Kamino's design contract is ADR 0004, kept in the maintainer's environment repository, not in this checkout. `docs/adr/` here holds only decisions made in this repository and may not exist yet. + +If any of these files don't exist, **proceed silently**. Don't flag their absence; don't suggest creating them upfront. The `/domain-modeling` skill (reached via `/grill-with-docs` and `/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 `/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…_ diff --git a/docs/agents/issue-tracker.md b/docs/agents/issue-tracker.md new file mode 100644 index 0000000..46d14d3 --- /dev/null +++ b/docs/agents/issue-tracker.md @@ -0,0 +1,21 @@ +# Issue tracker: Gitea + +Issues and specs for this repo live as Gitea issues on `mortis/kamino` (https://git.rkdr.net/mortis/kamino). Use the `gitea-issues` skill and the Gitea MCP tools (`mcp__gitea__issue_read`, `issue_write`, `list_issues`, `search_issues`); there is no `gh` or `glab`. Pull requests are a different object: `gitea-prs`. + +## Conventions + +- **Create an issue**: `issue_write` (method `create`) with `title` and `body`. +- **Read an issue**: `issue_read`, which returns the body, labels and comments. +- **List issues**: `list_issues` or `search_issues`, filtered by state and label. +- **Comment on an issue**: `issue_write` with the comment method. +- **Apply / remove labels**: label names are resolved to IDs with `label_read` (`list_repo_labels`); see `triage-labels.md`. +- **Close**: post the explanation as a comment first, then close the issue. +- **Sub-issues and blocking**: no native representation is used. Put `Part of #` or `Blocked by: #, #` on the first line of the child body. A ticket is unblocked when every blocker is closed. + +Issues and pull requests share one number space in Gitea, so confirm which one `#N` refers to before acting on it. + +File issues only into `mortis/kamino`. The configured token holds `write:issue` and `write:repository` but not `read:organization`, so organisation-level labels cannot be read. + +## Pull requests as a triage surface + +**PRs as a request surface: no.** Fork pull requests are not accepted for now (CLAUDE.md), so PRs do not enter the triage queue. Set to `yes` only if that changes. diff --git a/docs/agents/triage-labels.md b/docs/agents/triage-labels.md new file mode 100644 index 0000000..fe3e77a --- /dev/null +++ b/docs/agents/triage-labels.md @@ -0,0 +1,13 @@ +# Triage Labels + +The skills speak in terms of five canonical triage roles. This file maps them to this repo's labels. The repo uses Gitea's scoped labels (`Scope/Name`, exclusive within a scope), so setting one `Status/` label replaces the previous one. + +| Label in mattpocock/skills | Label in our tracker | Meaning | +| -------------------------- | ------------------------ | ---------------------------------------- | +| `needs-triage` | `Status/Needs Triage` | Maintainer needs to evaluate this issue | +| `needs-info` | `Status/Need More Info` | Waiting on reporter for more information | +| `ready-for-agent` | `Status/Ready for Agent` | Fully specified, ready for an AFK agent | +| `ready-for-human` | `Status/Ready for Human` | Requires human implementation | +| `wontfix` | `Reviewed/Won't Fix` | Will not be actioned | + +`Status/Needs Triage`, `Status/Ready for Agent` and `Status/Ready for Human` are created for this mapping; the other two existed already. When a skill mentions a role, use the string from this table.