claude-code-agent
- Repo stars 0
- Author updated Live
- Author repo skills-registry
- Domain
- AI
- Compatible agents
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- Trust score
- 88 / 100 · community maintained
- Author / version / license
- @tomevault-io · no license declared
- Token usage
- Lean
- Setup complexity
- Guided setup
- External API key
- Required · Anthropic
- Operating systems
- Unspecified (assume cross-platform)
- Runtime requirements
- Python
- Permissions
-
- Read-only
- Write / modify
- Shell exec
- Network behavior
- External requests
- Install commands
- 26 variants
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: claude-code-agent
description: Delegate complex, multi-file coding tasks to an autonomous coding agent that can iterate and sel…
category: ai
runtime: Python
---
# claude-code-agent output preview
## PART A: Task fit
- Use case: Delegate complex, multi-file coding tasks to an autonomous coding agent that can iterate and self-correct. Uses Claude Code if ANTHROPIC_API_KEY is set, otherwise falls back to Gemini via generate_code + execute. Use when this capability is needed..
- Inputs: target material, constraints, expected output, and acceptance criteria.
- Evidence boundary: follow “When to use / How to execute / Step 1 — Check which backend is available” and do not present inference as author intent.
## PART B: Execution result
- **01** The card summarizes the use case; runtime output centers on “Delegate complex, multi-file coding tasks to an autonomous coding agent that can iterate and self-correct. Uses Claude Code if ANTHROPIC_API_KEY is set, otherwise falls back to Gemini via generate_code + execute. Use when this capability is needed.”.
- **02** When the source has headings, the agent prioritizes “When to use / How to execute / Step 1 — Check which backend is available” so the result follows the author’s structure.
- **03** Typical output includes task judgment, concrete steps, required commands or file edits, validation, and follow-up options.
- **04** Risk context follows the fingerprint: read files, write/modify files, run shell commands; may access external network resources; requires Anthropic API keys.
## Running Rules
- read files, write/modify files, run shell commands; may access external network resources; requires Anthropic API keys.
- Validate with a small sample before expanding scope.
- Return the result, validation criteria, and next iteration options. The source does not require a stable slash command. After installation, invoke the skill by name and describe the task.
Name target files or source material, expected output, forbidden changes, and whether network or shell access is allowed. Permission fingerprint: read files, write/modify files, run shell commands.
Start with a small task and check whether the result follows “When to use / How to execute / Step 1 — Check which backend is available”. Inspect diffs, logs, previews, or tests before expanding scope.
Confirm the final output includes a concrete result, evidence, and next action. If it stays generic, tighten inputs, boundaries, and acceptance criteria.
---
name: claude-code-agent
description: Delegate complex, multi-file coding tasks to an autonomous coding agent that can iterate and sel…
category: ai
source: tomevault-io/skills-registry
---
# claude-code-agent
## When to use
- Delegate complex, multi-file coding tasks to an autonomous coding agent that can iterate and self-correct. Uses Claude…
- Use it when the task has clear inputs, repeatable steps, and validation criteria.
## What to provide
- Target material, scope, expected result, and forbidden changes.
- Whether network, commands, file writes, or external services are allowed.
## Execution rules
- Organize steps around “When to use / How to execute / Step 1 — Check which backend is available” and keep inference separate from source facts.
- read files, write/modify files, run shell commands; may access external network resources; requires Anthropic API keys.
- Validate with a small sample before expanding the task.
## Output requirements
- Return the deliverable, key evidence, validation method, and next action.
- Mark missing information as unknown; do not invent commands, platforms, or dependencies. The author source anchors workflow facts; repository files anchor sources and commands; Fluxly only adds fit, limitations, and quality judgment.
skill "claude-code-agent" {
input -> user goal + target files + boundaries + acceptance criteria
context -> When to use / How to execute / Step 1 — Check which backend is available
rules -> SKILL.md triggers / order / output contract
runtime -> Python | read files, write/modify files, run shell commands | may access external network resources
guardrails -> requires Anthropic API keys + small-sample validation + diff/log review
output -> copyable result + checklist + next iteration
} When to use
Use this skill when the research task requires:
- Writing and running non-trivial code that needs iteration to get right
- Analysing a codebase (clone a repo, understand its structure, answer questions about it)
- Generating a working implementation of something described in a paper or spec
- Running experiments where the code needs to adapt based on intermediate results
- Any coding task where a single
generate_code+executecycle would not be enough
Do NOT use for trivial one-shot scripts — code_execution alone is faster and sufficient.
How to execute
Step 1 — Check which backend is available
Always run this check first:
import os, subprocess
has_anthropic_key = bool(os.environ.get("ANTHROPIC_API_KEY"))
claude_available = False
if has_anthropic_key:
r = subprocess.run(["claude", "--version"], capture_output=True, text=True)
claude_available = r.returncode == 0
print("backend:", "claude_code" if claude_available else "gemini_fallback")
Execute this with execute(). Then follow the matching path below.
Path A — Claude Code (when claude_available is True)
claude -p runs non-interactively and exits when done.
import subprocess
task = """
<describe the coding task in full detail>
Output the result as plain text or JSON.
"""
result = subprocess.run(
["claude", "-p", task],
capture_output=True,
text=True,
timeout=300,
)
print("exit:", result.returncode)
print(result.stdout)
if result.stderr:
print("stderr:", result.stderr[:2000])
If the output is incomplete, make a follow-up call with the prior output as context:
result2 = subprocess.run(
["claude", "-p", f"Previous output:\n{result.stdout}\n\nContinue: <remaining task>"],
capture_output=True, text=True, timeout=300,
)
print(result2.stdout)
Path B — Gemini fallback (when claude_available is False)
Use generate_code to produce the implementation, then execute to run it. Iterate up to 3 times.
Iteration pattern:
- Call
generate_code("full task description")— returns working Python - Call
execute(code)— run it, read stdout/stderr - If it fails or output is wrong: call
generate_code("fix this: <error> in this code: <code>")and execute again - After 3 iterations, accept the best result and record what remains incomplete
For codebase analysis without Claude Code:
import subprocess, tempfile
with tempfile.TemporaryDirectory() as tmpdir:
subprocess.run(["git", "clone", "--depth=1", repo_url, tmpdir], check=True, timeout=120)
# Then use generate_code + execute to analyse the cloned repo
Output contract
Include in proof:
backend_used:"claude_code"or"gemini_fallback"task_given: the coding task descriptionoutput: the final result (stdout or generated artefact)iterations: number of attempts madeexit_code(Claude Code path): 0 = successerror_output(if any): stderr or exception text
List produced files in artefacts.
Quality bar
- Always run the Step 1 backend check — do not assume which is available
- Claude Code path: capture both stdout and stderr; stderr shows tool use logs
- Gemini fallback path: do not exceed 3 iterations — accept partial results and note gaps in proof
- Never pass secrets or credentials in the task string
- Set timeout ≥ 120s on all subprocess calls
Pairs with
web_browse— fetch specs or docs first, then pass them to the coding agentdataset_inspection— inspect a dataset's schema, then delegate cleaning/analysis herecode_execution— this skill IS the advanced form of code_execution; use plain code_execution for simple one-shot scripts
Source: ai-agents-for-humans/slow-ai — distributed by TomeVault.
Decide Fit First
Design Intent
How To Use It
Boundaries And Review