@vocdoni/skills 0.3.0 → 0.4.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 +10 -0
- package/CHANGELOG.md +6 -0
- package/README.md +28 -0
- package/package.json +1 -1
- package/plugins/vocdoni-contributing/.claude-plugin/plugin.json +24 -0
- package/plugins/vocdoni-contributing/hooks/hooks.json +16 -0
- package/plugins/vocdoni-contributing/hooks/session-start.sh +37 -0
- package/plugins/vocdoni-contributing/skills/contributing/SKILL.md +28 -0
|
@@ -66,6 +66,16 @@
|
|
|
66
66
|
"license": "AGPL-3.0-or-later",
|
|
67
67
|
"homepage": "https://github.com/vocdoni/skills"
|
|
68
68
|
},
|
|
69
|
+
{
|
|
70
|
+
"name": "vocdoni-contributing",
|
|
71
|
+
"source": "./plugins/vocdoni-contributing",
|
|
72
|
+
"description": "Rules for what the agent posts on the git host: self-introduction, length and structure for PR/MR descriptions, issues and reviews, and posting reviews as reviews. A SessionStart hook applies them in every session, even as one step of a larger task.",
|
|
73
|
+
"version": "0.1.0",
|
|
74
|
+
"category": "engineering",
|
|
75
|
+
"tags": ["vocdoni", "pull-request", "merge-request", "code-review", "issues", "commits", "git-host"],
|
|
76
|
+
"license": "AGPL-3.0-or-later",
|
|
77
|
+
"homepage": "https://github.com/vocdoni/skills"
|
|
78
|
+
},
|
|
69
79
|
{
|
|
70
80
|
"name": "vocdoni-sdk",
|
|
71
81
|
"source": "./plugins/vocdoni-sdk",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @vocdoni/skills
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#49](https://github.com/vocdoni/skills/pull/49) [`d309023`](https://github.com/vocdoni/skills/commit/d309023e026d3eb52a726b096ebbb7791908dbbd) Thanks [@elboletaire](https://github.com/elboletaire)! - New plugin `vocdoni-contributing` (`npx @vocdoni/skills install --plugin contributing`): its `contributing` skill sets the rules for what the agent posts on GitHub or GitLab (PR and MR descriptions, issues, reviews and commits), and its SessionStart hook injects the same rules into every Claude Code session by reading the skill's SKILL.md.
|
|
8
|
+
|
|
3
9
|
## 0.3.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -18,6 +18,7 @@ claude plugin install vocdoni-internal-oauth@vocdoni
|
|
|
18
18
|
claude plugin install vocdoni-ui-style@vocdoni
|
|
19
19
|
claude plugin install agentic-dev@vocdoni
|
|
20
20
|
claude plugin install vocdoni-comments@vocdoni
|
|
21
|
+
claude plugin install vocdoni-contributing@vocdoni
|
|
21
22
|
claude plugin install pi-subagent@vocdoni # MCP server + agents — needs Pi (see its README)
|
|
22
23
|
|
|
23
24
|
# Or grab everything in one shot (skill plugins only; pi-subagent is Claude Code-only)
|
|
@@ -105,6 +106,14 @@ The plugin also installs a **SessionStart hook** so the model loads the skill on
|
|
|
105
106
|
| ---------- | -------------- |
|
|
106
107
|
| `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. |
|
|
107
108
|
|
|
109
|
+
### 📝 `vocdoni-contributing` — what the agent posts on the git host
|
|
110
|
+
|
|
111
|
+
| Skill | What it covers |
|
|
112
|
+
| -------------- | -------------- |
|
|
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, length limits and structure for PR/MR descriptions and issues, findings of about three sentences in reviews (nits marked "Nit:"), and reviews posted as reviews marked "Approve" or "Request changes". |
|
|
114
|
+
|
|
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.
|
|
116
|
+
|
|
108
117
|
### 🤖 `pi-subagent` — delegate to Pi subagents
|
|
109
118
|
|
|
110
119
|
Delegate work to **named [Pi][pi] subagents** — reusable personas, each with its own model and tools (including MCP tools) — and to bounded one-off coding tasks. Unlike the skill plugins above, this one bundles a local **MCP server** that launches Pi (`pi --mode rpc`), isolates code edits in a detached **git worktree**, and hands back a summary plus a diff to review. Changes are never applied automatically.
|
|
@@ -140,6 +149,7 @@ claude plugin install vocdoni-internal-oauth@vocdoni
|
|
|
140
149
|
claude plugin install vocdoni-ui-style@vocdoni
|
|
141
150
|
claude plugin install agentic-dev@vocdoni
|
|
142
151
|
claude plugin install vocdoni-comments@vocdoni
|
|
152
|
+
claude plugin install vocdoni-contributing@vocdoni
|
|
143
153
|
claude plugin install pi-subagent@vocdoni # see plugins/claude-pi-subagent/plugins/pi-subagent/README.md
|
|
144
154
|
```
|
|
145
155
|
|
|
@@ -149,6 +159,20 @@ Iterating locally? Point the marketplace at a checkout instead:
|
|
|
149
159
|
claude plugin marketplace add /path/to/skills
|
|
150
160
|
```
|
|
151
161
|
|
|
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:
|
|
163
|
+
|
|
164
|
+
```json
|
|
165
|
+
{
|
|
166
|
+
"extraKnownMarketplaces": {
|
|
167
|
+
"vocdoni": { "source": { "source": "github", "repo": "vocdoni/skills" } }
|
|
168
|
+
},
|
|
169
|
+
"enabledPlugins": {
|
|
170
|
+
"vocdoni-comments@vocdoni": true,
|
|
171
|
+
"vocdoni-contributing@vocdoni": true
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
```
|
|
175
|
+
|
|
152
176
|
### npx (any client that reads a skills directory)
|
|
153
177
|
|
|
154
178
|
Installs into `~/.claude/skills/` by default (where Claude Code looks at user scope).
|
|
@@ -165,6 +189,7 @@ npx @vocdoni/skills install --plugin davinci-sdk # full name (no vocdoni- p
|
|
|
165
189
|
npx @vocdoni/skills install --plugin agentic-dev # skill only; the SessionStart hook is Claude Code plugin-only
|
|
166
190
|
npx @vocdoni/skills install --plugin ui-style # 'ui-style' → 'vocdoni-ui-style'
|
|
167
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
|
|
168
193
|
|
|
169
194
|
# A single skill, looked up across plugins
|
|
170
195
|
npx @vocdoni/skills install go-modern
|
|
@@ -206,6 +231,7 @@ claude plugin update vocdoni-go@vocdoni
|
|
|
206
231
|
claude plugin update vocdoni-stripe@vocdoni
|
|
207
232
|
claude plugin update agentic-dev@vocdoni
|
|
208
233
|
claude plugin update vocdoni-comments@vocdoni
|
|
234
|
+
claude plugin update vocdoni-contributing@vocdoni
|
|
209
235
|
claude plugin update pi-subagent@vocdoni
|
|
210
236
|
```
|
|
211
237
|
|
|
@@ -257,6 +283,8 @@ Copy the skill directories again over the old ones, or `git pull` if you symlink
|
|
|
257
283
|
│ │ └── …
|
|
258
284
|
│ ├── vocdoni-comments/
|
|
259
285
|
│ │ └── …
|
|
286
|
+
│ ├── vocdoni-contributing/ # skill + SessionStart hook (hooks/)
|
|
287
|
+
│ │ └── …
|
|
260
288
|
│ └── claude-pi-subagent/ # nested marketplace (pi-agent-tools)
|
|
261
289
|
│ └── plugins/pi-subagent/ # MCP server plugin + agents — see its README
|
|
262
290
|
├── bin/install.js # npx CLI (zero deps, Node ≥ 18)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vocdoni/skills",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.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"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vocdoni-contributing",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Vocdoni's rules for what the agent writes on the git host: who it introduces itself as, length and structure for PR/MR descriptions, issues, reviews and commits, and how to post a review as a review. A SessionStart hook injects the same rules into every Claude Code session, so they apply even when a PR is one step of a larger task.",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Vocdoni",
|
|
7
|
+
"url": "https://vocdoni.io"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://github.com/vocdoni/skills",
|
|
10
|
+
"repository": "https://github.com/vocdoni/skills",
|
|
11
|
+
"license": "AGPL-3.0-or-later",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"claude-code",
|
|
14
|
+
"skills",
|
|
15
|
+
"vocdoni",
|
|
16
|
+
"contributing",
|
|
17
|
+
"pull-request",
|
|
18
|
+
"merge-request",
|
|
19
|
+
"code-review",
|
|
20
|
+
"issues",
|
|
21
|
+
"commits",
|
|
22
|
+
"git-host"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Injects the vocdoni-contributing rules (PR/MR descriptions, issues, reviews, commits) into every session by reading the skill body from SKILL.md",
|
|
3
|
+
"hooks": {
|
|
4
|
+
"SessionStart": [
|
|
5
|
+
{
|
|
6
|
+
"hooks": [
|
|
7
|
+
{
|
|
8
|
+
"type": "command",
|
|
9
|
+
"command": "bash \"${CLAUDE_PLUGIN_ROOT}/hooks/session-start.sh\"",
|
|
10
|
+
"timeout": 10
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# SessionStart hook for the vocdoni-contributing plugin.
|
|
3
|
+
#
|
|
4
|
+
# Injects the contributing skill body (SKILL.md without its YAML frontmatter) into every session, so the
|
|
5
|
+
# rules for PR/MR descriptions, issues, reviews and commits apply even when they are one step of a larger
|
|
6
|
+
# task and the skill's description never matches. Reads the body from SKILL.md so there is one source of truth.
|
|
7
|
+
#
|
|
8
|
+
# Prints hookSpecificOutput JSON on stdout. Reads no input, writes nothing on error, never blocks, always exits 0.
|
|
9
|
+
# Plain bash 3.2 so it runs on stock macOS.
|
|
10
|
+
|
|
11
|
+
script_dir=$(cd "$(dirname "$0")" 2>/dev/null && pwd)
|
|
12
|
+
|
|
13
|
+
skill=""
|
|
14
|
+
for root in "${CLAUDE_PLUGIN_ROOT:-}" "$script_dir/.."; do
|
|
15
|
+
if [ -n "$root" ] && [ -r "$root/skills/contributing/SKILL.md" ]; then
|
|
16
|
+
skill="$root/skills/contributing/SKILL.md"
|
|
17
|
+
break
|
|
18
|
+
fi
|
|
19
|
+
done
|
|
20
|
+
[ -n "$skill" ] || exit 0
|
|
21
|
+
|
|
22
|
+
# Drop the frontmatter block (first line "---" up to the next "---"), then leading blank lines.
|
|
23
|
+
body=$(tr -d '\r' < "$skill" 2>/dev/null | awk 'NR == 1 && /^---$/ { fm = 1; next } fm && /^---$/ { fm = 0; next } !fm' | sed '/./,$!d')
|
|
24
|
+
[ -n "$body" ] || exit 0
|
|
25
|
+
|
|
26
|
+
tab=$(printf '\t')
|
|
27
|
+
|
|
28
|
+
json_escape() {
|
|
29
|
+
printf '%s' "$1" | sed -e 's/\\/\\\\/g' -e 's/"/\\"/g' -e "s/$tab/\\\\t/g" | awk '{ printf "%s%s", (NR > 1 ? "\\n" : ""), $0 }'
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
msg="The vocdoni-contributing plugin is installed. Follow these rules whenever you write or post to the git host, even as one step of a larger task:
|
|
33
|
+
|
|
34
|
+
$body"
|
|
35
|
+
|
|
36
|
+
printf '{"hookSpecificOutput":{"hookEventName":"SessionStart","additionalContext":"%s"}}\n' "$(json_escape "$msg")"
|
|
37
|
+
exit 0
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: contributing
|
|
3
|
+
description: Use whenever writing or posting a pull request or merge request description, an issue, a code review, a review comment or a commit message, on GitHub, GitLab or any other git host, through gh, glab or the web, including as one step of a larger task. Sets how to introduce yourself as the agent acting for the user, length limits and structure for PRs, issues and reviews, and how to post a review.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Contributing
|
|
7
|
+
|
|
8
|
+
These rules cover everything you write on the git host for the user: pull or merge request descriptions, issues, reviews, review comments and commits.
|
|
9
|
+
|
|
10
|
+
## Introduce yourself
|
|
11
|
+
|
|
12
|
+
Start every PR description, issue, review and comment you post with one line saying which model you are and who you act for, such as "This is {model} speaking on behalf of {owner}." or "{model} here, on behalf of {owner}." `{owner}` is the login of the host CLI's user (`gh api user -q .login`, `glab api user | jq -r .username`), else `git config user.name`. Don't sign off at the end.
|
|
13
|
+
|
|
14
|
+
Don't add a `Co-authored-by` trailer for yourself to commits. The person running you answers for the change.
|
|
15
|
+
|
|
16
|
+
## Pull requests
|
|
17
|
+
|
|
18
|
+
Keep descriptions under ~15 lines of markdown, code blocks included: what changed and why, any non-obvious decisions, how it was tested, and **one** usage example if the change has a user-facing surface. Skip anything the diff or README already says.
|
|
19
|
+
|
|
20
|
+
## Issues
|
|
21
|
+
|
|
22
|
+
Keep issues under ~15 lines of markdown too, code blocks included. Open with the problem in a sentence or two. For a bug, add what happens, what should happen and the shortest way to reproduce it. For a feature, add why it's needed and what "done" looks like. Then add pointers to the relevant code, PRs or issues, and a proposed approach if there's one. Quote only the log lines that matter, label guesses as guesses, and skip anything the title already says.
|
|
23
|
+
|
|
24
|
+
## Reviews
|
|
25
|
+
|
|
26
|
+
Each finding takes about three sentences: what's wrong, what it breaks, and the fix. Don't walk through every step of the reasoning or restate what the diff shows. Mark nits with "Nit:" and keep them shorter still. The review's summary body follows the same rule.
|
|
27
|
+
|
|
28
|
+
Post a review you were asked to publish as a review, not as a plain comment, and mark it "Approve" or "Request changes" depending on its outcome (on GitLab: approve, or leave the blocking threads unresolved). Write a bare `@name` only for a real login you mean to notify.
|