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.
In this repository14 other files it gives its agents.
- AGENTS.mdAGENTS.md
- backend-engineeringSkill
- change-planningSkill
- change-reviewSkill
- device-healthSkill
- genai-engineeringSkill
- instruction-maintenanceSkill
- pakemSkill
- project-bootstrapSkill
- release-deliverySkill
- root-cause-debuggingSkill
- sensitive-operationsSkill
- state-and-handoffSkill
- ui-ux-qualitySkill
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
- Very specific: line 22
Use the entries whose host is this agent:
- Very specific: line 30
If the manifest is missing, say the framework is not installed with pakem install on this device and stop.
- Very specific: line 36
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 …
- Distinctive: line 56
Only the project of this session.
- Distinctive: line 87
Knowledge counts: When this session knows a project fact that conflicts with a new rule, name the conflict and ask.
- Distinctive: line 92
Timing: If a task is in progress, finish it first and list the alignment items in the report.
- Very specific: line 95
Find differences: Run pakem project check for the project, and compare its AGENTS.md, docs/, and OpenSpec config with the re-read rules.
- Very specific: line 99
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.
- Very specific: line 109
Finish: when pakem project check passes and every difference is applied, proposed, or kept with a reason.
≈ “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.
Files
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_versionandinstalled_at: the installed release and when it was written;entries: every installed file, withhost,kind(instructionsorskill),path, andsource.
Use the entries whose host is this agent:
| Agent | host | Instructions file | Skills folder |
| Claude Code | claude | ~/.claude/CLAUDE.md | ~/.claude/skills |
| Codex | codex | ~/.codex/AGENTS.md | ~/.agents/skills |
| Gemini / Antigravity | antigravity | ~/.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
- The instructions file, in full. It replaces the kernel this session loaded.
- 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). - 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 changes | own | work | client |
| How the agent works (when to push, how to interview) | Adopt now | Adopt unless a project override says otherwise | Adopt where it does not conflict with the client's conventions |
| Project text (pinned framework block, wording that contradicts a rule) | Fix and commit locally | Propose the edit; change it after the owner confirms | Do 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: notes | Do 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 acceptance | Same on a topic branch. The merge request waits for the owner and names who else is affected | Note 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 impact | Same, naming who else is affected | Same; 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
- 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.
- Find differences. Run
pakem project checkfor the project, and compare itsAGENTS.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. - 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. - 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. - Record the alignment once every difference and follow-up is applied, proposed, or
kept with a reason:
pakem project sync --aligned --applywrites.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. - Finish when
pakem project checkpasses 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.
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.

