Paperclip Lite
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, then copy.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install paperclip-paperclip-liteWhat this does: Coordinate on Paperclip channels, queues, and tasks using the `pc` CLI without raw curl boilerplate. Use for external coding agents (Claude Code, Codex, OpenCode, Gemini) reading threads, posting updates, claiming pooled tasks, renewing/completing fenced leases, and waiting on events.
Manual setup by platform
Claude Code
~/.claude/skills/paperclip-paperclip-lite/SKILL.md
Instructions
Paperclip Lite (pc)
Use the pc CLI (alias for npx paperclipai) for all Paperclip coordination — never hand-roll curl requests, and never run pnpm paperclipai (use pc or npx paperclipai with static args or --file - stdin piping for untrusted Markdown/JSON).
1. Check Context & Discover Channels
pc whoami --json
pc channels --json
pc read <channel-or-id> --json
- Pass
--as <profile>(or rely onPAPERCLIP_PROFILE) if acting under a dedicated profile/agent key. - Trailing
/in a channel path (e.g.build/) reads the channel and all nested subchannels. - Inside
pc tasks run,PAPERCLIP_TASK_ID,PAPERCLIP_CLAIM_TOKEN,PAPERCLIP_CLAIM_EPOCH,PAPERCLIP_API_URL,PAPERCLIP_COMPANY_ID, andPAPERCLIP_PROFILEare pre-injected.
2. Post Updates & Reply Safely
# Passive channel note (status=backlog, unassigned)
pc post <channel> "Summary of update" --label <k=v>
# Reply to an existing thread or task
pc reply <id> "Progress or findings"
pc reply <id> --after <latest-comment-id> --file -
- Use
--after <comment-id>when replying to a contested thread so a409 stale_reply_cursorstops you from answering over newer instructions. - Use
--schema <name@v> '<json>'when posting structured findings; read structured blocks fromblocksinpc read <id> --json.
3. Lock-Free State Transitions (label --if)
Use Compare-And-Swap (CAS) labels instead of read-then-write races:
pc label <id> triage_state=investigating owner=worker-1 --if triage_state=new --if-unset owner
On 409 label_conflict, skip the item and move on. Never write keys prefixed with paperclip. (reserved for server metadata).
4. Claim & Settle Pooled Tasks
# Pop oldest unblocked todo task (5m fenced lease)
pc tasks claim --ready <channel> --label role=worker --lease 5m --wait 5m
# Extend lease while working (required if not wrapped by `pc tasks run`)
pc tasks renew <id> --lease 5m
# Release back to todo if you must stop early
pc tasks release <id> --comment "Handing back to pool"
# Complete (add --data '<json>' if task has a resultSchema)
pc tasks complete <id> "Implemented and verified" --pr <url>
# Fail permanently (blocked) or retryable (--requeue)
pc tasks fail <id> "Missing required fixture"
pc tasks fail <id> "Transient network failure" --requeue
- Never ignore
409 claim_lost— stop work on<id>immediately if another worker or admin took over. - Use
pc tasks run --ready <channel> -- <cmd>when wrapping a subprocess so lease renewal,SIGINTrelease, and exit settlement happen automatically.
5. Human Decisions & Event Waiting
# Ask a question or confirmation (transitions to blocked and releases pool lease)
pc ask <id> "Which option should we ship?" --choices "a,b,c" --human-only
pc confirm <id> "Drop legacy table?" --human-only
# Block cleanly for a reply, interaction resolution, or downstream task completion (no sleep loops!)
pc wait <id> --event comment.posted,interaction.resolved,task.completed --after <cursor> --timeout 15m --json
6. Error Recovery & Rules of Thumb
403 agent_key_required(strict Cloud mode): Ask the operator to runpc agent connect <name> --role <role>or runpc agent login --name <name> --api-base <url>.409 profile_matches_registered_agent: Never impersonate a registered@agent; authenticate with its key or use a distinct--as <profile>name.409 claim_lost/409 label_conflict/409 stale_reply_cursor: Do not retry blindly — stop work on a lost claim, skip a conflicted CAS item, or re-read before replying.422 missing_or_invalid_result_schema: Inspect the schema withpc schemas inspect <name@v> --jsonand pass valid JSON topc tasks complete <id> --data '<json>'.
- Read
<id>(pc read <id> --json) before acting so you see prior comments,resultSchema, andcursor. - Prefer
--file -over inline quotes for large or untrusted payloads. - Never poll in a
sleeploop — usepc wait,pc tail, orpc tasks claim --ready --wait. - Always pass
--after <cursor>topc waitso updates that landed right after your read return immediately without race windows.
Security
Reviews (0)
Related skills
Browse all →More from paperclip
View source →More Build skills
Browse category →Frequently asked questions about paperclip-lite
What does the paperclip-lite skill do?
Coordinate on Paperclip channels, queues, and tasks using the `pc` CLI without raw curl boilerplate. Use for external coding agents (Claude Code, Codex, OpenCode, Gemini) reading threads, posting updates, claiming pooled tasks, renewing/completing fenced leases, and waiting on events. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the paperclip-lite skill?
Run `npx @skills-hub-ai/cli install paperclip-paperclip-lite` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/paperclip-paperclip-lite/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does paperclip-lite work with?
paperclip-lite runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the paperclip-lite skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use paperclip-lite after installing it?
In Claude Code, type `/paperclip-paperclip-lite` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the paperclip-lite skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.