[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71FS7TTY4JMRFM2BB2DE74G":3,"skill-same:01M71FS7TTY4JMRFM2BB2DE74G":78},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":14,"repositoryHtmlUrl":49,"repositoryHomepageUrl":6,"ownerHtmlUrl":50,"ownerBlogUrl":51,"ownerDescription":52,"updatedAt":53,"install":54,"resources":67},"01M71FS7TTY4JMRFM2BB2DE74G","direct-positions",null,"ALWAYS invoke this skill when directing positions across Products: resuming the directing session after a compaction, observing, waking, or steering a position's pane, or reading a position's mail. NEVER instruct, compact, restart, or reload a position's pane without this skill.","outcomeeng\u002Fplugins","outcomeeng","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F257335685?v=4","01M71FRVRF36XYR3HRSCGFHK2R","Outcome Engineering","01M71FRVS4BZG17DWANFJ7EPNY",1,"MIT","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Fcoding-agents\u002Fskills\u002Fdirect-positions\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"direct positions","direct","positions","compact","when","invoke","resuming","steer","wake","direction","across","verification","observe","resume","never","use","session","python3","tool","Bash","2026-11-10 10:12:30",false,"---\nname: direct-positions\ndescription: >-\n  ALWAYS invoke this skill when directing positions across Products: resuming the directing session after a compaction, observing, waking, or steering a position's pane, or reading a position's mail. NEVER instruct, compact, restart, or reload a position's pane without this skill.\nargument-hint: \"[resume | observe | wake | steer \u003Cposition> | compact \u003Cposition> | restart \u003Cposition> | reload \u003Cposition>]\"\nallowed-tools: Read, Write, {{! tool('use_skill') !}}, Bash(python3 \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdirection.py\":*), Bash(spx -C * verification run paths *)\n---\n\nUse skill `coding-agents:operate-herdr` for every pane operation on a position whose `environment` is `herdr`.\n\nUse skill `coding-agents:operate-prowl` for every pane operation on a position whose `environment` is `prowl`.\n\nUse skill `coding-agents:operate-agent-mail` for every mail operation.\n\n\u003Cobjective>\nA report of each configured position's observed state, each action taken on its pane or mail with the authority that permitted it, and each action stopped for an absent definition or grant, produced by one directing pass.\n\u003C\u002Fobjective>\n\n\u003Cessential_principles>\n\n- Run every operation through `python3 \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdirection.py\" \u003Csubcommand> --position \"\u003Cdirecting position display name>\"`; it resolves the common Git directory through the agent-mail adapter, takes the working directory as the invocation checkout, and prints one JSON result. Run it from the top-level directory of the checkout.\n- Every value this skill acts on comes from the composed configuration in `\u003Cconfiguration>`. Name no person, mail name, Product, pane, worktree path, date, or incident that the configuration does not supply.\n- Reach every pane through `coding-agents:operate-herdr` or `coding-agents:operate-prowl`, by the position's `environment`, and every mail operation and the mail project key through `coding-agents:operate-agent-mail`; the script imports each adapter module from the sibling skill's `scripts` directory by a `__file__`-relative path and calls its typed operation. Construct no raw environment, mail, or Git command, and name no path into the plugin cache.\n- Read a pane's last prompt and context fill from the environment skill's result. When the result omits either, report it unavailable and act on neither. Read no harness transcript file.\n- Never believe a report unchecked: confirm a position's claim against its pane or its mail before relaying it or acting on it.\n\n\u003C\u002Fessential_principles>\n\n\u003Cconfiguration>\n\nA position's override file is `.spx\u002Forchestration\u002F\u003Cposition>.md` in the repository's common Git directory, which `git rev-parse --git-common-dir` returns. `\u003Cposition>` is the position's display name in lowercase with each space replaced by a hyphen. The file is optional.\n\nThe file's TOML front matter between `+++` lines sets keys, parsed as TOML. Its Markdown body holds the position's expectations, including any operator grant with its bounds. Each key the file sets replaces that key's default; each key it omits keeps the default; an absent file composes the defaults alone.\n\n| Key                            | Default                                                                                                           |\n| ------------------------------ | ----------------------------------------------------------------------------------------------------------------- |\n| `mail.channel`                 | unset; every mail request names no repository. A set path is the repository every mail request names              |\n| `mail.agent`                   | unset; every mail operation reports unavailable                                                                   |\n| `positions`                    | empty; each entry names a display name, environment, working directory, mail name, stall minutes, context percent |\n| `executor_groups`              | empty; each entry names a label, environment, working-directory prefix, and exclusions                            |\n| `launchers`                    | empty; maps a Product checkout path to the position that launches its Appliers                                    |\n| `untouchable_panes`            | empty                                                                                                             |\n| `advisor`                      | unset; forwarding reports unavailable                                                                             |\n| `interval_seconds`             | 1800                                                                                                              |\n| `compact_at_percent`           | 30                                                                                                                |\n| `doorbell_start_delay_seconds` | 300                                                                                                               |\n| `pace`                         | unset; no pacing applies                                                                                          |\n| `resume_line`                  | a line naming `\u002Fproduct-tree:understand`, the resume note, the expectations, and the mail channel                 |\n\nA malformed file or an unknown key stops the skill with a message naming the file, the key, the value found, and the accepted form, and changes nothing.\n\nEvery mail operation of the scripts (`inbox`, which lists through the adapter's `list` operation, `send`, the doorbell, and the controller's forward) carries the configured `mail.channel` as the repository its request names, so the adapter resolves the mail project of that repository; an unset `mail.channel` names no repository, and the request carries none.\n\nThe skill only reads the override file; it writes nothing into the common Git directory. Runtime state lives under `.spx\u002Forchestration\u002Fstate\u002F` in the invocation checkout, the working directory the skill runs from: the highest mail id rung per position in `rungs.json`, each pane's quiet time in `quiet.json`, the monitor's last observations in `observations.json`, and the resume note in `resume-note.md`. The `compose` result prints the absolute `stateDirectory` and `resumeNote`. Never read it as configuration. Copy no expectations or other file into another worktree; each position reads its own override file, which the `resume_line` names.\n\n\u003C\u002Fconfiguration>\n\n\u003Cauthority>\n\nA position acts only when the declared methodology chapter defines the action for that position, or when an operator grant in the composed configuration names the action with its bounds. Read the methodology declaration in `spx.config.yaml` and the chapter it names before the first action of a pass. Act only within the authority the defining source establishes. When neither source establishes an action, stop that action and report the absent definition and the absent grant.\n\n\u003C\u002Fauthority>\n\n\u003Cpane_guards>\n\nSend no prompt, key, compaction, restart, or reload to:\n\n- a pane in `untouchable_panes`;\n- a pane whose last prompt the environment skill shows came from the operator;\n- a pane that waits at a question or approval screen.\n\nReport such a pane with its screen quoted verbatim and take no other action on it. The guards bar input into a pane only; forwarding a stalled guarded pane's screen to `advisor` by mail is the controller's one action on it.\n\n\u003C\u002Fpane_guards>\n\n\u003Cscripts>\n\n| Subcommand   | Effect                                                                                                | Extra arguments                                                                                                                                                                                                                    |\n| ------------ | ----------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `compose`    | prints the composed configuration                                                                     | none                                                                                                                                                                                                                               |\n| `roster`     | resolves each position and executor-group pane through its environment adapter                        | none                                                                                                                                                                                                                               |\n| `monitor`    | one monitor pass                                                                                      | none                                                                                                                                                                                                                               |\n| `doorbell`   | one doorbell pass                                                                                     | `--authority \u003Csource>`                                                                                                                                                                                                             |\n| `controller` | one report-only controller pass, as the controller pass of `\u003Cpasses>` defines                         | `--authority \u003Csource>`                                                                                                                                                                                                             |\n| `inbox`      | prints the records of one mail name that the recipient has not judged; it reads and acknowledges none | `--recipient \u003Cmail name>`, which defaults to `mail.agent`                                                                                                                                                                          |\n| `send`       | sends one record from `mail.agent`                                                                    | `--authority \u003Csource>`, `--recipient`, `--kind`, `--correlation`, `--subject`, `--body-file \u003Cfile written in the scratch directory>`, `--scratch-directory \u003Cthe scratch directory the harness names>`, required with `--body-file` |\n| `act`        | sends a prompt, `\u002Fcompact`, or a reload to one pane after the guards pass                             | `--target \u003Cposition or pane>`, `--operation` (`prompt`, `compact`, or `reload`), `--text`, `--authority \u003Csource>`                                                                                                                  |\n\nEvery subcommand exits 0 with its JSON result, or exits 1 with a `status` other than `succeeded` and a `detail`, whether the stop is the script's own (`stopped`, `unavailable`) or an environment adapter's status such as `agent-blocked` or `command-failed`; a malformed override file or unknown key stops it naming the file and key before any change. Each pass result carries `rearmAfterSeconds`, which `\u003Cpasses>` uses to re-arm. A pane read or mail read that fails for one position appears as that position's own entry (`pane-read-failed`, or a skipped doorbell entry with its `detail`) and leaves every other position's report intact. A pane's last prompt and context fill print `unavailable` while the environment adapter's pane item carries neither `last_prompt_origin` nor `context_percent`, and the scripts act on neither, so the operator-prompt guard and the context-fill flag are inert for an adapter whose pane item omits those fields; when the item carries them, an `operator` last prompt guards the pane and a fill past the position's `context_percent` flags it in the monitor pass. `--authority` names the methodology chapter or operator grant that permits the action; without it `act`, `send`, the doorbell, and the controller stop before any prompt, mail, forward, or compaction, naming the subcommand, the absent definition, the absent grant, and the argument to pass. The `act` subcommand sends no restart: a restart runs the `restart` step, which relaunches a session with the write paths it records verification into. A `--body-file` that resolves outside `--scratch-directory` stops `send` with `rejectedPath`, `resolvedPath`, `scratchDirectory`, and a `detail` naming the fix. A `--body-file` without `--scratch-directory`, a missing `--target`, `--operation`, `--recipient`, `--subject`, or `--correlation`, an unreadable `--body-file`, or a target that names no single pane stops the subcommand with a `detail` naming the argument and listing the valid positions, panes, or operations.\n\nTest record: `direction_core.py` and `direction.py` are exercised by the position-direction mapping tests with stubbed mail and environment adapters and no live pane. The tests cover default and override composition, malformed and unknown-key files with every unknown key reported, pane guards, quiet time, atomic state writes, runtime state and the resume note placed in the invocation checkout apart from the override file in the common Git directory, an absent authority on `act`, `send`, the doorbell, and the controller, executor-group matching with exclusions, a failing pane read or mail read for one position among several, an `act` that exits 1 on an adapter status such as `agent-blocked`, a guarded `act` target including an operator-prompted pane, an absent `act` target or operation, an `act` target matching no pane or several panes, absent `send` arguments and an absent scratch directory, the located reason for an unresolved pane, adapter-supplied last prompt origin and context fill in the monitor and controller passes, wrong-typed override values, an `act` operation outside `prompt`, `compact`, and `reload` refused by argument parsing, the report-only controller forwarding a stalled guarded pane's screen, and each stated default that reports unavailable: a configured `mail.channel` named as the repository of every mail request while an unset one names none, an unset `advisor` on the controller, an unset `mail.agent` on the doorbell, `inbox`, and `send`, and an unset `pace`. They leave no state beyond the pytest temporary directory.\n\n\u003C\u002Fscripts>\n\n\u003Cpasses>\n\nThe monitor, the doorbell, and the controller are passes. Each pass runs once, writes its observations to the state directory, and ends. The monitor pass writes `quiet.json` and `observations.json`, and the doorbell pass writes `rungs.json` and `quiet.json`. No pass loops, waits for its next pass, or outlives this session. Follow the arming rule `bounded-background-wait`: a pass is a finite wait with one deadline, one result, and one owner that collects its termination, and the owner arms the next pass only after handling that result. {!% if target == 'claude' %!}Arm the monitor pass through the harness monitor. Arm the doorbell and controller passes as bounded background runs: each exit re-invokes the session, and the result is collected on the completion notice.{!% else %!}The harness offers no monitor tool: run the monitor pass at the next step boundary. Run the doorbell and controller passes in the foreground and collect each result within the active turn, or move the pass to the next step boundary; never start one in the background.{!% endif %!} A pass never arms its own successor.\n\n- **Monitor pass.** For each position in `positions` and each group in `executor_groups`, read the pane through its environment skill. Record quiet time and context fill. Report a pane quiet for its stall minutes or filled past its context percent.\n- **Doorbell pass.** After `doorbell_start_delay_seconds`, list each position's unjudged mail through the `list` operation of `coding-agents:operate-agent-mail` for the `mail.agent` identity. For a position whose highest unjudged id exceeds its recorded rung and whose pane is idle, send one prompt through the position's environment skill that tells it to read its mail, then record the new rung. Skip every pane `\u003Cpane_guards>` excludes.\n- **Controller pass.** Run with `--authority`. The pass reports only: it forwards a stalled position's question to `advisor` when set, and reports forwarding `unavailable` naming the `advisor` key and the override file to set it in when unset, with the screen of a guarded pane quoted verbatim since the guards bar input into a pane and never mail, marks each position over `compact_at_percent` `compact-recommended`, and reports `pace`. It compacts and paces nothing; run `act` with `--operation compact` and the authority that permits it for each recommended position. Recommend compaction for no pane `\u003Cpane_guards>` excludes.\n\n\u003C\u002Fpasses>\n\n\u003Carguments>\n\nThe first word of the argument selects the mode:\n\n| Argument             | Steps that run                     |\n| -------------------- | ---------------------------------- |\n| none, or `resume`    | `compose_configuration`, `resume`  |\n| `observe`            | `compose_configuration`, `observe` |\n| `wake \u003Cposition>`    | `compose_configuration`, `act`     |\n| `steer \u003Cposition>`   | `compose_configuration`, `act`     |\n| `compact \u003Cposition>` | `compose_configuration`, `act`     |\n| `restart \u003Cposition>` | `compose_configuration`, `restart` |\n| `reload \u003Cposition>`  | `compose_configuration`, `act`     |\n\nEvery mode ends at `record`. A mode that needs `\u003Cposition>` and receives none, or a name the roster lacks, stops and lists the roster's labels.\n\n\u003C\u002Farguments>\n\n\u003Cworkflow>\n\n\u003Cstep name=\"compose_configuration\">\nRun `compose` per `\u003Cscripts>`; it resolves the common Git directory, reads the override file of the directing position, and composes it with the defaults per `\u003Cconfiguration>`. Stop on a malformed file. The step writes nothing.\n\u003C\u002Fstep>\n\n\u003Cstep name=\"resume\">\nRun this step first in a fresh session and after every compaction. Read the resume note under the state directory, the composed expectations, and the unjudged mail of `mail.agent` on `mail.channel`. Run the composed `resume_line`. Re-arm the monitor, doorbell, and controller passes. Dispose of each unjudged mail through the matching step below.\n\u003C\u002Fstep>\n\n\u003Cstep name=\"observe\">\nRun `monitor` per `\u003Cscripts>`. For each pane the pass flags, read the pane again before acting and check the claim against its mail.\n\u003C\u002Fstep>\n\n\u003Cstep name=\"act\">\nFor `wake`, `steer`, `compact`, and `reload`, check `\u003Cauthority>` and `\u003Cpane_guards>` first. Then run `act` per `\u003Cscripts>` with the authority that permits it; it reaches the pane through the position's environment adapter. For a message to a position, Use skill `coding-agents:message-agents`. After a reload, read the pane and confirm the position is up before reporting it.\n\u003C\u002Fstep>\n\n\u003Cstep name=\"restart\">\nCheck `\u003Cauthority>` and `\u003Cpane_guards>` first, against the position's pane from `roster`; a restart needs a herdr session whose pane item names its agent kind, and any other pane stops with that reason. Then:\n\n1. **Write paths.** Run `spx -C \u003Cworking directory> verification run paths --verification-type \u003Ctype> --scope-type changeset --scope origin\u002FHEAD..HEAD`, where `\u003Cworking directory>` is the working directory the position's entry in `positions` names and `-C` makes spx run as if started there, once for each verification type the session records, `audit` and `review`. The union of the `writeDirectories` of the results, without duplicates, is the set the relaunch supplies; a path is supplied whether or not it exists yet. A command that fails stops the restart with its report verbatim, and the session is not stopped. Plan the paths anew for every restart and every change of the verification scope; no approval-policy setting of the session is changed to make a path writable.\n2. Use skill `coding-agents:operate-herdr` for one `stop` of the pane and then one `relaunch` with the pane's `name`, `kind`, and `pane` id from `roster`, which is the relaunch's selector because the stopped session no longer resolves by agent name, a `timeout` of `60000`, `\"mutationAuthorized\": true`, and `agentArguments` carrying the harness's parent-session option for each path: for kind `claude` or `codex`, `\"--add-dir\"` followed by the path, once per path. Any other kind, such as `pi`, whose harness offers no such option stops the restart with a configuration error naming the kind and each path, before the stop.\n3. **Preflight.** Before the session's first verification round, read its effective native policy from its own agent's display, then close the display so that the next prompt reaches the session. For kind `claude`, use skill `coding-agents:operate-herdr` for one `prompt` with `text` `\u002Fpermissions`, which opens the listing on its Allow tab, then one `key` with `keys` `Right` four times, as four items, and `\"mutationAuthorized\": true` for that same pane, which reaches the Workspace tab, then one `read` of the pane with `source` `visible`, then one `key` with `keys` `esc` and `\"mutationAuthorized\": true`. The Workspace tab lists the workspace directories one per line and marks the original working directory `(Original working directory)`; a read that shows no line so marked did not reach the Workspace tab. For kind `codex`, use skill `coding-agents:operate-herdr` for one `prompt` with `text` `\u002Fstatus`, then one `read` of the pane with `source` `visible`, then one `key` with `keys` `esc` and `\"mutationAuthorized\": true`. The `Permissions:` row of the status card names each added directory in brackets after the sandbox name, and a row that names `danger-full-access` lists no directory; a read that shows no `Permissions:` row did not open the card. Each path from step 1 that the display does not list is a denied path. A denied path, a display that was not reached, and a Codex row that lists no directory to check each stop the restart with a configuration error naming each denied path or the display and the reason, and the session receives no work.\n4. Read the pane and confirm the position is up before reporting it.\n\n\u003C\u002Fstep>\n\n\u003Cstep name=\"record\">\nWrite the resume note at the absolute `resumeNote` path the `compose` result printed: the time, the last mail handled, each position's observed state, each action in flight with its next trigger, and each operator rule given since the last note. Report the pass outcome to the operator by position display name.\n\u003C\u002Fstep>\n\n\u003C\u002Fworkflow>\n\n\u003Cfailure_modes>\n\n**Claude acted on an unconfirmed report.** A position's mail claimed a Change had merged, and Claude relayed it before checking. Confirm the claim against the position's pane or the store before relaying it.\n\n**Claude typed into a pane that waited at an approval screen.** A prompt sent to wake an idle pane answered a pending approval. Read the pane first and send nothing when it shows a question or approval.\n\n**Claude kept directing after a compaction without its notes.** The session lost its roster and mail rungs. Run `resume` first and read the resume note before any other step.\n\n\u003C\u002Ffailure_modes>\n\n\u003Csuccess_criteria>\n\n- The composed configuration names every value the pass acted on, and the pass names no person, mail name, Product, pane, path, date, or incident from outside it.\n- Every pane operation and mail operation went through `coding-agents:operate-herdr`, `coding-agents:operate-prowl`, or `coding-agents:operate-agent-mail`.\n- No input went into an untouchable pane, an operator-prompted pane, or a pane at a question or approval screen.\n- Every action carries the methodology chapter or operator grant that permitted it; every other action stopped naming the absent definition and the absent grant.\n- Each pass ended after one run, and its successor was armed only after the result was handled: {!% if target == 'claude' %!}the monitor through the harness monitor, the doorbell and controller as bounded background runs collected on the completion notice.{!% else %!}the monitor at the next step boundary, the doorbell and controller as foreground runs collected within the active turn or deferred to the next step boundary.{!% endif %!}\n- Every state file and the resume note were written under the invocation checkout, and nothing was written into the common Git directory.\n- Every restart supplied each path `spx verification run paths` reported as a parent-session writable root, and no restarted session began a verification round before the preflight showed every such path writable.\n- The resume note records the state a post-compaction session needs.\n\n\u003C\u002Fsuccess_criteria>\n","Use skill `coding-agents:operate-herdr` for every pane operation on a position whose `environment` is `herdr`.\n\nUse skill `coding-agents:operate-prowl` for every pane operation on a position whose `environment` is `prowl`.\n\nUse skill `coding-agents:operate-agent-mail` for every mail operation.\n\n\u003Cobjective>\nA report of each configured position's observed state, each action taken on its pane or mail with the authority that permitted it, and each action stopped for an absent definition or grant, produced by one directing pass.\n\u003C\u002Fobjective>\n\n\u003Cessential_principles>\n\n- Run every operation through `python3 \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdirection.py\" \u003Csubcommand> --position \"\u003Cdirecting position display name>\"`; it resolves the common Git directory through the agent-mail adapter, takes the working directory as the invocation checkout, and prints one JSON result. Run it from the top-level directory of the checkout.\n- Every value this skill acts on comes from the composed configuration in `\u003Cconfiguration>`. Name no person, mail name, Product, pane, worktree path, date, or incident that the configuration does not supply.\n- Reach every pane through `coding-agents:operate-herdr` or `coding-agents:operate-prowl`, by the position's `environment`, and every mail operation and the mail project key through `coding-agents:operate-agent-mail`; the script imports each adapter module from the sibling skill's `scripts` directory by a `__file__`-relative path and calls its typed operation. Construct no raw environment, mail, or Git command, and name no path into the plugin cache.\n- Read a pane's last prompt and context fill from the environment skill's result. When the result omits either, report it unavailable and act on neither. Read no harness transcript file.\n- Never believe a report unchecked: confirm a position's claim against its pane or its mail before relaying it or acting on it.\n\n\u003C\u002Fessential_principles>\n\n\u003Cconfiguration>\n\nA position's override file is `.spx\u002Forchestration\u002F\u003Cposition>.md` in the repository's common Git directory, which `git rev-parse --git-common-dir` returns. `\u003Cposition>` is the position's display name in lowercase with each space replaced by a hyphen. The file is optional.\n\nThe file's TOML front matter between `+++` lines sets keys, parsed as TOML. Its Markdown body holds the position's expectations, including any operator grant with its bounds. Each key the file sets replaces that key's default; each key it omits keeps the default; an absent file composes the defaults alone.\n\n| Key                            | Default                                                                                                           |\n| ------------------------------ | ----------------------------------------------------------------------------------------------------------------- |\n| `mail.channel`                 | unset; every mail request names no repository. A set path is the repository every mail request names              |\n| `mail.agent`                   | unset; every mail operation reports unavailable                                                                   |\n| `positions`                    | empty; each entry names a display name, environment, working directory, mail name, stall minutes, context percent |\n| `executor_groups`              | empty; each entry names a label, environment, working-directory prefix, and exclusions                            |\n| `launchers`                    | empty; maps a Product checkout path to the position that launches its Appliers                                    |\n| `untouchable_panes`            | empty                                                                                                             |\n| `advisor`                      | unset; forwarding reports unavailable                                                                             |\n| `interval_seconds`             | 1800                                                                                                              |\n| `compact_at_percent`           | 30                                                                                                                |\n| `doorbell_start_delay_seconds` | 300                                                                                                               |\n| `pace`                         | unset; no pacing applies                                                                                          |\n| `resume_line`                  | a line naming `\u002Fproduct-tree:understand`, the resume note, the expectations, and the mail channel                 |\n\nA malformed file or an unknown key stops the skill with a message naming the file, the key, the value found, and the accepted form, and changes nothing.\n\nEvery mail operation of the scripts (`inbox`, which lists through the adapter's `list` operation, `send`, the doorbell, and the controller's forward) carries the configured `mail.channel` as the repository its request names, so the adapter resolves the mail project of that repository; an unset `mail.channel` names no repository, and the request carries none.\n\nThe skill only reads the override file; it writes nothing into the common Git directory. Runtime state lives under `.spx\u002Forchestration\u002Fstate\u002F` in the invocation checkout, the working directory the skill runs from: the highest mail id rung per position in `rungs.json`, each pane's quiet time in `quiet.json`, the monitor's last observations in `observations.json`, and the resume note in `resume-note.md`. The `compose` result prints the absolute `stateDirectory` and `resumeNote`. Never read it as configuration. Copy no expectations or other file into another worktree; each position reads its own override file, which the `resume_line` names.\n\n\u003C\u002Fconfiguration>\n\n\u003Cauthority>\n\nA position acts only when the declared methodology chapter defines the action for that position, or when an operator grant in the composed configuration names the action with its bounds. Read the methodology declaration in `spx.config.yaml` and the chapter it names before the first action of a pass. Act only within the authority the defining source establishes. When neither source establishes an action, stop that action and report the absent definition and the absent grant.\n\n\u003C\u002Fauthority>\n\n\u003Cpane_guards>\n\nSend no prompt, key, compaction, restart, or reload to:\n\n- a pane in `untouchable_panes`;\n- a pane whose last prompt the environment skill shows came from the operator;\n- a pane that waits at a question or approval screen.\n\nReport such a pane with its screen quoted verbatim and take no other action on it. The guards bar input into a pane only; forwarding a stalled guarded pane's screen to `advisor` by mail is the controller's one action on it.\n\n\u003C\u002Fpane_guards>\n\n\u003Cscripts>\n\n| Subcommand   | Effect                                                                                                | Extra arguments                                                                                                                                                                                                                    |\n| ------------ | ----------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `compose`    | prints the composed configuration                                                                     | none                                                                                                                                                                                                                               |\n| `roster`     | resolves each position and executor-group pane through its environment adapter                        | none                                                                                                                                                                                                                               |\n| `monitor`    | one monitor pass                                                                                      | none                                                                                                                                                                                                                               |\n| `doorbell`   | one doorbell pass                                                                                     | `--authority \u003Csource>`                                                                                                                                                                                                             |\n| `controller` | one report-only controller pass, as the controller pass of `\u003Cpasses>` defines                         | `--authority \u003Csource>`                                                                                                                                                                                                             |\n| `inbox`      | prints the records of one mail name that the recipient has not judged; it reads and acknowledges none | `--recipient \u003Cmail name>`, which defaults to `mail.agent`                                                                                                                                                                          |\n| `send`       | sends one record from `mail.agent`                                                                    | `--authority \u003Csource>`, `--recipient`, `--kind`, `--correlation`, `--subject`, `--body-file \u003Cfile written in the scratch directory>`, `--scratch-directory \u003Cthe scratch directory the harness names>`, required with `--body-file` |\n| `act`        | sends a prompt, `\u002Fcompact`, or a reload to one pane after the guards pass                             | `--target \u003Cposition or pane>`, `--operation` (`prompt`, `compact`, or `reload`), `--text`, `--authority \u003Csource>`                                                                                                                  |\n\nEvery subcommand exits 0 with its JSON result, or exits 1 with a `status` other than `succeeded` and a `detail`, whether the stop is the script's own (`stopped`, `unavailable`) or an environment adapter's status such as `agent-blocked` or `command-failed`; a malformed override file or unknown key stops it naming the file and key before any change. Each pass result carries `rearmAfterSeconds`, which `\u003Cpasses>` uses to re-arm. A pane read or mail read that fails for one position appears as that position's own entry (`pane-read-failed`, or a skipped doorbell entry with its `detail`) and leaves every other position's report intact. A pane's last prompt and context fill print `unavailable` while the environment adapter's pane item carries neither `last_prompt_origin` nor `context_percent`, and the scripts act on neither, so the operator-prompt guard and the context-fill flag are inert for an adapter whose pane item omits those fields; when the item carries them, an `operator` last prompt guards the pane and a fill past the position's `context_percent` flags it in the monitor pass. `--authority` names the methodology chapter or operator grant that permits the action; without it `act`, `send`, the doorbell, and the controller stop before any prompt, mail, forward, or compaction, naming the subcommand, the absent definition, the absent grant, and the argument to pass. The `act` subcommand sends no restart: a restart runs the `restart` step, which relaunches a session with the write paths it records verification into. A `--body-file` that resolves outside `--scratch-directory` stops `send` with `rejectedPath`, `resolvedPath`, `scratchDirectory`, and a `detail` naming the fix. A `--body-file` without `--scratch-directory`, a missing `--target`, `--operation`, `--recipient`, `--subject`, or `--correlation`, an unreadable `--body-file`, or a target that names no single pane stops the subcommand with a `detail` naming the argument and listing the valid positions, panes, or operations.\n\nTest record: `direction_core.py` and `direction.py` are exercised by the position-direction mapping tests with stubbed mail and environment adapters and no live pane. The tests cover default and override composition, malformed and unknown-key files with every unknown key reported, pane guards, quiet time, atomic state writes, runtime state and the resume note placed in the invocation checkout apart from the override file in the common Git directory, an absent authority on `act`, `send`, the doorbell, and the controller, executor-group matching with exclusions, a failing pane read or mail read for one position among several, an `act` that exits 1 on an adapter status such as `agent-blocked`, a guarded `act` target including an operator-prompted pane, an absent `act` target or operation, an `act` target matching no pane or several panes, absent `send` arguments and an absent scratch directory, the located reason for an unresolved pane, adapter-supplied last prompt origin and context fill in the monitor and controller passes, wrong-typed override values, an `act` operation outside `prompt`, `compact`, and `reload` refused by argument parsing, the report-only controller forwarding a stalled guarded pane's screen, and each stated default that reports unavailable: a configured `mail.channel` named as the repository of every mail request while an unset one names none, an unset `advisor` on the controller, an unset `mail.agent` on the doorbell, `inbox`, and `send`, and an unset `pace`. They leave no state beyond the pytest temporary directory.\n\n\u003C\u002Fscripts>\n\n\u003Cpasses>\n\nThe monitor, the doorbell, and the controller are passes. Each pass runs once, writes its observations to the state directory, and ends. The monitor pass writes `quiet.json` and `observations.json`, and the doorbell pass writes `rungs.json` and `quiet.json`. No pass loops, waits for its next pass, or outlives this session. Follow the arming rule `bounded-background-wait`: a pass is a finite wait with one deadline, one result, and one owner that collects its termination, and the owner arms the next pass only after handling that result. {!% if target == 'claude' %!}Arm the monitor pass through the harness monitor. Arm the doorbell and controller passes as bounded background runs: each exit re-invokes the session, and the result is collected on the completion notice.{!% else %!}The harness offers no monitor tool: run the monitor pass at the next step boundary. Run the doorbell and controller passes in the foreground and collect each result within the active turn, or move the pass to the next step boundary; never start one in the background.{!% endif %!} A pass never arms its own successor.\n\n- **Monitor pass.** For each position in `positions` and each group in `executor_groups`, read the pane through its environment skill. Record quiet time and context fill. Report a pane quiet for its stall minutes or filled past its context percent.\n- **Doorbell pass.** After `doorbell_start_delay_seconds`, list each position's unjudged mail through the `list` operation of `coding-agents:operate-agent-mail` for the `mail.agent` identity. For a position whose highest unjudged id exceeds its recorded rung and whose pane is idle, send one prompt through the position's environment skill that tells it to read its mail, then record the new rung. Skip every pane `\u003Cpane_guards>` excludes.\n- **Controller pass.** Run with `--authority`. The pass reports only: it forwards a stalled position's question to `advisor` when set, and reports forwarding `unavailable` naming the `advisor` key and the override file to set it in when unset, with the screen of a guarded pane quoted verbatim since the guards bar input into a pane and never mail, marks each position over `compact_at_percent` `compact-recommended`, and reports `pace`. It compacts and paces nothing; run `act` with `--operation compact` and the authority that permits it for each recommended position. Recommend compaction for no pane `\u003Cpane_guards>` excludes.\n\n\u003C\u002Fpasses>\n\n\u003Carguments>\n\nThe first word of the argument selects the mode:\n\n| Argument             | Steps that run                     |\n| -------------------- | ---------------------------------- |\n| none, or `resume`    | `compose_configuration`, `resume`  |\n| `observe`            | `compose_configuration`, `observe` |\n| `wake \u003Cposition>`    | `compose_configuration`, `act`     |\n| `steer \u003Cposition>`   | `compose_configuration`, `act`     |\n| `compact \u003Cposition>` | `compose_configuration`, `act`     |\n| `restart \u003Cposition>` | `compose_configuration`, `restart` |\n| `reload \u003Cposition>`  | `compose_configuration`, `act`     |\n\nEvery mode ends at `record`. A mode that needs `\u003Cposition>` and receives none, or a name the roster lacks, stops and lists the roster's labels.\n\n\u003C\u002Farguments>\n\n\u003Cworkflow>\n\n\u003Cstep name=\"compose_configuration\">\nRun `compose` per `\u003Cscripts>`; it resolves the common Git directory, reads the override file of the directing position, and composes it with the defaults per `\u003Cconfiguration>`. Stop on a malformed file. The step writes nothing.\n\u003C\u002Fstep>\n\n\u003Cstep name=\"resume\">\nRun this step first in a fresh session and after every compaction. Read the resume note under the state directory, the composed expectations, and the unjudged mail of `mail.agent` on `mail.channel`. Run the composed `resume_line`. Re-arm the monitor, doorbell, and controller passes. Dispose of each unjudged mail through the matching step below.\n\u003C\u002Fstep>\n\n\u003Cstep name=\"observe\">\nRun `monitor` per `\u003Cscripts>`. For each pane the pass flags, read the pane again before acting and check the claim against its mail.\n\u003C\u002Fstep>\n\n\u003Cstep name=\"act\">\nFor `wake`, `steer`, `compact`, and `reload`, check `\u003Cauthority>` and `\u003Cpane_guards>` first. Then run `act` per `\u003Cscripts>` with the authority that permits it; it reaches the pane through the position's environment adapter. For a message to a position, Use skill `coding-agents:message-agents`. After a reload, read the pane and confirm the position is up before reporting it.\n\u003C\u002Fstep>\n\n\u003Cstep name=\"restart\">\nCheck `\u003Cauthority>` and `\u003Cpane_guards>` first, against the position's pane from `roster`; a restart needs a herdr session whose pane item names its agent kind, and any other pane stops with that reason. Then:\n\n1. **Write paths.** Run `spx -C \u003Cworking directory> verification run paths --verification-type \u003Ctype> --scope-type changeset --scope origin\u002FHEAD..HEAD`, where `\u003Cworking directory>` is the working directory the position's entry in `positions` names and `-C` makes spx run as if started there, once for each verification type the session records, `audit` and `review`. The union of the `writeDirectories` of the results, without duplicates, is the set the relaunch supplies; a path is supplied whether or not it exists yet. A command that fails stops the restart with its report verbatim, and the session is not stopped. Plan the paths anew for every restart and every change of the verification scope; no approval-policy setting of the session is changed to make a path writable.\n2. Use skill `coding-agents:operate-herdr` for one `stop` of the pane and then one `relaunch` with the pane's `name`, `kind`, and `pane` id from `roster`, which is the relaunch's selector because the stopped session no longer resolves by agent name, a `timeout` of `60000`, `\"mutationAuthorized\": true`, and `agentArguments` carrying the harness's parent-session option for each path: for kind `claude` or `codex`, `\"--add-dir\"` followed by the path, once per path. Any other kind, such as `pi`, whose harness offers no such option stops the restart with a configuration error naming the kind and each path, before the stop.\n3. **Preflight.** Before the session's first verification round, read its effective native policy from its own agent's display, then close the display so that the next prompt reaches the session. For kind `claude`, use skill `coding-agents:operate-herdr` for one `prompt` with `text` `\u002Fpermissions`, which opens the listing on its Allow tab, then one `key` with `keys` `Right` four times, as four items, and `\"mutationAuthorized\": true` for that same pane, which reaches the Workspace tab, then one `read` of the pane with `source` `visible`, then one `key` with `keys` `esc` and `\"mutationAuthorized\": true`. The Workspace tab lists the workspace directories one per line and marks the original working directory `(Original working directory)`; a read that shows no line so marked did not reach the Workspace tab. For kind `codex`, use skill `coding-agents:operate-herdr` for one `prompt` with `text` `\u002Fstatus`, then one `read` of the pane with `source` `visible`, then one `key` with `keys` `esc` and `\"mutationAuthorized\": true`. The `Permissions:` row of the status card names each added directory in brackets after the sandbox name, and a row that names `danger-full-access` lists no directory; a read that shows no `Permissions:` row did not open the card. Each path from step 1 that the display does not list is a denied path. A denied path, a display that was not reached, and a Codex row that lists no directory to check each stop the restart with a configuration error naming each denied path or the display and the reason, and the session receives no work.\n4. Read the pane and confirm the position is up before reporting it.\n\n\u003C\u002Fstep>\n\n\u003Cstep name=\"record\">\nWrite the resume note at the absolute `resumeNote` path the `compose` result printed: the time, the last mail handled, each position's observed state, each action in flight with its next trigger, and each operator rule given since the last note. Report the pass outcome to the operator by position display name.\n\u003C\u002Fstep>\n\n\u003C\u002Fworkflow>\n\n\u003Cfailure_modes>\n\n**Claude acted on an unconfirmed report.** A position's mail claimed a Change had merged, and Claude relayed it before checking. Confirm the claim against the position's pane or the store before relaying it.\n\n**Claude typed into a pane that waited at an approval screen.** A prompt sent to wake an idle pane answered a pending approval. Read the pane first and send nothing when it shows a question or approval.\n\n**Claude kept directing after a compaction without its notes.** The session lost its roster and mail rungs. Run `resume` first and read the resume note before any other step.\n\n\u003C\u002Ffailure_modes>\n\n\u003Csuccess_criteria>\n\n- The composed configuration names every value the pass acted on, and the pass names no person, mail name, Product, pane, path, date, or incident from outside it.\n- Every pane operation and mail operation went through `coding-agents:operate-herdr`, `coding-agents:operate-prowl`, or `coding-agents:operate-agent-mail`.\n- No input went into an untouchable pane, an operator-prompted pane, or a pane at a question or approval screen.\n- Every action carries the methodology chapter or operator grant that permitted it; every other action stopped naming the absent definition and the absent grant.\n- Each pass ended after one run, and its successor was armed only after the result was handled: {!% if target == 'claude' %!}the monitor through the harness monitor, the doorbell and controller as bounded background runs collected on the completion notice.{!% else %!}the monitor at the next step boundary, the doorbell and controller as foreground runs collected within the active turn or deferred to the next step boundary.{!% endif %!}\n- Every state file and the resume note were written under the invocation checkout, and nothing was written into the common Git directory.\n- Every restart supplied each path `spx verification run paths` reported as a parent-session writable root, and no restarted session began a verification round before the preflight showed every such path writable.\n- The resume note records the state a post-compaction session needs.\n\n\u003C\u002Fsuccess_criteria>\n",{"name":5,"description":7,"allowed-tools":44,"argument-hint":45},"Read, Write, {{! tool('use_skill') !}}, Bash(python3 \"${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdirection.py\":*), Bash(spx -C * verification run paths *)","[resume | observe | wake | steer \u003Cposition> | compact \u003Cposition> | restart \u003Cposition> | reload \u003Cposition>]","main","978d51c51d68c99cffb2ba48f7cad9d2f07e5738","src\u002Fplugins\u002Fcoding-agents\u002Fskills\u002Fdirect-positions","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins","https:\u002F\u002Fgithub.com\u002Foutcomeeng","https:\u002F\u002Foutcome.engineering","Spec-driven development for AI-assisted engineering","2026-11-14 20:33:56",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add outcomeeng\u002Fplugins --skill direct-positions",{"tool":60,"command":61},"bunx","bunx skills add outcomeeng\u002Fplugins --skill direct-positions",{"tool":63,"command":64},"pnpm","pnpm dlx skills add outcomeeng\u002Fplugins --skill direct-positions","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Fcoding-agents\u002Fskills\u002Fdirect-positions\u002FSKILL.md",true,[68,74],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"scripts\u002Fdirection_core.py","SCRIPT","脚本",24076,"https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Fcoding-agents\u002Fskills\u002Fdirect-positions\u002Fscripts\u002Fdirection_core.py",{"path":75,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":76,"sourceHtmlUrl":77},"scripts\u002Fdirection.py",23132,"https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Fcoding-agents\u002Fskills\u002Fdirect-positions\u002Fscripts\u002Fdirection.py",[79,85,109,125,138,148],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":39},"01M71G25RZTPQG9KJ00JCHC1F7","plugin","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Ftemplates\u002Fplugin\u002FSKILL.md",[],[81],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":39},"01M71G23DCX3SV60H63HBBKQ6J","sanitize-powerpoint","ALWAYS invoke this skill when sanitizing, cleaning up, auditing, or aligning a PowerPoint (.pptx) deck — slide-master and layout structure, layout type attributes, stray fonts, non-theme colors, or layout naming. NEVER hand-edit pptx XML without this skill.","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Fwork\u002Fskills\u002Fsanitize-powerpoint\u002FSKILL.md",[],[92,93,94,95,96,97,98,33,99,100,101,102,103,104,105,106,107,108,24,23],"sanitize powerpoint","powerpoint","sanitize","fonts","type","cleaning","structure","attributes","theme","pptx","naming","layout","deck","up","edit","xml","master",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":39},"01M71G21PQKBCDECHGVYSKPJW5","draw-excalidraw","ALWAYS invoke this skill when creating Excalidraw diagrams, visualizing workflows, architectures, or concepts. NEVER generate Excalidraw JSON without this skill.","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Fwork\u002Fskills\u002Fdraw-excalidraw\u002FSKILL.md",[],[116,117,118,119,120,33,24,121,122,23,123,124],"draw excalidraw","excalidraw","draw","diagrams","architectures","generate","workflows","concepts","json",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":39},"01M71G1ZMNGFD37RZYM620XM2C","typescript-test-standards","TypeScript test standards enforced across all skills. Loaded by other skills, not invoked directly.","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Ftypescript\u002Fskills\u002Ftypescript-test-standards\u002FSKILL.md",[],[132,133,134,135,136,137,29],"typescript","typescript test standards","test","standards","false","read",{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":39},"01M71G1XBH0X1VCTR7269MDGSY","typescript-code-standards","TypeScript code standards enforced across all skills. Loaded by other skills, not invoked directly.","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Ftypescript\u002Fskills\u002Ftypescript-code-standards\u002FSKILL.md",[],[132,145,146,147,135,136,137,29],"code","typescript code standards","code standards",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":39},"01M71G1TQ3VN45SJ75DFMJDB9W","typescript-architecture-standards","TypeScript ADR conventions enforced across architect and auditor skills. Loaded by other skills, not invoked directly.","https:\u002F\u002Fgithub.com\u002Foutcomeeng\u002Fplugins\u002Fblob\u002Fmain\u002Fsrc\u002Fplugins\u002Ftypescript\u002Fskills\u002Ftypescript-architecture-standards\u002FSKILL.md",[],[155,135,156,157,132,158,159,29,137,160,136,161],"architecture standards","typescript architecture standards","architecture","adr","architect","auditor","conventions"]