agentleFS
alfonsusenricoalfonsusenrico/pakem/skills/pakem-update/SKILL.md

pakem-update

Skill0 starsChanged 9 days agoMITView on GitHub

Use when the owner says Pakem was updated or installed, runs /pakem-update, the session start says Pakem changes wait to be aligned in this project, or the agent must reload its framework rules mid-session. Re-reads the installed kernel and skills, reports what changed, and aligns the current project with it.

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 3 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Use the entries whose host is this agent:

    line 22
  2. Very specific:

    If the manifest is missing, say the framework is not installed with pakem install on this device and stop.

    line 30
  3. Very specific:

    Every skill this session has already used, and every skill the current task needs next (SKILL.md, and a reference file only when the task …

    line 36
  4. Distinctive:

    Only the project of this session.

    line 56
  5. Distinctive:

    Knowledge counts: When this session knows a project fact that conflicts with a new rule, name the conflict and ask.

    line 87
  6. Distinctive:

    Timing: If a task is in progress, finish it first and list the alignment items in the report.

    line 92
  7. Very specific:

    Find differences: Run pakem project check for the project, and compare its AGENTS.md, docs/, and OpenSpec config with the re-read rules.

    line 95
  8. Very specific:

    Act by the table above: Commit allowed fixes locally on the current work branch, or on a docs/<topic> branch when no work is in progress.

    line 99
  9. Very specific:

    Finish: when pakem project check passes and every difference is applied, proposed, or kept with a reason.

    line 109

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

Reload the framework in a running session

A session reads its kernel once, when it starts; an install afterwards changes the files, not what this session already loaded. This skill brings a running session up to date without starting a new one, then aligns the project it is working on. It never installs, pushes, opens a merge request, deletes anything, or acts on production; those still need the owner.

1. Find this host's installed files

Read ~/.local/state/pakem/manifest.json:

  • framework_version and installed_at: the installed release and when it was written;
  • entries: every installed file, with host, kind (instructions or skill), path, and source.

Use the entries whose host is this agent:

AgenthostInstructions fileSkills folder
Claude Codeclaude~/.claude/CLAUDE.md~/.claude/skills
Codexcodex~/.codex/AGENTS.md~/.agents/skills
Gemini / Antigravityantigravity~/.gemini/GEMINI.md~/.gemini/config/skills

If the manifest is missing, say the framework is not installed with pakem install on this device and stop.

2. Re-read

  1. The instructions file, in full. It replaces the kernel this session loaded.
  2. Every skill this session has already used, and every skill the current task needs next (SKILL.md, and a reference file only when the task needs it).
  3. The project's AGENTS.md, if the project's pinned framework block changed.

3. Report and apply

Reply with one short message:

  • the installed version and time;
  • the rules that differ from what this session followed before, one line each;
  • in-progress work those rules affect, and what changes (for example: "the branch stays local; the merge request waits until you accept the work");
  • "No change" when nothing differs from what this session loaded.

Then follow the re-read rules from the next action. Where an earlier instruction from the owner in this session conflicts with a new rule, the owner's instruction still wins (kernel section 1); name the conflict instead of choosing silently.

4. Align the current project (one pass, with judgment)

Only the project of this session; another session aligns its own. Use what this session already knows about the project: the update neither erases that knowledge nor overrides it silently.

Know whose project it is

Decide from the project's AGENTS.md (a work or organization profile block, the freelance profile's client rules, or neither), its ## Overrides, its git remote, and this session's context:

  • own: the owner's personal project;
  • work: an organization project shared with colleagues under its profile;
  • client: a client's repository, where the client's conventions win.

Weigh each difference

The update changesownworkclient
How the agent works (when to push, how to interview)Adopt nowAdopt unless a project override says otherwiseAdopt where it does not conflict with the client's conventions
Project text (pinned framework block, wording that contradicts a rule)Fix and commit locallyPropose the edit; change it after the owner confirmsDo not edit the client's files; propose an ## Overrides entry or note to the owner
Pakem follow-ups from pakem project check: copies of Pakem files and Pakem change ...: Projects: notesDo them on a topic branch: re-copy unmodified copies (pakem project sync --templates --apply), merge changed copies by hand, act on each note, then report for the owner's acceptanceSame on a topic branch. The merge request waits for the owner and names who else is affectedNote them for the owner; the client decides
Other structure or code (deployment design, dependencies, CI, file layout)Never during an update: record a proposed follow-up with its impactSame, naming who else is affectedSame; the client decides

Rules for every case:

  • Nothing is skipped silently. Each difference ends as applied, proposed, or kept with its reason ("kept: override default:mr-policy").
  • No refactors. Alignment edits only text and configuration, plus the Pakem follow-ups the table covers. Anything else touching code, CI, deployment, or more than a few files becomes a proposal through change-planning.
  • Overrides hold. A labelled default the project overrides does not change; say so.
  • Knowledge counts. When this session knows a project fact that conflicts with a new rule, name the conflict and ask; never pick a side silently.

Steps

  1. Timing. If a task is in progress, finish it first and list the alignment items in the report. A new rule that changes the task's next step (for example "do not open the merge request yet") applies immediately.
  2. Find differences. Run pakem project check for the project, and compare its AGENTS.md, docs/, and OpenSpec config with the re-read rules. Its Pakem follow-ups (older or changed copies of Pakem files, and notes for projects since the project last aligned) are part of the update: a note that does not apply here is kept with its reason.
  3. Act by the table above. Commit allowed fixes locally on the current work branch, or on a docs/<topic> branch when no work is in progress; push and open a merge request only when the owner accepts, as for any work.
  4. Ask only real gaps, with a gap interview (change-planning): one message with every question and its default, follow-ups only for answers that fail or conflict, at most two rounds; anything still open is recorded as pending.
  5. Record the alignment once every difference and follow-up is applied, proposed, or kept with a reason: pakem project sync --aligned --apply writes .pakem/framework.toml (the Pakem commit, and the version each changed copy was merged with). Commit it with the alignment work, so the next session starts with nothing pending.
  6. Finish when pakem project check passes and every difference is applied, proposed, or kept with a reason. Report them in three short lists (applied, proposed, kept), then return to the task. Do not keep improving beyond the update.

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.