✨ export: 36 files (features)

M plugins/gitea/.claude-plugin/plugin.json
M plugins/gitea/.codex-plugin/plugin.json
M plugins/gitea/README.md
M plugins/gitea/skills/gitea/SKILL.md
M plugins/gitea/skills/gitea/scripts/fetch_ticket.py
M plugins/gitea/skills/gitea/scripts/start_ticket.py
A plugins/spire/UPGRADES.md
A plugins/spire/agents/designer.md
M plugins/spire/agents/planner.md
A plugins/spire/providers/README.md
A plugins/spire/providers/hosts/claude-desktop/spawning.md
A plugins/spire/providers/hosts/t3-code/spawning.md
A plugins/spire/providers/runtimes/codex/spawning.md
M plugins/spire/skills/gremlins/grm/call.py
M plugins/spire/skills/gremlins/grm/cli.py
A plugins/spire/skills/gremlins/grm/codex.py
A plugins/spire/skills/gremlins/grm/errors.py
A plugins/spire/skills/gremlins/grm/harness.py
M plugins/spire/skills/gremlins/grm/launch.py
A plugins/spire/skills/gremlins/grm/scrub.py
M plugins/spire/skills/gremlins/grm/stream.py
A plugins/spire/skills/gremlins/grm/title.py
A plugins/spire/skills/gremlins/tests/_pin.py
M plugins/spire/skills/gremlins/tests/fake_claude.py
A plugins/spire/skills/gremlins/tests/fake_codex.py
M plugins/spire/skills/gremlins/tests/test_cli.py
A plugins/spire/skills/gremlins/tests/test_cli_codex.py
A plugins/spire/skills/gremlins/tests/test_codex.py
A plugins/spire/skills/gremlins/tests/test_harness.py
A plugins/spire/skills/gremlins/tests/test_scrub.py
A plugins/spire/skills/gremlins/tests/test_title.py
A plugins/spire/skills/igor/references/upgrades.md
A plugins/spire/skills/igor/tests/test_upgrade_notes.py
A plugins/spire/skills/igor/upgrade-notes.sh
R plugins/spire/skills/implementation/references/spawning-claude-code.md -> plugins/spire/providers/runtimes/claude-code/spawning.md
M plugins/spire/skills/project/SKILL.md
This commit is contained in:
2026-11-25 01:52:10 +01:00
parent f64031b956
commit f6dc43be19
36 changed files with 3667 additions and 201 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
{
"name": "gitea",
"version": "0.1.0",
"description": "Gitea issue integration: fetch/create/list/close tickets, post comments, scaffold labels. Workpad-aware.",
"version": "0.1.1",
"description": "Gitea issue integration: fetch/create/list/close tickets, post comments, scaffold labels. Quire-aware (formerly workpad).",
"author": {
"name": "Gabor Körber",
"email": "gab@g4b.org"
+3 -3
View File
@@ -1,7 +1,7 @@
{
"name": "gitea",
"version": "0.1.0",
"description": "Gitea issue integration: fetch/create/list/close tickets, post comments, scaffold labels. Workpad-aware.",
"version": "0.1.1",
"description": "Gitea issue integration: fetch/create/list/close tickets, post comments, scaffold labels. Quire-aware (formerly workpad).",
"author": {
"name": "Gabor Korber",
"email": "gab@g4b.org"
@@ -10,7 +10,7 @@
"interface": {
"displayName": "Gitea",
"shortDescription": "Work with Gitea tickets from Codex.",
"longDescription": "Fetch, create, list, close, and comment on Gitea issues using self-contained uv scripts, with workpad-aware workflows.",
"longDescription": "Fetch, create, list, close, and comment on Gitea issues using self-contained uv scripts, with quire-aware workflows.",
"developerName": "Gabor Korber",
"category": "Productivity",
"capabilities": ["Skills", "Scripts"],
+1 -1
View File
@@ -53,7 +53,7 @@ Creates a default emoji-prefixed label set. Override per-project by placing `.gi
## Architecture notes
- All scripts use **CWD-relative paths** for git, `.env`, and workpad lookups. The plugin directory is only consulted for shipped resources (like `labels.default.json`).
- All scripts use **CWD-relative paths** for git, `.env`, and quire lookups. The plugin directory is only consulted for shipped resources (like `labels.default.json`).
- Imports are **flat sibling imports** (`from client import …`) — scripts are run as files, not as a package.
- Each CLI entrypoint carries a PEP 723 `# /// script` header listing its own dependencies, so no shared environment, lockfile, or `pyproject.toml` is needed.
+17 -16
View File
@@ -1,11 +1,11 @@
---
name: gitea
description: Use when working with Gitea tickets — fetching ticket context, creating issues from workpad goals, posting plans or reports as comments, listing/searching issues, closing issues, or scaffolding standard labels for a new repo.
description: Use when working with Gitea tickets — fetching ticket context, creating issues from quire goals, posting plans or reports as comments, listing/searching issues, closing issues, or scaffolding standard labels for a new repo.
---
# Gitea Ticket Integration
Bidirectional integration between the workpad and a Gitea instance. All operations are CLI scripts shipped with this plugin; nothing needs to be installed in the user's project.
Bidirectional integration between the quire and a Gitea instance. All operations are CLI scripts shipped with this plugin; nothing needs to be installed in the user's project.
## Configuration
@@ -36,24 +36,25 @@ Prints the resolved URL/repo and `Connection: OK` on success.
Do not retry or work around auth failures.
## Workpad path
## Quire path
Most ticket-related scripts need a workpad path. Resolve it once at the start of the session:
Most ticket-related scripts need a quire path. Resolve it once at the start of the session:
1. **`WORKPAD_FOLDER`** env var (read via `printenv WORKPAD_FOLDER`, or a `just workpad-folder` recipe if defined).
2. If unset, **ask the user** where the workpad is. Don't guess.
1. **`QUIRE_FOLDER`** env var (try `just quire-folder` if defined, then `printenv QUIRE_FOLDER`).
2. If unset, **`WORKPAD_FOLDER`** (old name, fallback; same way: `just workpad-folder`, then `printenv WORKPAD_FOLDER`).
3. If neither is set, **ask the user** where the quire is. Don't guess.
Then pass `--workpad <resolved-path>` to every script that takes it. If the user keeps tickets *outside* the workpad, use `--tickets-dir <path>` instead (overrides the `<workpad>/tickets/` default).
Then pass `--quire <resolved-path>` to every script that takes it (`--workpad` is accepted as the old alias). If the user keeps tickets *outside* the quire, use `--tickets-dir <path>` instead (overrides the `<quire>/tickets/` default).
## Available scripts
All invocations use `uv run ${CLAUDE_PLUGIN_ROOT}/skills/gitea/scripts/<name>.py`. Each script carries inline PEP 723 dependencies — uv builds an isolated env on first run and caches it.
### `fetch_ticket.py <number> --workpad <path> [--tickets-dir <path>] [--no-comments]`
### `fetch_ticket.py <number> --quire <path> [--tickets-dir <path>] [--no-comments]`
Pulls a ticket as structured markdown to `<tickets-dir>/<number>/context.md` (default tickets dir = `<workpad>/tickets`). Includes labels, assignees, milestone, description, and all comments unless `--no-comments`.
Pulls a ticket as structured markdown to `<tickets-dir>/<number>/context.md` (default tickets dir = `<quire>/tickets`). Includes labels, assignees, milestone, description, and all comments unless `--no-comments`.
### `start_ticket.py <number> --workpad <path> [--tickets-dir <path>] [--slug SLUG] [--no-checkout]`
### `start_ticket.py <number> --quire <path> [--tickets-dir <path>] [--slug SLUG] [--no-checkout]`
Recommended entry point when starting work on a ticket. Fetches the ticket, creates a branch `ticket/<number>-<slug>` from current HEAD, writes `context.md` to the tickets dir. Slug is derived from the title if not given. Warns if the current branch isn't main/master. Fails if the branch already exists locally or on the remote.
@@ -82,16 +83,16 @@ Creates the standard label set in the repo (or a project-defined set if `.gitea-
### Start work on an existing ticket
```bash
uv run ${CLAUDE_PLUGIN_ROOT}/skills/gitea/scripts/start_ticket.py 42 --workpad <workpad>
uv run ${CLAUDE_PLUGIN_ROOT}/skills/gitea/scripts/start_ticket.py 42 --quire <quire>
```
Then read `<workpad>/tickets/42/context.md` to understand the ticket.
Then read `<quire>/tickets/42/context.md` to understand the ticket.
### Turn a workpad goal into a ticket
### Turn a quire goal into a ticket
```bash
uv run ${CLAUDE_PLUGIN_ROOT}/skills/gitea/scripts/create_ticket.py \
--from-goal <workpad>/goals/my-feature.md \
--from-goal <quire>/goals/my-feature.md \
--labels "✨ feature,📋 workpad"
```
@@ -99,7 +100,7 @@ uv run ${CLAUDE_PLUGIN_ROOT}/skills/gitea/scripts/create_ticket.py \
```bash
uv run ${CLAUDE_PLUGIN_ROOT}/skills/gitea/scripts/post_comment.py 42 \
<workpad>/plans/2026-05-19-10-my-plan.md \
<quire>/plans/2026-05-19-10-my-plan.md \
--header "## Implementation Plan"
```
@@ -130,4 +131,4 @@ That's it — URL/owner/repo come from `git remote get-url origin`.
- Don't attempt to work around auth failures.
- Don't modify the plugin's scripts from within a user session — that's a separate plugin-development task.
- Don't skip the connectivity check.
- Don't guess the workpad path — read `WORKPAD_FOLDER` or ask.
- Don't guess the quire path — read `QUIRE_FOLDER` (or `WORKPAD_FOLDER`) or ask.
@@ -6,10 +6,10 @@
"""Fetch a Gitea ticket and write structured markdown.
Usage:
uv run fetch_ticket.py <number> --workpad <path> [--tickets-dir <path>] [--no-comments]
uv run fetch_ticket.py <number> --quire <path> [--tickets-dir <path>] [--no-comments]
Output: <tickets-dir>/<number>/context.md
(default tickets-dir = <workpad>/tickets)
(default tickets-dir = <quire>/tickets)
"""
from __future__ import annotations
@@ -64,13 +64,13 @@ def render_issue_markdown(issue: GiteaIssue, comments: List[GiteaComment] | None
return "\n".join(lines)
def resolve_tickets_dir(workpad: Path | None, tickets_dir: Path | None) -> Path:
def resolve_tickets_dir(quire: Path | None, tickets_dir: Path | None) -> Path:
if tickets_dir is not None:
return tickets_dir
if workpad is None:
print("Error: either --workpad or --tickets-dir must be provided.", file=sys.stderr)
if quire is None:
print("Error: either --quire or --tickets-dir must be provided.", file=sys.stderr)
sys.exit(1)
return workpad / "tickets"
return quire / "tickets"
def fetch_and_write(ticket_number: int, target_dir: Path, include_comments: bool = True) -> Path:
@@ -91,12 +91,12 @@ def fetch_and_write(ticket_number: int, target_dir: Path, include_comments: bool
def main() -> None:
parser = argparse.ArgumentParser(description="Fetch a Gitea ticket as markdown.")
parser.add_argument("ticket", type=int, help="Ticket number to fetch")
parser.add_argument("--workpad", type=Path, default=None, help="Workpad root (tickets go to <workpad>/tickets/<n>/)")
parser.add_argument("--tickets-dir", type=Path, default=None, help="Direct tickets directory (overrides workpad)")
parser.add_argument("--quire", "--workpad", dest="quire", type=Path, default=None, help="Quire root (tickets go to <quire>/tickets/<n>/); --workpad is the old name")
parser.add_argument("--tickets-dir", type=Path, default=None, help="Direct tickets directory (overrides quire)")
parser.add_argument("--no-comments", action="store_true", help="Skip fetching comments")
args = parser.parse_args()
target = resolve_tickets_dir(args.workpad, args.tickets_dir)
target = resolve_tickets_dir(args.quire, args.tickets_dir)
try:
out = fetch_and_write(args.ticket, target, include_comments=not args.no_comments)
print(f"Wrote ticket #{args.ticket} to {out}")
@@ -6,7 +6,7 @@
"""Start working on a Gitea ticket: create a branch and fetch ticket context.
Usage:
uv run start_ticket.py <number> --workpad <path> [--tickets-dir <path>] [--slug SLUG] [--no-checkout]
uv run start_ticket.py <number> --quire <path> [--tickets-dir <path>] [--slug SLUG] [--no-checkout]
"""
from __future__ import annotations
@@ -61,13 +61,13 @@ def current_branch() -> str:
def main() -> None:
parser = argparse.ArgumentParser(description="Start working on a Gitea ticket.")
parser.add_argument("ticket", type=int, help="Ticket number")
parser.add_argument("--workpad", type=Path, default=None, help="Workpad root")
parser.add_argument("--tickets-dir", type=Path, default=None, help="Direct tickets directory (overrides workpad)")
parser.add_argument("--quire", "--workpad", dest="quire", type=Path, default=None, help="Quire root; --workpad is the old name")
parser.add_argument("--tickets-dir", type=Path, default=None, help="Direct tickets directory (overrides quire)")
parser.add_argument("--slug", type=str, default=None, help="Custom branch slug")
parser.add_argument("--no-checkout", action="store_true", help="Create branch without switching to it")
args = parser.parse_args()
target = resolve_tickets_dir(args.workpad, args.tickets_dir)
target = resolve_tickets_dir(args.quire, args.tickets_dir)
config = load_config()
try: