@vocdoni/skills 0.5.3 → 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.
Files changed (77) hide show
  1. package/.claude-plugin/marketplace.json +29 -27
  2. package/CHANGELOG.md +38 -0
  3. package/README.md +66 -41
  4. package/bin/install.js +13 -2
  5. package/package.json +1 -1
  6. package/plugins/agentic-dev/.claude-plugin/plugin.json +2 -2
  7. package/plugins/agentic-dev/agents/model-router.md +105 -0
  8. package/plugins/agentic-dev/skills/subagent-driven-development/SKILL.md +25 -13
  9. package/plugins/agentic-dev/skills/subagent-driven-development/references/audits.md +20 -13
  10. package/plugins/agentic-dev/skills/subagent-driven-development/references/dispatch.md +42 -1
  11. package/plugins/agentic-dev/skills/subagent-driven-development/references/ledger.md +11 -6
  12. package/plugins/agentic-dev/skills/subagent-driven-development/references/model-catalog.md +118 -0
  13. package/plugins/agentic-dev/skills/subagent-driven-development/references/models.md +126 -71
  14. package/plugins/agentic-dev/skills/subagent-driven-development/scripts/init-workspace.sh +2 -1
  15. package/plugins/agentic-dev/skills/subagent-driven-development/scripts/model-inventory.sh +142 -0
  16. package/plugins/claude-pi-subagent/plugins/pi-subagent/package-lock.json +4 -3
  17. package/plugins/vocdoni-comments/.claude-plugin/plugin.json +2 -2
  18. package/plugins/vocdoni-comments/hooks/hooks.json +28 -0
  19. package/plugins/vocdoni-comments/hooks/session-start.sh +45 -0
  20. package/plugins/vocdoni-contributing/.claude-plugin/plugin.json +3 -2
  21. package/plugins/vocdoni-contributing/hooks/hooks.json +14 -2
  22. package/plugins/vocdoni-contributing/hooks/session-start.sh +18 -6
  23. package/plugins/vocdoni-contributing/skills/contributing/SKILL.md +41 -7
  24. package/plugins/vocdoni-go/.claude-plugin/plugin.json +2 -2
  25. package/plugins/vocdoni-go/skills/vocdoni-backend-review/SKILL.md +522 -0
  26. package/plugins/vocdoni-go/skills/vocdoni-backend-review/references/prompts.md +260 -0
  27. package/plugins/vocdoni-go/skills/vocdoni-backend-review/scripts/untracked-list.sh +35 -0
  28. package/plugins/vocdoni-sdk/.claude-plugin/plugin.json +4 -5
  29. package/plugins/vocdoni-sdk/skills/vocdoni-ballot-protocol/SKILL.md +61 -38
  30. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/SKILL.md +35 -21
  31. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/recipes/approval-vote.ts +3 -3
  32. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/recipes/basic-poll.ts +6 -6
  33. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/recipes/csp-vote.ts +12 -7
  34. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/recipes/multichoice-vote.ts +3 -3
  35. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/recipes/quadratic-vote.ts +3 -3
  36. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/recipes/ranked-vote.ts +3 -3
  37. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/recipes/weighted-census.ts +3 -3
  38. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/accounts.md +26 -15
  39. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/census.md +9 -10
  40. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/client.md +15 -13
  41. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/csp.md +43 -18
  42. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/elections.md +4 -4
  43. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/errors.md +24 -21
  44. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/removed-features.md +98 -0
  45. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/results.md +0 -1
  46. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/voting.md +30 -34
  47. package/plugins/vocdoni-sequencer/.claude-plugin/plugin.json +21 -0
  48. package/plugins/vocdoni-sequencer/skills/vocdoni-sequencer/SKILL.md +169 -0
  49. package/plugins/vocdoni-sequencer/skills/vocdoni-sequencer/references/removed-routes.md +60 -0
  50. package/plugins/davinci-sdk/.claude-plugin/plugin.json +0 -13
  51. package/plugins/davinci-sdk/skills/davinci-sdk/SKILL.md +0 -120
  52. package/plugins/davinci-sdk/skills/davinci-sdk/recipes/bootstrap.ts +0 -61
  53. package/plugins/davinci-sdk/skills/davinci-sdk/recipes/cast-vote.ts +0 -78
  54. package/plugins/davinci-sdk/skills/davinci-sdk/recipes/create-process.ts +0 -102
  55. package/plugins/davinci-sdk/skills/davinci-sdk/recipes/full-election.ts +0 -128
  56. package/plugins/davinci-sdk/skills/davinci-sdk/recipes/read-results.ts +0 -73
  57. package/plugins/davinci-sdk/skills/davinci-sdk/recipes/token-census.ts +0 -111
  58. package/plugins/davinci-sdk/skills/davinci-sdk/references/ballot-modes.md +0 -125
  59. package/plugins/davinci-sdk/skills/davinci-sdk/references/census.md +0 -168
  60. package/plugins/davinci-sdk/skills/davinci-sdk/references/contracts.md +0 -133
  61. package/plugins/davinci-sdk/skills/davinci-sdk/references/errors.md +0 -83
  62. package/plugins/davinci-sdk/skills/davinci-sdk/references/process.md +0 -225
  63. package/plugins/davinci-sdk/skills/davinci-sdk/references/protocol.md +0 -65
  64. package/plugins/davinci-sdk/skills/davinci-sdk/references/sequencer.md +0 -135
  65. package/plugins/davinci-sdk/skills/davinci-sdk/references/setup.md +0 -123
  66. package/plugins/davinci-sdk/skills/davinci-sdk/references/voting.md +0 -128
  67. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/recipes/anonymous-vote.ts +0 -108
  68. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/recipes/token-census.ts +0 -121
  69. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/anonymous.md +0 -183
  70. package/plugins/vocdoni-sdk/skills/vocdoni-sdk/references/census3.md +0 -308
  71. package/plugins/vocdoni-stripe/.claude-plugin/plugin.json +0 -22
  72. package/plugins/vocdoni-stripe/skills/stripe-subscription/SKILL.md +0 -276
  73. package/plugins/vocdoni-stripe/skills/stripe-subscription/references/backend-contract.md +0 -142
  74. package/plugins/vocdoni-stripe/skills/stripe-subscription/references/product-templates.md +0 -132
  75. package/plugins/vocdoni-stripe/skills/stripe-subscription/references/stripe-cli.md +0 -212
  76. package/plugins/vocdoni-stripe/skills/stripe-subscription/scripts/clone-product.sh +0 -247
  77. package/plugins/vocdoni-stripe/skills/stripe-subscription/scripts/stripe-json.sh +0 -223
