agentleFS
Bazza1982Bazza1982/HASHI/skills/claude/SKILL.md

claude

Skill1 starsChanged 5 days agoMITView on GitHub

Use when delegating a self-contained task to Claude Code CLI, monitoring its progress, and reporting the result as project manager.

40 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use audit-decisions, implement-spec-with-codex and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • dzhngSkill

    audit-decisions

    Audit the decisions an implementing agent made, not its diff — a pure audit that traces the session's history into a decisions ledger, changes no code, and never blocks an unsupervised run. Working code still embeds architecture the user never chose; surface it because future work inherits it. Use when the user wants to review the decisions the AI made on their behalf, before merging or committing AI-implemented work, when integrating a delegated subagent's pass, or when a fix "works" but might be a point fix.

    Also in 4 projects that use this

  • dzhngSkill

    implement-spec-with-codex

    Run [implement-spec](../implement-spec/SKILL.md) with Codex doing the implementation passes while you orchestrate, integrate, and review. Use when the user asks to implement a spec with Codex, or to run implement-spec with Codex as the implementer.

    Also in 4 projects that use this

  • transitive-bullshitSkill

    compare-screenshots

    Compare screenshots against the intended design, distinguishing approved references from historical baselines. Use for iterative implementation matching, before/after visual review, objective image telemetry, or checking a lone capture for flat, empty, or badly framed content.

    Also in 5 projects that use this

  • LucasMatuszewskiSkill

    audit-agents

    Audit and maintain agent configuration files (.claude/agents, AGENTS.md, CLAUDE.md, agent-memory). Checks for duplicates, outdated info, naming conflicts, wrong technical facts, and files over 200 lines. Fixes all issues and commits.

    Also in 4 projects that use this

  • +8 more from dzhng

The file

Show its rules and text

We split this skill into the rules it gives an agent

13 rules. 0 are common, 11 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 34 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run Claude Code using this command:

    line 10
  2. Distinctive:

    Do NOT just forward the user's message.

    line 45
  3. Distinctive:

    Read the full log

    line 71
  4. Distinctive:

    Verify the output if possible (run tests, check syntax, review diffs)

    line 75
  5. Distinctive:

    When the task completes, report to the user:

    line 79
  6. Distinctive:

    If the task failed, read the error log carefully and either:

    line 86
  7. Very specific:

    Timeout: If the Claude process has been running for more than 15 minutes with no new log output, assume it is stuck.

    line 98
  8. Very specific:

    No self-workspace editing: Never point --add-dir at your own workspace directory.

    line 99
  9. Distinctive:

    Timestamped logs: Always use a timestamped log filename so concurrent or sequential delegations don't overwrite each other.

    line 100
  10. Distinctive:

    Write clear, complete delegation prompts.

    line 105
  11. Distinctive:

    Always capture output to a log file so you can review what happened.

    line 106
  12. Distinctive:

    Do not blindly trust "success" — verify the output when possible.

    line 107
  13. Distinctive:

    If the task is very large, break it into smaller Claude invocations with clear scope.

    line 108

“Common” is measured: kept by at least 6 in 10 of the 34 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

You are delegating a task to Claude Code CLI. You are the project manager — your job is to launch the task, monitor progress, and report back with results.

How to launch

Run Claude Code using this command:

claude -p "TASK_DESCRIPTION" --output-format text --dangerously-skip-permissions --model claude-sonnet-4-6 --add-dir TARGET_DIR > WORKDIR/claude_YYYYMMDD_HHMMSS.log 2>&1

Replace TASK_DESCRIPTION with a clear, self-contained prompt. Replace TARGET_DIR with the directory Claude should work in. Replace WORKDIR with your workspace directory. Always use a timestamped log filename (e.g. claude_20260311_143022.log) so multiple delegations don't overwrite each other.

For large or multiline prompts, write the prompt to a file first and pipe it:

cat WORKDIR/claude_task_prompt.txt | claude -p - --output-format text --dangerously-skip-permissions --model claude-sonnet-4-6 --add-dir TARGET_DIR > WORKDIR/claude_YYYYMMDD_HHMMSS.log 2>&1

Important flags:

  • -p — print mode (headless, non-interactive)
  • --dangerously-skip-permissions — no human approval needed for tool use
  • --output-format text — plain text output (use stream-json if you want structured events)
  • --model claude-sonnet-4-6 — default model (change to claude-opus-4-6 for harder tasks)
  • --add-dir TARGET_DIR — give Claude access to the target project directory

Optional flags:

  • --effort low|medium|high — reasoning effort level
  • --no-session-persistence — don't save session state

Writing a good delegation prompt

The Claude agent cannot see your conversation history. You must write a complete, self-contained task description that includes:

  1. What to build, fix, or analyze
  2. Where the relevant files are (absolute paths)
  3. Any constraints, patterns, or style requirements
  4. What "done" looks like
  5. Whether to commit changes or just make them

Do NOT just forward the user's message. Rewrite it as a clear engineering spec with full context.

Monitoring progress

After launching Claude:

  1. Check if the process is still running:
    tasklist | findstr claude
  2. Read the output log for progress:
    tail -50 WORKDIR/claude_delegated.log
  3. For long tasks (>5 minutes), set up periodic check-ins. Tell the user you've launched the task and will check back. Then check the log periodically to see if Claude has finished.
  4. For very long tasks, you can use stream-json to monitor in real time:
    claude -p "TASK" --output-format stream-json --verbose --dangerously-skip-permissions --model claude-sonnet-4-6 --add-dir TARGET_DIR > WORKDIR/claude_YYYYMMDD_HHMMSS.jsonl 2>&1
    Then read the JSONL log to see tool calls, thinking, and progress events as they happen.
  5. When Claude finishes:
    • Read the full log
    • Summarize what was done
    • List any files created or modified
    • Report any errors
    • Verify the output if possible (run tests, check syntax, review diffs)

Reporting back

When the task completes, report to the user:

  1. Task summary (what was requested)
  2. What Claude did (files created/modified, reasoning approach)
  3. Result status (success/failure/partial)
  4. Any follow-up actions needed

If the task failed, read the error log carefully and either:

  • Adjust the prompt and re-run
  • Report the specific failure with your analysis

Choosing the right model

  • claude-sonnet-4-6 — fast, good for routine coding, refactoring, bug fixes
  • claude-opus-4-6 — slower but stronger reasoning, use for architecture decisions, complex debugging, multi-file refactors

Safety rules

  • No re-delegation. If Claude fails or produces partial results, do NOT delegate again to Claude automatically. Report the failure to the user and let them decide. You may retry ONCE if the failure was clearly transient (e.g. network timeout), but never more than that. Infinite delegation loops waste resources and produce garbage.
  • Timeout. If the Claude process has been running for more than 15 minutes with no new log output, assume it is stuck. Kill it (taskkill /F /IM claude.exe /T), report the timeout to the user, and do not retry automatically.
  • No self-workspace editing. Never point --add-dir at your own workspace directory. Always target the actual project directory the user's task is about.
  • Timestamped logs. Always use a timestamped log filename so concurrent or sequential delegations don't overwrite each other.

Important rules

  • You are the project manager, NOT the coder. Let Claude do the implementation work.
  • Write clear, complete delegation prompts. Include all relevant context.
  • Always capture output to a log file so you can review what happened.
  • Do not blindly trust "success" — verify the output when possible.
  • If the task is very large, break it into smaller Claude invocations with clear scope.
  • The --add-dir should point to the actual project directory the task targets.
  • For tasks that need multiple steps, run them sequentially and verify each step before proceeding.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.