agentleFS
creedantscreedants/pstack-t3/skills/setup-pstack/SKILL.md

setup-pstack

Skill3 starsChanged 57 days agoMITView on GitHub

Configure which T3 providers and models pstack uses per role and at what reasoning budget. Reads the live T3 catalog and writes a roles file that every pstack skill reads. Use for /setup-pstack, "configure pstack models", "pstack budget", or changing pstack's model choices.

14 other projects use a version of this, 10 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use Poteto Mode.

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.
  • jtarorehSkill

    Poteto Mode

    poteto's agent style for concise, detailed responses, deliberate subagents, unslopped prose, simple code, and verified work. Use for poteto, /poteto-mode, or requests to work in this style.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Read the pstack-t3 runtime before spawning workers, choosing models, scheduling, or isolating work.

    line 8
  2. Very specific:

    Write ~/.config/pstack-t3/roles.json, the per-role seat table that every pstack-t3 skill reads through the runtime.

    line 10
  3. Distinctive:

    (a) Ask for a budget: Use the host's question tool if it has one.

    line 36
  4. Very specific:

    Add --project to write .pstack/t3-roles.json for this repository instead.

    line 65

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

Setup pstack

Read the pstack-t3 runtime before spawning workers, choosing models, scheduling, or isolating work. It maps those steps onto T3's orchestrator tools.

Write ~/.config/pstack-t3/roles.json, the per-role seat table that every pstack-t3 skill reads through the runtime. A project can override roles in .pstack/t3-roles.json.

<runtime> below is the pstack-runtime skill directory next to this one.

Steps

1. Check the host and read the catalog

Check the host's tool list for watch_pull_request. Accept the T3 harness prefixes described in the runtime. A tool listed by name counts as present, including a harness prefix. A deferred watch_pull_request counts as present and does not fail this gate. If tools load lazily, use the host's tool discovery and make one bounded orchestrator_capabilities call before checking again. A provider catalog does not prove that the watch tool exists. Do not call watch_pull_request with a dummy PR to test it.

If watch_pull_request is absent, stop setup before writing roles or a saved catalog. Say "Setup cannot finish. T3 Code 0.0.46-nightly.20261005.2702 or later is required because this host does not expose watch_pull_request." Ask the user to update T3 Code and rerun setup. Do not report setup complete.

Call orchestrator_capabilities. Save its JSON result verbatim to a temporary file, for example /tmp/pstack-t3-catalog.json. That file is the only source of valid providers, models, and options. Never write a seat that is not in it. Keep the file for the commands in this skill. show and write both read it, and a user-level write saves a copy as the snapshot. A skill that only resolves a role from a tool result uses the quoted heredoc in Where roles live instead of a file.

List the runnable providers (canRunChildTask: true) with their first three models. List the providers that are not runnable with their constraints, such as "Provider is not authenticated", so the user knows what to fix in T3 settings.

2. Load current state

python3 <runtime>/scripts/roles.py show --cwd "$PWD" --catalog /tmp/pstack-t3-catalog.json

This prints every role with its seats and source (default, the user file, or the project file), already resolved against the catalog. notes name seats that no longer match, such as a model T3 dropped.

3. Budget, map, and confirm

(a) Ask for a budget. Use the host's question tool if it has one. Offer these labels, and name the current budget.

  • default — built-in role reasoning or configured seat options
  • unlimited — max reasoning
  • large — xhigh reasoning
  • medium — high reasoning
  • small — medium reasoning

The budget caps the reasoning option (effort, reasoningEffort, reasoning_effort, or reasoning). A seat at or below the cap keeps its level. A seat above the cap drops to the cap, or the closest lower level the model offers. A seat that names no level receives the cap. default leaves a built-in or configured level as it is. The ladder stops at max. unlimited raises a built-in preferred seat to the model's highest level at or below max. The default Opus seat moves from xhigh to max. Grok's ladder tops out at xhigh, so the default Grok seat stays at xhigh. unlimited lowers a configured ultra seat to max when the model offers a level at or below max. default keeps a configured ultra seat. When every offered level is above the cap, the seat gets the lowest level. A configured seat that names its own level keeps that level when it is at or below the cap. A model without such an option is unaffected. ultracode and ultrathink are never set by a budget.

(b) Propose roles. The built-in defaults are Claude Opus (claude-opus-5-5) at xhigh for judgment roles and Grok (grok-4.7) at xhigh for code roles. Under unlimited, those seats rise as step 3(a) describes. Opus moves to max, and Grok stays at xhigh. arena runners, arena cross-judge pool, architect runners, and interrogate reviewers use those two seats, judgment first. skill tests and verifiers stay on their catalog rules. Start from roles.py show in step 2. Keep configured roles unless the user changes them. Use the built-in seats for roles with source: "default". Offer large for a new setup. It matches the built-in xhigh ceiling. Show each fallback note beside its role and seat. Codex and every other runnable configured provider remain available as user choices. Leave skill tests unset so its adaptive default stays.

(c) Confirm. Show every role with its seats. Ask whether to accept as-is or change specific roles. For panel roles the seat count is the panel size.

4. Write

Build one --set per role you are writing. A seat is inherit or provider/model, with options as a query string. Separate panel seats with ;.

python3 <runtime>/scripts/roles.py write --catalog /tmp/pstack-t3-catalog.json --budget large \
  --set "judgment and prose=claudeAgent/claude-opus-5-5?effort=xhigh" \
  --set "swarm workers=grok/grok-4.7?reasoningEffort=xhigh" \
  --set "interrogate reviewers=claudeAgent/claude-opus-5-5?effort=xhigh;grok/grok-4.7?reasoningEffort=xhigh"

The provider, model, and option IDs above are examples. Use IDs from step 1. Add fastMode only when the chosen model is in the grok family and declares that boolean option. A fallback to another family does not set it.

  • The command overwrites the whole file, so re-runs are idempotent. Add --keep to keep roles you did not pass.
  • It refuses to write a seat that does not match the catalog and prints why. Fix the seat and rerun. Do not pass --force unless the user asks.
  • Add --project to write .pstack/t3-roles.json for this repository instead.
  • A user-level write also saves the catalog snapshot to ~/.config/pstack-t3/catalog.json, which roles.py show uses later to resolve fallbacks.

5. Verify

Run python3 <runtime>/scripts/roles.py show --cwd "$PWD" --parent "<inheritedProviderInstanceId>/<inheritedModel>". Check that configured seats resolve with no mismatch notes. For unset roles, review and report each default fallback note. A default fallback does not invalidate an otherwise runnable setup. info lines, such as an inherit seat made explicit for the budget, are expected. Then run one smoke delegation to each distinct provider in the table: delegate_task with mode: "wait", timeoutMs: 120000, the seat's target, and the task "Reply with the single word ready." A seat that fails here is not usable. Fix it and rerun step 4.

6. Confirm

Do this only after step 1 found watch_pull_request and step 5's smoke delegations succeeded. Tell the user which file was written, the budget, any provider they could enable in T3 settings to widen verifiers, and that new sessions pick it up immediately. Re-running this skill updates it.

7. Offer a verification skill (optional)

Check whether the project has a way to drive the real app for proof, such as a verify-* skill or an existing harness. If not, offer once: "want a project-local verification skill, so agents can drive the app the way a user does and prove changes work? I can generate one with /create-verification-skill." On yes, invoke create-verification-skill. On no, move on.

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.