@vocdoni/skills 0.6.0 → 0.7.0
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.
- package/.claude-plugin/marketplace.json +27 -15
- package/CHANGELOG.md +22 -0
- package/README.md +38 -24
- package/bin/install.js +13 -2
- package/package.json +1 -1
- package/plugins/agentic-dev/.claude-plugin/plugin.json +1 -1
- package/plugins/agentic-dev/skills/subagent-driven-development/SKILL.md +6 -4
- package/plugins/agentic-dev/skills/subagent-driven-development/references/dispatch.md +6 -1
- package/plugins/agentic-dev/skills/subagent-driven-development/references/ledger.md +8 -5
- package/plugins/agentic-dev/skills/subagent-driven-development/references/models.md +38 -6
- package/plugins/agentic-dev/skills/subagent-driven-development/scripts/init-workspace.sh +1 -0
- package/plugins/agentic-dev/skills/subagent-driven-development/scripts/model-inventory.sh +6 -4
- package/plugins/claude-pi-subagent/plugins/pi-subagent/package-lock.json +4 -3
- package/plugins/vocdoni-contributing/.claude-plugin/plugin.json +2 -2
- package/plugins/vocdoni-contributing/hooks/session-start.sh +1 -1
- package/plugins/vocdoni-contributing/skills/contributing/SKILL.md +33 -6
- package/plugins/vocdoni-go/.claude-plugin/plugin.json +2 -2
- package/plugins/vocdoni-go/skills/vocdoni-backend-review/SKILL.md +522 -0
- package/plugins/vocdoni-go/skills/vocdoni-backend-review/references/prompts.md +260 -0
- package/plugins/vocdoni-go/skills/vocdoni-backend-review/scripts/untracked-list.sh +35 -0
- package/plugins/vocdoni-sdk/.claude-plugin/plugin.json +4 -5
- package/plugins/vocdoni-sdk/skills/vocdoni-ballot-protocol/SKILL.md +61 -38
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/SKILL.md +35 -21
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/recipes/approval-vote.ts +3 -3
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/recipes/basic-poll.ts +6 -6
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/recipes/csp-vote.ts +12 -7
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/recipes/multichoice-vote.ts +3 -3
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/recipes/quadratic-vote.ts +3 -3
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/recipes/ranked-vote.ts +3 -3
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/recipes/weighted-census.ts +3 -3
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/accounts.md +26 -15
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/census.md +9 -10
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/client.md +15 -13
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/csp.md +43 -18
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/elections.md +4 -4
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/errors.md +24 -21
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/removed-features.md +98 -0
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/results.md +0 -1
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/voting.md +30 -34
- package/plugins/vocdoni-sequencer/.claude-plugin/plugin.json +21 -0
- package/plugins/vocdoni-sequencer/skills/vocdoni-sequencer/SKILL.md +169 -0
- package/plugins/vocdoni-sequencer/skills/vocdoni-sequencer/references/removed-routes.md +60 -0
- package/plugins/davinci-sdk/.claude-plugin/plugin.json +0 -13
- package/plugins/davinci-sdk/skills/davinci-sdk/SKILL.md +0 -120
- package/plugins/davinci-sdk/skills/davinci-sdk/recipes/bootstrap.ts +0 -61
- package/plugins/davinci-sdk/skills/davinci-sdk/recipes/cast-vote.ts +0 -78
- package/plugins/davinci-sdk/skills/davinci-sdk/recipes/create-process.ts +0 -102
- package/plugins/davinci-sdk/skills/davinci-sdk/recipes/full-election.ts +0 -128
- package/plugins/davinci-sdk/skills/davinci-sdk/recipes/read-results.ts +0 -73
- package/plugins/davinci-sdk/skills/davinci-sdk/recipes/token-census.ts +0 -111
- package/plugins/davinci-sdk/skills/davinci-sdk/references/ballot-modes.md +0 -125
- package/plugins/davinci-sdk/skills/davinci-sdk/references/census.md +0 -168
- package/plugins/davinci-sdk/skills/davinci-sdk/references/contracts.md +0 -133
- package/plugins/davinci-sdk/skills/davinci-sdk/references/errors.md +0 -83
- package/plugins/davinci-sdk/skills/davinci-sdk/references/process.md +0 -225
- package/plugins/davinci-sdk/skills/davinci-sdk/references/protocol.md +0 -65
- package/plugins/davinci-sdk/skills/davinci-sdk/references/sequencer.md +0 -135
- package/plugins/davinci-sdk/skills/davinci-sdk/references/setup.md +0 -123
- package/plugins/davinci-sdk/skills/davinci-sdk/references/voting.md +0 -128
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/recipes/anonymous-vote.ts +0 -108
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/recipes/token-census.ts +0 -121
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/anonymous.md +0 -183
- package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/census3.md +0 -308
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
{
|
|
10
10
|
"name": "vocdoni-go",
|
|
11
11
|
"source": "./plugins/vocdoni-go",
|
|
12
|
-
"description": "Go skills: Rob Pike's proverbs, production-grade quality checklist (with deep reference),
|
|
13
|
-
"version": "0.
|
|
12
|
+
"description": "Go skills: Rob Pike's proverbs, production-grade quality checklist (with deep reference), version-aware modern Go syntax, and an iterative six-reviewer branch review for Vocdoni backends.",
|
|
13
|
+
"version": "0.2.0",
|
|
14
14
|
"category": "engineering",
|
|
15
15
|
"tags": ["go", "golang", "best-practices", "code-quality"],
|
|
16
16
|
"license": "AGPL-3.0-or-later",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"name": "agentic-dev",
|
|
41
41
|
"source": "./plugins/agentic-dev",
|
|
42
42
|
"description": "Run non-trivial engineering work as a controlled delivery: sized work, audited spec and plan, subagents implementing task by task, every diff reviewed, a strict gate audit before merge, and releases only on the owner's OK. A SessionStart hook makes the model load it without being asked.",
|
|
43
|
-
"version": "0.
|
|
43
|
+
"version": "0.6.0",
|
|
44
44
|
"category": "engineering",
|
|
45
45
|
"tags": ["subagents", "orchestration", "planning", "code-review", "audit", "workflow"],
|
|
46
46
|
"license": "AGPL-3.0-or-later",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
{
|
|
60
60
|
"name": "vocdoni-contributing",
|
|
61
61
|
"source": "./plugins/vocdoni-contributing",
|
|
62
|
-
"description": "Rules for what the agent posts on the git host: self-introduction, issue tracking, stacked PRs for epics, length and structure for PR/MR descriptions, issues and reviews, posting reviews as reviews, and resolving the review threads it addresses. Hooks apply them in every session and subagent, even as one step of a larger task.",
|
|
63
|
-
"version": "0.
|
|
62
|
+
"description": "Rules for what the agent posts on the git host: self-introduction, issue tracking, stacked PRs and wired sub-issues for epics, length and structure for PR/MR descriptions, issues and reviews, posting reviews as reviews, and resolving the review threads it addresses. Hooks apply them in every session and subagent, even as one step of a larger task.",
|
|
63
|
+
"version": "0.7.0",
|
|
64
64
|
"category": "engineering",
|
|
65
65
|
"tags": ["vocdoni", "pull-request", "merge-request", "code-review", "issues", "commits", "git-host"],
|
|
66
66
|
"license": "AGPL-3.0-or-later",
|
|
@@ -69,33 +69,45 @@
|
|
|
69
69
|
{
|
|
70
70
|
"name": "vocdoni-sdk",
|
|
71
71
|
"source": "./plugins/vocdoni-sdk",
|
|
72
|
-
"description": "
|
|
73
|
-
"version": "0.
|
|
72
|
+
"description": "Legacy reference for the Vocdoni SDK (@vocdoni/sdk), the client of the Vochain /v2 API, kept to maintain existing code: client setup, accounts, census types, election variants and CSP voting, plus the ballot protocol the chain enforces. New integrations use vocdoni-integrator-sdk.",
|
|
73
|
+
"version": "0.3.0",
|
|
74
74
|
"category": "sdk",
|
|
75
|
-
"tags": ["vocdoni", "voting", "elections", "sdk", "
|
|
75
|
+
"tags": ["vocdoni", "voting", "elections", "sdk", "legacy", "vochain", "ballot-protocol"],
|
|
76
76
|
"license": "AGPL-3.0-or-later",
|
|
77
77
|
"homepage": "https://github.com/vocdoni/skills"
|
|
78
78
|
},
|
|
79
79
|
{
|
|
80
|
-
"name": "
|
|
81
|
-
"source": "./plugins/
|
|
82
|
-
"description": "
|
|
80
|
+
"name": "vocdoni-sequencer",
|
|
81
|
+
"source": "./plugins/vocdoni-sequencer",
|
|
82
|
+
"description": "The Vochain as it runs today: vocdoni-sequencer (voconed), the single-node chain behind the Vocdoni SaaS API that replaced vocdoni-node. What changed for /v2 API consumers, how to run it locally, and how it differs from Davinci.",
|
|
83
83
|
"version": "0.1.0",
|
|
84
|
-
"category": "
|
|
85
|
-
"tags": ["vocdoni", "
|
|
84
|
+
"category": "engineering",
|
|
85
|
+
"tags": ["vocdoni", "vochain", "voconed", "sequencer", "blockchain", "voting"],
|
|
86
86
|
"license": "AGPL-3.0-or-later",
|
|
87
87
|
"homepage": "https://github.com/vocdoni/skills"
|
|
88
88
|
},
|
|
89
|
+
{
|
|
90
|
+
"name": "davinci-sdk",
|
|
91
|
+
"source": {
|
|
92
|
+
"source": "github",
|
|
93
|
+
"repo": "vocdoni/davinci-sdk"
|
|
94
|
+
},
|
|
95
|
+
"description": "Reference skill for the Vocdoni DAVINCI SDK (@vocdoni/davinci-sdk 6.x) on OP Mainnet: the DavinciSDK facade, createProcess, key modes and the grace window, censuses and the uploader, submitVote and vote statuses, receipts and results, with type-checked recipes.",
|
|
96
|
+
"category": "sdk",
|
|
97
|
+
"tags": ["vocdoni", "davinci", "voting", "elections", "sdk", "zk", "op-mainnet", "blockchain"],
|
|
98
|
+
"license": "AGPL-3.0-only",
|
|
99
|
+
"homepage": "https://github.com/vocdoni/davinci-sdk"
|
|
100
|
+
},
|
|
89
101
|
{
|
|
90
102
|
"name": "vocdoni-integrator-sdk",
|
|
91
103
|
"source": {
|
|
92
104
|
"source": "github",
|
|
93
105
|
"repo": "vocdoni/vocdoni-integrator-sdk"
|
|
94
106
|
},
|
|
95
|
-
"description": "Reference skill for the Vocdoni Integrator SDK (@vocdoni/api-client, @vocdoni/api-voting, @vocdoni/react-providers, @vocdoni/react-components): CSP auth flow, vote relay, ballot building, and React integration, with runnable recipes.",
|
|
107
|
+
"description": "Reference skill for the Vocdoni Integrator SDK (@vocdoni/api-client, @vocdoni/api-voting, @vocdoni/react-providers, @vocdoni/react-components, @vocdoni/ballot): CSP auth flow, vote relay, ballot building, and React integration, with runnable recipes.",
|
|
96
108
|
"category": "sdk",
|
|
97
109
|
"tags": ["vocdoni", "integrator-sdk", "voting", "elections", "csp", "react", "saas"],
|
|
98
|
-
"license": "
|
|
110
|
+
"license": "LGPL-3.0-or-later",
|
|
99
111
|
"homepage": "https://github.com/vocdoni/vocdoni-integrator-sdk"
|
|
100
112
|
},
|
|
101
113
|
{
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# @vocdoni/skills
|
|
2
2
|
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#97](https://github.com/vocdoni/skills/pull/97) [`dfc0e8f`](https://github.com/vocdoni/skills/commit/dfc0e8f80340376d4b63b781267d29d6833374b0) Thanks [@elboletaire](https://github.com/elboletaire)! - The agentic-dev subagent-driven-development skill now sets a thinking effort per model role, recorded on the ledger's `Effort:` line, and passes it with the model on every dispatch.
|
|
8
|
+
|
|
9
|
+
- [#102](https://github.com/vocdoni/skills/pull/102) [`c84dc69`](https://github.com/vocdoni/skills/commit/c84dc69ca21bf691261e8989d6d5137c0f92930c) Thanks [@altergui](https://github.com/altergui)! - `vocdoni-contributing` 0.7.0: every PR is linked to the issue it closes through `addCloseIssueReferences` as well as `Closes #N`, so it shows under the issue whatever its base, and every PR or stack closes the issue it tracks (a follow-up gets its own, with no parent, even while the original is still open). An epic is wired on the host instead of in its body: one sub-issue per repository attached directly to the epic, an `epic-<slug>` label on the epic, its sub-issues and their PRs in every repository, and "blocked by" only for real dependencies.
|
|
10
|
+
|
|
11
|
+
- [#100](https://github.com/vocdoni/skills/pull/100) [`ef0f5a1`](https://github.com/vocdoni/skills/commit/ef0f5a1d17217f1a91821c45e938c39d8ba284ff) Thanks [@elboletaire](https://github.com/elboletaire)! - `davinci-sdk` now comes from the davinci-sdk repository and covers `@vocdoni/davinci-sdk` 6.x: OP Mainnet, key modes, the grace window, the uploader, vote receipts and `waitForResults`. The old skill described 0.4.0, whose hosts and APIs are gone. It is a remote plugin like `vocdoni-integrator-sdk`: the npm package no longer bundles it, and `npx @vocdoni/skills@latest install --plugin davinci-sdk --force` clones it on demand and replaces the old copy (`--offline` uses the cached clone). In Claude Code, run `claude plugin marketplace update vocdoni` and `claude plugin update davinci-sdk@vocdoni`; the plugin has no version, so later updates follow the davinci-sdk repository's commits.
|
|
12
|
+
|
|
13
|
+
`install --force` and `uninstall` now also replace or remove a dangling symlink, such as a `--symlink` install of a skill whose source directory is gone.
|
|
14
|
+
|
|
15
|
+
- [#78](https://github.com/vocdoni/skills/pull/78) [`6834d12`](https://github.com/vocdoni/skills/commit/6834d12838cac91d350090ae22b95bd50e73a927) Thanks [@lucasmenendez](https://github.com/lucasmenendez)! - Adds the `vocdoni-backend-review` skill to `vocdoni-go` (0.2.0): an explicitly invoked, iterative review of a Vocdoni Go backend branch. Six independent subagent reviewers (usage, design, implementation, style, testing, documentation) review the full diff against a fixed base, a planner and an implementer fix the findings, and the loop repeats until all six report clean, within an iteration budget and with a ledger in `.delivery/`.
|
|
16
|
+
|
|
17
|
+
- [#98](https://github.com/vocdoni/skills/pull/98) [`3dc0fa4`](https://github.com/vocdoni/skills/commit/3dc0fa461b07696fc0080774d2b6feb9596d4282) Thanks [@elboletaire](https://github.com/elboletaire)! - Updates `vocdoni-sdk` (0.3.0) to `@vocdoni/sdk` 0.10.0 and the chain as it runs today. Removes the anonymous (ZK) voting and Census3 references and recipes and adds `references/removed-features.md`, which maps each dropped SDK feature (anonymous voting, SIKs, Census3, `RemoteSigner` against the SaaS, pre-0.9 pagination) to its replacement and links to `vocdoni-sequencer`'s route list. Documents `cspSign` resolving to `{ signature, weight }`, weighted CSP votes, CSP elections now using `OFF_CHAIN_CA_V2`, and the vote `memo`. Recommends `EnvOptions.DEV` for testing, and fixes the dead SaaS and docs URLs.
|
|
18
|
+
|
|
19
|
+
- [#95](https://github.com/vocdoni/skills/pull/95) [`ad65a42`](https://github.com/vocdoni/skills/commit/ad65a42bc4cb170df31e46b862650977b45ebf45) Thanks [@lucasmenendez](https://github.com/lucasmenendez)! - Updates the skills to the current Vocdoni stack. Adds the `vocdoni-sequencer` plugin (0.1.0): the single-node Vochain (`voconed`) behind saas-backend that replaced the archived `vocdoni-node`, what changed for `/v2` API consumers, how to run it locally, and how it differs from the Davinci sequencer. Marks `vocdoni-sdk` (0.2.0) as legacy: `@vocdoni/sdk` is kept to maintain existing code, its anonymous (ZK) voting and Census3 parts are flagged as no longer working, and new integrations are pointed at `vocdoni-integrator-sdk`. Corrects `vocdoni-ballot-protocol` against the sequencer: `costExponent` is a plain exponent, `minValue` and `minTotalCost` are new, and plaintext ballots are rejected at submission.
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [#99](https://github.com/vocdoni/skills/pull/99) [`1a8efbb`](https://github.com/vocdoni/skills/commit/1a8efbb6e2ec0cfabf22c1b25997228c1de950b1) Thanks [@elboletaire](https://github.com/elboletaire)! - The `vocdoni-integrator-sdk` marketplace entry now declares `LGPL-3.0-or-later`, the license of the repo the skill lives in, and its blurb lists `@vocdoni/ballot` alongside the other packages.
|
|
24
|
+
|
|
3
25
|
## 0.6.0
|
|
4
26
|
|
|
5
27
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -7,12 +7,13 @@ Curated [Agent Skills][skills-docs] from [Vocdoni][vocdoni], packaged as a **Cla
|
|
|
7
7
|
claude plugin marketplace add vocdoni/skills
|
|
8
8
|
|
|
9
9
|
# Building on Vocdoni? These are for you:
|
|
10
|
-
claude plugin install vocdoni-sdk@vocdoni
|
|
11
|
-
claude plugin install davinci-sdk@vocdoni
|
|
12
10
|
claude plugin install vocdoni-integrator-sdk@vocdoni
|
|
11
|
+
claude plugin install davinci-sdk@vocdoni
|
|
12
|
+
claude plugin install vocdoni-sdk@vocdoni # legacy: only to maintain existing @vocdoni/sdk code
|
|
13
13
|
|
|
14
14
|
# Internal tooling we use at Vocdoni:
|
|
15
15
|
claude plugin install vocdoni-go@vocdoni
|
|
16
|
+
claude plugin install vocdoni-sequencer@vocdoni
|
|
16
17
|
claude plugin install vocdoni-internal-oauth@vocdoni
|
|
17
18
|
claude plugin install vocdoni-ui-style@vocdoni
|
|
18
19
|
claude plugin install agentic-dev@vocdoni
|
|
@@ -34,26 +35,30 @@ claude plugin update agentic-dev@vocdoni # repeat per installed plugin
|
|
|
34
35
|
|
|
35
36
|
SDK references for anyone building voting on Vocdoni — clients, partners, and third-party developers.
|
|
36
37
|
|
|
37
|
-
###
|
|
38
|
+
### 🧩 `vocdoni-integrator-sdk` — Vocdoni Integrator SDK
|
|
38
39
|
|
|
39
|
-
| Skill
|
|
40
|
-
|
|
|
41
|
-
| `vocdoni-sdk`
|
|
42
|
-
|
|
40
|
+
| Skill | What it covers |
|
|
41
|
+
| ---------------- | ------------------------------------------------------------------------------------------------------- |
|
|
42
|
+
| `vocdoni-integrator-sdk` | The [Integrator SDK][integrator-sdk] packages — `@vocdoni/api-client`, `@vocdoni/api-voting`, `@vocdoni/react-providers`, `@vocdoni/react-components`, `@vocdoni/ballot`: CSP auth flow, vote relay, ballot building, and React integration, with runnable recipes. It talks to the Vocdoni SaaS API (saas-backend), never to the chain directly. |
|
|
43
|
+
|
|
44
|
+
This is a **remote plugin**: the skill lives in the [vocdoni-integrator-sdk repo][integrator-sdk] and is cloned (or pulled) on demand by the npx CLI — pass `--offline` to skip fetching and use the cached clone.
|
|
43
45
|
|
|
44
46
|
### 🔐 `davinci-sdk` — Vocdoni Davinci (zk voting) SDK
|
|
45
47
|
|
|
46
48
|
| Skill | What it covers |
|
|
47
49
|
| ------------- | ------------------------------------------------------------------------------------------------------- |
|
|
48
|
-
| `davinci-sdk` | The [`@vocdoni/davinci-sdk`][davinci-sdk] facade
|
|
50
|
+
| `davinci-sdk` | The [`@vocdoni/davinci-sdk`][davinci-sdk] 6.x facade on OP Mainnet: setup and `init()`, creating processes, key modes and the grace window, censuses and the uploader, voting and vote statuses, receipts, results, ballot modes and multi-node failover, with type-checked recipes. |
|
|
49
51
|
|
|
50
|
-
|
|
52
|
+
This is a **remote plugin**: the skill lives in the [davinci-sdk repo][davinci-sdk] and is cloned (or pulled) on demand by the npx CLI — pass `--offline` to skip fetching and use the cached clone.
|
|
51
53
|
|
|
52
|
-
|
|
53
|
-
| ---------------- | ------------------------------------------------------------------------------------------------------- |
|
|
54
|
-
| `vocdoni-integrator-sdk` | The [Integrator SDK][integrator-sdk] packages — `@vocdoni/api-client`, `@vocdoni/api-voting`, `@vocdoni/react-providers`, `@vocdoni/react-components`: CSP auth flow, vote relay, ballot building, and React integration, with runnable recipes. |
|
|
54
|
+
### 🗳️ `vocdoni-sdk` — legacy Vochain SDK
|
|
55
55
|
|
|
56
|
-
|
|
56
|
+
**Legacy.** [`@vocdoni/sdk`][sdk] is the client of the Vochain `/v2` API, which `vocdoni-sequencer` now serves in place of the archived `vocdoni-node`. Install it only to maintain existing `@vocdoni/sdk` code; new integrations use `vocdoni-integrator-sdk` above.
|
|
57
|
+
|
|
58
|
+
| Skill | What it covers |
|
|
59
|
+
| -------------------------- | ------------------------------------------------------------------------------------------------------- |
|
|
60
|
+
| `vocdoni-sdk` | [`@vocdoni/sdk`][sdk] 0.10.0 reference — client, accounts, census, election variants, CSP (including weighted CSP votes) and vote memos — plus runnable recipes, and what to use instead of the anonymous voting, Census3 and remote-signer features the chain and the SaaS no longer support. |
|
|
61
|
+
| `vocdoni-ballot-protocol` | The ballot and results data model the chain enforces: ballot encoding, results matrix, parameter semantics, which rules are checked at submission and which at tally. Applies to `@vocdoni/sdk` vote types and to the Integrator SDK's `ballotProtocol` alike. |
|
|
57
62
|
|
|
58
63
|
Building the voting UI itself? [`vocdoni-ui-style`](#-vocdoni-ui-style--vocdoni-look-and-feel) (listed under the team skills) carries the product look of the Vocdoni app, including the white-label accent for an organization's own color.
|
|
59
64
|
|
|
@@ -70,6 +75,13 @@ Tooling we use internally for our own development workflow. Nothing stops you fr
|
|
|
70
75
|
| `go-best-practices` | Rob Pike's *Go Proverbs* — idiomatic & architectural defaults. |
|
|
71
76
|
| `go-code-quality` | Production checklist: domain types, error contracts, context, goroutines. |
|
|
72
77
|
| `go-modern` | Version-aware modern Go syntax. Reads `go.mod` to pick the right target. |
|
|
78
|
+
| `vocdoni-backend-review` | Invoked with `/vocdoni-go:vocdoni-backend-review [base-ref]`: six independent reviewers (usage, design, implementation, style, testing, docs) review the branch, a planner and an implementer fix what they find, and the loop repeats until all six are clean. Needs `agentic-dev`, `vocdoni-comments` and `vocdoni-contributing`. |
|
|
79
|
+
|
|
80
|
+
### ⛓️ `vocdoni-sequencer` — the Vochain today
|
|
81
|
+
|
|
82
|
+
| Skill | What it covers |
|
|
83
|
+
| ------------------- | -------------- |
|
|
84
|
+
| `vocdoni-sequencer` | `vocdoni-sequencer` (`voconed`), the single-node Vochain behind saas-backend that replaced `vocdoni-node`: what changed for consumers of the `/v2` API (removed routes, no anonymous voting or Census3, ballots validated at submission), running it locally with Postgres, and why it has nothing to do with the Davinci sequencer. |
|
|
73
85
|
|
|
74
86
|
### 🔑 `vocdoni-internal-oauth` — staff sign-in for internal tools
|
|
75
87
|
|
|
@@ -105,9 +117,9 @@ The plugin also installs **SessionStart and SubagentStart hooks** that inject th
|
|
|
105
117
|
|
|
106
118
|
| Skill | What it covers |
|
|
107
119
|
| -------------- | -------------- |
|
|
108
|
-
| `contributing` | The rules for everything the agent writes on GitHub or GitLab: an opening line naming the model and the user it acts for, no `Co-authored-by` trailer, every PR linked to an issue (found, or opened before the PR), an
|
|
120
|
+
| `contributing` | The rules for everything the agent writes on GitHub or GitLab: an opening line naming the model and the user it acts for, no `Co-authored-by` trailer, every PR linked to an issue (found, or opened before the PR) through the API as well as `Closes #N`, a PR or stack closing the issue it tracks (and any others it resolves), follow-ups with their own issue and no parent, an issue's PRs stacked on each other with `gh stack` and merged in one go, an epic wired as one sub-issue per repository, `epic-<slug>` labels on its issues and PRs and blocked-by links only for real dependencies, length limits and structure for PR/MR descriptions and issues, findings of about three sentences in reviews (nits marked "Nit:"), review threads it addresses answered and resolved, and reviews posted as reviews marked "Approve" or "Request changes". |
|
|
109
121
|
|
|
110
|
-
The plugin also installs **SessionStart and SubagentStart hooks** that inject the same `contributing` body into every Claude Code session and into each subagent it starts, except read-only ones (`Explore`, `Plan`, `claude-code-guide`, `statusline-setup`) and forks, which already carry the session's copy. A subagent is told to leave the tracking issue
|
|
122
|
+
The plugin also installs **SessionStart and SubagentStart hooks** that inject the same `contributing` body into every Claude Code session and into each subagent it starts, except read-only ones (`Explore`, `Plan`, `claude-code-guide`, `statusline-setup`) and forks, which already carry the session's copy. A subagent is told to leave the tracking issue, the PR and their wiring to the session that delegated to it. Subagents do not receive a session's SessionStart context, so without the second hook a delegated worker never sees the rules. The rules hold even when a PR is one step of a larger task and the skill's description never matches. The hook reads `skills/contributing/SKILL.md` directly, so the skill is the only place to edit. The hook is Claude Code-only; an npx install gets the skill, which still triggers from its description.
|
|
111
123
|
|
|
112
124
|
The plugin declares `vocdoni-comments` as a dependency: installing `vocdoni-contributing` in Claude Code also installs and enables `vocdoni-comments` at the same scope, and `vocdoni-comments` cannot be disabled while `vocdoni-contributing` is enabled. Updating from a version before 0.5.0 installs it too (Claude Code 2.1.319 or later), but does not re-enable a `vocdoni-comments` you had disabled: `vocdoni-contributing` then fails to load until you run `claude plugin enable vocdoni-comments@vocdoni`, or `claude plugin install vocdoni-comments@vocdoni` if the update could not fetch it. An npx install does not follow dependencies.
|
|
113
125
|
|
|
@@ -137,10 +149,11 @@ More plugins (`vocdoni-typescript`, `vocdoni-solidity`, …) will land under `pl
|
|
|
137
149
|
claude plugin marketplace add vocdoni/skills
|
|
138
150
|
|
|
139
151
|
# Install all current plugins
|
|
140
|
-
claude plugin install vocdoni-sdk@vocdoni
|
|
141
|
-
claude plugin install davinci-sdk@vocdoni
|
|
142
152
|
claude plugin install vocdoni-integrator-sdk@vocdoni
|
|
153
|
+
claude plugin install davinci-sdk@vocdoni
|
|
154
|
+
claude plugin install vocdoni-sdk@vocdoni # legacy
|
|
143
155
|
claude plugin install vocdoni-go@vocdoni
|
|
156
|
+
claude plugin install vocdoni-sequencer@vocdoni
|
|
144
157
|
claude plugin install vocdoni-internal-oauth@vocdoni
|
|
145
158
|
claude plugin install vocdoni-ui-style@vocdoni
|
|
146
159
|
claude plugin install agentic-dev@vocdoni
|
|
@@ -190,7 +203,7 @@ npx @vocdoni/skills install
|
|
|
190
203
|
npx @vocdoni/skills install --plugin go
|
|
191
204
|
npx @vocdoni/skills install --plugin sdk
|
|
192
205
|
npx @vocdoni/skills install --plugin integrator-sdk # remote plugin, cloned on demand
|
|
193
|
-
npx @vocdoni/skills install --plugin davinci-sdk # full name (no vocdoni- prefix)
|
|
206
|
+
npx @vocdoni/skills install --plugin davinci-sdk # remote plugin, cloned on demand; full name (no vocdoni- prefix)
|
|
194
207
|
npx @vocdoni/skills install --plugin agentic-dev # skill only; the SessionStart hook is Claude Code plugin-only
|
|
195
208
|
npx @vocdoni/skills install --plugin ui-style # 'ui-style' → 'vocdoni-ui-style'
|
|
196
209
|
npx @vocdoni/skills install --plugin comments # 'comments' → 'vocdoni-comments'; skill only, the hooks are Claude Code plugin-only
|
|
@@ -233,6 +246,7 @@ claude plugin update vocdoni-sdk@vocdoni
|
|
|
233
246
|
claude plugin update davinci-sdk@vocdoni
|
|
234
247
|
claude plugin update vocdoni-integrator-sdk@vocdoni
|
|
235
248
|
claude plugin update vocdoni-go@vocdoni
|
|
249
|
+
claude plugin update vocdoni-sequencer@vocdoni
|
|
236
250
|
claude plugin update vocdoni-internal-oauth@vocdoni
|
|
237
251
|
claude plugin update vocdoni-ui-style@vocdoni
|
|
238
252
|
claude plugin update agentic-dev@vocdoni
|
|
@@ -245,7 +259,7 @@ Updates apply to new sessions; in a running session, run `/reload-plugins`. Run
|
|
|
245
259
|
|
|
246
260
|
From inside a session you can do the same with `/plugin`: on the **Marketplaces** tab, select `vocdoni` and choose **Update marketplace** to update every plugin you installed from it, or **Enable auto-update** to have Claude Code update them in the background at the start of each session.
|
|
247
261
|
|
|
248
|
-
A plugin only updates when its `version` changes, so an unreleased change on `main` does not reach installed users until the plugin is released (see [Releasing](./CONTRIBUTING.md#releasing)).
|
|
262
|
+
A plugin only updates when its `version` changes, so an unreleased change on `main` does not reach installed users until the plugin is released (see [Releasing](./CONTRIBUTING.md#releasing)). `davinci-sdk` declares no version, so Claude Code follows the commits of [vocdoni/davinci-sdk][davinci-sdk] instead.
|
|
249
263
|
|
|
250
264
|
#### A skill or hook is not loading
|
|
251
265
|
|
|
@@ -262,9 +276,9 @@ npx @vocdoni/skills@latest install --force # everything
|
|
|
262
276
|
npx @vocdoni/skills@latest install --plugin agentic-dev --force # one plugin
|
|
263
277
|
```
|
|
264
278
|
|
|
265
|
-
Pin `@latest`, or npx may reuse an older cached copy of the CLI. Remote plugins such as `vocdoni-integrator-sdk` are re-fetched on every run unless you pass `--offline`.
|
|
279
|
+
Pin `@latest`, or npx may reuse an older cached copy of the CLI. Remote plugins such as `vocdoni-integrator-sdk` and `davinci-sdk` are re-fetched on every run unless you pass `--offline`.
|
|
266
280
|
|
|
267
|
-
Installed with `--symlink` from a checkout? `git pull` in that checkout is enough; the links already point at the updated files.
|
|
281
|
+
Installed with `--symlink` from a checkout? `git pull` in that checkout is enough; the links already point at the updated files. Remote plugins are the exception: their links point into the CLI's cache (`~/.cache/vocdoni-skills/<name>/`), which `git pull` never touches, so re-run `install` (without `--offline`) to refresh it. And a `davinci-sdk` link into `plugins/davinci-sdk/` breaks once that directory is gone, so reinstall it from the checkout with `node bin/install.js install --plugin davinci-sdk --symlink --force`.
|
|
268
282
|
|
|
269
283
|
### Manual
|
|
270
284
|
|
|
@@ -281,9 +295,9 @@ Copy the skill directories again over the old ones, or `git pull` if you symlink
|
|
|
281
295
|
│ ├── vocdoni-go/
|
|
282
296
|
│ │ ├── .claude-plugin/plugin.json
|
|
283
297
|
│ │ └── skills/<skill>/SKILL.md
|
|
284
|
-
│ ├── vocdoni-sdk/
|
|
298
|
+
│ ├── vocdoni-sdk/ # legacy
|
|
285
299
|
│ │ └── …
|
|
286
|
-
│ ├──
|
|
300
|
+
│ ├── vocdoni-sequencer/
|
|
287
301
|
│ │ └── …
|
|
288
302
|
│ ├── vocdoni-internal-oauth/
|
|
289
303
|
│ │ └── …
|
|
@@ -305,7 +319,7 @@ Copy the skill directories again over the old ones, or `git pull` if you symlink
|
|
|
305
319
|
└── LICENSE # AGPL-3.0-or-later
|
|
306
320
|
```
|
|
307
321
|
|
|
308
|
-
`vocdoni-integrator-sdk`
|
|
322
|
+
`vocdoni-integrator-sdk` and `davinci-sdk` have no directory here — both are remote plugins whose `source` in `marketplace.json` points at [vocdoni/vocdoni-integrator-sdk][integrator-sdk] and [vocdoni/davinci-sdk][davinci-sdk].
|
|
309
323
|
|
|
310
324
|
---
|
|
311
325
|
|
package/bin/install.js
CHANGED
|
@@ -366,6 +366,17 @@ function ensureDir(dir, dryRun) {
|
|
|
366
366
|
fs.mkdirSync(dir, { recursive: true });
|
|
367
367
|
}
|
|
368
368
|
|
|
369
|
+
// lstat, not existsSync: a dangling symlink (a skill whose source moved)
|
|
370
|
+
// still occupies the path.
|
|
371
|
+
function pathTaken(p) {
|
|
372
|
+
try {
|
|
373
|
+
fs.lstatSync(p);
|
|
374
|
+
return true;
|
|
375
|
+
} catch {
|
|
376
|
+
return false;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
369
380
|
function rimrafSync(target) {
|
|
370
381
|
fs.rmSync(target, { recursive: true, force: true });
|
|
371
382
|
}
|
|
@@ -440,7 +451,7 @@ function cmdInstall(opts, plugins) {
|
|
|
440
451
|
let skipped = 0;
|
|
441
452
|
for (const s of chosen) {
|
|
442
453
|
const dst = path.join(opts.dest, s.name);
|
|
443
|
-
if (
|
|
454
|
+
if (pathTaken(dst)) {
|
|
444
455
|
if (!opts.force) {
|
|
445
456
|
process.stdout.write(`skip ${s.name} (already at ${dst}; use --force to overwrite)\n`);
|
|
446
457
|
skipped++;
|
|
@@ -475,7 +486,7 @@ function cmdUninstall(opts) {
|
|
|
475
486
|
let removed = 0;
|
|
476
487
|
for (const name of opts.skills) {
|
|
477
488
|
const dst = path.join(opts.dest, name);
|
|
478
|
-
if (!
|
|
489
|
+
if (!pathTaken(dst)) {
|
|
479
490
|
process.stdout.write(`skip ${name} (not at ${dst})\n`);
|
|
480
491
|
continue;
|
|
481
492
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vocdoni/skills",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Vocdoni's curated skills for AI coding assistants (Claude Code, Cursor, Cline, and other Anthropic-skill-compatible clients).",
|
|
5
5
|
"bin": {
|
|
6
6
|
"vocdoni-skills": "bin/install.js"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-dev",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "A controlled way to run non-trivial engineering work with Claude Code. The subagent-driven-development skill sizes the work, writes and audits a spec and plan, delegates implementation to subagents task by task, reviews every diff, runs a strict whole-branch gate audit, then merges and releases only with the owner's explicit OK. Ships audit and dispatch prompt templates, spec and plan templates, a ledger that survives context compaction, and scripts that generate per-task briefs. A SessionStart hook tells the model when to load the skill without being asked, and flags unfinished deliveries in the current repo. A model-router agent resolves the auditor, strong, standard and fast model roles from the models and agents available at the time, with a fallback for each.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Vocdoni",
|
|
@@ -48,9 +48,11 @@ continue.
|
|
|
48
48
|
|
|
49
49
|
This skill names **model roles**, not models, so it keeps working as new models ship. In phase 1
|
|
50
50
|
the `model-router` agent that ships with this plugin resolves the four model roles from the
|
|
51
|
-
models and agents available right now. Write its answer on the ledger's `Models:` line and
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
models and agents available right now. Write its answer on the ledger's `Models:` line, and the
|
|
52
|
+
thinking effort for each model role on the `Effort:` line next to it. Every dispatch takes its
|
|
53
|
+
target from the first and its `effort` from the second, so an implementer does not think as hard
|
|
54
|
+
as an auditor. [references/models.md](references/models.md) defines the lines and the defaults, and
|
|
55
|
+
how to resolve by hand when the router is not installed.
|
|
54
56
|
[references/dispatch.md](references/dispatch.md) says how to dispatch each kind of target and
|
|
55
57
|
when to re-route a role to its fallback.
|
|
56
58
|
|
|
@@ -101,7 +103,7 @@ re-size the work if the scope grows. Ask one question at a time with
|
|
|
101
103
|
AskUserQuestion, as multiple choice with your recommended option first. Show numbers (sizes,
|
|
102
104
|
latencies, costs, line counts) before asking the owner to choose. Resolve the model roles with
|
|
103
105
|
[references/models.md](references/models.md); once the workspace exists, write them on the
|
|
104
|
-
ledger's `Models:`
|
|
106
|
+
ledger's `Models:` and `Effort:` lines.
|
|
105
107
|
|
|
106
108
|
**2. Spec.** Write `docs/specs/YYYY-MM-DD-<topic>-design.md`, or use the place the repo already
|
|
107
109
|
keeps design docs. Start from [templates/spec.md](templates/spec.md). The spec states what must
|
|
@@ -36,7 +36,12 @@ exception is security-sensitive code, which starts at the strong model.
|
|
|
36
36
|
|
|
37
37
|
## Dispatching to a target
|
|
38
38
|
|
|
39
|
-
Read the role's target from the `Models:` line and dispatch it one of two ways
|
|
39
|
+
Read the role's target from the `Models:` line and dispatch it one of two ways. Pass the role's
|
|
40
|
+
level from the `Effort:` line as `effort` ([models.md](models.md#the-effort-line)). Omit it when
|
|
41
|
+
the level is `inherit`, and for an agent whose file sets its own `effort` (the last column of
|
|
42
|
+
`scripts/model-inventory.sh`'s Agents section, `(none)` when unset): as with `model`, a passed
|
|
43
|
+
value would override the agent's file. Left out, a subagent runs at its agent file's effort, or
|
|
44
|
+
else at the session's.
|
|
40
45
|
|
|
41
46
|
| Target | `subagent_type` | `model` |
|
|
42
47
|
|---|---|---|
|
|
@@ -44,6 +44,7 @@ Class: architectural Branch: feat/session-resume
|
|
|
44
44
|
Repos: ~/src/server @ 1a2b3c4, ~/src/client @ 5d6e7f8
|
|
45
45
|
Budget: 25 dispatches / 3 audits Used: 9 / 3
|
|
46
46
|
Models: auditor=general-purpose@fable (claude-fable-5-2[1m]; fallback astra-auditor) strong=general-purpose@opus (claude-opus-5-5[1m]; fallback general-purpose@fable) standard=glm-worker (claude-glm-5.3; fallback general-purpose@sonnet) fast=general-purpose@haiku (claude-haiku-5-5[1m]; fallback qwen-worker)
|
|
47
|
+
Effort: auditor=high strong=high standard=medium fast=low
|
|
47
48
|
|
|
48
49
|
## Lifecycle
|
|
49
50
|
- [x] 1. Explore and brainstorm; class stated to the owner; model roles resolved
|
|
@@ -77,8 +78,8 @@ Merged: server main @ 0d1e2f3, tag v1.4.0
|
|
|
77
78
|
```
|
|
78
79
|
|
|
79
80
|
Keep each entry on one physical line. `task-brief.sh` greps the `Ruling` lines, and you will grep
|
|
80
|
-
the rest during recovery. Add a `Plan:` header line once the plan exists, fill in `Models:`
|
|
81
|
-
[models.md](models.md) describes, and update `Used:` whenever you dispatch.
|
|
81
|
+
the rest during recovery. Add a `Plan:` header line once the plan exists, fill in `Models:` and
|
|
82
|
+
`Effort:` as [models.md](models.md) describes, and update `Used:` whenever you dispatch.
|
|
82
83
|
|
|
83
84
|
## Writing rulings
|
|
84
85
|
|
|
@@ -98,9 +99,11 @@ the rest during recovery. Add a `Plan:` header line once the plan exists, fill i
|
|
|
98
99
|
|
|
99
100
|
1. Find the workspace: `ls .delivery/` in the repo, or search for `progress.md` files.
|
|
100
101
|
2. Read `progress.md` in full. The header names the spec, the plan and the resolved models, and
|
|
101
|
-
the lifecycle shows the phase. Keep dispatching to the targets on the `Models:` line
|
|
102
|
-
|
|
103
|
-
before any dispatch.
|
|
102
|
+
the lifecycle shows the phase. Keep dispatching to the targets on the `Models:` line, at the
|
|
103
|
+
levels on the `Effort:` line. If either line still shows `<target>` or `<level>`
|
|
104
|
+
placeholders, resolve it again with [models.md](models.md) before any dispatch. If there is
|
|
105
|
+
no `Effort:` line (a ledger from before it existed), write one under `Models:` as
|
|
106
|
+
[models.md](models.md#the-effort-line) says.
|
|
104
107
|
3. Check each repo's `git log --oneline <base>..HEAD` against the ledger:
|
|
105
108
|
- a commit with no `complete` line means the task finished but was never reviewed, so
|
|
106
109
|
review it now;
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
- The four model roles
|
|
5
5
|
- Resolving the roles with the router
|
|
6
6
|
- The Models line
|
|
7
|
+
- The Effort line
|
|
7
8
|
- Resolving by hand
|
|
8
9
|
- Keeping this file current
|
|
9
10
|
|
|
@@ -15,12 +16,12 @@ and reviews comparable, and it survives context compaction.
|
|
|
15
16
|
|
|
16
17
|
## The four model roles
|
|
17
18
|
|
|
18
|
-
| Model role | What the model must be good at | Skill roles that use it | Default | Default target |
|
|
19
|
-
|
|
20
|
-
| **auditor model** | The strongest reasoning available: holding a spec, a plan and a whole-branch diff in mind at once, finding what the author missed, arguing soundness, concurrency and security. Speed and cost matter least. | Auditor and consultant | Fable 5.2 | `general-purpose@fable` |
|
|
21
|
-
| **strong model** | Deep coding and reasoning at a moderate cost: long plans written against real code, subtle fixes, concurrency, cryptography, security paths. | Plan drafter, Hard fixer, implementers of security-sensitive tasks | Opus 5.5 | `general-purpose@opus` |
|
|
22
|
-
| **standard model** | Reliable multi-file implementation and code reading at a low cost, following a precise brief. | Implementer, Code mapper | Sonnet 5.5 | `general-purpose@sonnet` |
|
|
23
|
-
| **fast model** | Quick, cheap execution of fully specified edits: transcribing given code, renames, vendoring, single-file changes. | Mechanical implementer | Haiku 5.5 | `general-purpose@haiku` |
|
|
19
|
+
| Model role | What the model must be good at | Skill roles that use it | Default | Default target | Effort |
|
|
20
|
+
|---|---|---|---|---|---|
|
|
21
|
+
| **auditor model** | The strongest reasoning available: holding a spec, a plan and a whole-branch diff in mind at once, finding what the author missed, arguing soundness, concurrency and security. Speed and cost matter least. | Auditor and consultant | Fable 5.2 | `general-purpose@fable` | high |
|
|
22
|
+
| **strong model** | Deep coding and reasoning at a moderate cost: long plans written against real code, subtle fixes, concurrency, cryptography, security paths. | Plan drafter, Hard fixer, implementers of security-sensitive tasks | Opus 5.5 | `general-purpose@opus` | high |
|
|
23
|
+
| **standard model** | Reliable multi-file implementation and code reading at a low cost, following a precise brief. | Implementer, Code mapper | Sonnet 5.5 | `general-purpose@sonnet` | medium |
|
|
24
|
+
| **fast model** | Quick, cheap execution of fully specified edits: transcribing given code, renames, vendoring, single-file changes. | Mechanical implementer | Haiku 5.5 | `general-purpose@haiku` | low |
|
|
24
25
|
|
|
25
26
|
Capability order: auditor ≥ strong > standard > fast. The escalation ladder in
|
|
26
27
|
[dispatch.md](dispatch.md) climbs this order, and every resolution must keep it. The auditor
|
|
@@ -89,6 +90,37 @@ If the harness cannot choose a model per subagent, every subagent runs on the se
|
|
|
89
90
|
Write `Models: all=<session model> (no per-agent model selection)` and apply the auditor note
|
|
90
91
|
above.
|
|
91
92
|
|
|
93
|
+
## The Effort line
|
|
94
|
+
|
|
95
|
+
Effort is how hard a subagent thinks, set with the Agent tool's `effort`. Left out, a subagent
|
|
96
|
+
thinks as hard as its agent file says, or else as the session does, so on a high session a
|
|
97
|
+
rename costs as much thinking as a gate audit, on every task and every fix round. The ledger
|
|
98
|
+
records it per model role, next to `Models:`:
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
Effort: auditor=high strong=high standard=medium fast=low
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
- Same grammar as the `Models:` line: `<role>=<level>`, two spaces apart, on one physical line.
|
|
105
|
+
`<level>` is `low`, `medium`, `high`, `xhigh`, `max`, or `inherit`: dispatch with no `effort`,
|
|
106
|
+
so the subagent thinks as hard as the session.
|
|
107
|
+
- Start from the Effort column of the table. An owner or repo rule that sets an effort wins, as
|
|
108
|
+
it does for models. Otherwise the defaults save on implementers, never on audits: if the
|
|
109
|
+
session runs above `high`, raise the auditor and strong roles to its level, and if you cannot
|
|
110
|
+
tell the session's level, write `inherit` for both. A session below a role's default does not
|
|
111
|
+
lower it; only an owner or repo rule does. Never write `max` unless the owner, the repo or the
|
|
112
|
+
session's own level asks for it.
|
|
113
|
+
- Write the line yourself when you copy the router's `Models:` line; the router does not set it.
|
|
114
|
+
A re-route keeps the role's effort.
|
|
115
|
+
- Every dispatch passes the role's level as `effort`, unless the level is `inherit` or the
|
|
116
|
+
target is an agent whose file sets its own: the last column of the inventory's Agents section
|
|
117
|
+
([dispatch.md](dispatch.md#dispatching-to-a-target)). A skill built on this one
|
|
118
|
+
states only the roles whose effort it changes.
|
|
119
|
+
- A change mid-delivery, at the owner's request or yours, gets a log line such as
|
|
120
|
+
`Effort change: standard medium -> high (owner asked)`, and the header line is updated.
|
|
121
|
+
- If the harness cannot set effort per subagent, write `Effort: all=<session effort> (no
|
|
122
|
+
per-agent effort)`.
|
|
123
|
+
|
|
92
124
|
## Resolving by hand
|
|
93
125
|
|
|
94
126
|
Use this only when the router agent is not available: an npx install (which copies the skill but
|
|
@@ -50,6 +50,7 @@ Class: ${class:-<spike|bounded|architectural>} Branch: ${branch:-<detached>}
|
|
|
50
50
|
Repos: $root @ $base
|
|
51
51
|
Budget: <dispatches> dispatches / <audits> audits Used: 0 / 0
|
|
52
52
|
Models: auditor=<target> strong=<target> standard=<target> fast=<target> (resolve with the model-router agent, see references/models.md)
|
|
53
|
+
Effort: auditor=<level> strong=<level> standard=<level> fast=<level> (defaults, owner rules and the session's level: see references/models.md)
|
|
53
54
|
Created: $(date +%F)
|
|
54
55
|
|
|
55
56
|
## Lifecycle
|
|
@@ -7,7 +7,8 @@
|
|
|
7
7
|
# (5 s limit), else ~/.claude/cache/gateway-models.json, else none.
|
|
8
8
|
# Aliases fable, opus, sonnet, haiku and the ANTHROPIC_DEFAULT_<X>_MODEL each resolves to,
|
|
9
9
|
# flagged when a newer version of the family is on the gateway list.
|
|
10
|
-
# Agents name<TAB>model<TAB>tools<TAB>description (first 100 chars) for every
|
|
10
|
+
# Agents name<TAB>model<TAB>tools<TAB>description (first 100 chars)<TAB>effort for every
|
|
11
|
+
# agent file.
|
|
11
12
|
#
|
|
12
13
|
# --offline skips the network. Never prints the token. Writes nothing, never blocks, always exits 0.
|
|
13
14
|
# Plain bash 3.2 with sed, grep, awk and curl, so it runs on stock macOS.
|
|
@@ -96,7 +97,7 @@ for alias in fable opus sonnet haiku; do
|
|
|
96
97
|
fi
|
|
97
98
|
done
|
|
98
99
|
|
|
99
|
-
# name<TAB>model<TAB>tools<TAB>description for one agent file; $2 prefixes plugin agents.
|
|
100
|
+
# name<TAB>model<TAB>tools<TAB>description<TAB>effort for one agent file; $2 prefixes plugin agents.
|
|
100
101
|
agent_line() {
|
|
101
102
|
awk -v prefix="$2" -v base="$(basename "$1" .md)" '
|
|
102
103
|
{ sub(/\r$/, "") }
|
|
@@ -112,13 +113,14 @@ agent_line() {
|
|
|
112
113
|
if (key == "name") name = val
|
|
113
114
|
else if (key == "model") model = val
|
|
114
115
|
else if (key == "tools") tools = val
|
|
116
|
+
else if (key == "effort") effort = val
|
|
115
117
|
else if (key == "description") { if (val ~ /^[|>][-+]?$/) block = 1; else desc = val }
|
|
116
118
|
}
|
|
117
119
|
END {
|
|
118
120
|
if (!fm) exit
|
|
119
121
|
gsub(/\t/, " ", desc)
|
|
120
|
-
printf "%s%s\t%s\t%s\t%s\n", prefix, (name == "" ? base : name), (model == "" ? "(inherit)" : model),
|
|
121
|
-
(tools == "" ? "(all)" : tools), substr(desc, 1, 100)
|
|
122
|
+
printf "%s%s\t%s\t%s\t%s\t%s\n", prefix, (name == "" ? base : name), (model == "" ? "(inherit)" : model),
|
|
123
|
+
(tools == "" ? "(all)" : tools), substr(desc, 1, 100), (effort == "" ? "(none)" : effort)
|
|
122
124
|
}' "$1" 2>/dev/null
|
|
123
125
|
}
|
|
124
126
|
|
|
@@ -1536,9 +1536,10 @@
|
|
|
1536
1536
|
}
|
|
1537
1537
|
},
|
|
1538
1538
|
"node_modules/cross-spawn": {
|
|
1539
|
-
"version": "7.
|
|
1540
|
-
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.
|
|
1541
|
-
"integrity": "sha512-
|
|
1539
|
+
"version": "7.1.2",
|
|
1540
|
+
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.1.2.tgz",
|
|
1541
|
+
"integrity": "sha512-8BPK2r+sKWC8sDinRwLwrFMq2lXTBBwzYYEB9LiCznfMurOi4FOvQflq3XOLGG+HPdMSVpe+k/s96+AtDEOgPg==",
|
|
1542
|
+
"license": "MIT",
|
|
1542
1543
|
"dependencies": {
|
|
1543
1544
|
"path-key": "^3.1.0",
|
|
1544
1545
|
"shebang-command": "^2.0.0",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vocdoni-contributing",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Vocdoni's rules for what the agent writes on the git host: tying each change to an issue (found, or opened before the PR),
|
|
3
|
+
"version": "0.7.0",
|
|
4
|
+
"description": "Vocdoni's rules for what the agent writes on the git host: tying each change to an issue (found, or opened before the PR), one issue per PR or stack, stacking PRs with gh stack, wiring an epic with one sub-issue per repository, epic labels and blocked-by links, who it introduces itself as, length and structure for PR/MR descriptions, issues, reviews and commits, how to post a review as a review, and how to reply to and resolve the review threads it addresses. SessionStart and SubagentStart hooks inject the same rules into every Claude Code session and subagent, so they apply even when a PR is one step of a larger task.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Vocdoni",
|
|
7
7
|
"url": "https://vocdoni.io"
|
|
@@ -36,7 +36,7 @@ json_escape() {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
if [ "$event" = SubagentStart ]; then
|
|
39
|
-
msg="The vocdoni-contributing plugin is installed. Follow these rules for every commit message and anything you write to the git host. Finding or opening the tracking issue
|
|
39
|
+
msg="The vocdoni-contributing plugin is installed. Follow these rules for every commit message and anything you write to the git host. Finding or opening the tracking issue, opening the PR and wiring them belong to the session that delegated to you: skip those steps unless your task asks for them.
|
|
40
40
|
|
|
41
41
|
$body"
|
|
42
42
|
else
|