triage-pstack
Skill2 starsChanged 2 months agoMITView on GitHub
Triage upstream pstack changes against zstack with the Decisions CLI after a Hog update or when given cursor/plugins pull requests.
- Reads credentials
In this repository64 other files it gives its agents.
- AGENTS.mdAGENTS.md
- architectSkill
- arenaSkill
- automate-meSkill
- batonSkill
- benchmark-checklistSkill
- blast-radiusSkill
- broSkill
- correctSkill
- create-formal-verification-skillSkill
- create-verification-skillSkill
- figure-it-outSkill
- herdr-workflowSkill
- howSkill
- interrogateSkill
- in-your-own-wordsSkill
- ketchupSkill
- maintain-formal-verification-skillSkill
- maintain-verification-skillSkill
- no-commentsSkill
- papercutSkill
- principle-attack-the-premiseSkill
- principle-boundary-disciplineSkill
- principle-build-the-leverSkill
- principle-encode-lessons-in-structureSkill
- principle-exhaust-the-design-spaceSkill
- principle-experience-firstSkill
- principle-explain-the-numberSkill
- principle-fix-root-causesSkill
- principle-foundational-thinkingSkill
- principle-guard-the-context-windowSkill
- principle-laziness-protocolSkill
- principle-make-operations-idempotentSkill
- principle-migrate-callers-then-delete-legacy-apisSkill
- principle-minimize-reader-loadSkill
- principle-model-the-domainSkill
- principle-never-block-on-the-humanSkill
- principle-outcome-oriented-executionSkill
- principle-prove-it-worksSkill
- principle-redesign-from-first-principlesSkill
- principle-separate-before-serializing-shared-stateSkill
- principle-sequence-verifiable-unitsSkill
- principle-subtract-before-you-addSkill
- principle-test-behavior-not-implementationSkill
- principle-type-system-disciplineSkill
- prSkill
- python-best-practicesSkill
- recallSkill
- reflectSkill
- reframeSkill
- setup-zstackSkill
- sharpenSkill
- show-meSkill
- show-me-your-workSkill
- sketchSkill
- statechartSkill
- swarmSkill
- tddSkill
- teachSkill
- technical-writingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Run from the zstack checkout that contains this skill and scripts/triage_upstream.py.
- Very specific: line 13
Run the helper once per case with the checkout's OPENAI_API_KEY environment.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Triage upstream pstack changes
Run from the zstack checkout that contains this skill and scripts/triage_upstream.py.
- Verify the PRs in the update and pin each landed pstack change to its full merge SHA. Pin the zstack revision the user would port onto. Use the checkout's
HEADwhen the user leaves the target open, and report that choice. For a historical replay, use the pre-port zstack SHA. When the user asks to preview an open PR, pin its head SHA and treat the result as preliminary until it merges. - Inspect the pinned upstream patch and compare it with the pinned downstream code. Build one case per logical change, even when a single PR contains several changes. Capture the relevant public upstream diff or summary, matching public zstack code or shareable test observations, and any known platform requirements. State important unknowns in the evidence so the model can return
needs_context. - Use a JSON encoder to save each case as one UTF-8 object in a scratch file. Supply
case_id, the publicupstream_urlfor thecursor/pluginsPR, full 40-characterupstream_shaanddownstream_shavalues, andevidenceas text. Use distinct case IDs within a PR. The CLI sends theevidencestring as case input. Run the helper once per case with the checkout's
OPENAI_API_KEYenvironment. If the command environment needs to load the approved.envrc, use the direnv form. Read the JSON output and keep the key out of case files, commands, and reports.uv run scripts/triage_upstream.py < "$case_file"direnv exec . uv run scripts/triage_upstream.py < "$case_file"- Report every case with its PR link, pinned SHAs, returned label, probabilities, and API confidence. Use
reviewto prioritize deeper comparison,needs_contextto identify a missing fact,already_coveredto verify equivalent behavior, andout_of_scopeto check the scope difference. Route errors or refusals to manual review and report any missing credentials once. Keep all cases visible during the pilot and end with the proposed follow-ups for the maintainer. Keep the triage pass read-only.
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
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.

