agentleFS
BhaskarManamBhaskarManam/pstack/skills/pstack-upgrade/SKILL.md

pstack-upgrade

Skill4 starsChanged 7 months agoMITView on GitHub

Pull the latest pstack, re-run setup, and show a diff of new and changed skills. Keeps the install current without losing user config.

  • Deletes or force-pushes

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 4 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Check symlinks in ~/.claude/skills/ to find where pstack is installed.

    line 16
  2. Very specific:

    If the install directory cannot be found, tell the user and stop: *"Can't locate your pstack install.

    line 22
  3. Very specific:

    Run git -C {install_dir} status.

    line 28
  4. Distinctive:

    Wait for confirmation before continuing.

    line 32
  5. Very specific:

    Read {install_dir}/CHANGELOG.md and note the current version (first version header).

    line 38
  6. Very specific:

    Run git -C {install_dir} log --oneline -5 to note the last 5 commits.

    line 40
  7. Distinctive:

    If pull fails (diverged, conflict), tell the user:

    line 48
  8. Very specific:

    Do not run reset --hard without explicit user approval.

    line 52
  9. Very specific:

    Update the pstack block in ~/.claude/CLAUDE.md with the new version

    line 73
  10. Distinctive:

    If setup fails, report the error and suggest manual steps.

    line 75
  11. Distinctive:

    Never run git reset --hard without explicit user approval

    line 105
  12. Very specific:

    Never overwrite ~/.config/pstack/user-profile.yaml — user data is never touched by upgrade

    line 106
  13. Very specific:

    Never overwrite feedback/*-log.yaml files — user feedback is never touched

    line 107
  14. Very specific:

    If the user's pstack was installed via clone rather than the primary path, adapt the location detection

    line 108

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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

/pstack-upgrade

You upgrade the user's pstack installation to the latest version while preserving their user profile, feedback logs, and project artifacts.


Step 1 — Locate the pstack install

Check symlinks in ~/.claude/skills/ to find where pstack is installed. The pstack directory is the one containing setup, CHANGELOG.md, and skills/.

Common locations:

  • ~/.claude/skills/pstack/ (if installed as a subdirectory)
  • Wherever ~/.claude/skills/vision symlinks to (parent of skills/vision/)

If the install directory cannot be found, tell the user and stop: "Can't locate your pstack install. Run ls -la ~/.claude/skills/ and tell me where pstack lives."


Step 2 — Check git status

Run git -C {install_dir} status. If there are uncommitted local changes, warn the user:

"Your pstack install has local changes. Upgrading will pull from origin — local changes could conflict. Proceed? (yes/no)"

Wait for confirmation before continuing.


Step 3 — Record current version

Read {install_dir}/CHANGELOG.md and note the current version (first version header).

Run git -C {install_dir} log --oneline -5 to note the last 5 commits.


Step 4 — Pull latest

Run: git -C {install_dir} pull --ff-only origin main

If pull fails (diverged, conflict), tell the user:

"Pull failed — your local branch has diverged from origin. You may need to reset: git -C {install_dir} reset --hard origin/main (this will lose any local changes). Or contact the pstack maintainer."

Do not run reset --hard without explicit user approval.


Step 5 — Diff new skills and changes

Compare the skills before and after pull:

  • New skills: skill directories in skills/ that weren't there before
  • Updated skills: SKILL.md files with a newer modification date
  • New framework files: files in knowledge/frameworks/ added since last pull
  • New rubrics or calibration files: same

Present the diff clearly.


Step 6 — Re-run setup

Run {install_dir}/setup to:

  • Re-symlink any new skills into ~/.claude/skills/
  • Update the pstack block in ~/.claude/CLAUDE.md with the new version

If setup fails, report the error and suggest manual steps.


Step 7 — Present summary

## pstack upgraded

Previous version: {old version}
New version: {new version}

New skills:
  + /{skill-name} — {one-liner from SKILL.md}

Updated skills:
  ~ /{skill-name} — {what changed, from CHANGELOG.md}

New knowledge:
  + {framework or rubric file} — {TL;DR}

Your profile and project artifacts are unchanged.

Next: restart your Claude Code session for new skills to appear in autocomplete.

Rules

  • Never run git reset --hard without explicit user approval
  • Never overwrite ~/.config/pstack/user-profile.yaml — user data is never touched by upgrade
  • Never overwrite feedback/*-log.yaml files — user feedback is never touched
  • If the user's pstack was installed via clone rather than the primary path, adapt the location detection

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.