agentleFS
krzysztofradomskikrzysztofradomski/skills/delegate/SKILL.md

delegate

Skill4 starsChanged 2 months agoMITView on GitHub

Delegate work from the current Claude Code or Codex session to other providers - Antigravity CLI, Codex CLI, and OpenRouter free models - using existing plan allowances without switching IDEs or chat apps, and picking a model that matches the task's difficulty and cost. Use when the user says delegate, orchestrate, use another provider, use a cheaper model, save tokens, run a code review, or asks for sub-agents. Also generates images for free.

78 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use state, preview 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.
  • MicrosoftSkill

    state

    Store and query a Microsoft Managed App's built-in state and file attachments with `ms project state` CLI schema commands and generated TypeScript clients. First, with the user signed in to the CLI, run `ms feature status --name state --json`; if `feature.enabled` is not `true`, recommend an alternative connector or data source.

    Also in 3 projects that use this

  • kv0906Skill

    preview

    Render vault notes as styled HTML and open in browser. Turn markdown docs, decisions, progress reports into readable previews. Use for "/preview docs/project-a/checkout-flow.md", "/preview progress all", "/preview decide auth-approach", or when user wants to see a doc before sharing.

    Also in 3 projects that use this

  • GitHubSkill

    prd

    Generate high-quality Product Requirements Documents (PRDs) for software systems and AI-powered features. Includes executive summaries, user stories, technical specifications, and risk analysis.

    Also in 5 projects that use this

  • nicolasestremSkill

    document

    Create focused documentation for specific components or features

    Also in 3 projects that use this

  • anombyte93Skill

    discover

    Phase 1 of the prd-taskmaster pipeline: brainstorm-driven discovery. Delegates to superpowers:brainstorming in Interactive Mode (one adaptive question at a time), or self-brainstorms in Autonomous Mode when no user is present. Intercepts before the brainstorming chain hands off to writing-plans — this skill owns the exit. Extracts constraints, calibrates scale (Solo / Team / Enterprise), and advances the pipeline to GENERATE.

    Also in 3 projects that use this

  • Microsoft AzureSkill

    skill-authoring

    Write Agent Skills that comply with the agentskills.io specification. WHEN: "create a skill", "new skill", "write a skill", "skill template", "skill structure", "review skill", "skill PR", "skill compliance", "SKILL.md format", "skill frontmatter", "skill best practices". DO NOT USE FOR: general documentation. INVOKES: vally CLI.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 68 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If a result looks confused, rerun a tier up rather than patching bad output yourself.

    line 44
  2. Very specific:

    Read the diff and rerun the checks yourself.

    line 72

“Common” is measured: kept by at least 6 in 10 of the 68 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

Delegate

You are the orchestrator in the user's current agent: you own requirements, architecture and integration while delegates from other providers do work you have already specified. Keep the user in this session and bring the delegated result back here. Never accept a delegate's output unreviewed.

Quick start

delegate.sh providers [--check]                # who's up; --check validates the key
delegate.sh read  "<prompt>" [dir]             # read/search/summarize   (Gemini)
delegate.sh code  "<prompt>" [dir] [--write]   # ordinary implementation (Claude Sonnet)
delegate.sh hard  "<prompt>" [dir] [--write]   # subtle / cross-cutting  (Claude Opus)
delegate.sh cheap "<prompt>" [dir]             # trivial one-liners      (Gemini Flash low)
delegate.sh review [dir] [--uncommitted|--base <branch>] [--by claude|codex]  # cross-vendor review
delegate.sh codex "<prompt>" [dir] [--write]   # the only delegate that can run shell/tests
delegate.sh or    "<prompt>" [model]           # free frontier model, best-first
delegate.sh image "<prompt>" out.png [--paid]  # free; --paid to allow spending
delegate.sh skills [agy|codex]                 # what that provider actually has

The delegating verbs (read code hard cheap codex or) also take --skill NAME or --force-skill NAME; review does not. Run providers first. (delegate.sh is symlinked into ~/.local/bin; source is in this skill's scripts/.)

Match the model to the difficulty

Picking by habit is the failure mode — everything to the cheap model, or everything to the strong one. Decide on the work:

The work is…Use
Subtle, cross-cutting, hard to reverse, security-sensitivehard
A bounded change you could describe to a competent strangercode
Reading, searching, tracing a call graph across many filesread
Mechanical and checkable at a glance — rename, regex, formatcheap

If a result looks confused, rerun a tier up rather than patching bad output yourself; retries cost plan allowance, not tokens.

When two tiers both fit, split the work. Hard and needs tests is common: plan it with hard read-only, then execute with codex --write, the only delegate that can run a build or test suite.

Provider order

  1. Antigravity — plan allowance, real file tools. Claude models reason best about code; Gemini is faster with the context for whole-tree reads. That split is what the verbs encode.
  2. OpenRouter free — when Antigravity is down, or one-shot text needing no repo context.
  3. Codex — adversarial review, and anything that must actually run commands.

delegate.sh review puts a different vendor's model against work you just accepted, because reviewing code with the model that wrote it mostly confirms it. The reviewer is chosen from whichever CLI you are running inside: in Claude Code it runs codex review (which also gets shell access to run tests); inside Codex it reviews with Claude Opus via Antigravity. Override with --by claude|codex. Use it after any non-trivial change, including your own.

Delegating well

A delegate has none of your context. Give paths, the exact change, the acceptance check, and "do not touch anything else".

Bad: fix the tests Good: In /path/repo, src/board.ts:42 throws on empty input. Add a guard returning []. Run npm test -- board. Change nothing else.

Read the diff and rerun the checks yourself. Verbs are read-only without --write; with it, the script verifies the workspace actually changed, retries once on a model that writes reliably, and fails loudly if nothing changed.

Skills are not picked up reliably on their own — use --force-skill when a skill matters, and expect --skill to be ignored. Images have two free paths before anything paid; without --paid the command fails rather than quietly spending, so ask before passing it.

Per-tier models are overridable (M_HARD M_CODE M_READ M_CHEAP M_WRITE); providers prints the current wiring.

See REFERENCE.md for provider quirks, skill mechanics, free-model ranking, and the reasons behind each guard.

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.