Documentation

Copy for a coding agent

How this action curates critical implementation files, formats them for AI coding tools, and speeds up iteration in Cursor, Claude Code, or Codex.

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

TargetWhat is copied
Next.jsCurated files selected from meta.criticalFilesToCopy
Hono API serverAI-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:

  1. Pattern title and description
  2. ## Implementation files
  3. 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

  1. Open a pattern page.
  2. Click Copy for a coding agent.
  3. Choose Next.js or Hono API server when both are available.
  4. Paste into your coding agent.
  5. Ask for a scoped change, for example:
    • "Refactor tool execution error handling only."
    • "Add approval before the destructive tool runs."