Logo Setup Pstack

Setup Pstack

Cộng đồng
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.

Tổng quan

Nhà phát hànhdsebban
Kho mãskills
Tên kỹ năngsetup-pstack
Sao
72
Bản fork
6
Tệp đi kèm
2
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được dsebban công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Setup Pstack trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/dsebban/skills/tree/main/skills/setup-pstack
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân 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
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Setup Pstack trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Setup Pstack ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Setup Pstack không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

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.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Setup Pstack làm được gì?

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.

Vì sao nên dùng Setup Pstack trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Setup Pstack là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Setup Pstack trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/dsebban/skills/tree/main/skills/setup-pstack. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Setup Pstack?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Setup Pstack với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Setup Pstack với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Setup Pstack có miễn phí không?

Có. Kỹ năng này được dsebban phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