From codegen-bridge
Automatically delegate tasks to Codegen cloud agents when user requests code changes, implementations, or fixes that should run remotely. Triggered when codegen_create_run or codegen_start_execution tools are invoked. Includes prompt templates and quality checklist.
How this skill is triggered — by the user, by Claude, or both
Slash command
/codegen-bridge:codegen-delegationThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Intelligently delegate coding tasks to Codegen cloud agents. This skill activates when a user asks for code changes that should be executed remotely rather than locally — refactors, feature implementations, bug fixes, or any task that benefits from isolated sandbox execution.
Intelligently delegate coding tasks to Codegen cloud agents. This skill activates when a user asks for code changes that should be executed remotely rather than locally — refactors, feature implementations, bug fixes, or any task that benefits from isolated sandbox execution.
Core principle: Detect intent, prepare context, delegate, confirm.
This skill is invoked by the model when any of these MCP tools are called:
codegen_create_run — creating a new agent runcodegen_start_execution — initializing an execution contextcodegen_resume_run — resuming a paused agentBefore delegating, ensure:
CODEGEN_API_KEY and CODEGEN_ORG_ID environment variables are setcodegen_list_repos to verify the repo exists in the organizationEvaluate whether the task is suitable for cloud delegation:
| Good for delegation | Better done locally |
|---|---|
| Feature implementation | Quick one-line fix |
| Refactoring across files | Reading/exploring code |
| Bug fix with clear repro | Interactive debugging |
| Test suite additions | Configuration changes needing local env |
| Documentation generation | Tasks requiring local secrets/services |
If the task is better done locally, say so and handle it directly instead.
For multi-step work, initialize an execution context first:
codegen_start_execution(
execution_id=<unique_id>,
goal=<user's goal>,
mode="adhoc" or "plan",
tasks=[{title, description}, ...],
tech_stack=[...],
architecture=<if known>
)
For single tasks, skip to Step 3.
Use the prompt template from templates/task-prompt-template.md as your base. Apply the prompt-crafting skill for quality.
Prompt Quality Checklist (verify before submitting):
path/file.ts")Compose the prompt following this structure:
## Context
- Repository: <owner/repo-name>
- Tech stack: <languages, frameworks, key libraries>
- Architecture: <brief — e.g., "Next.js App Router + Prisma">
- Relevant files: <exact file paths the agent should focus on>
## Task
<Clear, specific description of what needs to be done>
## Requirements
- <Specific acceptance criteria — what "done" looks like>
- Run tests after changes: <exact test command>
- Create a PR with descriptive title and body
## Constraints
- Create a branch from main
- Use conventional commit messages
- Do NOT modify files outside: <scope list>
For multi-step plan tasks, use templates/multi-step-prompt-template.md instead — it includes previous task summaries for context.
Submit via:
codegen_create_run(
prompt=<composed_prompt>,
execution_id=<ctx_id if multi-step>,
agent_type="claude_code"
)
After the run is created, report back to the user:
/cg-status or ask me to check on it"Do:
Don't:
| Error | Action |
|---|---|
| No repository detected | Ask user which repo to use, or run codegen_list_repos |
| HTTP 402 (billing limit) | Tell user: "Codegen billing limit reached" |
| HTTP 403 (auth error) | Tell user to check API key and org ID |
| HTTP 429 (rate limit) | Wait 60 seconds, retry once |
| Prompt too vague | Ask user for more detail before submitting |
confirmed=True)/cg-status or viewing logs with /cg-logsnpx claudepluginhub evgenygurin/codegen-bridge --plugin codegen-bridgeDelegates coding tasks (debug, implement, refactor) to OpenAI Codex CLI via codex exec, skipping the Node companion runtime for faster execution. Codex writes code; Claude verifies.
Delegates implementation tasks to Claude Code for autonomous code writing, editing, and refactoring with full read/write access.
Delegates complex code generation, refactoring, architectural analysis, and review tasks to OpenAI's Codex CLI (GPT-5.3-codex models) via safe workflows with sandboxing and approvals. Activates on explicit triggers like 'use codex' or 'codex exec'.