agentleFS
JrecosJrecos/omp-pstack/skills/setup-pstack/SKILL.md

setup-pstack

Skill8 starsChanged yesterdayMITView on GitHub

Configure which models pstack uses per role and at what reasoning budget. Detects available models, takes an approved pool first, then recommends the 17-role map and writes an always-applied rule. Use for /setup-pstack, "configure pstack models", "pstack budget", or changing pstack's model choices.

39 other projects use a version of this, 21 of them edited.

Adopted by

Most recently taken up by

Used with

Projects with it also use pstack-tdd and control-cli.

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

    pstack-tdd

    Use only when the user explicitly asks for TDD, a failing test, or a regression test, OR when the bug has an obvious cheap local test target. Skip when the test path is unclear, expensive, integration-heavy, or not requested.

    Also in 3 projects that use this

  • ElyzeSolutionsSkill

    control-cli

    Build or adapt a local harness to drive, inspect, and profile an interactive CLI or TUI without external services. Use for CLI UX checks, startup regressions, memory leaks, hangs, prompt flows, or terminal demos.

    Also in 4 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 37 edited versions we read keep these.

  • 0

    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. Very specific:

    Ask for a budget: Use ask to offer these exact labels:

    line 24

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

Save the approved pool plus the role-to-model mapping with the pstack_models tool (action: "save"). It writes the plugin-managed rule rules/pstack-models.md in the active OMP profile directory (resolved with the SDK's getAgentDir()), as an always-applied rule. The skills read that rule for every dispatch. There are no built-in defaults: a role left unconfigured, or a model outside the approved pool, requires setup rather than a silent substitution.

Steps

1. Detect available models

Enumerate the models authenticated in this session with pstack_models (action: "list"). It returns the current pool and roles, plus each detected model's selector, name, family, reasoning, and efforts. Use that registry to decide what can dispatch. A model the user can access but has not authenticated cannot carry a role. If no model is detected, ask the user to name their available models. Never save a concrete selector without confirming its availability.

2. Select the approved pool (before any role map)

Ask the user to choose the pool of models pstack may dispatch. Present each detected model's name, family, reasoning support, and efforts. Use the user's access and preferences for cost, speed, reasoning depth, and diversity. Do not invent a brand set. Include inherit-parent or auto only with explicit permission. An alias used by a role must itself be in the pool. Keep approved models even if no role uses them yet. A model outside the pool cannot be assigned.

3. Choose the budget and recommend the 17-role map

Load the existing choices with pstack_models (action: "show") when a rule exists. Preserve every existing role's model identity, ordered panel list, and aliases unless the user asks to change them. Remove retired role lines, such as how critics, and report them before saving. If they prevent parsing, correct those lines in rules/pstack-models.md before using the managed save.

Ask for a budget. Use ask to offer these exact labels:

  • large — xhigh reasoning
  • medium — high reasoning
  • small — medium reasoning

The offered budgets stop at xhigh. Keep a higher supported effort on an existing role only if the user explicitly asks. Do not import upstream model defaults or replace configured identities.

On a re-run, infer the current effective budget from existing concrete selectors' thinking suffixes. xhigh, high, and medium correspond to large, medium, and small. If suffixes differ, call the budget mixed and show the efforts. If the effort is outside those three, call it custom. If no suffix records an effort, call the budget unknown. Model caps can hide the original target. Do not claim a stored target or a default budget.

Recommend the map. Using only pool members, propose a value for each of the 17 roles (feature, refactoring, bug-fix, perf-issue, hillclimb, judgment and prose, hardest tasks, how explorer, how explainer, why investigators, why synthesizer, reflect tooling, reflect judgment, divergent, synthesizer, arena runners, arena cross-judge pool, swarm workers, architect runners, interrogate reviewers). Preserve existing choices on a re-run. State a short rationale based on detected capabilities and the user's preferences. Use the poteto kind for code-writing roles, general for judgment roles, and readonly for review panels. A role with no value is unconfigured. Do not silently fill it.

how explorer, reflect tooling, and reflect judgment, divergent, synthesizer are reserved for existing configurations and custom workflows. Built-in /how uses how explainer, and built-in /reflect works inline. Keep any existing assignments to reserved roles. Include their keys in the save, with empty values if no workflow uses them.

Apply the budget. large, medium, and small target xhigh, high, and medium. Set the :<effort> suffix on every concrete selector, including panel entries. Keep the exact provider and model id. Match the full registry identity before separating a suffix. Do not switch models to obtain an effort. If pstack_models list does not show the target effort for a model, use its highest supported effort at or below the target. If none qualifies, mark the role as needing a choice. A model without reasoning gets no suffix. Leave inherit-parent and auto unchanged.

Confirm the roles. Show all roles with their budget-adjusted selectors. Mark unavailable models and choices outside the pool as needing a choice. List any retired lines removed. Use ask to confirm the map or change specific roles. Offer only available approved models and explicitly approved aliases. Reapply the chosen budget to any changed concrete entries. swarm workers supplies each worker's model unless a race assigns an approved model per arm.

4. Confirm panel count and diversity

For panel roles (arena runners, architect runners, interrogate reviewers), one subagent runs per ordered entry, including aliases. The list length sets the fan-out count. arena cross-judge pool is also an ordered list, but Arena selects one concrete judge from another vendor than the parent's. Aliases cannot judge. Show each panel's proposed count and model spread. Use ask to confirm the count and diversity. Ordered duplicate entries count separately. Never deduplicate or silently shrink a list.

5. Validate

Every concrete role selector must resolve in the detected registry and belong to pool by base identity. A thinking suffix does not change pool membership. inherit-parent and auto pass only if the token itself is in pool. pstack_models refuses invalid choices before saving. A role without a line is unconfigured, not defaulted.

6. Write the rule

Save with pstack_models (action: "save", pool, and roles mapping each role label to its selector or ordered list). pool is required. The tool atomically replaces the managed body of rules/pstack-models.md. Comments outside that body survive. If the file is malformed, fix it before saving. OMP stores the budget in concrete selectors' thinking suffixes, not a separate # budget line. The values below illustrate the shape, not defaults:

---
description: pstack per-role model choices (approved pool plus per-role mapping)
alwaysApply: true
---
# pstack model configuration. `pool` lists the approved models pstack may dispatch. One line per role.
# A thinking suffix does not change pool membership.
# `inherit-parent` and `auto` use the parent model and require explicit pool permission.
# A missing role line is unconfigured. No default is substituted.
pool: <provider/id>, <provider/id>
feature, refactoring: <provider/id>:<effort>
bug-fix: <provider/id>:<effort>
perf-issue: <provider/id>:<effort>
hillclimb: <provider/id>:<effort>
judgment and prose: <provider/id>:<effort>
hardest tasks: <provider/id>:<effort>
how explorer: <provider/id>:<effort>
how explainer: <provider/id>:<effort>
why investigators: <provider/id>:<effort>
why synthesizer: <provider/id>:<effort>
reflect tooling: <provider/id>:<effort>
reflect judgment, divergent, synthesizer: <provider/id>:<effort>
arena runners: <provider/id>:<effort>, <provider/id>:<effort>
arena cross-judge pool: <provider/id>:<effort>, <provider/id>:<effort>
swarm workers: <provider/id>:<effort>
architect runners: <provider/id>:<effort>, <provider/id>:<effort>
interrogate reviewers: <provider/id>:<effort>, <provider/id>:<effort>

7. Confirm

Tell the user the rule was written and name the chosen budget and any model-specific effort caps. It applies to new dispatches. Re-running this skill updates it. An unconfigured role or a model outside the pool fails closed. Rerun setup to fix it.

8. 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 from the project's, profile's, or plugin's installed skills. On no, move on without pushing.

9. Offer a formal verification skill (optional)

Check whether the project already has a formal verification skill (a project skill that runs a model checker, a proof, or another verifier against the code). If not, offer once: "want a formal verification skill, so agents can prove a key property of your code holds in every case in scope, not only the cases tests reach? I can generate one with /create-formal-verification-skill." On yes, invoke /create-formal-verification-skill from the project's, profile's, or plugin's installed skills. On no, move on without pushing.

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.