From fe7656718021d7e96146742795dd47386e2fca99 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 15 May 2026 11:51:49 +0200 Subject: [PATCH] :paperclip: Backport opencode skills from staging --- .opencode/skills/taiga/SKILL.md | 110 ++++++++++++++++++++++++++++++++ opencode.json | 4 -- 2 files changed, 110 insertions(+), 4 deletions(-) create mode 100644 .opencode/skills/taiga/SKILL.md delete mode 100644 opencode.json diff --git a/.opencode/skills/taiga/SKILL.md b/.opencode/skills/taiga/SKILL.md new file mode 100644 index 0000000000..890c965c03 --- /dev/null +++ b/.opencode/skills/taiga/SKILL.md @@ -0,0 +1,110 @@ +--- +name: taiga +description: Fetch information from Taiga public API for the Penpot project (id 345963) — issues, user stories, and tasks, without authentication. +metadata: {"clawdbot":{"requires":{"bins":["python3"]}}} +--- + +# Taiga API Skill + +Fetch information from Taiga public API for the **Penpot** project +(project id: `345963`, slug: `penpot`). + +**No authentication required** — only public project data is accessed. + +## Prerequisites + +- `python3` — the `tools/taiga.py` CLI script is self-contained (stdlib only) + +## Quick Start + +The easiest way is to use the bundled Python script: + +```bash +# Pass a Taiga URL directly +python3 tools/taiga.py https://tree.taiga.io/project/penpot/issue/13714 + +# Or use " " syntax +python3 tools/taiga.py us 14128 +python3 tools/taiga.py task 13648 + +# Add --json for raw output +python3 tools/taiga.py --json issue 13714 + +# See full usage +python3 tools/taiga.py --help +``` + +## URL Pattern Reference + +Taiga web URLs follow these patterns: + +| Type | Web URL Pattern | +|------|----------------| +| Issue | `https://tree.taiga.io/project/penpot/issue/` | +| User Story | `https://tree.taiga.io/project/penpot/us/` | +| Task | `https://tree.taiga.io/project/penpot/task/` | + +To extract the **type** and **ref** from a URL: +- `issue/13714` → type=`issue`, ref=`13714` +- `us/14128` → type=`us`, ref=`14128` +- `task/13648` → type=`task`, ref=`13648` + +## Python Script Reference + +The `tools/taiga.py` script wraps the Taiga API into a single convenient CLI +with sensible defaults. + +### Usage + +``` +python3 tools/taiga.py +python3 tools/taiga.py +python3 tools/taiga.py [--json] +python3 tools/taiga.py [--json] +``` + +### Examples + +```bash +# By URL (recommended — no need to think about type/ref) +python3 tools/taiga.py https://tree.taiga.io/project/penpot/issue/13714 + +# By type and ref +python3 tools/taiga.py us 14128 +python3 tools/taiga.py task 13648 + +# Raw JSON output +python3 tools/taiga.py --json issue 13714 +``` + +### Output + +The script prints a clean, structured summary: + +```text +User Story #11964 — 🔴 [DESIGN TOKENS] Typography Composite Input +================================ +Status: Defining +Milestone: design-systems-sprint-26 +Points: 3 role(s) +Assignee: Natacha Menjibar +Author: Natacha Menjibar +Created: 2025-09-01 +Tags: iop-design-tokens +URL: https://tree.taiga.io/project/penpot/us/11964 +================================ + +``` + +The fields section includes type-specific information: +- **Issues:** Status, Type ID, Severity ID, Priority ID +- **User Stories:** Status, Milestone, Points +- **Tasks:** Status, Milestone, Parent US + +## Reference + +- API docs: https://docs.taiga.io/api.html +- Taiga instance: https://tree.taiga.io +- API base: https://api.taiga.io/api/v1 +- Penpot project id: `345963` +- Penpot project slug: `penpot` diff --git a/opencode.json b/opencode.json deleted file mode 100644 index 6376bc70e5..0000000000 --- a/opencode.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "$schema": "https://opencode.ai/config.json", - "instructions": ["AGENTS.md"] -}