@chorus-aidlc/chorus-pi 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,444 @@
1
+ ---
2
+ name: develop
3
+ description: Chorus Development workflow — claim tasks, report work, manage sessions, and integrate with Pi subagents.
4
+ license: AGPL-3.0
5
+ metadata:
6
+ author: chorus
7
+ version: "0.17.0"
8
+ category: project-management
9
+ mcp_server: chorus
10
+ ---
11
+
12
+ # Develop Skill
13
+
14
+ This skill covers the **Development** stage of the AI-DLC workflow: claiming Tasks, writing code, reporting progress, submitting for verification, and managing sessions for sub-agent observability.
15
+
16
+ ---
17
+
18
+ ## Overview
19
+
20
+ Developer Agents take Tasks created by PM Agents (via `/proposal`) and turn them into working code. Each task follows:
21
+
22
+ ```
23
+ claim --> in_progress --> report work --> self-check AC --> submit for verify --> Admin /review
24
+ ```
25
+
26
+ For multi-agent parallel execution, Chorus integrates with Pi subagents (parallel workers) with full session-based observability.
27
+
28
+ ---
29
+
30
+ ## Tools
31
+
32
+ **Task Lifecycle:**
33
+
34
+ | Tool | Purpose |
35
+ |------|---------|
36
+ | `chorus_claim_task` | Claim an open task (open -> assigned) |
37
+ | `chorus_release_task` | Release a claimed task (assigned -> open) |
38
+ | `chorus_update_task` | Update task status (in_progress / to_verify) |
39
+ | `chorus_submit_for_verify` | Submit task for admin verification with summary |
40
+
41
+ **Work Reporting:**
42
+
43
+ | Tool | Purpose |
44
+ |------|---------|
45
+ | `chorus_report_work` | Report progress or completion (writes comment + records activity, with optional status update) |
46
+
47
+ **Acceptance Criteria:**
48
+
49
+ | Tool | Purpose |
50
+ |------|---------|
51
+ | `chorus_report_criteria_self_check` | Report self-check results (passed/failed + optional evidence) on structured acceptance criteria |
52
+
53
+ **Session (sub-agents only — main agent skips these):**
54
+
55
+ | Tool | Purpose |
56
+ |------|---------|
57
+ | `chorus_session_checkin_task` | Checkin to a task before starting work |
58
+ | `chorus_session_checkout_task` | Checkout from a task when work is done |
59
+
60
+ Sub-agents: always pass `sessionUuid` to `chorus_update_task` and `chorus_report_work` for attribution.
61
+ Main agent / Team Lead: call these tools without `sessionUuid` — no session needed.
62
+
63
+ **Shared tools** (checkin, query, comment, search, notifications): see `/chorus`
64
+
65
+ ---
66
+
67
+ ## Workflow
68
+
69
+ ### Step 1: Check In
70
+
71
+ ```
72
+ chorus_checkin()
73
+ ```
74
+
75
+ Review your persona, current assignments, and pending work counts.
76
+
77
+ ### Step 1.5: Get Your Session (Sub-Agents Only)
78
+
79
+ **Skip if you are the main agent or Team Lead.**
80
+
81
+ If you are a **sub-agent** (spawned via `subagent_spawn`), the Chorus extension automatically creates your session and injects it into your task prompt — look for a `--- Chorus session (auto-injected) ---` section containing your `Session UUID`. Keep it for all task operations.
82
+
83
+ ### Step 2: Find Work
84
+
85
+ ```
86
+ chorus_get_available_tasks({ projectUuid: "<project-uuid>" })
87
+ ```
88
+
89
+ Or check existing assignments:
90
+
91
+ ```
92
+ chorus_get_my_assignments()
93
+ ```
94
+
95
+ ### Step 3: Claim a Task
96
+
97
+ ```
98
+ chorus_get_task({ taskUuid: "<task-uuid>" }) # Review first
99
+ chorus_claim_task({ taskUuid: "<task-uuid>" })
100
+ ```
101
+
102
+ Check: description, acceptance criteria, priority, story points, related proposal/documents.
103
+
104
+ ### Step 4: Gather Context
105
+
106
+ Each task and proposal includes a `commentCount` field — use it to decide which entities have discussions worth reading.
107
+
108
+ 1. **Read the task** and identify dependencies:
109
+ ```
110
+ chorus_get_task({ taskUuid: "<task-uuid>" })
111
+ ```
112
+ Pay attention to `dependsOn` (upstream tasks) and `commentCount`.
113
+
114
+ 2. **Read task comments** (contains previous work reports, progress, feedback):
115
+ ```
116
+ chorus_get_comments({ targetType: "task", targetUuid: "<task-uuid>" })
117
+ ```
118
+
119
+ 3. **Review upstream dependency tasks** — your work likely builds on theirs:
120
+ ```
121
+ chorus_get_task({ taskUuid: "<dependency-task-uuid>" })
122
+ chorus_get_comments({ targetType: "task", targetUuid: "<dependency-task-uuid>" })
123
+ ```
124
+ Look for: files created, API contracts, interfaces, trade-offs.
125
+
126
+ 4. **Read the originating proposal** for design intent:
127
+ ```
128
+ chorus_get_proposal({ proposalUuid: "<proposal-uuid>", section: "documents" })
129
+ ```
130
+ (`chorus_get_proposal` defaults to `section: "basic"` — just metadata + a draft index. Pass `section: "documents"` for the design docs, or `section: "full"` for docs + task drafts.)
131
+
132
+ 5. **Read project documents** (PRD, tech design, ADR):
133
+ ```
134
+ chorus_get_documents({ projectUuid: "<project-uuid>" })
135
+ ```
136
+
137
+ > **Document update flow (OpenSpec mode):** if the originating proposal `description` contains a line `OpenSpec change slug: <slug>`, the project's PRD / tech_design / spec Documents are **mirrors** of files under `openspec/changes/<slug>/`. To update such a Document (e.g. clarify an AC, fix a spec scenario before resubmitting), load the `openspec-aware` skill at `skills/openspec-aware/SKILL.md` and follow §3.8: edit the local `.md` file first, then mirror it — prefer `chorus mcp call … --arg-file content=<file>`, falling back to the `chorus-mcp-call.sh` wrapper with `json_encode_file` when `chorus` is not on `PATH` — with `chorus_check_response` halting on error.
138
+ >
139
+ > **⛔ Do not** call `chorus_pm_update_document` directly from the MCP harness with a hand-typed `content` field in OpenSpec mode. The local file is the source of truth; agent-typed content drifts and burns tokens (`openspec-aware` §2 Rule 1).
140
+ >
141
+ > When the LAST task of an OpenSpec idea is verified, the extension injects an archive reminder (`openspec-aware` §3.9) — run `openspec archive <slug> --yes`, then mirror each emitted `openspec/specs/<capability>/spec.md` back via §3.8.
142
+ >
143
+ > In the no-OpenSpec fallback (no slug line, or no `openspec` CLI), edit the Document content directly via the existing MCP tool with no wrapper, no local file step.
144
+
145
+ ### Step 5: Start Working
146
+
147
+ **Sub-agent**: checkin to the task first:
148
+ ```
149
+ chorus_session_checkin_task({ sessionUuid: "<session-uuid>", taskUuid: "<task-uuid>" })
150
+ ```
151
+
152
+ Then mark as in-progress:
153
+ ```
154
+ # Sub-agent:
155
+ chorus_update_task({ taskUuid: "<task-uuid>", status: "in_progress", sessionUuid: "<session-uuid>" })
156
+
157
+ # Main agent:
158
+ chorus_update_task({ taskUuid: "<task-uuid>", status: "in_progress" })
159
+ ```
160
+
161
+ > **Dependency enforcement**: If this task has unresolved dependencies (dependsOn tasks not in `done` or `closed`), the call will be rejected with detailed blocker info. Use `chorus_get_unblocked_tasks` to find tasks you can start now.
162
+
163
+ ### Step 6: Report Progress
164
+
165
+ Report periodically with `chorus_report_work`. Include:
166
+ - What was completed
167
+ - Files created or modified
168
+ - Git commits and PRs
169
+ - Current status / remaining work
170
+ - Blockers or questions
171
+
172
+ ```
173
+ chorus_report_work({
174
+ taskUuid: "<task-uuid>",
175
+ report: "Progress:\n- Created src/services/auth.service.ts\n- Commit: abc1234\n- Remaining: unit tests",
176
+ sessionUuid: "<session-uuid>"
177
+ })
178
+ ```
179
+
180
+ Report with status update when complete:
181
+ ```
182
+ chorus_report_work({
183
+ taskUuid: "<task-uuid>",
184
+ report: "All implementation complete:\n- Files: ...\n- PR: https://github.com/org/repo/pull/42\n- All tests passing",
185
+ status: "to_verify",
186
+ sessionUuid: "<session-uuid>"
187
+ })
188
+ ```
189
+
190
+ ### Step 7: Self-Check Acceptance Criteria
191
+
192
+ Before submitting, check structured acceptance criteria:
193
+
194
+ ```
195
+ task = chorus_get_task({ taskUuid: "<task-uuid>" })
196
+
197
+ # If task.acceptanceCriteriaItems is non-empty:
198
+ chorus_report_criteria_self_check({
199
+ taskUuid: "<task-uuid>",
200
+ criteria: [
201
+ { uuid: "<criterion-uuid>", devStatus: "passed", devEvidence: "Unit tests cover this" },
202
+ { uuid: "<criterion-uuid>", devStatus: "passed", devEvidence: "Verified manually" }
203
+ ]
204
+ })
205
+ ```
206
+
207
+ > For **required** criteria, keep working until you can self-check as `passed`. Only use `failed` for **optional** criteria that are out of scope.
208
+
209
+ ### Step 8: Submit for Verification
210
+
211
+ **Sub-agents** — checkout first:
212
+ ```
213
+ chorus_session_checkout_task({ sessionUuid: "<session-uuid>", taskUuid: "<task-uuid>" })
214
+ ```
215
+
216
+ Then submit:
217
+ ```
218
+ chorus_submit_for_verify({
219
+ taskUuid: "<task-uuid>",
220
+ summary: "Implemented auth feature:\n- Added login/logout endpoints\n- JWT middleware\n- 95% test coverage\n- All AC self-checked (3/3 passed)"
221
+ })
222
+ ```
223
+
224
+ > `to_verify` does NOT unblock downstream tasks — only `done` (after admin verification) does.
225
+
226
+ > **Review Agent:** After `chorus_submit_for_verify`, the Chorus extension nudges you to spawn `chorus-task-reviewer` — an independent, read-only review agent. You MUST spawn it yourself (it is NOT auto-launched). **Use the blocking `subagent` tool** (it waits for the VERDICT and returns it) — wait for the VERDICT before proceeding. The reviewer posts a VERDICT comment on the task.
227
+
228
+ After the reviewer completes, read its VERDICT:
229
+ ```
230
+ chorus_get_comments({ targetType: "task", targetUuid: "<task-uuid>" })
231
+ ```
232
+ Find the most recent comment containing `VERDICT:` and act on it:
233
+
234
+ - **VERDICT: PASS** — All AC verified, no issues. Proceed to admin verification.
235
+ - **VERDICT: PASS WITH NOTES** — All AC verified, minor notes. Proceed to admin verification (notes are non-blocking).
236
+ - **VERDICT: FAIL** — BLOCKERs found. Do NOT verify. Fix the BLOCKERs listed in the reviewer's comment, then resubmit.
237
+
238
+ If no new `VERDICT:` comment appears after the reviewer returns, it exhausted its turn budget before posting. Respawn it ONCE with a concise-budget hint in the prompt: *"Stay within turn budget. Skip deep verification. Fetch task/proposal/comments, run only the core tests, and post your VERDICT comment within the first 12 turns."* If the second attempt still produces no VERDICT, review manually using the checklist and proceed.
239
+
240
+ > **Final code-review gateway (after the Idea's LAST task is verified):** when the task you just verified is the **last** task of its idea-rooted proposal, the feature is about to ship — the extension nudges you to spawn `chorus-code-reviewer` (gated by `CHORUS_ENABLE_CODE_REVIEWER`, default on). Spawn it yourself via the blocking `subagent` tool, passing the `ideaUuid` + round number; it reviews the Idea's **aggregate** code change across all its tasks (cross-task integration, architecture, security, regression, feature-level coverage) and posts one `VERDICT` comment on the **idea**. `PASS` / `PASS WITH NOTES` → ship; `FAIL` → fix via `/skill:quick-dev` (`chorus_create_tasks` with `proposalUuid` set to the current approved proposal so the fix tasks attach to it — do NOT reopen the verified tasks). Group related small BLOCKERs by default; split only materially large or independently testable fixes. Require AC self-check, independent task review, and admin verification for every fix task. Re-run aggregate review only after every fix is successfully `done`; a failed or cancelled fix stops the loop and escalates, bounded by `CHORUS_MAX_CODE_REVIEW_ROUNDS` (env, default 3; 0 = unlimited). Advisory/behavioral, like the other reviewers. Run it **before** any idea-completion report.
241
+
242
+ ### Step 9: Handle Review Feedback
243
+
244
+ If the reviewer returns **FAIL**, or the task is reopened after verification:
245
+
246
+ **All acceptance criteria are reset to pending** when a task is reopened.
247
+
248
+ 1. Check feedback:
249
+ ```
250
+ chorus_get_task({ taskUuid: "<task-uuid>" })
251
+ chorus_get_comments({ targetType: "task", targetUuid: "<task-uuid>" })
252
+ ```
253
+ 2. Fix every BLOCKER listed in the reviewer's FAIL comment.
254
+ 3. Checkin again, fix issues, report fixes, resubmit.
255
+
256
+ ### Step 10: Task Complete
257
+
258
+ Once Admin verifies (status: `done`), move to the next available task (back to Step 2).
259
+
260
+ ### Step 11: Idea Completion Report (advisory)
261
+
262
+ If the task you just self-verified was the LAST one of its Idea (every Task across every approved Proposal is now `done`/`closed`) and you have `document:write`, offer to call `chorus_create_report` via `AskUserQuestion`. The `content` parameter's description carries the section template. Skip on decline — the extension will remind on the next run.
263
+
264
+ ---
265
+
266
+ ## Session (Sub-Agents Only)
267
+
268
+ The Chorus extension **fully automates** session lifecycle — creation (on `subagent_spawn`, via `tool_call` task injection) and cleanup (on `subagent_manage close`) are handled by the extension. Sub-agents only do 3 things manually:
269
+
270
+ 1. `chorus_session_checkin_task({ sessionUuid, taskUuid })` — before starting work
271
+ 2. `chorus_session_checkout_task({ sessionUuid, taskUuid })` — when done (recommended; plugin also auto-checkouts on exit)
272
+ 3. Pass `sessionUuid` to `chorus_update_task` and `chorus_report_work` for attribution
273
+
274
+ **Main agent / Team Lead**: no session needed — call tools without `sessionUuid`.
275
+
276
+ ---
277
+
278
+ ## Parallel Sub-Agent Integration
279
+
280
+ When using Pi's subagents (`pi-subagents`) to run multiple sub-agents in parallel, Chorus provides full work observability. The `chorus-pi` extension automates the session lifecycle: when you `subagent_spawn` a worker, it creates a Chorus session and injects the session UUID + workflow into the worker's task; when you `subagent_manage close` the agent, it closes the session.
281
+
282
+ ### Two-Layer Architecture
283
+
284
+ | Layer | System | Purpose |
285
+ |-------|--------|---------|
286
+ | **Orchestration** | Pi subagents (`subagent_spawn` / `subagent_send` / `subagent_mailbox`) | Spawning sub-agents, follow-up tasks, inter-agent messaging |
287
+ | **Work Tracking** | Chorus | Task lifecycle, session observability, activity stream |
288
+
289
+ ### Team Lead Workflow
290
+
291
+ ```
292
+ # 1. Check in and plan
293
+ chorus_checkin()
294
+ chorus_list_tasks({ projectUuid: "<project-uuid>" })
295
+
296
+ # 2. Spawn sub-agents (async — returns immediately with an agentId)
297
+ # Pass only task UUIDs — the chorus-pi extension auto-injects the session
298
+ # UUID + workflow into the worker's task.
299
+ subagent_spawn({
300
+ agent: "worker",
301
+ task: "Your Chorus task UUID: <task-uuid>\nProject UUID: <project-uuid>\n\nImplement..."
302
+ })
303
+ # → returns agentId (sa_<uuid>); keep it to close the agent later.
304
+ ```
305
+
306
+ **What the Team Lead prompt needs:**
307
+ - Task UUID(s)
308
+ - NO session UUID, NO workflow boilerplate — the extension auto-injects everything
309
+ - The `agentId` returned by `subagent_spawn` (needed to `subagent_manage close` later)
310
+
311
+ ### Sub-Agent Workflow
312
+
313
+ The extension injects the session UUID + workflow into the sub-agent's task automatically (at `tool_call` time, before the subprocess starts). The sub-agent reads the `Session UUID:` from its task prompt and follows the injected steps:
314
+
315
+ ```
316
+ # 1. Checkin to task (sessionUuid comes from the auto-injected task)
317
+ chorus_session_checkin_task({ sessionUuid: "<my-session-uuid>", taskUuid: "<my-task-uuid>" })
318
+
319
+ # 2. Move to in_progress
320
+ chorus_update_task({ taskUuid: "<my-task-uuid>", status: "in_progress", sessionUuid: "<my-session-uuid>" })
321
+
322
+ # 3. Do work... code, test, commit...
323
+
324
+ # 4. Report progress
325
+ chorus_report_work({ taskUuid: "<my-task-uuid>", report: "...", sessionUuid: "<my-session-uuid>" })
326
+
327
+ # 5. Checkout and submit
328
+ chorus_session_checkout_task({ sessionUuid: "<my-session-uuid>", taskUuid: "<my-task-uuid>" })
329
+ chorus_submit_for_verify({ taskUuid: "<my-task-uuid>", summary: "..." })
330
+
331
+ # 6. (Optional) notify the team lead via mailbox — you need its agentId
332
+ subagent_mailbox({ action: "send", agentId: "<team-lead-agentId>", message: "Task complete" })
333
+
334
+ # DO NOT call chorus_close_session — the extension closes it when the
335
+ # team lead runs subagent_manage({ action: "close", agentId: "<my-agentId>" })
336
+ ```
337
+
338
+ ### Handling Task Dependencies (DAG)
339
+
340
+ > **Server-side enforcement**: `chorus_update_task(status: "in_progress")` rejects if any `dependsOn` task is not `done` or `closed`.
341
+
342
+ **Wave-based execution (recommended):**
343
+ 1. `chorus_get_unblocked_tasks` — find ready tasks
344
+ 2. `subagent_spawn` workers for Wave 1 (async; keep the agentIds)
345
+ 3. Wait for `to_verify` (poll `chorus_list_tasks` or read the async completion messages), then **verify each task** (`chorus_admin_verify_task` → `done`)
346
+ 4. `subagent_manage close` each finished worker (releases its slot + closes its Chorus session)
347
+ 5. `chorus_get_unblocked_tasks` — find newly unblocked tasks (Wave 2)
348
+ 6. Repeat until all tasks done
349
+
350
+ > **Critical:** `to_verify` does NOT resolve dependencies — only `done` or `closed` does. The Team Lead must verify tasks between waves. Also remember to `subagent_manage close` finished workers — Pi limits concurrent sub-agents and `completed` does not release the slot.
351
+
352
+ ### Multiple Tasks Per Sub-Agent
353
+
354
+ A single sub-agent can work on multiple tasks sequentially:
355
+
356
+ ```
357
+ subagent_spawn({
358
+ agent: "worker",
359
+ task: "Your Chorus tasks (work in order):\n1. task-schema-uuid\n2. task-api-uuid (depends on #1)\n\nFor EACH task: checkin -> in_progress -> work -> report -> checkout -> submit_for_verify"
360
+ })
361
+ ```
362
+
363
+ ### MCP Access for Sub-Agents
364
+
365
+ Sub-agents need MCP configured at **project level** (`.mcp.json`) or **user level** (`~/.pi/agent/mcp.json`). The chorus-pi extension's session injection works regardless, because it calls chorus over its own MCP-over-HTTP fetch (not the sub-agent's gateway).
366
+
367
+ ### Troubleshooting
368
+
369
+ | Problem | Solution |
370
+ |---------|----------|
371
+ | Sub-agent can't access Chorus MCP tools | Verify MCP is configured at project level, API key has developer role |
372
+ | UI doesn't show active workers | Sub-agent forgot `chorus_session_checkin_task`. Check: `chorus_get_session` |
373
+ | Session disappears from Settings | No activity for 1h (default lists hide stale sessions). The session row still exists — it's reachable via MCP `chorus_list_sessions` / `chorus_get_session`. Send a heartbeat (or any session-touching tool) to make it visible again, or check whether the agent crashed |
374
+ | Task stuck in wrong status | Spawn new sub-agent with same name (plugin auto-reopens session), or use `chorus_update_task` to reset |
375
+ | Duplicate sessions | Never call `chorus_create_session` — plugin handles all session creation. Close extras via Settings page |
376
+ | Sub-agent didn't receive session | Check plugin is loaded (`/plugin list`) and `CHORUS_URL` is set. Ensure `name` parameter is set |
377
+
378
+ ---
379
+
380
+ ## Work Report Best Practices
381
+
382
+ **Good report (enables session continuity):**
383
+ ```
384
+ Implemented password reset flow:
385
+
386
+ Files created/modified:
387
+ - src/services/auth.service.ts (new)
388
+ - src/app/api/auth/reset/route.ts (new)
389
+ - tests/auth/reset.test.ts (new)
390
+
391
+ Git:
392
+ - Commit: a1b2c3d "feat: password reset flow"
393
+ - PR: https://github.com/org/repo/pull/15
394
+
395
+ Implementation details:
396
+ - POST /api/auth/reset-request: sends email with token
397
+ - Token expires after 1 hour, single-use
398
+ - Rate limiting: 3 requests/hour/email
399
+ - 12 new tests, all passing
400
+
401
+ Acceptance criteria:
402
+ - [x] User can request reset via email
403
+ - [x] Reset link expires after 1 hour
404
+ - [x] Rate limiting prevents abuse
405
+ ```
406
+
407
+ **Bad report:** `Done.`
408
+
409
+ ---
410
+
411
+ ## Tips
412
+
413
+ - **Read task comments first** — they contain previous work reports for session continuity
414
+ - **Check upstream dependencies** — read `dependsOn` tasks and their comments for interfaces/APIs
415
+ - **Read the originating proposal** — understand design rationale and task DAG
416
+ - **Use `commentCount`** — skip fetching comments on entities with count 0
417
+ - Report progress frequently — include file paths, commits, and PRs
418
+ - Write detailed submit summaries — Admin needs them to verify
419
+ - If blocked, add a comment and consider releasing the task
420
+ - One task at a time: finish or release before claiming another
421
+ - Use meaningful sub-agent names — they become Chorus session names
422
+
423
+ ---
424
+
425
+ ## When to Release a Task
426
+
427
+ Release if:
428
+ - You can't complete it (missing knowledge, blocked)
429
+ - A higher-priority task needs attention
430
+ - You won't finish in a reasonable timeframe
431
+
432
+ ```
433
+ chorus_release_task({ taskUuid: "<task-uuid>" })
434
+ chorus_add_comment({ targetType: "task", targetUuid: "<task-uuid>", content: "Releasing: reason..." })
435
+ ```
436
+
437
+ ---
438
+
439
+ ## Next
440
+
441
+ - After submitting for verification, an Admin reviews using `/review`
442
+ - **Human "Start Development" wake:** a `start_development` wake (the human clicked **Start Development** on the idea-detail panel) means: claim and execute ALL remaining tasks of the idea's approved proposal in dependency order — loop this workflow until no claimable task remains, leaving `to_verify` and other-session tasks untouched.
443
+ - **Human "Yolo" wake:** a `yolo_requested` wake (the human clicked **Yolo** on the idea-detail panel) means: drive the WHOLE idea to done via the yolo skill (the full-auto AI-DLC pipeline), not just the execute stage — read the idea's current state and resume from whatever phase it is in. Unlike `start_development` it is stage-adaptive, and it must never merge or push a PR without explicit human approval.
444
+ - For platform overview and shared tools, see `/chorus`
@@ -0,0 +1,68 @@
1
+ ---
2
+ name: docs
3
+ description: Chorus documentation router — consult the live Chorus docs site to answer product-usage questions (UI workflow, agent/plugin setup, API/MCP, deployment, operations).
4
+ license: AGPL-3.0
5
+ metadata:
6
+ author: chorus
7
+ version: "0.17.0"
8
+ category: project-management
9
+ mcp_server: chorus
10
+ ---
11
+
12
+ # Docs Skill
13
+
14
+ This skill is a **thin router to the live Chorus documentation site** (`https://doc.chorus-ai.dev`). Use it to answer questions about **how to use, configure, deploy, or operate Chorus** — grounding the answer in the current published docs instead of memory.
15
+
16
+ It is **not** a workflow skill: it does not drive the AI-DLC pipeline. For that, use `/skill:idea`, `/skill:proposal`, `/skill:develop`, `/skill:review`, or `/skill:yolo`.
17
+
18
+ ---
19
+
20
+ ## When to Use
21
+
22
+ Use this skill whenever the user asks a **product-usage** question about Chorus, such as:
23
+
24
+ - **UI workflow** — how the Idea → Proposal → Task → Verify pipeline works in the web app, what a control does, how statuses flow.
25
+ - **Agent setup** — creating an API key, permissions and role presets, connecting an agent.
26
+ - **Plugin setup** — installing/configuring the Chorus plugin for your coding agent.
27
+ - **API / MCP** — the REST API, the MCP tool surface, authentication, real-time events.
28
+ - **Deployment** — self-hosting, the CDK stack, environment configuration.
29
+ - **Operations / troubleshooting** — running Chorus, diagnosing connection or setup problems.
30
+
31
+ Do **NOT** use it to *drive* the pipeline (claiming ideas, writing proposals, executing tasks) — that is what the stage skills above are for. This skill answers "how does the product work / how do I set it up"; the stage skills *do* the work.
32
+
33
+ ---
34
+
35
+ ## Access Convention
36
+
37
+ The docs site is agent-friendly. Follow this three-step convention every time. **Do NOT** answer from memory, and **do NOT** hardcode a page list — the index is the source of truth and pages change over time.
38
+
39
+ 1. **Fetch the index.** Get `https://doc.chorus-ai.dev/llms.txt` — a machine-readable index that lists every documentation page with a one-line summary and its `.md` URL. **The index is a single, unlocalized file that lives ONLY at the root `/llms.txt`. Never prefix it with a locale — `https://doc.chorus-ai.dev/zh/llms.txt` (and `/ja/`, `/ko/`) does NOT exist and returns 404.**
40
+ 2. **Fetch the relevant page(s) as raw Markdown.** Pick the page(s) that match the question from the index, then fetch the raw Markdown by **appending `.md`** to the page URL (e.g. `https://doc.chorus-ai.dev/guides/getting-started` → `https://doc.chorus-ai.dev/guides/getting-started.md`).
41
+ 3. **Ground the answer and link the human page.** Base your answer on the fetched Markdown, and link the human-facing page (the `.md` URL **without** the `.md` suffix) so the user can open it in a browser.
42
+
43
+ Use whatever web-fetch capability your environment provides (your built-in fetch tool, `curl`, etc.) — this skill states the convention, not a specific tool binding.
44
+
45
+ ---
46
+
47
+ ## Locale
48
+
49
+ The `/llms.txt` index itself is **not** localized — there is exactly one, at the root. Localization applies to **pages**, not the index:
50
+
51
+ - The index always lives at `https://doc.chorus-ai.dev/llms.txt` and lists the root (`en`) page URLs. **Do not look for `/zh/llms.txt` — it does not exist.**
52
+ - `en` is the root (unprefixed): `https://doc.chorus-ai.dev/...`
53
+ - `zh`, `ja`, `ko` are **path-prefixed pages**: take a page path from the index and prepend the locale — `https://doc.chorus-ai.dev/zh/...`, `/ja/...`, `/ko/...`
54
+ - Appending `.md` works on the prefixed pages too (e.g. `https://doc.chorus-ai.dev/zh/guides/getting-started.md`).
55
+ - **Match the user's language** when the docs exist in it; fall back to `en` otherwise.
56
+
57
+ ---
58
+
59
+ ## Relationship to the Workflow Skills
60
+
61
+ This skill **complements** the AI-DLC workflow skills — it does not replace them:
62
+
63
+ | The user wants to… | Use |
64
+ |--------------------|-----|
65
+ | Learn how to use / configure / deploy / operate Chorus | **this skill** (`/skill:docs`) |
66
+ | Drive an idea / write a proposal / execute or verify a task | `/skill:idea`, `/skill:proposal`, `/skill:develop`, `/skill:review`, `/skill:yolo` |
67
+
68
+ Always use the live host `doc.chorus-ai.dev`. `docs.chorus-ai.dev` (with an "s") is a dead link — never use it.