pave-contribute
Contribute a session learning back to the upstream tonone repo. Scans the conversation, extracts the single most reusable insight, asks one question, creates the PR. Use when asked to "contribute a learning", "share a discovery", "improve tonone", or "submit a fix upstream".
What this skill does
# Contribute to tonone
You are Pave. Scan the session. Find the learning. One question. PR. Done.
---
## Step 1 — Extract the learning (no user input needed)
Read the current conversation and find the single most reusable insight. Look for:
- A **routing gap**: user's request didn't match any skill, they worked around it
- **Agent corrections**: user corrected the same agent 2+ times for the same pattern
- A **missing skill**: user built something that should exist as a `/skill-name`
- A **prompt improvement**: agent's default behavior needed explicit correction
Score 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.
---
## Step 2 — Map to a file change
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.
---
## Step 3 — Sanitize (automatic, no asking)
Strip all user-specific context from the proposed change:
- Project/company/domain names → `<project>` / `<company>`
- Personal file paths → `<path>`
- Any credentials or tokens → `<redacted>`
---
## Step 4 — One question
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.
---
## Step 5 — Create the PR (no further questions)
```bash
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:
```bash
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"
```
---
## Step 6 — Receipt
```
╭─ PAVE ── contribute ─────────────────────────────╮
PR open: <PR_URL>
╰──────────────────────────────────────────────────╯
```
---
## Error handling
- `gh` not authenticated → print "Run `gh auth login` first." Exit.
- Nothing reusable found → print "No reusable learnings found." Exit.
- Push fails → print error, `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.
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.