docs: bring the README layout and the branch claim back to the code
README described a three-skill plugin that ships six. skills/page and skills/wiki were absent from What it ships and from the project tree, so /tea:page and /tea:wiki could not be discovered from the front page at all; labels.py, close.py, evict.py, issue_evict.py, pin.py and the agents-sync hook were missing from the tree too. Layout now matches AGENTS.md, and says which of the two is authoritative. The sync skill promised that push writes the computed branch back into the issue file. It cannot: a successful push deletes the file, which push.py:260-271 and its docstring already said. The paragraph now says what happens instead — the ref goes up, and the branch comes back on the next pull, from the tracker. The three claims around it were correct and are kept. Closes #27 Closes #31 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -8,30 +8,36 @@ A Claude Code plugin that gives Claude a reference for the `tea` CLI and enforce
|
|||||||
|---|---|
|
|---|---|
|
||||||
| `/tea:auth` skill | Prompts you to pick a Gitea login and pins it to the project |
|
| `/tea:auth` skill | Prompts you to pick a Gitea login and pins it to the project |
|
||||||
| `/tea:issue` skill | Issues as units of work — create, read, grep, validate, walk the dependency graph. Entirely offline |
|
| `/tea:issue` skill | Issues as units of work — create, read, grep, validate, walk the dependency graph. Entirely offline |
|
||||||
| `/tea:sync` skill | Moves issues between the local store and Gitea — pull, push, comment |
|
| `/tea:sync` skill | Moves issues between the local store and Gitea — pull, push, comment, close, evict |
|
||||||
|
| `/tea:page` skill | A discussion's artifacts as a named, ordered tree of pages — import, title, index. Entirely offline |
|
||||||
|
| `/tea:wiki` skill | Moves page trees between a local space and a Gitea wiki — fetch a subtree, publish one |
|
||||||
| `/tea:use` skill | Tea CLI reference for everything that is not an issue — loads command docs on demand |
|
| `/tea:use` skill | Tea CLI reference for everything that is not an issue — loads command docs on demand |
|
||||||
| `tea-runner` agent | Subagent on Haiku that runs the scripts and reports back a receipt — the mechanical half, off your main context |
|
| `tea-runner` agent | Subagent on Haiku that runs the scripts and reports back a receipt — the mechanical half, off your main context |
|
||||||
| `tea-guard` hook | PreToolUse hook that blocks or rewrites every `tea` invocation |
|
| `tea-guard` hook | PreToolUse hook that blocks or rewrites every `tea` invocation |
|
||||||
|
|
||||||
## The layering
|
## The layering
|
||||||
|
|
||||||
An issue is a unit of work first and a Gitea row second. Those are two layers,
|
An issue is a unit of work first and a Gitea row second. A page tree is a
|
||||||
and knowledge flows one way:
|
discussion's artifacts first and a wiki second. Each is two layers, and
|
||||||
|
knowledge flows one way:
|
||||||
|
|
||||||
```
|
```
|
||||||
skills/issue DOMAIN what an issue is: format, validation, dependency graph
|
skills/issue DOMAIN what an issue is: format, validation, dependency graph
|
||||||
|
skills/page DOMAIN what a page tree is: title <-> path, order, the index
|
||||||
▲ offline — no tracker, no network, stdlib only
|
▲ offline — no tracker, no network, stdlib only
|
||||||
│ imports
|
│ imports
|
||||||
skills/sync BRIDGE md <-> Gitea JSON, then over the wire
|
skills/sync BRIDGE md <-> Gitea issue JSON, then over the wire
|
||||||
|
skills/wiki BRIDGE md <-> Gitea wiki JSON; transport is sync's _gitea.py
|
||||||
▲
|
▲
|
||||||
│ calls
|
│ calls
|
||||||
tea-runner EXECUTION runs the scripts, reports a receipt — no opinions
|
tea-runner EXECUTION runs the scripts, reports a receipt — no opinions
|
||||||
```
|
```
|
||||||
|
|
||||||
Delete `skills/sync` and the domain layer keeps working — issues that live only
|
Delete `skills/sync` and the issue domain keeps working; delete `skills/wiki`
|
||||||
on your machine are first-class, not drafts waiting to be uploaded. That is the
|
and page trees keep working. Work that lives only on your machine is
|
||||||
point of the split: you can plan, write, validate, and track work without a
|
first-class, not a draft waiting to be uploaded. That is the point of the
|
||||||
tracker, and publish only what you choose to.
|
split: you can plan, write, validate, and organize without a tracker, and
|
||||||
|
publish only what you choose to.
|
||||||
|
|
||||||
## Prerequisites
|
## Prerequisites
|
||||||
|
|
||||||
@@ -120,11 +126,15 @@ session — the pinned login is enforced on every call it makes.
|
|||||||
agents/
|
agents/
|
||||||
tea-runner.md subagent (Haiku) that executes the scripts
|
tea-runner.md subagent (Haiku) that executes the scripts
|
||||||
hooks/
|
hooks/
|
||||||
hooks.json registers the PreToolUse hook
|
hooks.json registers the PreToolUse hooks
|
||||||
tea-guard.sh the guard (Python 3, no deps)
|
tea-guard.sh the guard (Python 3, no deps)
|
||||||
|
agents-sync.sh keeps AGENTS.md real and CLAUDE.md a symlink to it
|
||||||
skills/
|
skills/
|
||||||
auth/SKILL.md /tea:auth skill
|
auth/ /tea:auth — the identity layer
|
||||||
issue/ /tea:issue — the domain layer, offline
|
SKILL.md
|
||||||
|
scripts/pin.py where the login pin is and how it is found —
|
||||||
|
imported by _gitea.py AND by tea-guard.sh
|
||||||
|
issue/ /tea:issue — the issue domain, offline
|
||||||
SKILL.md
|
SKILL.md
|
||||||
references/format.md canonical issue format (identity, types, templates)
|
references/format.md canonical issue format (identity, types, templates)
|
||||||
scripts/ Python 3, stdlib only, no network:
|
scripts/ Python 3, stdlib only, no network:
|
||||||
@@ -135,6 +145,7 @@ skills/
|
|||||||
issue_check.py validate against the format
|
issue_check.py validate against the format
|
||||||
issue_ac.py list the body's checkboxes; tick one
|
issue_ac.py list the body's checkboxes; tick one
|
||||||
issue_tree.py draw the dependency graph
|
issue_tree.py draw the dependency graph
|
||||||
|
issue_evict.py drop closed issues the tracker also has
|
||||||
issue_index.py rebuild tmp/issues/INDEX.md
|
issue_index.py rebuild tmp/issues/INDEX.md
|
||||||
sync/ /tea:sync — the bridge to Gitea
|
sync/ /tea:sync — the bridge to Gitea
|
||||||
SKILL.md
|
SKILL.md
|
||||||
@@ -145,11 +156,33 @@ skills/
|
|||||||
push.py tmp/issues/ -> Gitea, then drops the local file
|
push.py tmp/issues/ -> Gitea, then drops the local file
|
||||||
remote.py discovery listing to stdout
|
remote.py discovery listing to stdout
|
||||||
comment.py post or edit a comment
|
comment.py post or edit a comment
|
||||||
|
close.py the state field, both ways
|
||||||
|
evict.py refresh state: from Gitea, then evict
|
||||||
|
labels.py put the canonical label set into a repository
|
||||||
|
page/ /tea:page — the page-tree domain, offline
|
||||||
|
SKILL.md
|
||||||
|
references/pages.md canonical page-tree format
|
||||||
|
scripts/ Python 3, stdlib only, no network:
|
||||||
|
page.py domain module: title <-> path, ordering,
|
||||||
|
the manifest, importing, the index
|
||||||
|
page_import.py copy a directory of markdown into a space
|
||||||
|
page_index.py write the table-of-contents page
|
||||||
|
page_ls.py the tree, the titles, one state tag per page
|
||||||
|
wiki/ /tea:wiki — the bridge to a Gitea wiki
|
||||||
|
SKILL.md
|
||||||
|
scripts/
|
||||||
|
wikimap.py md <-> Gitea wiki JSON, pure, no I/O
|
||||||
|
wiki_ls.py what the wiki holds
|
||||||
|
wiki_pull.py wiki -> tmp/wiki/<space>/
|
||||||
|
wiki_push.py tmp/wiki/<space>/ -> wiki (additive)
|
||||||
use/ /tea:use — tea CLI reference (non-issue entities)
|
use/ /tea:use — tea CLI reference (non-issue entities)
|
||||||
SKILL.md
|
SKILL.md
|
||||||
references/tea/ command docs
|
references/tea/ command docs
|
||||||
```
|
```
|
||||||
|
|
||||||
|
`AGENTS.md` carries the same layout with the reasoning behind it; if the two
|
||||||
|
ever disagree, `AGENTS.md` is the one being worked from.
|
||||||
|
|
||||||
## Local issue store
|
## Local issue store
|
||||||
|
|
||||||
Issues live in `tmp/issues/` (gitignore it) as flat markdown with one metadata
|
Issues live in `tmp/issues/` (gitignore it) as flat markdown with one metadata
|
||||||
|
|||||||
@@ -355,8 +355,11 @@ A milestone must already exist in the repo — push attaches, it does not create
|
|||||||
|
|
||||||
`branch:` is Gitea's `ref`, the branch the work actually lives on. Push fills
|
`branch:` is Gitea's `ref`, the branch the work actually lives on. Push fills
|
||||||
an empty one with the current git branch (`git rev-parse --abbrev-ref HEAD`)
|
an empty one with the current git branch (`git rev-parse --abbrev-ref HEAD`)
|
||||||
and writes it back into the issue file; a value already there is never
|
and sends it up as `ref`; a value already there is never
|
||||||
overwritten, neither on create nor on `--update`. On a detached HEAD or outside
|
overwritten, neither on create nor on `--update`. Nothing is written back to
|
||||||
|
the issue file — there is no file left to write to, because a successful push
|
||||||
|
deletes it. The branch comes back on disk with the next `pull.py <n>`, from
|
||||||
|
the tracker. On a detached HEAD or outside
|
||||||
a git repo no `ref` is sent and a warning names the issues that went up without
|
a git repo no `ref` is sent and a warning names the issues that went up without
|
||||||
one. Reading the branch is the only thing these scripts ask git for — they
|
one. Reading the branch is the only thing these scripts ask git for — they
|
||||||
never check out, create, or write anything.
|
never check out, create, or write anything.
|
||||||
|
|||||||
Reference in New Issue
Block a user