/pave:pave-contributefrom pave
Scans a Claude Code session for the most reusable insight, then creates a PR to contribute it back to the tonone repo. Activated by phrases like 'contribute a learning' or 'submit a fix upstream'.
Ships in pave. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
You are Pave. Scan the session. Find the learning. One question. PR. Done.
Read the current conversation and find the single most reusable insight. Look for:
/skill-nameScore candidates by reusability (would this help ANY tonone user, not just this project?). Pick the highest-scoring one. If nothing qualifies, print:
╭─ PAVE ── contribute ─────────────────────────────╮
No reusable learnings found in this session.
╰──────────────────────────────────────────────────╯
...and exit.
Determine exactly what to change in the tonone repo:
| Learning type | File to change |
|---|---|
| routing gap | CLAUDE.md — add routing rule |
| agent correction | agents/<name>.md — patch system prompt |
| missing skill | skills/<name>/SKILL.md — new skill stub |
| prompt improvement | agents/<name>.md or skills/<name>/SKILL.md |
Draft the exact diff in memory. Keep it minimal — one logical change.
Strip all user-specific context from the proposed change:
<project> / <company><path><redacted>Use AskUserQuestion with exactly this format:
Learning found:
<one-line description of the improvement>Change:<file>—<what changes, in 10 words or less>Contribute this to tonone?
Options: Yes / No
If No: exit silently.
TONONE_TMP=$(mktemp -d)
git clone https://github.com/tonone-ai/tonone "$TONONE_TMP/tonone" --depth=1 --quiet
cd "$TONONE_TMP/tonone"
gh repo fork --remote-name=fork --clone=false 2>/dev/null || true
GH_USER=$(gh api user --jq .login)
git remote add fork "https://github.com/${GH_USER}/tonone.git" 2>/dev/null || \
git remote set-url fork "https://github.com/${GH_USER}/tonone.git"
BRANCH="contribute/$(echo '<slug>' | tr ' ' '-')-$(date +%Y%m%d)"
git checkout -b "$BRANCH"
Apply the diff to the appropriate file. Then:
git add -A
git commit -m "contribute: <one-line description>"
git push fork "$BRANCH" --quiet
PR_URL=$(gh pr create \
--repo tonone-ai/tonone \
--head "${GH_USER}:${BRANCH}" \
--title "<title>" \
--body "## Learning
<description>
## Type
\`<routing | agent-patch | skill-new | skill-improve>\`
---
*Via \`/contribute\` — auto-extracted from a tonone session*" \
--json url --jq .url)
rm -rf "$TONONE_TMP"
╭─ PAVE ── contribute ─────────────────────────────╮
PR open: <PR_URL>
╰──────────────────────────────────────────────────╯
gh not authenticated → print "Run gh auth login first." Exit.rm -rf "$TONONE_TMP", exit.Follow the output format defined in docs/output-kit.md — 40-line CLI max, box-drawing skeleton, unified severity indicators, compressed prose.
If output exceeds 40 lines, delegate to /atlas-report.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Claude Code installs this plugin but refuses to load it
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
hooks/hooks.json: hooks.json declares PreToolUse/PermissionRequest at its top level, outside the "hooks" object — a PreToolUse/PermissionRequest hook that cannot be loaded may be what guards the permissions declared beside it, so nothing it sits in is applied until the entry is fixed or removed
Checked against Claude Code 2.1.332. The listing below is what the repository ships; Claude Code doesn't load it as published.
7 skills in this plugin
/pave-auditAudit developer experience — measure onboarding time, build speed, deployment friction, and developer satisfaction. Use when asked to "DX audit", "developer experience review", "why is development slow", "onboarding assessment", or "DORA metrics"./pave-catalogBuild a service catalog — schema, starter entries, and governance model. Produces what information to capture per service, how it's maintained, and where it lives. Use when asked to "service catalog", "what services do we have", "catalog our services", "service inventory", or "who owns what"./pave-envSet up local development environments — devcontainers, Docker Compose, one-command setup, dev/prod parity. Use when asked to "set up dev environment", "devcontainer", "docker compose for dev", "local development setup", or "one command to run".Other plugins' skills for the same job