agentleFS
letya999letya999/pi-delegate-skill/SKILL.md

pi-delegate

Skill0 starsChanged 48 days agoMITView on GitHub

Run Pi Coding Agent or Oh My Pi (OMP) as a bounded headless delegate. Use when the user asks to delegate to Pi/OMP, test a Pi setup through a real model, or obtain a Pi-backed second opinion. Do not use for interactive sessions or unrelated CLIs.

2 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions2 projects use a version of this.

    Word for word · 1

    1. letya999/pi-delegate★ 0100% same

    Edited · 0

    None found.

    Wrote their own version · 1

    1. amElnagdy/delegate-skills★ 2.6ksame name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

We split this skill into the rules it gives an agent

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

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    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:

    Run Pi or OMP once in non-interactive print mode and return the captured result.

    line 8
  2. Very specific:

    Keep normal tool approval by default.

    line 15
  3. Distinctive:

    Always use a finite timeout.

    line 24
  4. Distinctive:

    Treat the delegate response as evidence, not proof.

    line 26

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

Pi Delegate

Run Pi or OMP once in non-interactive print mode and return the captured result.

Workflow

  1. Resolve the project directory and confirm it exists.
  2. Choose the runtime named by the user. Use --runtime pi for ordinary Pi; use --runtime omp only for OMP.
  3. Use scripts/delegate_pi.py. Pass --profile only for an existing OMP profile. For Pi, --agent-dir selects the complete Pi config/auth directory; use it for an experiment target only when that directory is already authenticated. The wrapper never copies credentials between the normal Pi home and a target.
  4. Keep normal tool approval by default. Add --auto-approve only for an authorized task in a trusted directory. For an observer that may write only its separate state YAML, use a Pi --tools allowlist such as read,grep,find,ls,write; use --no-tools only when no inspection is needed.
  5. Report the response, exit status, runtime, and output directory. If files may have changed, inspect the diff and verify independently.

Invariants

  • Authentication comes from the selected Pi/OMP installation or profile. Never read, print, copy, or pass OAuth tokens and API keys.
  • Invoke the executable directly, never through a shell. The wrapper uses OMP_BIN or PI_BIN for an explicit executable and otherwise checks PATH plus the usual Bun bin directory.
  • Pi receives its working directory through the subprocess cwd and uses Pi-native flags (--no-session, --approve); OMP receives its own --cwd, --max-time, and approval flags.
  • Pi-only --extension, --skill, and --prompt-template pass explicit provider-managed resources into a new context while keeping authentication in the selected normal Pi profile. This is useful when a provider target is not itself authenticated.
  • Always use a finite timeout. A timeout terminates the process tree and returns exit code 124.
  • The wrapper writes stdout, stderr, and result.json, then prints one JSON manifest. A zero exit with an empty response is a failure.
  • Treat the delegate response as evidence, not proof. For setup experiments, require filesystem/provider evidence plus install and rollback results.

Example

py scripts/delegate_pi.py --runtime pi --cwd C:\work\project --timeout 3m --task "Report the active experiment marker."

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.