@triclaps/cli 0.0.3 → 0.0.5

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.
Files changed (47) hide show
  1. package/adapters/hermes_claps_adapter.py +697 -0
  2. package/index.js +14045 -6391
  3. package/package.json +2 -2
  4. package/skills/assignment-kickoff-orchestration/SKILL.md +0 -53
  5. package/skills/assignment-kickoff-orchestration/agents/openai.yaml +0 -4
  6. package/skills/assignment-kickoff-orchestration/references/kickoff-checklist.md +0 -23
  7. package/skills/chat-task-delivery/SKILL.md +0 -33
  8. package/skills/chat-task-delivery/agents/openai.yaml +0 -4
  9. package/skills/claps-cli/SKILL.md +0 -203
  10. package/skills/claps-cli/agents/openai.yaml +0 -4
  11. package/skills/claps-cli/references/capabilities.md +0 -96
  12. package/skills/execution-context-recovery/SKILL.md +0 -51
  13. package/skills/execution-context-recovery/agents/openai.yaml +0 -4
  14. package/skills/git-delivery/SKILL.md +0 -41
  15. package/skills/git-delivery/agents/openai.yaml +0 -4
  16. package/skills/manifest.json +0 -324
  17. package/skills/merge-closeout/SKILL.md +0 -46
  18. package/skills/merge-closeout/agents/openai.yaml +0 -4
  19. package/skills/planning-baseline/SKILL.md +0 -43
  20. package/skills/planning-baseline/agents/openai.yaml +0 -4
  21. package/skills/planning-baseline/references/state-examples.md +0 -75
  22. package/skills/planning-session-convergence/SKILL.md +0 -50
  23. package/skills/planning-session-convergence/agents/openai.yaml +0 -4
  24. package/skills/preview-gateway/SKILL.md +0 -49
  25. package/skills/preview-gateway/agents/openai.yaml +0 -4
  26. package/skills/project-admin/SKILL.md +0 -44
  27. package/skills/project-admin/agents/openai.yaml +0 -4
  28. package/skills/repo-binding-closure/SKILL.md +0 -54
  29. package/skills/repo-binding-closure/agents/openai.yaml +0 -4
  30. package/skills/repo-binding-closure/references/execution-lane-checklist.md +0 -27
  31. package/skills/review-handoff/SKILL.md +0 -40
  32. package/skills/review-handoff/agents/openai.yaml +0 -4
  33. package/skills/roadmap.json +0 -127
  34. package/skills/task-admin/SKILL.md +0 -59
  35. package/skills/task-admin/agents/openai.yaml +0 -4
  36. package/skills/task-contract-draft/SKILL.md +0 -80
  37. package/skills/task-contract-draft/agents/openai.yaml +0 -4
  38. package/skills/task-detail-lookup/SKILL.md +0 -51
  39. package/skills/task-detail-lookup/agents/openai.yaml +0 -4
  40. package/skills/task-pool-triage/SKILL.md +0 -56
  41. package/skills/task-pool-triage/agents/openai.yaml +0 -4
  42. package/skills/task-stage-summary-backfill/SKILL.md +0 -75
  43. package/skills/task-stage-summary-backfill/agents/openai.yaml +0 -4
  44. package/skills/user-story-delivery/SKILL.md +0 -76
  45. package/skills/user-story-delivery/agents/openai.yaml +0 -4
  46. package/skills/workspace-bootstrap/SKILL.md +0 -41
  47. package/skills/workspace-bootstrap/agents/openai.yaml +0 -4
