agentleFS
aidemd-mcpaidemd-mcp/server/.claude/skills/release-check/SKILL.md

release-check

Skill4 starsChanged 4 days agoMITView on GitHub

Pre-release end-to-end test for this repo (@aidemd-mcp/aidemd) only. Packs the build exactly as it would publish, installs it into a throwaway project under a temp npm prefix, and checks `aidemd-mcp init`, an upgrade of a project set up by the previous release, the hooks merge, the hook command, the observer (port list, HALT, end-session, page) and headless `/aide` sessions — isolated from the real global install, the real observer and the real per-user app data. Run it before every publish, when the user asks to test a change before release, or when they type /release-check. Not shipped and not installed into host projects.

  • Installs packages

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use review.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • SentrySkill

    review

    Fixture review skill.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Make sure the working tree holds what the release would ship (built from the current source.

    line 21
  2. Distinctive:

    Run, in the background (it takes ~2 minutes, longer with the headless sessions):

    line 22
  3. Very specific:

    Read the PASS / FAIL / SKIP table it prints and report.json in the temp folder.

    line 29
  4. Distinctive:

    Never run it against, or let it modify, the real global npm install, the real observer, the real per-user app data or the user's brain …

    line 46
  5. Very specific:

    When a check proves wrong or the environment changes, fix run.mjs and record what you learned in NOTES.md.

    line 48
  6. Distinctive:

    When a release adds or changes user-facing behaviour, add a check for it here in the same piece of work.

    line 49

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “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

release-check — test the package before it ships

The harness is run.mjs beside this file. What it relies on, and why, is in NOTES.md; read it when a check fails or the environment looks different.

Run it

  1. Make sure the working tree holds what the release would ship (built from the current source; npm run build is part of the run).
  2. Run, in the background (it takes ~2 minutes, longer with the headless sessions):

    node .claude/skills/release-check/run.mjs --keep

    Flags: --keep keeps the temp folder for inspection (always print its path to the user); --skip-build reuses dist/; --no-claude skips the headless claude -p sessions.

  3. Read the PASS / FAIL / SKIP table it prints and report.json in the temp folder. Exit code 0 means every check that ran passed.

What it checks

  • Pack and install: the .tgz npm pack produces, installed into a temp npm prefix that every test process sees first on PATH; the CLI and aide_info report the packed version; the MCP handshake reports it too.
  • Fresh project: aidemd-mcp init writes the aide and brain MCP entries, AIDE's five hook entries in .claude/settings.local.json (each node "<installed entry>" hook, SessionEnd with "timeout": 10, nothing in .claude/settings.json, the local file ignored by git) and the aide-observer skill, installs nothing globally, and a second run changes no file. The brain is wired to a temp vault the same way /aide:brain config does it.
  • Existing settings: a user's own .claude/settings.json (comments, a user hook, another key) is left byte-identical while the hooks land in the local file; one still holding the previous release's AIDE hooks is left untouched with the /aide:upgrade follow-up, and aide_info lists hooks; a malformed one gets [skipped-malformed].
  • Hook: aidemd-mcp hook for each hook event exits 0, prints nothing, moves presence working → linked → waiting → ended, and writes nothing into the project.
  • Observer, simulated agent (no login needed): drives the packed server over MCP stdio — start binds a port other than the real observer's, the session links, a fake open Claude session causes a HALT naming it, aide_observer_end_session ends it (and refuses the caller's own session), the next start passes; the page and JSON API answer with liveness states and refuse a missing token.
  • Headless /aide sessions: real claude -p runs in the test project, loading only its own MCP servers and settings: one plain boot, then a HALT against an open session, then an approved end. These need a signed-in Claude CLI; when it is not signed in they SKIP — say so plainly, never as a pass.
  • One-time move (Windows): a packed server with a fake home and a fake %LOCALAPPDATA% moves seeded history from the old %LOCALAPPDATA%\aidemd into %USERPROFILE%\.aidemd byte for byte, deletes the old observer record and token, and changes nothing on a second start.
  • Former package only: with just @aidemd-mcp/server (the package's former name) in its own temp prefix, the packed init exits 1 with the refusal naming that package and npm i -g --force <package>, advises no uninstall, and leaves the project and that prefix unchanged. Offline, it SKIPs.
  • Upgrade from the previous release: the latest published version (or AIDE_RC_PREVIOUS=<x.y.z>) is installed into its own temp prefix and sets up a project with its own init; the packed server then runs the /aide:upgrade path on it — aide_info and the aide_upgrade summary find the drift, every package-owned category is applied (mcp, brain and ide are left to the interactive flow) — and afterwards nothing is outdated, the previous release's hooks have moved from .claude/settings.json to .claude/settings.local.json, every reference page is byte-identical to the shipped one, and the user's own files (a spec, code, package.json, the brain config, the session record) are unchanged. Offline, it SKIPs.
  • Your setup untouched: the real global install, the real observer's record and port, and both real per-user folders (AIDEMD_HOME or %USERPROFILE%\.aidemd, and the old %LOCALAPPDATA%\aidemd) are snapshotted before and after and must match. If port 24680 is listening but no observer record can be read, the check fails rather than passing blind.

Rules

  • Never run it against, or let it modify, the real global npm install, the real observer, the real per-user app data or the user's brain vault. If a check would need that, stop and tell the user.
  • A FAIL is reported to the user with its evidence and fixed through the normal path (code through /aide, prose directly). Never patch the harness to make a product defect pass.
  • When a check proves wrong or the environment changes, fix run.mjs and record what you learned in NOTES.md.
  • When a release adds or changes user-facing behaviour, add a check for it here in the same piece of work.
  • A release ships only when every check that ran passes. Headless SKIPs must be named in the release report; run them from a signed-in terminal before publishing when the change touches the boot, the skills or the hooks.

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.