create-paperclip-bundled-skill
Create a Paperclip Bundled Skill
Take source material — a tweet, a task description, a blog post, "make a skill
that does X" — and land it as a skill in the Paperclip skills catalog
(packages/skills-catalog/), delivered as a reviewed PR. The catalog is the
shelf every Paperclip company browses and installs from, so the bar is: correct
metadata, useful instructions, worked examples, and a clean validation run.
The core rule is FIND before MAKE: if a good skill already exists (in the
catalog, in this repo, or published on GitHub), reference or adapt it instead
of writing a duplicate from scratch.
When to use
- A human sends a tweet/link/idea and asks for it to become a Paperclip skill.
- A task asks to bundle an existing repo skill into the catalog.
- A task asks to add an external published skill to the catalog.
When not to use
- The skill is company-private (belongs in that company's library via the
Skills UI/API, not the shipped catalog).
- You only need a repo-internal agent skill for working on Paperclip itself —
that goes in .agents/skills/ or skills/, with no catalog machinery.
Step 0 — Capture the source material
Understand exactly what the skill should teach before writing anything.
Tweets / X links. Use the xc CLI (X API client). Paperclip engineering
agent environments ship it preinstalled and pre-authenticated; it is not a
tool you install or mint credentials for yourself. Check availability before
relying on it:
command -v xc && xc whoami # on PATH and authenticated? if not, use the fallback belowxc get <post-url-or-id> --json # the post itself (conversation_id, author)
xc search 'conversation_id:<id>' --archive --json # rest of the thread (>7 days old needs --archive)
xc user <username> # author context
xc search '<topic keywords>' -n 30 # related discussionIf xc is not on PATH, is unauthenticated, or the account lacks read access
(the check above fails for any reason), use another authorized source or ask
the user for the post, thread, and linked content. Report any unavailable context.
Other sources. Fetch linked articles/READMEs directly. Record the source
URL — it goes in the skill body or PR description as attribution.
Distill: what is the repeatable procedure? What inputs does it take? What does
"done" look like? If the source is just an aspiration ("agents should write
better commit messages"), you are authoring the procedure yourself — say so in
the PR.
Step 1 — FIND: search for an existing skill
Search in this order; stop when you have a clear winner.
- Already in the catalog? Avoid duplicates (duplicate slugs fail the
build):
```sh
grep -i '<topic>' packages/skills-catalog/generated/catalog.json
ls packages/skills-catalog/catalog/{bundled,optional}/*/
```
- Already in this repo? Check
.agents/skills/,skills/, and issue
history (gh search issues / Paperclip board) for prior work on the topic.
- Published on GitHub? Skills are conventionally a directory with a
SKILL.md:
```sh
gh search code --filename SKILL.md "<topic>" --limit 20
gh search repos "<topic> skill" --limit 20
```
Also check known collections (e.g. anthropics/skills) and do a web search
for <topic> agent skill SKILL.md.
Judge candidates by: does the SKILL.md actually contain the procedure (not a
stub)? Is it maintained? What does it bundle (scripts raise the trust level)?
Is the license compatible with redistribution? Then pick a path:
- Good external skill exists → add it as an external reference
(Step 2A). It stays attributed to and pinned at the upstream repo.
- Partial match → author a local skill (Step 2B) that adapts the idea;
credit the source with a link in the SKILL.md body.
- Nothing usable → author a new local skill (Step 2B).
Step 2 — Choose kind, category, and slug
- kind: default to
optional. Usebundledonly when the skill should
ship to every Paperclip company by default — that needs explicit human/board
direction, not your judgment call.
- category: reuse an existing directory when one fits (
browser,
content, docs, finance, paperclip-operations, product, quality,
research, software-development). New categories are allowed but must be
lowercase kebab-case slugs.
- slug: lowercase kebab-case (
^[a-z0-9]+(-[a-z0-9]+)*$), unique across
the whole catalog (both kinds).
The skill lives at
packages/skills-catalog/catalog/<kind>/<category>/<slug>/ and its canonical
key is paperclipai/<kind>/<category>/<slug>.
Step 2A — External reference path (catalog-ref.json)
The directory contains only catalog-ref.json (a directory with both
catalog-ref.json and SKILL.md fails the build). The manifest builder
fetches the pinned files from GitHub at build time and inventories them.
# Pin the exact commit for the chosen ref (tag or branch)
gh api repos/<owner>/<repo>/commits/<ref> --jq .sha{
"source": {
"type": "github",
"hostname": "github.com",
"owner": "<owner>",
"repo": "<repo>",
"ref": "<tag-or-branch>",
"commit": "<40-char sha from above>",
"path": "<dir inside the repo containing SKILL.md, or ''>"
},
"files": ["SKILL.md", "references/**", "scripts/run.py"],
"defaultInstall": false,
"recommendedForRoles": ["researcher"],
"requires": ["python3"],
"tags": ["topic", "keywords"]
}Rules the builder enforces:
filesentries are exact relative paths ordir/**globs;SKILL.mdmust
be included and must have frontmatter
