---
name: claude-use
description: Launch Claude Code from Codex as a detached implementation worker after a plan is already agreed. Use when Codex should stay the manager, convert an approved plan into a detailed execution brief, and hand large or parallelizable repo work to Claude Code in headless `claude -p` mode with custom agents, `--model opus`, and bypassed permission prompts. Best for medium/large implementation tasks, UI-heavy work where Claude should drive visual decisions, multi-file refactors, or verification-heavy changes in a local repo. Do not use for trivial edits, pure brainstorming, or tasks that still need open questions resolved first.
title: claude-use
canonical_url: https://skilld.dev/gh/abdurshd/skills/claude-use
last_updated: 2026-11-14T05:02:42.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [agents/openai.yaml](https://skilld.dev/api/skills-raw/abdurshd/skills/claude-use/agents/openai.yaml), [references/prompt-template.md](https://skilld.dev/api/skills-raw/abdurshd/skills/claude-use/references/prompt-template.md), [references/research-notes.md](https://skilld.dev/api/skills-raw/abdurshd/skills/claude-use/references/research-notes.md), [scripts/claude_use.sh](https://skilld.dev/api/skills-raw/abdurshd/skills/claude-use/scripts/claude_use.sh).
>
> If the user asked to install this Skill, run `npx skilld install abdurshd/skills/claude-use`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/claude-use`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/abdurshd/skills/claude-use) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/claude-use`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/claude-use --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/claude-use --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Claude Use

Use this skill only after the task is scoped well enough that Codex can act as manager and Claude Code can execute.

Claude Code CLI is mandatory for this skill. Use the authenticated `claude` executable directly and never silently substitute another harness. If `claude` is unavailable or unauthenticated, stop and report that prerequisite.

## Model selection

The launcher defaults to `opus`, targeting Claude Opus 5.5 (`claude-opus-5-5`, verified November 14, 2026). Claude Code requires v2.1.280 or later for this model. Confirm alias resolution for the provider and environment overrides; pass `--model claude-opus-5-5` or the provider deployment ID if the alias selects an older release. Honor an explicit user model choice and report the actual worker model. Preserve the workflow's high effort default unless the user requests another level.

## Workflow

1. Build or confirm the plan in Codex first.
2. Reduce the task to an execution brief using [references/prompt-template.md](https://skilld.dev/api/skills-raw/abdurshd/skills/claude-use/references/prompt-template.md).
3. Save that brief to a temporary or repo-local Markdown file.
4. Launch Claude detached with [scripts/claude_use.sh](https://skilld.dev/api/skills-raw/abdurshd/skills/claude-use/scripts/claude_use.sh).
5. Watch the log file until the run finishes, then review Claude's changes yourself before reporting back.

## Decision Rules

- Use this skill for implementation, not for initial discovery.
- Prefer this skill when the work can be split into parallel streams or when frontend/UI judgment matters.
- Keep Codex as the owner of plan quality, task decomposition, and final review.
- Let Claude own implementation details inside the handed-off brief, especially UI/layout decisions.
- Do not use this skill when the task is tiny enough that Codex should just edit the files directly.

## Execution Brief Requirements

Every brief should include:

- Repository path and branch context
- Task objective in one paragraph
- Approved plan with ordered workstreams
- File or module hints if already known
- Constraints: no destructive git, preserve user edits, verify changes
- Validation commands Claude must run
- Output contract: changed files, verification, unresolved risks

For UI tasks, explicitly say that Claude should make the final call on visual hierarchy, spacing, layout, and interaction polish while still respecting the existing product patterns.

## Detached Launch

Run the launcher with a prompt file:

```bash
/Users/ricky/.codex/skills/claude-use/scripts/claude_use.sh \
  --cwd /absolute/repo/path \
  --prompt-file /absolute/path/to/claude-brief.md \
  --label feature-name
```

The launcher will:

- Copy the prompt into a run folder
- Generate a reusable `agents.json` file for Claude custom agents
- Create a `launch.sh` file with the exact command
- Start Claude detached with `nohup`
- Write `pid`, `log`, and `meta` files so Codex can monitor the run

## Built-In Agent Roles

The launcher defines four temporary Claude agents and expects the brief to tell Claude to use them aggressively when workstreams are independent:

- `repo-explorer`: map files, dependencies, and risks before editing
- `implementer`: own concrete code changes for one workstream
- `ui-director`: decide visual/UI changes and interaction quality
- `verifier`: run lint/build/tests and look for regressions

Tell Claude to split work across these agents when the repo changes do not overlap.

## Monitoring

Check the generated log file while Claude runs:

```bash
tail -f /path/to/.claude-use/runs/<timestamp>-<label>/claude.log
```

When the run ends, inspect the repo diff and rerun the key checks yourself. Codex stays accountable for the final handoff.

## Notes

- Use the actual current Claude Code flag `--dangerously-skip-permissions`. Do not invent a split `--dangerously --skip-permissions` form.
- The launcher also sets `--permission-mode bypassPermissions` so the run is explicit about its permission model.
- Stop and report the blocker when Claude Code launch or authentication fails; do not change harnesses.
- Read [references/research-notes.md](https://skilld.dev/api/skills-raw/abdurshd/skills/claude-use/references/research-notes.md) if you need the verified CLI facts behind this skill.