@@ -9,23 +9,13 @@
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), and version-aware modern Go syntax.",
13
- "version": "0.1.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",
17
17
  "homepage": "https://github.com/vocdoni/skills"
18
18
  },
19
- {
20
- "name": "vocdoni-stripe",
21
- "source": "./plugins/vocdoni-stripe",
22
- "description": "Stripe operations for the Vocdoni SaaS: create subscriptions for existing customers with the org-address metadata the backend needs, clone per-customer Custom / Integrator Starter plan products, handle discounts and payment collection, always confirming before writing. Includes an environment-guarding Stripe CLI wrapper and a verified backend contract reference.",
23
- "version": "0.1.1",
24
- "category": "engineering",
25
- "tags": ["vocdoni", "stripe", "billing", "subscriptions", "saas", "stripe-cli"],
26
- "license": "AGPL-3.0-or-later",
27
- "homepage": "https://github.com/vocdoni/skills"
28
- },
29
19
  {
30
20
  "name": "vocdoni-internal-oauth",
31
21
  "source": "./plugins/vocdoni-internal-oauth",
@@ -50,7 +40,7 @@
50
40
  "name": "agentic-dev",
51
41
  "source": "./plugins/agentic-dev",
52
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.",
53
- "version": "0.3.1",
43
+ "version": "0.6.0",
54
44
  "category": "engineering",
55
45
  "tags": ["subagents", "orchestration", "planning", "code-review", "audit", "workflow"],
56
46
  "license": "AGPL-3.0-or-later",
@@ -59,8 +49,8 @@
59
49
  {
60
50
  "name": "vocdoni-comments",
61
51
  "source": "./plugins/vocdoni-comments",
62
- "description": "Code comment rules: 1-3 lines that carry the why, plus a trim procedure for a branch or a whole project that keeps every constraint only a comment states.",
63
- "version": "0.1.0",
52
+ "description": "Code comment rules: 1-3 lines that carry the why, plus a trim procedure for a branch or a whole project that keeps every constraint only a comment states. Hooks apply the writing rules in every session and subagent.",
53
+ "version": "0.2.0",
64
54
  "category": "engineering",
65
55
  "tags": ["comments", "code-comments", "code-quality", "code-review", "documentation"],
66
56
  "license": "AGPL-3.0-or-later",
@@ -69,8 +59,8 @@
69
59
  {
70
60
  "name": "vocdoni-contributing",
71
61
  "source": "./plugins/vocdoni-contributing",
72
- "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. A SessionStart hook applies them in every session, even as one step of a larger task.",
73
- "version": "0.4.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",
74
64
  "category": "engineering",
75
65
  "tags": ["vocdoni", "pull-request", "merge-request", "code-review", "issues", "commits", "git-host"],
76
66
  "license": "AGPL-3.0-or-later",
@@ -79,33 +69,45 @@
79
69
  {
80
70
  "name": "vocdoni-sdk",
81
71
  "source": "./plugins/vocdoni-sdk",
82
- "description": "Exhaustive reference for the Vocdoni SDK (@vocdoni/sdk): client setup, accounts, every census type, all election variants (approval/ranked/multichoice/budget/quadratic), anonymous (ZK) voting, CSP, and Census3, with copy-pasteable runnable recipes.",
83
- "version": "0.1.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",
84
74
  "category": "sdk",
85
- "tags": ["vocdoni", "voting", "elections", "sdk", "census3", "zk", "blockchain"],
75
+ "tags": ["vocdoni", "voting", "elections", "sdk", "legacy", "vochain", "ballot-protocol"],
86
76
  "license": "AGPL-3.0-or-later",
87
77
  "homepage": "https://github.com/vocdoni/skills"
88
78
  },
89
79
  {
90
- "name": "davinci-sdk",
91
- "source": "./plugins/davinci-sdk",
92
- "description": "Reference for the Vocdoni Davinci SDK (@vocdoni/davinci-sdk): the high-level DavinciSDK facade for the zk-based voting protocol — create-process, encrypted (ElGamal + zk-SNARK) voting, every census type (Merkle/dynamic/CSP/on-chain), ballot-mode configuration, lifecycle, and results, with runnable recipes and protocol grounding.",
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.",
93
83
  "version": "0.1.0",
94
- "category": "sdk",
95
- "tags": ["vocdoni", "davinci", "voting", "elections", "sdk", "zk", "homomorphic-encryption", "blockchain"],
84
+ "category": "engineering",
85
+ "tags": ["vocdoni", "vochain", "voconed", "sequencer", "blockchain", "voting"],
96
86
  "license": "AGPL-3.0-or-later",
97
87
  "homepage": "https://github.com/vocdoni/skills"
98
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
+ },
99
101
  {
100
102
  "name": "vocdoni-integrator-sdk",
101
103
  "source": {
102
104
  "source": "github",
103
105
  "repo": "vocdoni/vocdoni-integrator-sdk"
104
106
  },
105
- "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.",
106
108
  "category": "sdk",
107
109
  "tags": ["vocdoni", "integrator-sdk", "voting", "elections", "csp", "react", "saas"],
108
- "license": "AGPL-3.0-or-later",
110
+ "license": "LGPL-3.0-or-later",
109
111
  "homepage": "https://github.com/vocdoni/vocdoni-integrator-sdk"
110
112
  },
111
113
  {
package/CHANGELOG.md CHANGED
@@ -1,5 +1,43 @@
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
+
25
+ ## 0.6.0
26
+
27
+ ### Minor Changes
28
+
29
+ - [#86](https://github.com/vocdoni/skills/pull/86) [`3597b04`](https://github.com/vocdoni/skills/commit/3597b041b5b5c3b90a44b0de2e54c9d744c0b748) Thanks [@p4u](https://github.com/p4u)! - agentic-dev 0.4.0 adds a `model-router` agent that resolves the four model roles (auditor, strong, standard, fast) from the models and agents available when a delivery starts, with a reason and a fallback for each, and re-routes a role when its model fails, times out or returns empty reports. `scripts/model-inventory.sh` lists gateway models, what each alias resolves to and the installed agent files, and `references/model-catalog.md` records which model families may fill which role. An npx install gets the skill, the script and the catalog; the agent is Claude Code plugin-only.
30
+
31
+ - [#81](https://github.com/vocdoni/skills/pull/81) [`a9115f9`](https://github.com/vocdoni/skills/commit/a9115f9819ed80ef2b84055ce5170fd69ebe6e2f) Thanks [@altergui](https://github.com/altergui)! - The agentic-dev subagent-driven-development skill now compares a design, and the code it builds on, against well-known implementations before proposing it.
32
+
33
+ - [#60](https://github.com/vocdoni/skills/pull/60) [`751b1cb`](https://github.com/vocdoni/skills/commit/751b1cb08d637566a7d6c184277cf1ba151781ef) Thanks [@elboletaire](https://github.com/elboletaire)! - Removes the `vocdoni-stripe` plugin and its `stripe-subscription` skill. saas-backend has retired subscription plans in favour of pay-per-process wallet billing, and with only a couple of developers touching Stripe, a shared skill is not worth maintaining. If you installed skills with `npx @vocdoni/skills`, remove the old copy with `npx @vocdoni/skills uninstall stripe-subscription`; installing never removes a skill. Claude Code users can run `claude plugin uninstall vocdoni-stripe@vocdoni`.
34
+
35
+ ### Patch Changes
36
+
37
+ - [#76](https://github.com/vocdoni/skills/pull/76) [`3c95065`](https://github.com/vocdoni/skills/commit/3c95065ad5f2cb7b4fe8baa6e7e3de6e8708286d) Thanks [@elboletaire](https://github.com/elboletaire)! - vocdoni-comments 0.2.0 adds a SessionStart hook that injects the comment-writing rules into every Claude Code session, so they apply when comments are written as one step of a coding task. The README now says that plugins enabled through a repo's `.claude/settings.json` still have to be installed by each contributor. vocdoni-contributing 0.5.0 declares vocdoni-comments as a dependency, so Claude Code installs both together. Both plugins also register the hook for SubagentStart, so the rules reach subagents, which never receive a session's SessionStart context.
38
+
39
+ - [#83](https://github.com/vocdoni/skills/pull/83) [`b3e0221`](https://github.com/vocdoni/skills/commit/b3e022183c74ae1fad4b36a088591017768578a8) Thanks [@elboletaire](https://github.com/elboletaire)! - vocdoni-contributing 0.6.0 makes the agent's opening line say whether the user asked for or reviewed the post. Posts the agent makes on its own (the tracking issue it opens before a PR, review-thread replies, anything from an unattended run) now state that the user has not asked for or reviewed them.
40
+
3
41
  ## 0.5.3
4
42
 
5
43
  ### Patch Changes
package/README.md CHANGED
@@ -7,13 +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-stripe@vocdoni
16
+ claude plugin install vocdoni-sequencer@vocdoni
17
17
  claude plugin install vocdoni-internal-oauth@vocdoni
18
18
  claude plugin install vocdoni-ui-style@vocdoni
19
19
  claude plugin install agentic-dev@vocdoni
@@ -35,26 +35,30 @@ claude plugin update agentic-dev@vocdoni # repeat per installed plugin
35
35
 
36
36
  SDK references for anyone building voting on Vocdoni — clients, partners, and third-party developers.
37
37
 
38
- ### 🗳️ `vocdoni-sdk` — Vocdoni voting SDK
38
+ ### 🧩 `vocdoni-integrator-sdk` — Vocdoni Integrator SDK
39
39
 
40
- | Skill | What it covers |
41
- | -------------------------- | ------------------------------------------------------------------------------------------------------- |
42
- | `vocdoni-sdk` | Exhaustive [`@vocdoni/sdk`][sdk] reference — client, accounts, census, all election variants, anonymous (ZK), CSP, Census3 — plus runnable recipes. |
43
- | `vocdoni-ballot-protocol` | The on-chain data model the SDK serialises into: ballot encoding, results matrix, parameter semantics. |
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.
44
45
 
45
46
  ### 🔐 `davinci-sdk` — Vocdoni Davinci (zk voting) SDK
46
47
 
47
48
  | Skill | What it covers |
48
49
  | ------------- | ------------------------------------------------------------------------------------------------------- |
49
- | `davinci-sdk` | The [`@vocdoni/davinci-sdk`][davinci-sdk] facade — create a process, cast encrypted (ElGamal + zk-SNARK) votes, every census type (Merkle/dynamic/CSP/on-chain), ballot-mode configuration, lifecycle, and results — plus protocol grounding and runnable recipes. |
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. |
50
51
 
51
- ### 🧩 `vocdoni-integrator-sdk` — Vocdoni Integrator SDK
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.
52
53
 
53
- | Skill | What it covers |
54
- | ---------------- | ------------------------------------------------------------------------------------------------------- |
55
- | `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
56
55
 
57
- 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.
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. |
58
62
 
59
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.
60
64
 
@@ -71,14 +75,13 @@ Tooling we use internally for our own development workflow. Nothing stops you fr
71
75
  | `go-best-practices` | Rob Pike's *Go Proverbs* — idiomatic & architectural defaults. |
72
76
  | `go-code-quality` | Production checklist: domain types, error contracts, context, goroutines. |
73
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`. |
74
79
 
75
- ### 💳 `vocdoni-stripe` — Stripe operations for the SaaS
76
-
77
- | Skill | What it covers |
78
- | --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
79
- | `stripe-subscription` | Create a subscription for an existing customer through the Stripe CLI (or MCP): prompts for the minimum inputs, clones per-customer *Custom* / *Integrator Starter* plan products, handles discounts and collection, confirms before writing. |
80
+ ### ⛓️ `vocdoni-sequencer` — the Vochain today
80
81
 
81
- Requires `jq` and either the [Stripe CLI](https://docs.stripe.com/stripe-cli) with a started session (`stripe login`, then `stripe agent setup` for its own skill) or a Stripe MCP server.
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. |
82
85
 
83
86
  ### 🔑 `vocdoni-internal-oauth` — staff sign-in for internal tools
84
87
 
@@ -96,23 +99,29 @@ Requires `jq` and either the [Stripe CLI](https://docs.stripe.com/stripe-cli) wi
96
99
 
97
100
  | Skill | What it covers |
98
101
  | ---------------------- | -------------- |
99
- | `subagent-driven-development` | How the main session runs any multi-step change that will be merged: size the work (spike / bounded / architectural), write and audit a spec, have a plan drafted and pre-flight audited, dispatch one subagent per task with a strict prompt contract, review every diff, run a whole-branch gate audit, then merge and release only on the owner's OK. An auditor model, the strongest one available, is the independent auditor and consultant; a ledger in `.delivery/` survives context compaction. The skill names model roles rather than models: `references/models.md` maps them to today's defaults (see that file for today's defaults), moves to newer versions as they ship, and picks a model with similar strengths when a default is unavailable. Ships audit and dispatch prompts, spec and plan templates, and `init-workspace.sh` / `task-brief.sh`. |
102
+ | `subagent-driven-development` | How the main session runs any multi-step change that will be merged: size the work (spike / bounded / architectural), write and audit a spec, have a plan drafted and pre-flight audited, dispatch one subagent per task with a strict prompt contract, review every diff, run a whole-branch gate audit, then merge and release only on the owner's OK. An auditor model, the strongest one available, is the independent auditor and consultant; a ledger in `.delivery/` survives context compaction. The skill names model roles rather than models: `references/models.md` maps them to today's defaults, moves to newer versions as they ship, and picks a model with similar strengths when a default is unavailable. Ships audit and dispatch prompts, spec and plan templates, and `init-workspace.sh` / `task-brief.sh`. |
100
103
 
101
104
  The plugin also installs a **SessionStart hook** so the model loads the skill on its own for feature, refactor, protocol, migration, multi-repo, deploy and benchmark work, and resumes any unfinished `.delivery/` ledger in the current repo. The hook is Claude Code-only; an npx install gets the skill, which still triggers from its description.
102
105
 
106
+ A **`model-router` agent** resolves the skill's four model roles from what can be dispatched right now (gateway models, alias targets and agent files, listed by `scripts/model-inventory.sh`), classifies each model with `references/model-catalog.md`, and gives every role a fallback. The router is a Claude Code plugin agent; an npx install gets the skill, the scripts and the catalog but not the agent, and resolves the roles by hand.
107
+
103
108
  ### 💬 `vocdoni-comments` — code comments
104
109
 
105
110
  | Skill | What it covers |
106
111
  | ---------- | -------------- |
107
112
  | `comments` | How to write code comments (doc, inline, JSDoc): 1-3 lines per block that say the why or a constraint the code can't show, without restating code, narrating history or repeating documented flows, and with claims that match the code. `trim.md` shortens existing comments, either the blocks a branch added (`/comments trim`) or every long block in a project or folder (`/comments trim project [path]`; a plugin install namespaces them as `/vocdoni-comments:comments trim`), keeping anything only the comment said and reporting where each dropped piece lives. |
108
113
 
114
+ The plugin also installs **SessionStart and SubagentStart hooks** that inject the `comments` 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. Subagents do not receive a session's SessionStart context, so without the second hook a delegated worker never sees the rules. The rules hold when comments are written as one step of a coding task and the skill's description never matches. The hook reads `skills/comments/SKILL.md` directly, so the skill is the only place to edit. `trim.md` still loads with the skill. The hook is Claude Code-only; an npx install gets the skill, which still triggers from its description.
115
+
109
116
  ### 📝 `vocdoni-contributing` — what the agent posts on the git host
110
117
 
111
118
  | Skill | What it covers |
112
119
  | -------------- | -------------- |
113
- | `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 epic's PRs stacked on each other with `gh stack` and merged in one go, 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". |
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". |
114
121
 
115
- The plugin also installs a **SessionStart hook** that injects the same `contributing` body into every Claude Code session, so 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.
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.
123
+
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.
116
125
 
117
126
  ### 🤖 `pi-subagent` — delegate to Pi subagents
118
127
 
@@ -140,11 +149,11 @@ More plugins (`vocdoni-typescript`, `vocdoni-solidity`, …) will land under `pl
140
149
  claude plugin marketplace add vocdoni/skills
141
150
 
142
151
  # Install all current plugins
143
- claude plugin install vocdoni-sdk@vocdoni
144
- claude plugin install davinci-sdk@vocdoni
145
152
  claude plugin install vocdoni-integrator-sdk@vocdoni
153
+ claude plugin install davinci-sdk@vocdoni
154
+ claude plugin install vocdoni-sdk@vocdoni # legacy
146
155
  claude plugin install vocdoni-go@vocdoni
147
- claude plugin install vocdoni-stripe@vocdoni
156
+ claude plugin install vocdoni-sequencer@vocdoni
148
157
  claude plugin install vocdoni-internal-oauth@vocdoni
149
158
  claude plugin install vocdoni-ui-style@vocdoni
150
159
  claude plugin install agentic-dev@vocdoni
@@ -159,7 +168,7 @@ Iterating locally? Point the marketplace at a checkout instead:
159
168
  claude plugin marketplace add /path/to/skills
160
169
  ```
161
170
 
162
- To have a repo's contributors install the plugins, commit this as the repo's `.claude/settings.json`. Once a contributor trusts the folder, Claude Code registers the marketplace and enables these plugins:
171
+ To have a repo's contributors use the plugins, commit this as the repo's `.claude/settings.json`. Once a contributor trusts the folder, Claude Code registers the marketplace and marks these plugins as enabled, but it does not download them:
163
172
 
164
173
  ```json
165
174
  {
@@ -173,6 +182,15 @@ To have a repo's contributors install the plugins, commit this as the repo's `.c
173
182
  }
174
183
  ```
175
184
 
185
+ Each contributor still installs them once per clone:
186
+
187
+ ```sh
188
+ claude plugin install vocdoni-comments@vocdoni --scope project
189
+ claude plugin install vocdoni-contributing@vocdoni --scope project
190
+ ```
191
+
192
+ Use `--scope user` instead to cover every project on the machine. Until a plugin is installed it does not load at session start, so neither its skill nor its hook is there: `/reload-plugins` loads it for the current session only, and the `/plugin` **Errors** tab can list it as enabled but not installed.
193
+
176
194
  ### npx (any client that reads a skills directory)
177
195
 
178
196
  Installs into `~/.claude/skills/` by default (where Claude Code looks at user scope).
@@ -185,11 +203,11 @@ npx @vocdoni/skills install
185
203
  npx @vocdoni/skills install --plugin go
186
204
  npx @vocdoni/skills install --plugin sdk
187
205
  npx @vocdoni/skills install --plugin integrator-sdk # remote plugin, cloned on demand
188
- 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)
189
207
  npx @vocdoni/skills install --plugin agentic-dev # skill only; the SessionStart hook is Claude Code plugin-only
190
208
  npx @vocdoni/skills install --plugin ui-style # 'ui-style' → 'vocdoni-ui-style'
191
- npx @vocdoni/skills install --plugin comments # 'comments' → 'vocdoni-comments'
192
- npx @vocdoni/skills install --plugin contributing # 'contributing' → 'vocdoni-contributing'; skill only, the SessionStart hook is Claude Code plugin-only
209
+ npx @vocdoni/skills install --plugin comments # 'comments' → 'vocdoni-comments'; skill only, the hooks are Claude Code plugin-only
210
+ npx @vocdoni/skills install --plugin contributing # 'contributing' → 'vocdoni-contributing'; skill only, the hooks are Claude Code plugin-only
193
211
 
194
212
  # A single skill, looked up across plugins
195
213
  npx @vocdoni/skills install go-modern
@@ -228,7 +246,9 @@ claude plugin update vocdoni-sdk@vocdoni
228
246
  claude plugin update davinci-sdk@vocdoni
229
247
  claude plugin update vocdoni-integrator-sdk@vocdoni
230
248
  claude plugin update vocdoni-go@vocdoni
231
- claude plugin update vocdoni-stripe@vocdoni
249
+ claude plugin update vocdoni-sequencer@vocdoni
250
+ claude plugin update vocdoni-internal-oauth@vocdoni
251
+ claude plugin update vocdoni-ui-style@vocdoni
232
252
  claude plugin update agentic-dev@vocdoni
233
253
  claude plugin update vocdoni-comments@vocdoni
234
254
  claude plugin update vocdoni-contributing@vocdoni
@@ -239,7 +259,13 @@ Updates apply to new sessions; in a running session, run `/reload-plugins`. Run
239
259
 
240
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.
241
261
 
242
- 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.
263
+
264
+ #### A skill or hook is not loading
265
+
266
+ - `claude plugin list` must show the plugin, enabled, at the version in this repo: adding the marketplace installs nothing, and each plugin is installed on its own.
267
+ - A plugin enabled only by a repo's `.claude/settings.json` is not downloaded; install it as shown under [Install](#claude-code).
268
+ - Type `/` in a session and look for `/vocdoni-comments:comments` and `/vocdoni-contributing:contributing`. The `/plugin` **Errors** tab says why a plugin failed to load.
243
269
 
244
270
  ### npx
245
271
 
@@ -250,9 +276,9 @@ npx @vocdoni/skills@latest install --force # everything
250
276
  npx @vocdoni/skills@latest install --plugin agentic-dev --force # one plugin
251
277
  ```
252
278
 
253
- 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`.
254
280
 
255
- 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`.
256
282
 
257
283
  ### Manual
258
284
 
@@ -269,11 +295,9 @@ Copy the skill directories again over the old ones, or `git pull` if you symlink
269
295
  │ ├── vocdoni-go/
270
296
  │ │ ├── .claude-plugin/plugin.json
271
297
  │ │ └── skills/<skill>/SKILL.md
272
- │ ├── vocdoni-sdk/
273
- │ │ └── …
274
- │ ├── davinci-sdk/
298
+ │ ├── vocdoni-sdk/ # legacy
275
299
  │ │ └── …
276
- │ ├── vocdoni-stripe/
300
+ │ ├── vocdoni-sequencer/
277
301
  │ │ └── …
278
302
  │ ├── vocdoni-internal-oauth/
279
303
  │ │ └── …
@@ -281,20 +305,21 @@ Copy the skill directories again over the old ones, or `git pull` if you symlink
281
305
  │ │ └── …
282
306
  │ ├── agentic-dev/ # skill + SessionStart hook (hooks/)
283
307
  │ │ └── …
284
- │ ├── vocdoni-comments/
308
+ │ ├── vocdoni-comments/ # skill + session/subagent hooks (hooks/)
285
309
  │ │ └── …
286
- │ ├── vocdoni-contributing/ # skill + SessionStart hook (hooks/)
310
+ │ ├── vocdoni-contributing/ # skill + session/subagent hooks (hooks/)
287
311
  │ │ └── …
288
312
  │ └── claude-pi-subagent/ # nested marketplace (pi-agent-tools)
289
313
  │ └── plugins/pi-subagent/ # MCP server plugin + agents — see its README
290
314
  ├── bin/install.js # npx CLI (zero deps, Node ≥ 18)
315
+ ├── test/ # node:test suites for the CLI and the plugin hooks
291
316
  ├── package.json # Published as @vocdoni/skills
292
317
  ├── README.md
293
318
  ├── CONTRIBUTING.md # Authoring guide
294
319
  └── LICENSE # AGPL-3.0-or-later
295
320
  ```
296
321
 
297
- `vocdoni-integrator-sdk` has no directory here — it is a remote plugin whose `source` in `marketplace.json` points at [vocdoni/vocdoni-integrator-sdk][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].
298
323
 
299
324
  ---
300
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 (fs.existsSync(dst)) {
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 (!fs.existsSync(dst)) {
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.5.3",
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,7 +1,7 @@
1
1
  {
2
2
  "name": "agentic-dev",
3
- "version": "0.3.1",
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.",
3
+ "version": "0.6.0",
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",
7
7
  "url": "https://vocdoni.io"
@@ -0,0 +1,105 @@
1
+ ---
2
+ name: model-router
3
+ description: Resolves the four model roles of a subagent-driven delivery (auditor, strong, standard, fast) to dispatch targets from the models and agents available right now, using the model-inventory.sh output and the model catalog. Use in phase 1 of a delivery, when a dispatched model fails, times out or returns garbage and a role must be re-routed, when a newer model appears on the gateway, or when the owner asks which models a delivery should use. Returns one ledger Models line with a reason and a fallback per role. Read-only; dispatches nothing.
4
+ model: sonnet
5
+ tools: Read, Grep, Glob, Bash
6
+ ---
7
+
8
+ You resolve model roles. You read, decide and reply. You do not dispatch subagents, edit or
9
+ write any file, or change any setting. Bash is only for running `model-inventory.sh`.
10
+
11
+ ## Inputs the prompt gives you
12
+
13
+ - **Roles needed**: usually all four; on a re-route, the failed role and why it failed.
14
+ - **Class** of the delivery (bounded or architectural) and the **critical-code flag**: whether
15
+ the work implements cryptography or a core algorithm, and which.
16
+ - **Controller model**: the model ID the main session runs on.
17
+ - **Owner and repo rules** about models, quoted, or `none`.
18
+ - **Dispatchable agent types**: the names the session's Agent tool lists. Agent files added
19
+ after the session started are not loaded, so an agent missing from this list is not a target.
20
+ - **Catalog**: the path to `model-catalog.md`. Read it in full.
21
+ - **Inventory**: the path to `model-inventory.sh` (run it with `bash <path>`, add `--offline`
22
+ if the prompt says so) or its output pasted in.
23
+ - **Current `Models:` line**, on a re-route only.
24
+
25
+ If the catalog or the inventory is missing, say so in one line and stop.
26
+
27
+ ## Candidates
28
+
29
+ A role's candidates are the targets you could dispatch now:
30
+
31
+ - `general-purpose@<alias>` for `fable`, `opus`, `sonnet` and `haiku`. Its model is what the
32
+ inventory's Aliases section says the alias resolves to. `(gateway default)` means the exact ID
33
+ is not known: classify it by the alias's family and write the alias's family name, not an ID.
34
+ - an agent name from the inventory's Agents section that is also in the dispatchable list, whose
35
+ `model` is a gateway ID or an alias, and whose tools cover the role. The implementation roles
36
+ (strong, standard, fast) need Read, Grep, Glob, Bash, Write and Edit; the auditor needs only
37
+ Read, Grep and Glob, because it changes nothing and an auditor without Write returns its
38
+ report in its reply for the controller to save. `(all)` covers everything. `(inherit)` means
39
+ the controller's model.
40
+ - On a re-route, the target the prompt reports as failed is not a candidate, and neither is any
41
+ other target whose model is the same ID, even though the inventory still lists it. Name the ID
42
+ under `Unknown:` as `failed today: <id> (<reason>)` so the owner can fix the agent file or the
43
+ gateway; the controller records the observation in the catalog's Traits.
44
+
45
+ Classify each candidate's model by family with the catalog. A model whose family is not in the
46
+ catalog, or whose tier is `unknown, ask the owner`, is never a candidate.
47
+
48
+ ## Procedure
49
+
50
+ Apply these in order.
51
+
52
+ 1. **An owner or repo rule wins.** If it names a model or agent for a role, use it, even when the
53
+ catalog disagrees, and say so in the Why column.
54
+ 2. **Tier floor.** A candidate fills a role only if its family lists that tier. A family whose
55
+ tier note limits implementation (auditor-tier families implement only cryptography or core
56
+ algorithms) may fill the strong role only when the critical-code flag names such work, and
57
+ never with the same target as the auditor.
58
+ 3. **Newest version.** Within a family, take the newest version by the catalog's version order.
59
+ Never take an older version to save cost.
60
+ 4. **Capability order: auditor >= strong > standard > fast.** If a role has no candidate, take
61
+ the next role up, even past step 2's limit, and say so in the Why column. If a role ends on a
62
+ stronger model than the role above it, move the upper role to that model.
63
+ 5. **Auditor independence.** Among tier-equal auditor candidates, prefer one from a provider
64
+ other than the controller's. If the only auditor candidate is the controller's own model,
65
+ take it and say in the Why column that the audits are less independent.
66
+ 6. **Context.** For the auditor, prefer a target whose model is the `[1m]` variant, because gate
67
+ audits read the whole branch. An alias resolves to whatever the inventory says; note it when
68
+ that is not `[1m]`.
69
+ 7. **Latency for the fast role.** Weigh the latency the catalog records. A candidate observed
70
+ many times slower than another fast candidate loses to it.
71
+ 8. **Spread across providers, only as a tie-breaker.** Between candidates still equal, prefer a
72
+ provider no other role uses yet. Never drop a tier for it.
73
+ 9. **Fallback per role.** Pick one more target that qualifies for the role, from a different
74
+ provider or as an alias. If none qualifies, use the next role up, even past step 2's limit
75
+ (the auditor uses the strong role's target), and say so: a fallback only runs until the next
76
+ router run. At least one of target and fallback is a `general-purpose@<alias>`, because an
77
+ alias dispatch never depends on an agent being loaded.
78
+ 10. **Unknown IDs are never used.** List each gateway ID that matches no catalog family.
79
+
80
+ ## Output
81
+
82
+ Reply with exactly this, nothing before it:
83
+
84
+ ```
85
+ Models: auditor=<target> (<model id>; fallback <target>) strong=... standard=... fast=...
86
+
87
+ | Role | Target | Why | Fallback |
88
+ |---|---|---|---|
89
+ | auditor | <target> | <one line: tier, version, provider or rule that decided> | <target> (<model id>) |
90
+ | strong | ... | ... | ... |
91
+ | standard | ... | ... | ... |
92
+ | fast | ... | ... | ... |
93
+
94
+ Stale: <alias> resolves to <id>; <newer id> is on the gateway. <one line on the fix>
95
+ Unknown: <id>, <id>. Proposed catalog line: | <family> | <pattern> | unknown, ask the owner | ... |
96
+ Inventory: <live | cache dated ... | none>
97
+ ```
98
+
99
+ - The `Models:` line follows the grammar in `references/models.md`, next to the catalog: two
100
+ spaces between roles, the concrete model ID when known, then `; fallback <target>`.
101
+ - On a re-route, return the full line with only the affected roles changed.
102
+ - Omit `Stale:` and `Unknown:` when there is nothing to report. A stale alias is fixed by the
103
+ owner through `ANTHROPIC_DEFAULT_<X>_MODEL`, or by an agent file pinned to the newer ID, which
104
+ takes effect in the next session. Recommend one; change neither.
105
+ - Keep the Why column to one line per role. No other prose.