Documentation
Copy for a coding agent is the fastest way to give a coding assistant the exact
implementation context for a pattern. This is not the same as installing one
of the four Premium coding-agent skills. Those are installable
playbooks; this action copies pattern implementation files as AI-ready context.
For verified patterns, the menu can copy either Next.js implementation files or a standalone Hono API server.
Choose a target
| Target | What is copied |
|---|---|
| Next.js | Curated files selected from meta.criticalFilesToCopy |
| Hono API server | AI-friendly Markdown from the verified, runnable Hono server bundle |
The Hono payload includes server source and configuration, but no React UI or Next.js application shell. See Export a Pattern for the complete workflow.
What is copied for Next.js
The feature reads meta.criticalFilesToCopy for a pattern and only includes files that matter most for changes:
- core AI logic
- orchestration and routing files
- tool definitions and schemas
- key UI integration files
Each selected file also includes an instructionsForAI note so the assistant knows what to focus on.
Output format
The copied payload is structured markdown:
- Pattern title and description
## Implementation files- For each file:
### <path>- a short instruction block
- a fenced code block with full file content
This format is intentional: it works well in Cursor, Claude Code, Codex, and other coding agents.
Hono uses the same Markdown-oriented approach, but its file set comes from the
standalone server export rather than meta.criticalFilesToCopy. That keeps the
copied Hono files aligned with the runnable download.
Where it is implemented
- Main behavior:
components/block-viewer.tsx - Gated public UI and upgrade prompt:
components/public-block-viewer.tsx - Intro dialog copy:
components/copy-skill-files-dialog.tsx
How to use it effectively
- Open a pattern page.
- Click
Copy for a coding agent. - Choose Next.js or Hono API server when both are available.
- Paste into your coding agent.
- Ask for a scoped change, for example:
- "Refactor tool execution error handling only."
- "Add approval before the destructive tool runs."
Related
- Install AISDK Agents skills β installable Premium skill packs
- Skills catalog β Plan, Build, Evaluate, Optimize
ai sdk templates.