Agent skill

Setup Pstack

by chmonitor in chmonitor/chmonitor

Configure which models pstack uses per role. An agent skill from chmonitor/chmonitor.

GPL-3.0Auto-check passed

Install Setup Pstack

skills CLI
$ npx skills add chmonitor/chmonitor --skill setup-pstack -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install chmonitor/chmonitor setup-pstack --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/chmonitor/chmonitor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/pstack/upstream/skills/setup-pstack .claude/skills/setup-pstack && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
setup-pstack
GitHub stars
298
Used in
1 other repo
Token cost
~2.2k tokens
SKILL.md length
1,044 words
Files
1
Skills in repo
53
Repo updated
First seen
Licence
GPL-3.0

At a glance

Configure which models pstack uses per role. An agent skill from chmonitor/chmonitor.

  • Works in 8 steps: Detect available models → Load current state → Map and confirm → …
  • Configure pstack models
  • SKILL.md covers Steps, Other runtimes and Models
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Setup Pstack is an agent skill from chmonitor/chmonitor. Configure which models pstack uses per role. Detects available models and writes the current runtime's override sheet. Use for /setup-pstack, "configure pstack models", changing pstack's model choices, or turning the SessionStart hook on or off.

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Open-source operational advisor for ClickHouse — real-time monitoring plus AI-driven index/partition/materialized-view recommendations. The licence is GPL-3.0.

When your agent uses it

  • Configure pstack models
  • Changing pstacks model choices
  • Turning the SessionStart hook on

Example prompts

  • “s override sheet. Use for /setup-pstack,”
  • “, changing pstack”
  • “/setup-pstack”

Workflow steps

8 steps, taken from the step headings in SKILL.md.

  1. Detect available models
  2. Load current state
  3. Map and confirm
  4. Choose whether the session hook routes tasks
  5. Validate
  6. Write the override sheet
  7. Wire it in
  8. Confirm

What it can do on your machine

Read from SKILL.md and the folder at commit fc39ef0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Setup Pstack loads about 2.2k tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 1,044 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~65
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from chmonitor/chmonitor at commit fc39ef0, republished under its GPL-3.0 licence (© chmonitor). 1,044 words, ~2,178 tokens.

