agentleFS
fullerzzfullerzz/agent-skills/.agents/skills/triage-pstack/SKILL.md

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

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

    Run from the zstack checkout that contains this skill and scripts/triage_upstream.py.

    line 8
  2. Very specific:

    Run the helper once per case with the checkout's OPENAI_API_KEY environment.

    line 13

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Triage upstream pstack changes

Run from the zstack checkout that contains this skill and scripts/triage_upstream.py.

  1. 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 HEAD when 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.
  2. 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.
  3. Use a JSON encoder to save each case as one UTF-8 object in a scratch file. Supply case_id, the public upstream_url for the cursor/plugins PR, full 40-character upstream_sha and downstream_sha values, and evidence as text. Use distinct case IDs within a PR. The CLI sends the evidence string as case input.
  4. Run the helper once per case with the checkout's OPENAI_API_KEY environment. 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"
  5. Report every case with its PR link, pinned SHAs, returned label, probabilities, and API confidence. Use review to prioritize deeper comparison, needs_context to identify a missing fact, already_covered to verify equivalent behavior, and out_of_scope to 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.

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.