claude-code-agent
Run tasks on the local machine using Claude Code CLI as a background agent.
Skill by cedricziel
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/cedricziel-claude-code-agent
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: writing, 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/claude-code-agent
What's inside
- Skill name
claude-code-agent- Description
- Run tasks on the local machine using Claude Code CLI as a background agent. Use this when the user wants to execute code, edit files, run shell commands, build projects, analyse repositories, or do any agentic work on the device — especially multi-step tasks that benefit from Claude Code's tool-use loop. Supports fire-and-forget async jobs (non-blocking, via the native process tool) as well as quick blocking one-shot tasks and follow-up questions in the same session.
- License
- MIT
- Compatibility
- Requires: claude CLI (claude --version)
- Instructions
- 201 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Claude Code Agent Skill
Run an agentic task on the local device via the `claude` CLI (Claude Code).
## How to choose between blocking and async mode
| Use **blocking** (`async: false`) | Use **async** (`async: true`) |
| --------------------------------- | --------------------------------------- |
| Quick one-shot tasks (<30s) | Long builds, refactors, multi-file work |
| Single follow-up questions | Parallel agents / multiple worktrees |
| Simple shell automation | Tasks that may take minutes |
**Default heuristic:** if the task sounds like it will take more than ~20 seconds (build, analyse a big repo, write many files), use async mode.
---
## Mode A — Blocking (quick tasks)
```bash
cd "${workdir:-$HOME}" && \
claude \
--print \
--output-format json \
--model "${model:-sonnet}" \
--max-budget-usd "${budget_usd:-2.0}" \
${session_id:+--resume "$session_id"} \
${skip_permissions:+--dangerously-skip-permissions} \
${worktree:+-w "$worktree"} \
--allowedTools "Bash,Edit,Read,Write,Glob,Grep,LS,Task,TodoRead,TodoWrite,WebFetch,WebSearch" \
"$prompt"
```
Parse the JSON result:
- `result` — final text answer / summary
- `session_id` — save this to resume later
- `is_error` / `stop_reason` — detect failures
- `total_cost_usd` — report cost to the user
---
## Mode B — Async (long-running tasks, non-blocking)
Async mode always uses `--dangerously-skip-permissions` because the process runs
without a TTY and cannot respond to interactive permission prompts. The
`skip_permissions` parameter is only relevant for blocking mode (Mode A).
Uses the native `process` tool — no tmux required.
### Step 1: Write the prompt to a temp file
Use the `bash` tool to write the prompt safely (avoids all shell escaping/injection
issues with multi-line or quote-heavy prompts):
```bash
PROMPT_FILE="/tmp/cca-$(date +%s).prompt"
cat > "$PROMPT_FILE" << 'PROMPT_EOF'
${prompt}
PROMPT_EOF
echo "$PROMPT_FILE"
```
### Step 2: Start the agent
Use `process action:start` — returns a `session_id` immediately:
```
process action:start
command: "cat \"$PROMPT_FILE\" | claude --print --output-format json --model ${model:-sonnet} --max-budget-usd ${budget_usd:-2.0} --dangerously-skip-permissions ${session_id:+--resume \"$session_id\"} ${worktree:+-w \"$worktree\"} --allowedTools \"Bash,Edit,Read,Write,Glob,Grep,LS,Task,TodoRead,TodoWrite,WebFetch,WebSearch\""
workdir: "${workdir:-$HOME}"
```
→ Save the returned `session_id`. Report it to the user immediately. Do NOT wait.
### Step 3: Poll for completion
When the user asks for a status update (or after a reasonable wait), check:
```
process action:poll
session_id: "<session_id from step 2>"
```
- `running: true` → still working, check again later
- `running: false` + `exit_code: 0` → done successfully → proceed to step 4
- `running: false` + `exit_code: <non-zero>` → failed → fetch logs and report error
### Step 4: Retrieve output
```
process action:log
session_id: "<session_id>"
lines: 500
```
Parse the `stdout` field as JSON (same fields as blocking mode):
- `result` — final text answer / summary
- `session_id` — save this to resume the Claude session later
- `is_error` / `stop_reason` — detect failures
- `total_cost_usd` — report cost to the user
If `is_error` is true, also check `stderr` from the log output for diagnostics.
### Step 5: Cleanup
```
process action:kill
session_id: "<session_id>"
```
Then remove the temp prompt file:
```bash
rm -f "$PROMPT_FILE"
```
---From cedricziel/assistant, MIT.
More from cedricziel/assistant
- 0.582score
observability
cedricziel
Practical observability guide for this workspace.
SkillBFreshness: B★ 6Claude Code +9 - 0.532score
e2e-testing
cedricziel
Playwright visual regression testing for the assistant Flutter SPA.
SkillCFreshness: C★ 6Claude Code +9 - 0.532score
ios-codesigning
cedricziel
iOS code signing and provisioning profile management via fastlane match.
SkillCFreshness: C★ 6Claude Code +9 - 0.532score
coding-agent
cedricziel
Run coding agents (Claude Code, Codex, OpenCode, or others) as background processes for programmatic control.
SkillCFreshness: C★ 6Claude Code +9 - 0.532score
ux-principles
cedricziel
Flutter UX/UI principles for the assistant app.
SkillCFreshness: C★ 6Claude Code +9 - 0.532score
interface-implementation
cedricziel
Checklist and architectural rules for implementing new assistant interfaces (CLI, Slack, web, etc.).
SkillCFreshness: C★ 6Claude Code +9 - 0.532score
openapi-sync
cedricziel
Enforces OpenAPI spec discipline when working on REST API endpoints in this project.
SkillCFreshness: C★ 6Claude Code +9 - 0.532score
opentelemetry-rust-sdk
cedricziel
Best-practice guide for instrumenting Rust apps with the OpenTelemetry SDK.
SkillCFreshness: C★ 6Claude Code +9 - 0.532score
agentskills-spec
cedricziel
Authoritative specification for the Agent Skills (agentskills.io) SKILL.md format.
SkillCFreshness: C★ 6Claude Code +9 - 0.531score
opentelemetry-genai-spec
cedricziel
OpenTelemetry semantic conventions for Generative AI attributes.
SkillCFreshness: C★ 6Claude Code +9 - 0.529score
ci-organization
cedricziel
CI organization principles and workflow structure for this project.
SkillCFreshness: C★ 6Claude Code +9 - 0.529score
tdd
cedricziel
Test Driven Development discipline for this workspace.
SkillCFreshness: C★ 6Claude Code +9
Signals
- Stars
- 6
- Forks
- 1
- Open issues
- 14
- Last commit (this folder)
- Mar 30, 2026 (7 months ago)
- Last release
- May 26, 2026 (5 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/cedricziel/assistant
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from cedricziel
- 0.582score
observability
cedricziel
Practical observability guide for this workspace.
SkillBFreshness: B★ 6Claude Code +9 - 0.567score

Aha.io
cedricziel
Search, read and update Aha.io ideas, features, epics, releases, goals and comments
ConnectorAFreshness: ALocal★ 6↓ 36/wkClaude Code +5 - 0.532score
interface-implementation
cedricziel
Checklist and architectural rules for implementing new assistant interfaces (CLI, Slack, web, etc.).
SkillCFreshness: C★ 6Claude Code +9 - 0.532score
e2e-testing
cedricziel
Playwright visual regression testing for the assistant Flutter SPA.
SkillCFreshness: C★ 6Claude Code +9 - 0.532score
ios-codesigning
cedricziel
iOS code signing and provisioning profile management via fastlane match.
SkillCFreshness: C★ 6Claude Code +9 - 0.532score
coding-agent
cedricziel
Run coding agents (Claude Code, Codex, OpenCode, or others) as background processes for programmatic control.
SkillCFreshness: C★ 6Claude Code +9
Cite this page
claude-code-agent skill. Agent Mart. https://agentmart.dev/skills/cedricziel-claude-code-agent (last updated 2026-10-24)