paperclip-dev

Operate local Paperclip instances, worktrees, databases, and pull request workflows.

Updated Jul 14, 2026
One-click install
npx skills add https://github.com/Douglas-v/strategic-ai-paperclip-lab --skill paperclip-dev-douglas-v
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: paperclip-dev
Source: https://github.com/Douglas-v/strategic-ai-paperclip-lab/tree/main/paperclip/skills/paperclip-dev
Command: npx skills add https://github.com/Douglas-v/strategic-ai-paperclip-lab --skill paperclip-dev-douglas-v

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Developing and running a local Paperclip instance involves many moving parts — servers, databases, git worktrees, migrations, and PR conventions — and improvising around CLI failures can corrupt data or break isolation. This Skill provides the canonical operational playbook so agents and developers run every task through the supported paperclipai CLI instead of risky manual workarounds. ## Core Features & Use Cases - Instance Lifecycle Management: Start, stop, build, test, migrate, back up, and health-check a local Paperclip server using commands like npx paperclipai run and npx paperclipai doctor --repair. - Isolated Worktrees: Create and manage git worktrees, each with its own database, port, and environment, for parallel feature development without cross-contamination. - Fork & PR Workflow: Detect user forks, push feature branches to the correct remote, and create pull requests that strictly follow the required template sections and CI checks. - Persistent Dev Servers: Launch long-lived dev servers in detached tmux sessions so they survive agent heartbeats for manual QA testing. - Use Case: An agent needs to fix a bug on a feature branch: it creates a worktree with worktree:make, sources the environment, starts an isolated server in tmux, verifies the health endpoint, and later opens a compliant PR from the user's fork. ## Quick Start Ask the agent to read doc/DEVELOPING.md and then start a local Paperclip dev server in an isolated worktree for your feature branch.

Frequently Asked Questions about paperclip-dev

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I start a local Paperclip dev server?

Run `npx paperclipai run` for a normal start or `pnpm dev` for hot-reload development mode. Before running any command, read doc/DEVELOPING.md in the repo, which is the canonical reference for all CLI options and workflows.

How do I create an isolated Paperclip worktree for a feature branch?

Run `npx paperclipai worktree:make <name> --start-point origin/main`, then cd into the printed path and run `eval "$(npx paperclipai worktree env)"` to source the environment. Each worktree gets its own database, port, and seeded environment.

What should I do when a paperclipai CLI command fails?

Stop and report the exact error message, set the task to blocked, and suggest running `npx paperclipai doctor --repair` or recreating the worktree. Never attempt manual workarounds such as raw postgres commands or editing data directories.

Can I run pg_dump or psql directly against a Paperclip database?

No. All database and worktree operations must go through the paperclipai CLI, such as `npx paperclipai db:backup` or `worktree reseed`. Raw postgres commands, manual DATABASE_URL overrides, and deleting data directories are explicitly forbidden.

Why does my Paperclip dev server stop after the agent heartbeat ends?

Processes started directly from a heartbeat shell are killed when the heartbeat exits. Launch the server in a detached tmux session with `tmux new-session -d -s <name> 'pnpm dev'` and verify the port is listening before reporting it as running.

Should I push Paperclip feature branches to origin or a fork?

If `git remote -v` shows a user fork of paperclipai/paperclip, push feature branches to that fork and open the PR from it. Only push to origin when no fork exists, and never create a fork on the user's behalf without asking.