agentleFS
llblabllblab/pi-actors/skills/actors/SKILL.md

actors

Skill18 starsChanged 3 months agoMITView on GitHub

Use for any non-trivial pi-actors operation, diagnosis, or development involving Recipes, persistent tools, Runs, spawn, message, inspect, Trace, Control, capability specialization, or activation.

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 9 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈9

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Start from the intended outcome:

    line 10
  2. Distinctive:

    Use persistent tools, Recipes, Runs, or diagnostics only when the selected operation needs that detail.

    line 41
  3. Distinctive:

    Keep these boundaries explicit:

    line 45
  4. Very specific:

    Call the actual music_player tool.

    line 73
  5. Very specific:

    Verify agent-facing evidence reports launch_kind: "tool".

    line 74
  6. Distinctive:

    If callability is false, stop at the reported activation boundary.

    line 75
  7. Distinctive:

    Use direct delegation for the same maintained capability under a persistent name or narrower defaults.

    line 77
  8. Very specific:

    Use the actors/* helpers only for their narrow requested result or intentional composition.

    line 92
  9. Very specific:

    Treat attention: "steer" as an actor-authored urgent semantic checkpoint at Pi's next safe boundary, never as a status-derived completion …

    line 98
  10. Distinctive:

    Use terminal state, result, declared artifacts, and execution evidence to prove completion.

    line 114
  11. Very specific:

    When a pi-actors operation fails:

    line 120
  12. Distinctive:

    Keep the intended logical Recipe or tool identity.

    line 122
  13. Very specific:

    Stop if spawn and registry resolve the same Recipe differently.

    line 127
  14. Distinctive:

    Read the owning capability Skill when choosing or operating that capability pack.

    line 133
  15. Very specific:

    Read swarm in addition to actors for multiple actors/subagents, parallel scopes, reviewer lenses, quorum, conflict handling, or integration.

    line 134
  16. Distinctive:

    When changing the extension implementation itself, apply project implementation instructions after this operating protocol.

    line 136

≈ “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

Actors

Choose the operation

Start from the intended outcome:

Run a maintained capability once
→ use spawn recipe=<skill>/<recipe>

Make a maintained capability a persistent agent-callable tool
→ use register_tool from=<skill>/<recipe>

Keep the same capability but narrow caller defaults
→ use register_tool from=<skill>/<recipe> defaults={...}

Register a trusted command directly
→ use register_tool template="..."

Build a reusable multi-node execution graph
→ author a Recipe with named imports

Run a long-lived controlled process
→ spawn its async Recipe, then use message and inspect

Coordinate several independent actors or subagents
→ also read the swarm Skill

Choose capability-specific behavior
→ read the owning capability Skill

Diagnose resolution, registration, or activation
→ use Inspect status/doctor flows and stop on contradictory evidence

Use persistent tools, Recipes, Runs, or diagnostics only when the selected operation needs that detail.

Core distinctions

Keep these boundaries explicit:

Skill Recipe ≠ registered tool
spawn ≠ registered-tool invocation
persisted ≠ callable
direct delegation ≠ named import composition
Run Control ≠ actor chat

A Skill Recipe is a maintained component addressed by <skill>/<recipe>. spawn creates a Run from a Recipe. register_tool from=<skill>/<recipe> persists compact logical delegation and activates from the resolved effective contract without copying, symlinking, or ambient re-resolution. A tool is callable in the current session only when activation evidence says callable_now: true.

actors owns generic Recipe/tool/Run mechanics. The owning capability Skill owns capability-specific selection and constraints. swarm owns multi-actor decomposition and integration methodology.

Persistent capability workflow

To make music-player/playback callable as music_player with a default source:

register_tool
  name=music_player
  from=music-player/playback
  defaults={"source":"~/Music/1MIX"}

Then:

  1. Require registration to report successful resolution, validation, persistence, registry admission, host registration, activation, and callable_now: true.
  2. Call the actual music_player tool. Do not call spawn and describe that as tool invocation.
  3. Verify agent-facing evidence reports launch_kind: "tool"; use inspect target=tool:music_player view=status when usage or activation needs confirmation.
  4. If callability is false, stop at the reported activation boundary. Preserve the logical source and diagnose it; do not substitute a Recipe spawn as proof.

Use direct delegation for the same maintained capability under a persistent name or narrower defaults. Use named imports only when one Recipe graph contains reusable child nodes. See persistent tools and Recipes.

Capability map

Recipes remain with the Skill that owns their behavior. Load that Skill for selection and caller inputs; this map is routing, not a copied Recipe contract.

OwnerRecipe families
actorscommand-validate, recipe-validate, jsonl-tail, run-summary, run-state-files, run-ops-snapshot, resource-locker, resource-locker-snapshot
swarmLens and quorum reviews, research synthesis, architecture, development tasking, readiness, and supporting subagent-* components
artifactsReport, write, manifest, bundle, and supporting file-write
project-workRepository health, docs maintenance, release readiness/summary, Run reports, and supporting deterministic snapshots
music-playerThe controlled playback singleton
recipe-memoryInternal automatic reviewers; use its Skill only for diagnosis/recovery

Use the actors/* helpers only for their narrow requested result or intentional composition. Prefer public inspect for ordinary runtime diagnosis and the capability's primary workflow for a complete outcome.

Delegation boundary

The current Pi instance owns user authority and the final result; pi-actors creates explicit local Runs, while companion transports provide presence rather than hidden instance creation. Keep short single-boundary work inline when delegation adds no value. For several participants, reasoning allocation, quorum, or integration methodology, read swarm.

Treat attention: "steer" as an actor-authored urgent semantic checkpoint at Pi's next safe boundary, never as a status-derived completion signal; the later root terminal still arrives through its ordinary completion batch.

Run workflow

A Run is one concrete execution of a Recipe:

Recipe --spawn--> Run
Run = Recipe + Trace + Control
  1. Spawn with the exact logical Recipe identity and caller-owned values.
  2. Retain the returned run:<id> and normally wait for the root coordinator's settled completion batch instead of polling. Nested actor completions accumulate under their containing top-level Run and arrive in that one tree-compressed batch; descendant sessions do not need notification options.
  3. Inspect view=trace when retained observations or attention matter.
  4. Inspect view=control before diagnosing service readiness, stale work, or saturation.
  5. Send message only for an action declared and consumed by that controlled Recipe.
  6. Use terminal state, result, declared artifacts, and execution evidence to prove completion.

A Run exposes only recipe, trace, and control views. Control is bounded actor-local input, not peer messaging or chat. See Runs.

Diagnosis and stop rules

When a pi-actors operation fails:

  1. Keep the intended logical Recipe or tool identity.
  2. Inspect the existing recipes, tool:<name>, runtime, or run:<id> surface that owns the failure.
  3. Report resolver, registry, activation, Run, Trace, or Control truth exactly.
  4. Retry only after the owning state is healthy.

Stop if spawn and registry resolve the same Recipe differently. Stop if registration persists but is not callable. Stop if an operation cannot be proven through pi-actors surfaces.

Never recover by copying maintained Recipe args, defaults, Control, artifacts, or helper commands. Never hard-code a {skill_dir} replacement path. Never introduce bash -lc, eval, direct bundled-helper execution, or shell backgrounding to bypass resolution. Never call spawn and claim a tool call. Use diagnostics for the safe next action.

When to read another Skill

  • Read the owning capability Skill when choosing or operating that capability pack.
  • Read swarm in addition to actors for multiple actors/subagents, parallel scopes, reviewer lenses, quorum, conflict handling, or integration.
  • For generic mechanics, this Skill outranks capability Skills and swarm. Report a stale Skill if it contradicts Recipe identity, registration, activation, spawn, Inspect, Trace, or Control semantics here.
  • When changing the extension implementation itself, apply project implementation instructions after this operating protocol.

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.