From f5d3fe58ecd1bf188dcf8f185c76a2991ab95c07 Mon Sep 17 00:00:00 2001 From: Sulthan Zaki Date: Mon, 17 Aug 2026 17:52:16 +0700 Subject: [PATCH] Add a gitea skill; point AGENTS.md at it (#126) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Forge usage lived in three places (`AGENTS.md`, `docs/agents/issue-tracker.md`, and habit). This moves the how-to-run-`tea` half into a model-invoked skill that fires on any issue/PR task, and reduces `AGENTS.md` to identity plus pointers. - **new** `.claude/skills/gitea/SKILL.md` — command table plus the traps `tea --help` will not tell you. - `AGENTS.md` — Forge section is now one line: Gitea not GitHub, `gh` and the `issue://`/`pr://` URIs fail, then pointers to the skill, `docs/agents/issue-tracker.md`, and `docs/agents/triage-labels.md`. - `.claude/skills/implement-tickets/SKILL.md` — pointer split: tracker conventions to the doc, `tea` usage to the skill. Both `docs/agents/` files are untouched; the skill cites them instead of restating them. Facts in the skill are measured against `tea` 0.14.2 on 2026-08-17, not remembered: - `gh` is not installed, so `read issue://71` errors — there is no fallback to add. - **A bare read is a truncated read.** Without `--comments`, `tea issue ` drops every comment silently, with no prompt under a non-TTY: issue #123 prints 40 lines bare, 132 with the flag. The skill makes `--comments` mandatory for any read meant to understand a ticket, with `tea issue list --fields index,comments` as the checkable count. - Issues and PRs share one index space; output is rendered boxes so parsing needs `-o json`; `close` takes no `--comment`; labels never auto-create; multi-line bodies need a heredoc; `tea` exposes neither sub-issues nor dependencies. Unmeasured and marked as such: whether `--comments` covers a PR's review-comment stream — no PR in this repo has comments, so `tea pr review-comments ` is named without a claim about overlap. Reviewed-on: https://gitea.violetcrown.my.id/sulthan/mangaBookmark/pulls/126 Co-authored-by: Sulthan Zaki Co-committed-by: Sulthan Zaki --- .claude/skills/gitea/SKILL.md | 75 +++++++++++++++++++++++ .claude/skills/implement-tickets/SKILL.md | 2 +- AGENTS.md | 9 +-- 3 files changed, 77 insertions(+), 9 deletions(-) create mode 100644 .claude/skills/gitea/SKILL.md diff --git a/.claude/skills/gitea/SKILL.md b/.claude/skills/gitea/SKILL.md new file mode 100644 index 0000000..6b69f25 --- /dev/null +++ b/.claude/skills/gitea/SKILL.md @@ -0,0 +1,75 @@ +--- +name: gitea +description: Use for every forge operation in this repo — read, create, comment on, label, close, or search an issue; create, review, merge, or check out a PR; and whenever `gh`, `issue://`, or `pr://` fails or a ticket number is ambiguous. This repo's forge is self-hosted Gitea driven by `tea`, not GitHub. +--- + +# Gitea, not GitHub + +`origin` is the self-hosted Gitea instance `gitea.violetcrown.my.id`, repo +`sulthan/mangaBookmark`. Everything past plain git goes through +[`tea`](https://gitea.com/gitea/tea) (0.14.2 on this machine). + +**`gh` is not installed**, so the harness's `issue://` and `pr://` URIs +error out (`GitHub CLI (gh) is not installed`, measured 2026-08-17). There is no +fallback to add — read tickets with `tea`. + +`tea` infers the repo from `origin`; auth lives in `tea login`, never a +`GH_TOKEN`. Your Gitea username comes from `tea login list` — `tea` has no `@me`. + +Flags are the environment's job: run `tea --help` rather than trusting +a remembered flag. This file carries only what `--help` will not tell you. + +## Commands + +| Job | Command | +|---|---| +| Read | `tea issue --comments` / `tea pr --comments` — `--comments` is not optional | +| List | `tea issue list --state open\|closed\|all -o json --fields index,title,body,labels,state,author` | +| Search | `tea issue list -k "" -L "