delegate-to-claude-code
Delegate complex coding/reasoning tasks to Claude Code CLI via the call_claude_code Python wrapper.
Skill by percymcn
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/percymcn-delegate-to-claude-code
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/delegate-to-claude-code
What's inside
- Skill name
delegate-to-claude-code- Description
- Delegate complex coding/reasoning tasks to Claude Code CLI via the call_claude_code Python wrapper.
- License
- MIT
- Instructions
- 71 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- files: referenced but missing: references/multi-artifact-delegation-20260612.md
- body: contains an absolute path from the author's machine
Files (1)
- SKILL.md
SKILL.md (first lines)
# Delegate to Claude Code
Claude Code (`claude -p` via `call_claude_code.py`) is a powerful agent on this machine. It has **browser automation (Playwright), MCP servers, credential access, and ~600 skills** — treat it as a superset of what I can do alone. When I hit limits (browser, credentials, MCP tools, complex multi-file work), I call Claude Code. **No need to ask Felix** — Claude Code on this machine has everything Felix had.
## When to delegate (✅)
- **Multi-file feature implementation** — reads, plans, edits, verifies across files
- **Debugging** — hypothesizes, instruments, fixes, re-verifies from stack trace
- **Architecture / codebase exploration** — maps subsystems with file:line citations
- **TDD** — failing test → green → coverage
- **Refactoring** — cross-cutting changes with verification
- **Code review / PR analysis** — reads diffs, checks for issues
- **Project scaffolding / boilerplate** — configs, migrations, CI
- **Research** — web search + synthesis
- **Long-running autonomous tasks** — sub-delegates, parallelizes, self-corrects, MCP
- **Security audits** — 600+ specialized skills
- **Browser automation** — Playwright, login, scrape logged-in pages
- **Logged-in extraction/inventory jobs** — map course/community pages, collect links/resources/transcripts, and produce machine-readable JSON plus reports when Hermes needs browser/CDP help
- **MCP tools** — Stripe, Shopify, Figma, Gmail, Cloudflare, Chrome DevTools
- **Media-generation MCP recovery** — if Hermes-native Kie/Nano Banana/Higgsfield paths are blocked by credits/auth/tooling, delegate a self-contained provider task to Claude Code and require exact returned file paths, provider used, and verification metadata; do not fall back to programmatic placeholders when the user requested real AI visuals
- **GitHub PR workflow** — `gh`, create PRs, review, merge
- **Image reading** — PNG/JPG screenshots, PDFs inline
## When NOT to delegate (❌)
- Simple tasks I can do in 1-2 tool calls
- Production deploys / DNS / OAuth (needs operator OK)
- Sending messages to external platforms
- Money / financial operations (hard-blocked without direct OK)
- Visual design / brand voice without samples
- Cross-session memory (use Hermes memory tool)
- Massive 100+ file refactors in one shot (break into milestones)
## Call pattern
```python
from call_claude_code import call_claude_code, ClaudeCodeError
output = call_claude_code(TASK_PROMPT, timeout=300, cwd="/path/to/repo")
```
## Prompt format
```
GOAL: <one sentence — what "done" looks like>
CONTEXT: <repo path, branch, why, what's been tried>
CONSTRAINTS: <don't touch X, must keep Y backward compat>
INPUTS: <specific files, line numbers, error messages>
ACCEPTANCE: <tests pass, endpoint returns Z>
OUT-OF-SCOPE: <things NOT to do>
OUTPUT: <"summary" or "open a PR" or "JSON with fields X,Y">
```
Sweet spot: **150–400 words** — medium detail beats terse or verbose.
## For structured output
```
Return JSON with keys: {status, files_changed[], next_steps[], blockers[]}
Respond with ONLY valid JSON inside a fenced code block.
```
## Pitfalls
- Python 3.9 — don't use `str | None` type hints in code for this machine
- Claude Code does NOT see the current conversation — every prompt must be self-contained
- Default timeout 300s; lower for quick queries, higher for agentic tasks
- If invoking `/Users/pharma6/ai-team/call_claude_code.py` directly as a script, its `__main__` test path does **not** pass your desired task timeout. For long browser/inventory jobs, import the helper and call `call_claude_code(prompt, timeout=550, cwd='/Users/pharma6/ai-team')` from a short Python snippet instead of relying on the script wrapper.
- Claude Code sub-delegates by default — fine, it manages context well
- For extraction/inventory jobs, require durable artifacts instead of prose only: JSON inventories, downloaded/transcribed files when possible, a final markdown report, and exact paths. After Claude Code returns, Hermes must verify the files/counts locally before reporting success to Purse.
- For multi-artifact builds (scripts + repo scaffolds + cron/job setup), use the JSON-output contract and verification pattern in `references/multi-artifact-delegation-20260612.md`: exact paths, commands run, counts, validation result, blockers, next steps; then re-run validators locally before finalizing.From percymcn/agent-cookbook, MIT.
More from percymcn/agent-cookbook
- 0.471score
autonomous-idea-pipeline
percymcn
Build and operate fully autonomous systems for continuously discovering, validating, and preparing business opportunities from multiple data sources without…
SkillCFreshness: CClaude Code +9 - 0.471score
external-coding-agents
percymcn
Umbrella for delegating software work to external coding-agent CLIs: Claude Code, OpenAI Codex, and OpenCode.
SkillCFreshness: CClaude Code +9 - 0.471score
apple-ecosystem
percymcn
Apple/macOS ecosystem umbrella: Apple Notes, Reminders, iMessage/SMS, Find My, and macOS background computer-use automation.
SkillCFreshness: CClaude Code +9 - 0.468score
tradeflow-paper
percymcn
Build and operate a paper-mode self-improving trading agent for BTC/USDT with parametric strategy optimization and safety gates.
SkillCFreshness: CClaude Code +9 - 0.468score
autonomous-business-system
percymcn
A fully automated system for discovering, analyzing, and generating business plans from YouTube channels and Reddit pain points
SkillCFreshness: CClaude Code +9 - 0.468score
agent-os
percymcn
Agent Operating System — Hermes is the command hub on Telegram.
SkillCFreshness: CClaude Code +9 - 0.468score
business-factory-oss-stack
percymcn
Use Purse's installed open-source business factory stack from the 2026-05-21 hot GitHub repos PDF: CodeGraph, Bun, Supertonic, CloakBrowser, AgentMemory, and…
SkillCFreshness: CClaude Code +9 - 0.468score
prospect-response-monitoring
percymcn
Monitors outreach logs for new prospect responses and sends urgent notifications via Telegram when responses are detected.
SkillCFreshness: CClaude Code +9 - 0.464score
gideon-autonomous-prospector
percymcn
Interact with Gideon's autonomous prospector system for researching and identifying new prospects across target niches for AI content repurposing business
SkillCFreshness: CClaude Code +9 - 0.464score
ai-pdf-guide-business
percymcn
Build and operate an autonomous AI-powered PDF guide generation and sales business that creates valuable guides from trending topics and sells them…
SkillCFreshness: CClaude Code +9 - 0.464score
gumroad-operations
percymcn
Manage Purse's Gumroad store through the local Gumroad CLI and MCP server: products, sales, offer codes, subscribers, licenses, webhooks, reports, and guarded…
SkillCFreshness: CClaude Code +9 - 0.251score
advanced-evaluation
percymcn
No description from the publisher yet.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 2
- Last commit (this folder)
- Jun 12, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/percymcn/agent-cookbook
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from percymcn
- 0.471score
apple-ecosystem
percymcn
Apple/macOS ecosystem umbrella: Apple Notes, Reminders, iMessage/SMS, Find My, and macOS background computer-use automation.
SkillCFreshness: CClaude Code +9 - 0.471score
external-coding-agents
percymcn
Umbrella for delegating software work to external coding-agent CLIs: Claude Code, OpenAI Codex, and OpenCode.
SkillCFreshness: CClaude Code +9 - 0.471score
autonomous-idea-pipeline
percymcn
Build and operate fully autonomous systems for continuously discovering, validating, and preparing business opportunities from multiple data sources without…
SkillCFreshness: CClaude Code +9 - 0.468score
tradeflow-paper
percymcn
Build and operate a paper-mode self-improving trading agent for BTC/USDT with parametric strategy optimization and safety gates.
SkillCFreshness: CClaude Code +9 - 0.468score
autonomous-business-system
percymcn
A fully automated system for discovering, analyzing, and generating business plans from YouTube channels and Reddit pain points
SkillCFreshness: CClaude Code +9 - 0.468score
agent-os
percymcn
Agent Operating System — Hermes is the command hub on Telegram.
SkillCFreshness: CClaude Code +9
Cite this page
delegate-to-claude-code skill. Agent Mart. https://agentmart.dev/skills/percymcn-delegate-to-claude-code (last updated 2026-10-24)