Setup Pstackのロゴ

Setup Pstack

コミュニティ
dsebban
setup-pstack

Configure which models pstack uses per role and at what reasoning budget on OMP. Detects the available model catalog and writes modelRoles and task.agentModelOverrides into the active profile's config.yml. Use for /setup-pstack, "configure pstack models", "pstack budget", "which model do subagents use", or changing pstack's model choices.

概要

公開者dsebban
リポジトリskills
スキル名setup-pstack
スター
72
フォーク
6
同梱ファイル
2
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 2個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    dsebbanがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルSetup PstackをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/dsebban/skills/tree/main/skills/setup-pstack
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dsebban/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/setup-pstack .claude/skills/setup-pstack
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでSetup Pstackを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にSetup Pstackを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Setup Pstackは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Setup pstack

Upstream pstack picks a model per call. OMP does not work that way: a task item carries no model, so the model follows the role and the agent. Two settings decide everything.

  • modelRoles maps each role (slow, plan, advisor, judge, task, designer, vision, smol, tiny, commit) to a provider/model[:effort] selector.
  • task.agentModelOverrides maps each spawnable agent to a selector or an @role alias.

Configuring pstack on OMP means setting those two records coherently. scripts/apply-models.mjs does the arithmetic; this skill runs it and owns the conversation around it.

Steps

0. Locate the script

skill:// paths are readable but not executable, so resolve the real path once and reuse it. realpath prints the physical location under any install root:

bash
APPLY=$(realpath skill://setup-pstack)/scripts/apply-models.mjs

1. Show the current state

bash
"$APPLY" --show

It prints every role with its model and every agent with the model it resolves to. unset means the role falls back to OMP's default, which is the session model.

2. Ask for a budget

Use the ask tool, not free text. Offer exactly these four labels, and name the current budget when the config already reflects one:

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

The budget sets the effort token per tier, not per model:

tierrolesunlimitedlargemediumsmall
strongslow, plan, advisor, judgemaxxhighhighmedium
midtask, designer, visionxhighhighmediumlow
smallsmolhighhighmediumlow
pinnedtiny, commitlowlowlowlow

tiny and commit stay at low under every budget. They exist to be cheap.

3. Preview

bash
"$APPLY" --budget <label> --dry-run

The preview keeps any model the user already chose for a role and only rescales its effort. It fills unset roles from the detected catalog, preferring the newest generation in the right family. A model that cannot reach the budget's effort gets the highest level it supports, and the run says so. Agent mappings work the same way: an agent the user already pointed at a role or a model keeps that mapping, and the pstack default only fills an agent that was never set.

Read the notes: block out loud to the user. It reports four things that matter:

  • a configured model that is no longer in the catalog, which the run replaced
  • a role whose model tops out below the budget
  • reviewer and security-reviewer resolving to the same model, which means panel skills (skill://interrogate, skill://arena, skill://reflect) have no real second opinion
  • an agent kept on the user's mapping where pstack would have defaulted elsewhere

4. Let the user change roles

Offer the detected models as options through ask, not free text. Apply a change by passing it through:

bash
"$APPLY" --budget large --role judge=<provider>/<model>:high --agent sonic=@smol

An explicit --role with an effort token wins over the budget. An agent value is either a selector or an @role alias; a direct selector must also use an effort its model supports. Unknown roles, malformed key=value arguments, and models that are not in the catalog are refused rather than substituted, since OMP's own omp config set does not validate them and a bad selector only surfaces when a spawn fails.

5. Apply and confirm

Drop --dry-run. The script merges onto the current records and writes them with omp config set, so roles and agent mappings the user set for reasons outside pstack survive, including roles pstack does not own. A failed read of the current config aborts before anything is written. Re-running with the same budget changes nothing. The two writes, modelRoles then task.agentModelOverrides, are not atomic: if the second fails the first has already landed, and re-running finishes the job.

Tell the user where it was written (the script prints the path) and that it is the active profile's config: omp --profile <name> has its own. New sessions and new subagent spawns resolve the new roles.

6. Check the panel

If step 3 warned that reviewer and security-reviewer collapse onto one model, say plainly what is lost: cross-model review degenerates into self-review, and the independence that skill://arena's cross-judge and skill://interrogate's reviewer panel depend on is gone. A fresh run already puts judge on a different family from advisor when the catalog has one. If the warning remains, either only one family passes enabledModels, so admit a second and re-run, or judge was set earlier to the same model, so name another with --role judge=<provider>/<model>. Do not fake diversity by giving the same model two role names.

7. Offer a verification skill (optional)

Check whether the project can drive the real app for proof: 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 /skill:create-verification-skill." On no, move on without pushing.

8. 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 prover, or another verifier against named code. If not, offer once: "want a formal verification skill, so agents can prove a key property holds in every case in scope, not only the cases tests reach? I can generate one with /skill:create-formal-verification-skill." On no, move on without pushing.

How roles carry pstack's work

pstack roleOMP carrier
judgment and prose, how explainer, why synthesizer, reflect judgment and divergent and synthesizer, historical session consultsadvisor, through the reviewer, comment-sicko, and seance agents
arena cross-judge pool, the second opinionjudge, through the security-reviewer agent
feature, bug-fix, refactoring, perf-issue, hillclimb, swarm workers, arena runners, UI worktask, through the task and poteto-agent agents
how explorer, why investigators, reflect toolingsmol, through the scout and librarian agents
mechanical armstiny, through the sonic agent
hardest tasks, multi-phase plans, reading screenshotsslow, plan, vision, consumed by OMP itself; no agent pstack spawns runs on them

slow, plan, vision, and designer have no spawnable carrier, so by default the root session does the hardest work itself. To put a spawnable implementer on the strongest model, point poteto-agent at slow: --agent poteto-agent=@slow.

Panel size is not a model list here. One task item is one panel member, so fan-out is how many items the batch carries, and independence comes from the items naming different agents.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Setup Pstack」では何ができますか?

Configure which models pstack uses per role and at what reasoning budget on OMP. Detects the available model catalog and writes modelRoles and task.agentModelOverrides into the active profile's config.yml. Use for /setup-pstack, "configure pstack models", "pstack budget", "which model do subagents use", or changing pstack's model choices.

TypingMindでSetup Pstackを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Setup Pstackはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにSetup Pstackをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/dsebban/skills/tree/main/skills/setup-pstackを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Setup Pstackを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Setup Pstackは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもSetup Pstackを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Setup Pstack」は無料ですか?

はい。dsebbanがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