Download SKILL.mdSave it as .claude/skills/setup-pstack/SKILL.md (or your agent's skills folder).
name
setup-pstack
description
Configure which models pstack uses per role. Detects available models and writes the current runtime's override sheet. Use for /setup-pstack, "configure pstack models", changing pstack's model choices, or turning the SessionStart hook on or off.

Setup pstack

On Codex, read the platform mapping, including its per-skill notes, before following this skill.

On another runtime, read Other runtimes below for where the sheet lives and how it loads; the steps are the same.

Write the current runtime's per-role model override sheet, using the path in Other runtimes. Each pstack skill names a default model inline; the override sheet adapts those defaults to the models you actually have access to.

Claude Code has no auto-applied "rules" mechanism like Cursor's .mdc. Inclusion is explicit: the user adds a line to ~/.claude/CLAUDE.md (or their project CLAUDE.md) such as:

text
@~/.claude/pstack-models.md

so the file is loaded as context for every session.

Steps

1. Detect available models

Enumerate the model names the Agent tool's model parameter accepts in this session. That is the dependable source. On Claude Code they are the family names listed in Models below, each running that family's current model, and a full model ID is rejected. The default panel is listed there too. The panel is chosen for cross-family diversity. Ask the user to confirm or paste any additional slugs they want available. Never write a real slug you have not confirmed is available. The aliases inherit-parent and auto are always valid even though they are not detected slugs. Both mean the role runs on the parent session's model, which the Agent call expresses by omitting model.

2. Load current state

The default role-to-model mapping is the rule shape shown in the Write the override sheet step below. If the current runtime's sheet already exists, read it and treat its values as the current choices. Otherwise start from those defaults. A line whose role is not in that shape, such as how critics, is from a retired role. Drop it. An older sheet may name full model IDs that start with claude-, which the Agent tool rejects. Replace each with its family name, the word after claude-.

3. Map and confirm

Show every role with its current model, marking any real slug not in the detected set as needing a choice. Also list each line step 2 dropped or rewrote. Ask whether to accept as-is or change specific roles, offering the detected models plus inherit-parent and auto as the options. Prefer AskUserQuestion over free text. For panel roles (arena runners, architect runners, interrogate reviewers) the value is a list, and one subagent runs per entry, alias entries included, so the list length sets the count. arena cross-judge pool is also a list, but Arena selects one value from it whose model family differs from the parent's when possible. swarm workers is the default model for every worker unless a race or comparison assigns another model per arm.

Then ask for the default reasoning effort, the default effort line. It is session, which keeps the parent session's effort, or one of the levels in Models. Start from the default listed there. Every role value without a suffix runs at it. Then ask whether any role should run at another level. On Claude Code a role value may carry one after its slug, as in <slug> @xhigh; panel entries take their own, as in <slug> @xhigh, <slug> @max. Each level dispatches through the plugin's effort agent of that level, so the choice holds without changing the session. Leave the suffix off for the default effort.

4. Choose whether the session hook routes tasks

On Claude Code and Codex, the plugin's SessionStart hook injects the poteto-mode mandate on startup, resume, clear, and compact. Codex asks the user to trust plugin hooks through /hooks before running them. Ask whether to keep the hook. The default is on. The answer is the session hook line in the current runtime's sheet: on or off. With no sheet or no line, the hook injects. The line is inert on other runtimes.

Show full SKILL.md (409 more words)Show less
5. Validate

Every real slug written must be in the detected set. inherit-parent and auto always pass. Validate the slug without any @<level> suffix, and the level against the effort levels in Models. The default effort value is one of those levels or session. On Codex, the levels are the reasoning_effort values your Codex models accept instead. If a chosen real slug or level is not available, stop and ask again.

6. Write the override sheet

Write the current runtime's sheet with the shape below. Overwrite the whole file so re-runs stay idempotent.

markdown
# pstack model configuration

Per-role model overrides for pstack skills. Each pstack SKILL.md names its defaults in a Models section; the values here override those defaults. Delete a line to fall back to the skill default. A value of `inherit-parent` or `auto` runs that role on the parent session's model (the `Agent` call omits `model`); an alias entry in a panel list still counts toward that panel's fan-out. A model may carry a reasoning effort, as in `opus @xhigh` (levels: low, medium, high, xhigh, max); the role then runs through the pstack effort agent of that level, each entry of a panel list on its own. `default effort` sets the level for a value without one; `session` keeps the parent session's effort. `session hook: off` stops the Claude Code or Codex SessionStart hook from injecting the poteto-mode mandate; any other value, or no line, leaves it on.

feature, refactoring: opus
bug-fix: fable
perf-issue: fable
hillclimb: fable
judgment and prose: opus
strongest judgment: fable
how explorer: opus
how explainer: opus
why investigators: opus
why synthesizer: opus
reflect tooling: opus
reflect judgment, divergent, synthesizer: opus
arena runners: opus, fable, sonnet
arena cross-judge pool: opus, fable, sonnet
swarm workers: opus
architect runners: opus, fable, sonnet
interrogate reviewers: opus, fable, sonnet

default effort: session
session hook: on
7. Wire it in

On Claude Code, if ~/.claude/CLAUDE.md does not already include ~/.claude/pstack-models.md, append the @~/.claude/pstack-models.md line so the model rows load on every session. If the user prefers project scope, add the include to the project's CLAUDE.md instead.

On Codex, paste the model rows and the default effort line into ~/.codex/AGENTS.md; Codex has no @ include. Do not paste the session hook line there: the plugin hook reads it directly from ~/.codex/pstack-models.md.

8. Confirm

Tell the user where the override was written, how its model rows load, and whether the plugin hook is on. Re-running this skill updates the override sheet.

Other runtimes

The role lines are the same everywhere. What differs is the sheet path, how the runtime loads it, and how you list models. Detect models with the runtime's own tool and never write a slug you have not seen listed. A runtime whose subagent call has no model parameter still gets the sheet, as the record of the user's choice, and applies it where it can. The session hook line applies to the Claude Code and Codex plugins.

RuntimeSheetLoadList modelsStatus
Claude Code~/.claude/pstack-models.md@~/.claude/pstack-models.md in ~/.claude/CLAUDE.mdthe Agent tool's model parameterverified live
Codex~/.codex/pstack-models.mdmodel rows: paste into ~/.codex/AGENTS.md; hook setting: read by the pluginyour configured Codex models, see codex-tools.mdhook contract tested; discovery verified
opencode~/.config/opencode/pstack-models.mdadd the path to the instructions array in opencode.jsonthe models slash command in the sessionfrom published docs, no live session
Gemini CLI~/.gemini/pstack-models.md@~/.gemini/pstack-models.md in ~/.gemini/GEMINI.mdthe model slash command in the sessionfrom published docs, no live session
Prime Agentno documented sheet path; Prime's configuration chooses modelsno live session

Models

Stamped from plugins/pstack/models.json (edit there, rerun tools/generate.mjs).

  • Available Claude models: opus, fable, sonnet, haiku
  • Default panel: opus, fable, sonnet
  • Reasoning effort levels: low, medium, high, xhigh, max
  • Default reasoning effort: session
  • Single-role default: opus

© chmonitor, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/pstack/upstream/skills/setup-pstack of chmonitor/chmonitor.

Open the folder on GitHubat commit fc39ef0

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in chmonitor/chmonitor, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Setup Pstack next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Setup Pstack compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Setup Pstack this skillchmonitor/chmonitor2981 repos~2.2kAutomated safety check: PassGPL-3.0
Configuring Host Based Intrusion Detectionmukul975/Anthropic-Cybersecurity-Skills34k—~2.1kAutomated safety check: PassApache-2.0
Configuring Windows Event Logging For Detectionmukul975/Anthropic-Cybersecurity-Skills34k—~1.6kAutomated safety check: PassApache-2.0
Configuring Snort Ids For Intrusion Detectionmukul975/Anthropic-Cybersecurity-Skills34k—~3.5kAutomated safety check: NotesApache-2.0
Pii Detectruvnet/ruflo74k1 repos~350Automated safety check: NotesMIT
Threat Detectionalirezarezvani/claude-skills28k—~3.5kAutomated safety check: PassMIT

Similar skills

  • Configuring Host Based Intrusion Detection

    mukul975/Anthropic-Cybersecurity-Skills

    Configures host-based intrusion detection systems (HIDS) to monitor endpoint file integrity, system calls, and configuration changes for security violations.

    34k GitHub stars~2.1k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Configuring Windows Event Logging For Detection

    mukul975/Anthropic-Cybersecurity-Skills

    Configures Windows Event Logging with advanced audit policies to generate high-fidelity security events for threat detection and forensic investigation.

    34k GitHub stars~1.6k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Configuring Snort Ids For Intrusion Detection

    mukul975/Anthropic-Cybersecurity-Skills

    Installs, configures, and tunes Snort 3 to monitor network traffic for malicious activity using custom and community rulesets, preprocessors, and alert output plugins.

    34k GitHub stars~3.5k tokensUpdated 1 mo ago
    SecurityAuto-check: notes
  • Pii Detect

    ruvnet/ruflo

    Detect and flag personally identifiable information (PII) in text, code, and configurations.

    74k GitHub starsUsed in 1 repo~350 tokens
    Auto-check: notes
  • Threat Detection

    alirezarezvani/claude-skills

    A skill your agent uses when hunting for threats in an environment, analyzing IOCs, or detecting behavioral anomalies in telemetry.

    28k GitHub stars~3.5k tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Setup Pstack

    cursor/plugins

    Official

    Configure which models pstack uses per role and at what reasoning budget.

    10k GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed

More from chmonitor/chmonitor

All 53 skills in this repo
  • Hyperframes Creative

    chmonitor/chmonitor

    Non-animation creative direction for HyperFrames videos. An agent skill from chmonitor/chmonitor.

    298 GitHub starsUsed in 5 repos~1.3k tokens
    Auto-check passed
  • Hyperframes Media

    chmonitor/chmonitor

    Audio and media assets for HyperFrames compositions, produced by one shared audio engine (scripts/audio.mjs) — multi-provider TTS (HeyGen / ElevenLabs / Kokoro local), background music + sound…

    298 GitHub starsUsed in 1 repo~2.8k tokens
    Auto-check: notes
  • Remotion To Hyperframes

    chmonitor/chmonitor

    Port an existing Remotion (React) composition to HyperFrames HTML.

    298 GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check passed
  • Music To Video

    chmonitor/chmonitor

    A skill your agent uses when the user has a music track (an audio file, or a video to pull audio from) and wants a beat-synced HyperFrames video, calm to hard-hitting.

    298 GitHub starsUsed in 1 repo~4k tokens
    Auto-check: notes
  • Hyperframes Animation

    chmonitor/chmonitor

    All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus…

    298 GitHub starsUsed in 2 repos~1.8k tokens
    Auto-check passed
  • Faceless Explainer

    chmonitor/chmonitor

    turn arbitrary text — an article, notes, a topic, a brief — into a faceless explainer video, up to ~3 min (sweet spot 30-90s), where every visual is invented (typography, abstract graphics…

    298 GitHub stars~4.5k tokensUpdated 2 days ago
    Auto-check: notes

Questions about Setup Pstack

What does Setup Pstack do?

Configure which models pstack uses per role. An agent skill from chmonitor/chmonitor. Setup Pstack is an agent skill from chmonitor/chmonitor. Configure which models pstack uses per role.

When should I use Setup Pstack?

Setup Pstack fits situations like: configure pstack models; changing pstacks model choices; turning the SessionStart hook on.

How do I install Setup Pstack in Claude Code?

Run `npx skills add chmonitor/chmonitor --skill setup-pstack -a claude-code`. Or copy the skill folder (.claude/skills/pstack/upstream/skills/setup-pstack in chmonitor/chmonitor) into .claude/skills/setup-pstack in your project. Claude Code loads it when a task matches its description.

How do I install Setup Pstack in Codex?

Run `npx skills add chmonitor/chmonitor --skill setup-pstack -a codex`. Or copy the skill folder (.claude/skills/pstack/upstream/skills/setup-pstack in chmonitor/chmonitor) into .agents/skills/setup-pstack in your project. Codex loads it when a task matches its description.

Can I use Setup Pstack in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add chmonitor/chmonitor --skill setup-pstack -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/setup-pstack, .gemini/skills/setup-pstack, .github/skills/setup-pstack and .opencode/skills/setup-pstack in your project.

What does Setup Pstack need to run?

SKILL.md names no scripts, command-line tools or credentials: Setup Pstack is instructions for the agent only.

Does Setup Pstack access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Setup Pstack safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Setup Pstack use?

Setup Pstack is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Setup Pstack use?

About 2.2k tokens (SKILL.md is roughly 8.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Setup Pstack?

Skills that share tags, products or a category with Setup Pstack: Configuring Host Based Intrusion Detection (mukul975/Anthropic-Cybersecurity-Skills, 34k stars), Configuring Windows Event Logging For Detection (mukul975/Anthropic-Cybersecurity-Skills, 34k stars), Configuring Snort Ids For Intrusion Detection (mukul975/Anthropic-Cybersecurity-Skills, 34k stars) and Pii Detect (ruvnet/ruflo, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Setup Pstack?

chmonitor (a GitHub organization) maintains it in chmonitor/chmonitor, which has 298 GitHub stars. The repository holds 53 skills in this directory. The repository was last updated on October 5, 2026.

Source: chmonitor/chmonitor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.