@@ -1,54 +0,0 @@
1
- ---
2
- name: repo-binding-closure
3
- description: >
4
- Use this skill when CLAPS chat or task execution is ready to touch a repo, but
5
- repo binding details are missing, stale, split across messages, or not yet
6
- reflected in execution_context. This covers recovering repo URL, default
7
- branch, monorepo root, validation path, and the handoff into workspace setup.
8
- aliases:
9
- - repo-binding
10
- tags:
11
- - execution
12
- - repo
13
- - setup
14
- ---
15
-
16
- # repo-binding-closure
17
-
18
- Use this skill when execution is blocked because CLAPS knows the task, but not yet the repo contract needed to run it safely.
19
-
20
- ## Goals
21
-
22
- - Close the gap between chat intent and executable repo context.
23
- - Recover missing repo binding and execution context without guessing.
24
- - Hand off a clean payload into `workspace-bootstrap` instead of burying repo decisions in free-form chat.
25
-
26
- ## Flow
27
-
28
- 1. Read the current task and chat state
29
- Collect the intended repo, branch, root path, validation commands, deployment surface, and any prior binding already visible in project or task context.
30
-
31
- 2. Isolate the missing fields
32
- Call out exactly which binding fields are missing or contradictory:
33
- - repo URL or provider path
34
- - default branch
35
- - monorepo root or app path
36
- - validation command
37
- - preview or deploy surface
38
-
39
- 3. Ask only the questions that unblock execution
40
- If the repo contract is incomplete, ask short, decision-driving questions instead of launching into workspace setup with guesses.
41
-
42
- 4. Write the recovered context back
43
- Patch the task or execution context so later steps can reuse stable repo metadata instead of re-deriving it from chat.
44
-
45
- 5. Hand off to execution
46
- Once repo binding is coherent, move into `workspace-bootstrap` and then the normal CLAPS delivery path.
47
-
48
- ## Guidance
49
-
50
- - Treat repo binding as a hard prerequisite, not a soft hint.
51
- - Prefer one stable execution context record over repeated ad hoc clarification.
52
- - If the task spans multiple repos, force that decision into explicit scope before bootstrapping workspaces.
53
- - If validation or preview expectations are missing, surface that now; do not leave it for review-handoff.
54
- - Use `references/execution-lane-checklist.md` to translate chat state into concrete repo-binding and execution-lane fields before handing off.
@@ -1,4 +0,0 @@
1
- interface:
2
- display_name: "repo-binding-closure"
3
- short_description: "Recover repo binding and execution context before workspace setup"
4
- default_prompt: "Use repo-binding-closure when CLAPS work is blocked on missing or stale repo binding, branch, root path, validation commands, or execution context."
@@ -1,27 +0,0 @@
1
- # Repo Binding Closure Checklist
2
-
3
- Use this note when CLAPS chat has enough context to execute, but the repo contract is still incomplete or split across messages.
4
-
5
- ## Minimum binding contract
6
-
7
- - Repo URL or provider path is explicit.
8
- - Default branch or base branch is explicit.
9
- - Monorepo root, app path, or workspace root is explicit.
10
- - Validation command or success check is explicit.
11
- - Preview or deploy surface is named if the task changes UX.
12
-
13
- ## Read order
14
-
15
- 1. Current project repo binding, if one already exists.
16
- 2. Focus task metadata and any existing `execution_context`.
17
- 3. The latest project chat turns that mention repo, branch, workspace path, preview, or validation.
18
-
19
- ## Write-back target
20
-
21
- - Prefer updating one stable `project_repo_binding` plus one coherent `execution_context`.
22
- - If the repo contract is still partial, persist the blocker as a missing field instead of inventing defaults.
23
-
24
- ## Hand-off conditions
25
-
26
- - Hand off to `workspace-bootstrap` only when the repo path, branch base, and validation target are coherent.
27
- - Hand off to `execution-context-recovery` if the repo contract is known but the execution lane is still inconsistent.
@@ -1,40 +0,0 @@
1
- ---
2
- name: review-handoff
3
- description: >
4
- Use this skill when CLAPS work is implemented and now needs review-gate
5
- evidence, delivery artifacts, reviewer routing, and a concise handoff back
6
- into the task or conversation.
7
- ---
8
-
9
- # review-handoff
10
-
11
- Use this skill when coding is no longer the bottleneck and the remaining work is getting the change reviewable inside CLAPS.
12
-
13
- ## Goals
14
-
15
- - Turn raw execution output into a clear review handoff.
16
- - Make review gates, validation evidence, and remaining risks easy to inspect.
17
- - Route the next reviewer or approver explicitly instead of leaving the thread hanging.
18
-
19
- ## Flow
20
-
21
- 1. Collect evidence
22
- Gather the diff summary, tests run, screenshots or logs when relevant, and any branch, commit, preview, or MR links created during execution.
23
-
24
- 2. Update review gates
25
- Mark each required gate with its current state, note what was validated, and call out anything intentionally skipped.
26
-
27
- 3. Write the delivery summary
28
- Summarize what changed, how it was checked, what still needs human attention, and the next concrete decision or approval.
29
-
30
- 4. Route the next step
31
- If another human or agent should act next, state that owner clearly. If the work is blocked, say what evidence or decision is missing.
32
-
33
- ## Guidance
34
-
35
- - Prefer review evidence over general confidence claims.
36
- - If validation did not run, say so plainly and explain why.
37
- - If the repo is small or newly bootstrapped, a concise checked-in validation note such as `docs/validation.md` is better than leaving validation only in terminal output.
38
- - Keep the handoff short enough to scan, but complete enough that a reviewer does not need to reconstruct the execution from logs.
39
- - Use this after `git-delivery` when the repo state is ready, not while core implementation is still moving.
40
- - Do not introduce this as a default artifact during kickoff execution for blank or near-blank repos; implementation and minimal validation come first.
@@ -1,4 +0,0 @@
1
- interface:
2
- display_name: "review-handoff"
3
- short_description: "Package review evidence and reviewer routing for CLAPS delivery"
4
- default_prompt: "Use review-handoff when implementation is done and CLAPS now needs review-gate status, validation evidence, delivery artifacts, and an explicit next reviewer."
@@ -1,127 +0,0 @@
1
- {
2
- "lastReviewed": "2026-04-18",
3
- "shippedHighlights": [
4
- "`claps-cli register`, `run`, `version`, `doctor`, `sync-runtime`, and `preview expose` are implemented and tested.",
5
- "`claps-cli session login`, `projects`, `project get|create|archive|repo-binding get|set`, and `task create|delete|transition|review` now provide explicit human-session project and task administration instead of forcing those actions through chat control lines.",
6
- "Runtime asset management injects the managed `skills/claps-cli` bundle and repairs drift automatically.",
7
- "Canonical skill metadata now lives in `skills/manifest.json`, so CLI help, `claps-cli skills`, `claps-cli skill <name>`, and `claps-cli skills audit` share one checked-in source of truth.",
8
- "Canonical skill entries now carry `triggers`, so the CLI can expose when each skill should be used instead of only printing names.",
9
- "Canonical manifest tags plus draft-skill frontmatter tags now drive real `claps-cli skills --tag/--match/--category` filtering, so operators can slice the checked-in inventory without scanning the full list.",
10
- "`claps-cli skills --search <text>` now searches canonical and draft skills across names, aliases, summaries, tags, and trigger text, so operators can find the right workflow from the phrase they actually remember.",
11
- "`claps-cli skills` and `claps-cli skills audit` now surface checked-in draft skills that are not yet promoted into `skills/manifest.json`, so backlog skills can live in-repo without falling back to memory or TODO-only notes.",
12
- "`claps-cli skill <name>` now reads checked-in draft skills as well as canonical ones, so draft workflow assets can be inspected and reused before promotion.",
13
- "Draft skills can now carry checked-in `aliases` and `tags` in `SKILL.md`, so operator shorthand and backlog taxonomy survive before promotion into the canonical manifest.",
14
- "Draft skill audit now validates more than existence: it checks `SKILL.md` frontmatter plus recommended `agents/openai.yaml` metadata so backlog skills do not silently rot.",
15
- "`claps-cli skills todo` now generates the checked-in roadmap snapshot from manifest data, draft skills, and this roadmap file so `skills-todo.md` does not drift by hand.",
16
- "`claps-cli skills --json` now emits machine-readable filtered skill discovery for automation, while keeping the human-readable default for operators.",
17
- "`claps-cli doctor` now aggregates env presence, API `/health` reachability, runtime asset health, and canonical skill audit status in one operator-facing check.",
18
- "`claps-cli skills audit --check-todo` now folds `skills-todo.md` drift into the canonical skill audit so repo checks can fail before stale roadmap snapshots merge.",
19
- "`planning-baseline` now ships a checked-in `references/state-examples.md` note so agents can anchor planning-session fields and handoff expectations to the current contract.",
20
- "`repo-binding-closure` and `assignment-kickoff-orchestration` now ship checked-in reference checklists so draft execution skills preserve the current repo-binding and kickoff contract instead of relying on memory alone.",
21
- "Project chat execution lane now supports planning-baseline creation, repo-binding editing, and prepared `execution_context` creation directly in chat, so the skill backlog can focus on convergence and kickoff instead of basic data entry.",
22
- "`repo-binding-closure` is now canonical because project chat can persist repo binding and hand execution prep forward without bouncing operators to a separate settings surface.",
23
- "Task-pool triage now has a first-class task page UI for weighted tally review and human approve / reject actions, which makes the draft `task-pool-triage` skill worth keeping checked in while the rejection / dispatch loop still hardens."
24
- ],
25
- "idealCliSurface": [
26
- {
27
- "title": "Capability lifecycle",
28
- "items": ["session login", "register", "run", "version", "doctor", "sync-runtime", "skills", "skills --json", "skills --tag/--match/--category", "skill <name>", "skills audit", "skills todo"]
29
- },
30
- {
31
- "title": "Explicit resource administration",
32
- "items": ["project list/get/create/archive", "project repo-binding get/set", "task get/create/delete/transition/review", "project-scoped task discovery"]
33
- },
34
- {
35
- "title": "Workspace execution",
36
- "items": ["repo binding validation", "worktree bootstrap", "branch prep", "execution kickoff", "progress reporting", "delivery artifact capture"]
37
- },
38
- {
39
- "title": "Conversation execution",
40
- "items": ["clarification helpers", "task creation/update patches", "planning baseline handoff", "follow-up routing", "delivery summaries back into CLAPS"]
41
- },
42
- {
43
- "title": "Review and verification",
44
- "items": ["preview exposure", "review-gate helpers", "artifact collection", "post-delivery summaries"]
45
- },
46
- {
47
- "title": "Maintenance",
48
- "items": ["deterministic runtime asset sync", "canonical skill inspection", "free-text skill discovery across names, aliases, summaries, tags, and triggers", "multi-tag and category-aware skill discovery", "machine-readable skill discovery", "roadmap snapshot generation", "upgrade guidance"]
49
- }
50
- ],
51
- "idealSkillSet": [
52
- {
53
- "title": "Runtime",
54
- "skills": ["claps-cli"]
55
- },
56
- {
57
- "title": "Conversation and planning",
58
- "skills": ["chat-task-delivery", "user-story-delivery", "planning-baseline", "planning-session-convergence", "task-pool-triage"]
59
- },
60
- {
61
- "title": "Explicit resource administration",
62
- "skills": ["project-admin", "task-detail-lookup", "task-admin"]
63
- },
64
- {
65
- "title": "Environment and execution",
66
- "skills": ["preview-gateway", "workspace-bootstrap", "repo-binding-closure", "execution-context-recovery", "assignment-kickoff-orchestration"]
67
- },
68
- {
69
- "title": "Delivery and review",
70
- "skills": ["git-delivery", "review-handoff", "merge-closeout"]
71
- },
72
- {
73
- "title": "Candidate next canonical skills only after the product path hardens",
74
- "skills": ["execution-context-recovery", "task-pool-triage", "merge-closeout"]
75
- },
76
- {
77
- "title": "Incubating draft skills that should stay non-canonical until the product stabilizes further",
78
- "skills": ["planning-session-convergence", "assignment-kickoff-orchestration"]
79
- }
80
- ],
81
- "promotionGates": [
82
- {
83
- "skill": "execution-context-recovery",
84
- "gate": "chat can create, repair, and advance `execution_context` through kickoff, heartbeat, and self-check without falling back to worker-only prototype paths."
85
- },
86
- {
87
- "skill": "merge-closeout",
88
- "gate": "MR approval, merge status sync, and post-merge task or conversation closeout have a stable provider contract instead of the current prototype-only path."
89
- },
90
- {
91
- "skill": "task-pool-triage",
92
- "gate": "channel-created task voting, dispatch thresholds, and follow-up routing stop changing across chat and task-pool surfaces."
93
- },
94
- {
95
- "skill": "planning-session-convergence",
96
- "gate": "planning_session becomes a durable main-agent contract with explicit draft selection, open-question tracking, and write-back from channel chat instead of only a one-shot baseline helper."
97
- },
98
- {
99
- "skill": "assignment-kickoff-orchestration",
100
- "gate": "chat can create or accept assignments, move `execution_context` from `prepared` into active kickoff, and keep heartbeat or self-check state synced back into the main task and conversation surfaces."
101
- }
102
- ],
103
- "nearTermGaps": [
104
- "Expand runtime injection from a single managed skill to a true managed CLAPS bundle when more platform skills become runtime-critical.",
105
- "Add `references/` or `scripts/` assets for `workspace-bootstrap`, `git-delivery`, `review-handoff`, `execution-context-recovery`, `task-pool-triage`, `planning-session-convergence`, and `merge-closeout` once the worktree and closeout contracts stop moving.",
106
- "Add smoke coverage for `claps-cli preview expose` success and failure formatting with mocked gateway responses.",
107
- "Add `doctor` sub-checks for authenticated API validation and runtime binary presence once the runtime contract stabilizes.",
108
- "Consider `claps-cli skill <name> --json` and `claps-cli skills audit --json` once external automation needs structured single-skill inspection or audit output, not just list discovery.",
109
- "Consider a future `claps-cli skills promote <name>` workflow only after draft-to-canonical promotion rules stop changing."
110
- ],
111
- "watchList": [
112
- "The execution lane now exposes planning-baseline creation, repo binding editing, and prepared execution-context creation inside project chat. The next gap is convergence and kickoff, which is why `planning-session-convergence` and `assignment-kickoff-orchestration` are now checked in as draft skills instead of staying roadmap-only ideas.",
113
- "Keep the broad execution-lane browser regression API-seeded for now; the new dedicated chat repo-binding browser test covers the real UI path without making every kickoff scenario pay setup tax.",
114
- "Weighted task-pool voting is now stable enough for a checked-in draft skill, but not yet stable enough to freeze as a canonical workflow contract.",
115
- "Repo binding closure is now canonical, but `execution-context-recovery` still needs heartbeat and self-check coverage before it should graduate.",
116
- "Review evidence is now important enough to track as a CLAPS-native workflow skill, but final merge and closeout behavior is still provider- and product-dependent.",
117
- "If draft skill count keeps growing, split checked-in skill metadata into canonical plus roadmap sections instead of overloading one manifest forever.",
118
- "Tags, category filters, and free-text search now drive real CLI discovery, so keep the taxonomy intentionally small and avoid near-duplicate labels."
119
- ],
120
- "updateRule": [
121
- "Decide whether the new behavior belongs in CLI, a skill, or both.",
122
- "If it is a canonical skill, update `skills/manifest.json` and the skill assets under `skills/`.",
123
- "If it is not canonical yet but worth preserving, check in a draft skill under `skills/` so `claps-cli skills` and `claps-cli skills audit` can surface it.",
124
- "Run `claps-cli skills audit` and `claps-cli skills todo --check`.",
125
- "Refresh `skills-todo.md` from the generated snapshot when the roadmap changes."
126
- ]
127
- }
@@ -1,59 +0,0 @@
1
- ---
2
- name: task-admin
3
- description: >
4
- Use this skill when a user wants explicit CLAPS task administration from the
5
- CLI: creating tasks, reading task detail, listing project tasks, soft-deleting
6
- a task, transitioning task status, or reviewing a task with an explicit
7
- session-backed admin flow.
8
- tags:
9
- - admin
10
- - task
11
- - workflow
12
- ---
13
-
14
- # task-admin
15
-
16
- Use this skill when the operator wants deterministic task commands instead of chat control lines.
17
-
18
- ## Command surface
19
-
20
- ```bash
21
- claps-cli session login [--email <email>] [--display-name <name>] [--org-id <id>] [--org-slug <slug>]
22
- claps-cli task get --task-id <task-id> [--json] [--session-token <token>] [--api-base-url <url>]
23
- claps-cli tasks --project-id <project-id> [--json] [--session-token <token>] [--api-base-url <url>]
24
- claps-cli task create --project-id <project-id> --title <title> [--summary <text>] [--description <text>] [--priority <critical|high|medium|low>] [--reviewer-member-id <member-id>] [--definition-of-done <text>] [--acceptance-checklist <item1,item2>] [--context-links <item1,item2>] [--output-requirements <item1,item2>] [--depends-on-task-ids <id1,id2>] [--due-at <iso>] [--start-after <iso>] [--auto-assign-agent-id <agent-id>] [--auto-assign-instructions <text>] [--json] [--session-token <token>] [--api-base-url <url>]
25
- claps-cli task delete --task-id <task-id> [--json] [--session-token <token>] [--api-base-url <url>]
26
- claps-cli task transition --task-id <task-id> --to-status <status> [--note <text>] [--json] [--session-token <token>] [--api-base-url <url>]
27
- claps-cli task review --task-id <task-id> --decision <approved|changes_requested> [--note <text>] [--json] [--session-token <token>] [--api-base-url <url>]
28
- claps-cli task stage list --task-id <task-id> [--json] [--session-token <token>] [--api-base-url <url>]
29
- claps-cli task stage set --task-id <task-id> --key <stage-key> [--title <text>] [--kind <planning|execution|review|delivery|custom>] [--order <int>] [--status <pending|in_progress|blocked|done|waived> --summary <text>] [--evidence <item1,item2>] [--append-evidence <true|false>] [--started-at <iso>] [--completed-at <iso>] [--assignment-id <assignment-id>] [--json] [--session-token <token>] [--api-base-url <url>]
30
- claps-cli task stage complete --task-id <task-id> --key <stage-key> --summary <text> [--evidence <item1,item2>] [--assignment-id <assignment-id>] [--json] [--session-token <token>] [--api-base-url <url>]
31
- claps-cli task stage block --task-id <task-id> --key <stage-key> --summary <text> [--assignment-id <assignment-id>] [--json] [--session-token <token>] [--api-base-url <url>]
32
- claps-cli task stage reopen --task-id <task-id> --key <stage-key> --summary <text> [--status <pending|in_progress>] [--assignment-id <assignment-id>] [--json] [--session-token <token>] [--api-base-url <url>]
33
- claps-cli task review-result submit --task-id <task-id> [--review-result-json <json>] [--decision <pass|remediate|escalate>] [--summary <text>] [--quality-completeness <high|medium|low>] [--quality-confidence <high|medium|low>] [--quality-risk <high|medium|low>] [--next-action <deliver|remediate|await_human>] [--next-action-summary <text>] [--stage-checks-json <json>] [--requirement-checks-json <json>] [--validations-json <json>] [--assignment-id <assignment-id>] [--json] [--session-token <token>] [--api-base-url <url>]
34
- claps-cli task review-readiness --task-id <task-id> [--json] [--session-token <token>] [--api-base-url <url>]
35
- claps-cli task delivery-readiness --task-id <task-id> [--json] [--session-token <token>] [--api-base-url <url>]
36
- claps-cli task remediation-budget --task-id <task-id> [--max-attempts <int>] [--json] [--session-token <token>] [--api-base-url <url>]
37
- ```
38
-
39
- ## Flow
40
-
41
- 1. If the caller needs task mutation and does not already have a human session token, start with `claps-cli session login`.
42
- 2. Use `claps-cli task get` when the task id is already known and only detail lookup is needed. It accepts either `CLAPS_SESSION_TOKEN` / `--session-token` or `CLAPS_AGENT_TOKEN`.
43
- 3. Use `claps-cli tasks --project-id <project-id>` for project-scoped discovery before creating a duplicate task. It accepts either `CLAPS_SESSION_TOKEN` / `--session-token` or `CLAPS_AGENT_TOKEN`.
44
- 4. Use `claps-cli task create` when the operator wants a deterministic task record with explicit checklist, links, output requirements, dependencies, or auto-assignment.
45
- 5. Use `claps-cli task transition` and `claps-cli task review` for imperative workflow control after the task already exists.
46
- 6. Use `claps-cli task stage list` when you need the explicit coarse stage ledger rather than inferring from `workflow.phase`.
47
- 7. Use `claps-cli task stage set|complete|block|reopen` when the agent or operator should explicitly create or maintain the coarse `planning / execution / review / delivery` ledger. Whenever the stage status changes, include a non-empty `--summary`.
48
- 8. Use `claps-cli task review-readiness`, `task delivery-readiness`, and `task remediation-budget` when you want soft guardrail checks without handing workflow decisions back to the runtime.
49
- 9. Use `claps-cli task review-result submit` to persist the structured review outcome that skills or agents will use for remediation vs delivery decisions.
50
- 10. Use `claps-cli task delete` only when archive/cancel semantics are acceptable.
51
-
52
- ## Rules
53
-
54
- - Prefer `task-detail-lookup` when the need is read-only detail for one known task id.
55
- - Prefer `chat-task-delivery` or `user-story-delivery` when the real need is story clarification, workflow shaping, or chat-native execution handoff.
56
- - Be explicit that `task delete` currently follows the runtime's soft-delete/cancel path, not a hard database delete.
57
- - Prefer `claps-cli tasks --project-id ...` before creating a new task if there is a realistic risk of duplication.
58
- - Use `task review` only when the user has authority to review the task; the API enforces reviewer constraints.
59
- - For agent-authenticated stage or review-result mutations, pass the current `--assignment-id` so the primitive is tied to the active assignment rather than acting as an unscoped global mutation.
@@ -1,4 +0,0 @@
1
- interface:
2
- display_name: "task-admin"
3
- short_description: "Create, inspect, transition, review, and soft-delete CLAPS tasks with explicit CLI commands"
4
- default_prompt: "Use task-admin when a user wants deterministic task administration through claps-cli instead of chat control lines, especially for task creation, task transitions, task review, or soft-delete semantics with a human session token."
@@ -1,80 +0,0 @@
1
- ---
2
- name: task-contract-draft
3
- description: >
4
- Use this skill when CLAPS asks an agent to produce a structured task contract
5
- draft and write it back through the explicit contract-draft CLI primitive.
6
- ---
7
-
8
- # task-contract-draft
9
-
10
- This skill is for one narrow internal workflow: CLAPS has already selected the
11
- agent and queued a task-contract-draft request. Your job is to turn the brief
12
- into a review-ready contract draft and submit it back through `claps-cli`.
13
-
14
- ## Goal
15
-
16
- Produce a structured draft with:
17
-
18
- - `definitionOfDone`
19
- - `acceptanceChecklist`
20
- - `outputRequirements`
21
- - `rationale`
22
-
23
- The draft should be specific enough that a human can review and refine it
24
- without reverse-engineering the original brief.
25
-
26
- ## Rules
27
-
28
- 1. Do not create or edit CLAPS tasks directly.
29
- 2. Do not mutate workflow state, review state, or repo delivery state.
30
- 3. Do not ask follow-up questions unless the request is unusable.
31
- 4. Match the language of the request unless it explicitly asks otherwise.
32
- 5. Keep acceptance items concrete and reviewer-checkable.
33
- 6. Keep output requirements focused on what the assignee must hand back.
34
- 7. Use the explicit CLI submit primitive instead of replying with free-form prose.
35
-
36
- ## Submission path
37
-
38
- Preferred flow:
39
-
40
- 1. Build a small JSON object locally.
41
- 2. Validate that it matches the required shape.
42
- 3. Submit it with:
43
-
44
- ```bash
45
- claps-cli task contract-draft submit --request-id <request-id> --draft-json '<json>'
46
- ```
47
-
48
- If inline JSON becomes awkward, write the JSON to a temp file and pass it
49
- through shell expansion:
50
-
51
- ```bash
52
- claps-cli task contract-draft submit --request-id <request-id> --draft-json "$(cat /tmp/task-contract-draft.json)"
53
- ```
54
-
55
- ## Draft quality bar
56
-
57
- - `definitionOfDone`: one clear outcome sentence
58
- - `acceptanceChecklist`: 3-6 concrete checks
59
- - `outputRequirements`: 2-4 delivery artifacts or evidence expectations
60
- - `rationale`: brief notes explaining why the draft is shaped this way for this agent and request
61
-
62
- ## Example shape
63
-
64
- ```json
65
- {
66
- "definitionOfDone": "Ship the requested task outcome in the agreed scope and leave it review-ready.",
67
- "acceptanceChecklist": [
68
- "The delivered work matches the task title and brief.",
69
- "Validation evidence is included so a reviewer can check the result quickly."
70
- ],
71
- "outputRequirements": [
72
- "Implementation or delivery summary",
73
- "Validation or review evidence summary"
74
- ],
75
- "rationale": [
76
- "The draft is tightened for explicit reviewer handoff.",
77
- "The requested surfaces imply evidence should be easy to inspect."
78
- ]
79
- }
80
- ```
@@ -1,4 +0,0 @@
1
- interface:
2
- display_name: "task-contract-draft"
3
- short_description: "Draft a structured CLAPS task contract and submit it back through the explicit contract-draft CLI primitive"
4
- default_prompt: "Use task-contract-draft when CLAPS has already queued an internal contract-draft request for one agent and the only allowed write-back path is claps-cli task contract-draft submit."
@@ -1,51 +0,0 @@
1
- ---
2
- name: task-detail-lookup
3
- description: >
4
- Use this skill when you already know a CLAPS task id and need the current
5
- authoritative detail snapshot: title, summary, status, workflow, project,
6
- and linked repo binding.
7
- tags:
8
- - inspection
9
- - lookup
10
- - task
11
- ---
12
-
13
- # task-detail-lookup
14
-
15
- Use this skill when clarification is not the blocker and the missing piece is the current task detail for one known `task.id`.
16
-
17
- ## Command surface
18
-
19
- ```bash
20
- claps-cli task get --task-id <task-id>
21
- claps-cli task get --task-id <task-id> --json
22
- ```
23
-
24
- ## Flow
25
-
26
- 1. Prefer direct task lookup when the user already gave a `task.id`.
27
- 2. Read the human-readable output when you need a quick answer in chat.
28
- 3. Use `--json` when another tool, script, or agent needs the structured payload.
29
- 4. If the task exists but the project has no repo binding, report that explicitly instead of guessing a repo.
30
- 5. If the user only has `project.id` and needs discovery first, fall back to `claps-cli tasks --project-id <project-id>`.
31
-
32
- ## Sandbox note
33
-
34
- - In a sandboxed Codex tool environment, `pnpm claps-cli ...` may fail before the HTTP request if `tsx` cannot create its local IPC pipe and reports `listen EPERM`.
35
- - In that same environment, direct requests to `http://127.0.0.1:3001` may also fail with `connect EPERM` even when the host machine can reach the local CLAPS API.
36
- - Treat those errors as environment isolation, not as proof that the task is missing.
37
- - If you hit those errors, stop retrying the same local command. Say that the sandbox cannot reach the host-local CLAPS runtime and ask for host-side output or for the current task detail to be pasted into chat.
38
-
39
- ## What to report back
40
-
41
- - task reference, title, summary, status, and priority
42
- - current workflow kind and phase
43
- - project name and project id
44
- - linked repo owner/name, provider, default branch, and root path when present
45
- - whether the task currently has assignments, updates, artifacts, logs, or notifications
46
-
47
- ## Rules
48
-
49
- - Prefer `claps-cli task get --task-id <task-id>` over scanning the full project task list when the task id is already known.
50
- - Do not invent missing repo binding, workflow, or assignment state.
51
- - If the user gave a task reference slug such as `#claps-13` but not the UUID, ask for the actual `task.id` or use project-task listing to cross-check candidates first.
@@ -1,4 +0,0 @@
1
- interface:
2
- display_name: "task-detail-lookup"
3
- short_description: "Fetch current task detail and linked repo binding for a known task id"
4
- default_prompt: "Use task-detail-lookup when a user already knows the CLAPS task id and needs the latest detail snapshot, including workflow, project, and repo binding."
@@ -1,56 +0,0 @@
1
- ---
2
- name: task-pool-triage
3
- description: >
4
- Use this skill when a channel-created CLAPS task is sitting in the weighted
5
- task pool and needs vote-driven triage before dispatch. This covers checking
6
- whether the candidate is executable yet, deciding approve vs reject,
7
- explaining the vote, and handing the task off cleanly once the threshold is
8
- met.
9
- tags:
10
- - channel
11
- - planning
12
- - triage
13
- ---
14
-
15
- # task-pool-triage
16
-
17
- Use this skill when project or channel chat has already produced a candidate task, but execution should not start until the task pool says it is ready.
18
-
19
- ## Goals
20
-
21
- - Keep bad or ambiguous work from auto-dispatching just because it sounds plausible in chat.
22
- - Turn votes into explicit execution decisions instead of vague agreement.
23
- - Leave the winning candidate ready for assignment, workspace setup, and delivery.
24
-
25
- ## Flow
26
-
27
- 1. Read the candidate state
28
- Inspect the task title, summary, description, workflow, preferred assignee, current tally, and the latest channel context that created the candidate.
29
-
30
- 2. Check execution readiness
31
- Decide whether the candidate is ready to leave backlog by checking:
32
- - the user pain and desired outcome are clear
33
- - the execution boundary is narrow enough
34
- - the preferred assignee is correct or intentionally blank
35
- - validation and review expectations are concrete
36
- - missing repo or environment assumptions are called out
37
-
38
- 3. Cast the vote deliberately
39
- - Approve only when the candidate is actionable enough to dispatch.
40
- - Reject when scope, ownership, validation, or safety is still unclear.
41
- - Keep the note short and decision-driving, not essay-shaped.
42
-
43
- 4. Drive the next turn
44
- - If approved, say what the assignee should do first after dispatch.
45
- - If rejected, name the smallest missing pieces and route the follow-up back to chat clarification instead of pretending execution can start.
46
-
47
- 5. Hand off after threshold
48
- When the tally passes, treat that as permission to dispatch, not as proof the task is done. Hand off to `workspace-bootstrap`, `repo-binding-closure`, or the normal delivery path as appropriate.
49
-
50
- ## Rules
51
-
52
- - This applies to channel-created delivery work that enters the weighted task pool. DM-created work does not need this gate.
53
- - Humans contribute 2 approval points, agents contribute 1, and dispatch should wait until the threshold is met.
54
- - The latest vote from each voter is what matters; do not reason from stale votes.
55
- - A passed vote only means “ready to dispatch.” Review, execution, and merge still need their own evidence.
56
- - If the preferred assignee is wrong or missing, fix that decision before pushing the candidate through.
@@ -1,4 +0,0 @@
1
- interface:
2
- display_name: "task-pool-triage"
3
- short_description: "Triage weighted task-pool candidates before CLAPS dispatches them"
4
- default_prompt: "Use task-pool-triage when a channel-created CLAPS task is waiting in the weighted task pool and needs an approve or reject decision, clear vote rationale, and a clean handoff after the threshold is met."
@@ -1,75 +0,0 @@
1
- ---
2
- name: task-stage-summary-backfill
3
- description: >
4
- Use this skill when CLAPS asks an agent to reconstruct missing completed-stage
5
- summaries from recorded task history and submit them back through the explicit
6
- stage-summary-backfill CLI primitive.
7
- ---
8
-
9
- # task-stage-summary-backfill
10
-
11
- This skill is for one narrow internal workflow: CLAPS has already selected the
12
- agent and queued a stage-summary-backfill request. Your job is to reconstruct
13
- missing completed-stage summaries from the provided task history and submit them
14
- back through `claps-cli`.
15
-
16
- ## Goal
17
-
18
- Produce a structured list of workflow stage summaries where each entry includes:
19
-
20
- - `stageKey`
21
- - `summary`
22
- - `result`
23
- - `completedAt`
24
-
25
- The output should only cover completed workflow stages that are explicitly
26
- listed as missing in the request context.
27
-
28
- ## Rules
29
-
30
- 1. Do not create or edit CLAPS tasks directly.
31
- 2. Do not mutate workflow state, review state, or repo delivery state outside the explicit submit primitive.
32
- 3. Do not run tools, inspect the repo, or infer work that is not supported by the provided task history.
33
- 4. Only write summaries for the missing stage keys named in the request.
34
- 5. Keep each summary concise and evidence-based.
35
- 6. If the history is thin, say so briefly instead of hallucinating details.
36
- 7. Use the explicit CLI submit primitive instead of replying with free-form prose.
37
-
38
- ## Submission path
39
-
40
- Preferred flow:
41
-
42
- 1. Build a small JSON array locally.
43
- 2. Validate that it matches the required shape.
44
- 3. Submit it with:
45
-
46
- ```bash
47
- claps-cli task stage-summary-backfill submit --request-id <request-id> --stage-summaries-json '<json>'
48
- ```
49
-
50
- If inline JSON becomes awkward, write the JSON to a temp file and pass it
51
- through shell expansion:
52
-
53
- ```bash
54
- claps-cli task stage-summary-backfill submit --request-id <request-id> --stage-summaries-json "$(cat /tmp/task-stage-summary-backfill.json)"
55
- ```
56
-
57
- ## Quality bar
58
-
59
- - only requested stage keys are included
60
- - every entry uses `result: "completed"`
61
- - summaries stay grounded in the recorded task history
62
- - `completedAt` is copied from known evidence when available, otherwise `null`
63
-
64
- ## Example shape
65
-
66
- ```json
67
- [
68
- {
69
- "stageKey": "execution",
70
- "summary": "Implemented the requested change and left review-ready evidence in the recorded task updates and artifacts.",
71
- "result": "completed",
72
- "completedAt": "2026-04-20T05:18:00.000Z"
73
- }
74
- ]
75
- ```
@@ -1,4 +0,0 @@
1
- interface:
2
- display_name: "task-stage-summary-backfill"
3
- short_description: "Reconstruct missing completed-stage summaries from recorded task history and submit them back through the explicit stage-summary-backfill CLI primitive"
4
- default_prompt: "Use task-stage-summary-backfill when CLAPS has already queued an internal stage-summary-backfill request for one agent and the only allowed write-back path is claps-cli task stage-summary-backfill submit."