agentleFS
tmdytmdy/CodeDeck/skills/delegate-with-codedeck/SKILL.md

delegate-with-codedeck

Skill1 starsChanged 4 months agoMITView on GitHub

Delegate a coding or research task to a Codex or Claude Code CLI managed by a local CodeDeck Profile. Use when the user asks to consult, invoke, compare, or hand work to a third-party Codex/Claude profile through CodeDeck, or asks to continue or inspect an existing CodeDeck delegated session.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use scripts/invoke-codedeck.ps1 for every operation.

    line 8
  2. Very specific:

    Stop if CODEDECK_DELEGATED=1.

    line 13
  3. Very specific:

    Run profiles when the user did not provide an exact Profile key.

    line 14
  4. Very specific:

    Run the task with the selected Profile.

    line 17
  5. Very specific:

    Add -ShowTerminal to run only when the user requests visibility or manual takeover.

    line 38
  6. Distinctive:

    Read references/protocol.md only when handling errors or integrating a new host.

    line 42

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “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

Delegate With CodeDeck

Use scripts/invoke-codedeck.ps1 for every operation. Do not reconstruct the pipe protocol or read CodeDeck configuration files directly.

Workflow

  1. Stop if CODEDECK_DELEGATED=1; delegated agents must not delegate again.
  2. Run profiles when the user did not provide an exact Profile key. Present only the returned safe summaries and select a Profile based on the user's request.
  3. Run the task with the selected Profile. Pass the prompt through -Prompt; use -Cwd only when the task needs a specific existing project directory.
  4. Interpret the returned status:
    • completed: use assistant_text as the delegated answer.
    • starting or running: retain session_id and call wait.
    • awaiting_input: surface question; never guess or auto-approve a permission request. Use continue only with an explicit answer.
    • failed: report the structured error and relevant terminal_tail.
  5. Retain session_id for follow-up requests in the same conversation.

Commands

& "<skill-dir>/scripts/invoke-codedeck.ps1" -Command profiles
& "<skill-dir>/scripts/invoke-codedeck.ps1" -Command run -Profile "codex::name" -Cwd "C:\repo" -Prompt $task
& "<skill-dir>/scripts/invoke-codedeck.ps1" -Command wait -Session $sessionId
& "<skill-dir>/scripts/invoke-codedeck.ps1" -Command continue -Session $sessionId -Prompt $answer
& "<skill-dir>/scripts/invoke-codedeck.ps1" -Command status -Session $sessionId
& "<skill-dir>/scripts/invoke-codedeck.ps1" -Command cancel -Session $sessionId

Add -ShowTerminal to run only when the user requests visibility or manual takeover. The default wait is ten minutes; use -WaitMs when the host tool has a shorter deadline.

Read references/protocol.md only when handling errors or integrating a new host.

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.