/memstack:verifyfrom memstack
Runs the project's check chain via scripts/verify.py (npm, pytest, ruff) and reads the resulting receipt. Activates before commits, when work finishes, or when the user asks if work passes.
Ships in memstack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Run the project's checks, write a receipt, read what it says.
When this skill activates, output:
✅ Verify: running the check chain...
Then follow the protocol below.
| Context | Status | Priority |
|---|---|---|
| Tracked changes are finished and about to be reported done | ACTIVE, run the chain | P1 |
| User asks "does it pass", "verify this", "is this ready" | ACTIVE, run the chain | P1 |
| About to commit | ACTIVE, a receipt costs less before the commit than after | P1 |
| User is mid-task, still editing | DORMANT, a receipt for a half-finished tree ages out the moment the next edit lands | n/a |
| Read-only audit or investigation | DORMANT, nothing changed, so there is nothing to verify | n/a |
| Edits left no tracked change (new untracked files only) | DORMANT, the gate does not see untracked files and neither does the chain | n/a |
Repo where verify list detects nothing | DORMANT, but read NOTHING_DETECTED below before concluding this | n/a |
scripts/verify.py detects three families and nothing else. Anything outside this list goes unchecked, so a passing receipt is not a claim that the project is sound:
| Family | Detected when | Runs |
|---|---|---|
| npm | package.json has a scripts entry named test, lint, typecheck or build | npm run <script>, one check per script, in that order |
| pytest | pytest.ini, or pyproject.toml with a [tool.pytest] section, or a tests/ directory | python -m pytest -q |
| ruff | ruff.toml, .ruff.toml, or pyproject.toml with a [tool.ruff] section | ruff check . |
A detected check that cannot run becomes a SKIP carrying its reason: npm missing from PATH, node_modules absent, pytest not importable, ruff not installed. A SKIP is not a pass, because nothing ran.
Run python scripts/verify.py list to see the chain without executing it.
python scripts/verify.py run --task-id <session-id>
Use the session id as the task id. The receipt is named after it, so one session overwrites its own receipt on a re-run instead of littering the directory, and the Stop gate's block message names this exact command with this exact id.
Each check gets 900 seconds before it is recorded as a FAIL with a timeout note.
It lands at .memstack/receipts/<task-id>.json under the repo root. That directory writes a .gitignore holding * the first time it is created, so the evidence never asks to be committed and never appears in git status.
The receipt is evidence, not paperwork. Read these fields before saying anything about the outcome:
status, exit code, duration, and the last 2000 characters of combined output. The failing output is in here, so quote it rather than paraphrasing it.verify.py, matched by file hash. When it is false the receipt comes from a verify that has never been shown to report a failure, so a PASS from it carries less weight. Re-earn it with python scripts/verify.py selftest.| Exit | Verdict | What it means for the session |
|---|---|---|
| 0 | PASS | At least one check ran and none failed. Safe to report the work done and to commit. |
| 1 | FAIL | A check failed. The session is not done. Fix it and re-run rather than narrating around it. |
| 3 | NOTHING_DETECTED | Nothing was detected, or everything detected was skipped. Nothing was verified, so nothing is confirmed. Say that plainly instead of calling it a pass. |
| 64 | usage error | The command line was wrong. Fix the invocation and re-run. |
Exit 2 never comes from run. It belongs to the gate alone, so a 2 always means a Stop event was blocked, not that a check failed.
The same file runs as a Stop hook, deciding once per turn whether unverified work is sitting in the tree.
.verify-required at the repo root, found from the git toplevel. Without that file the gate allows silently every turn, because a note on a session that never asked for a gate is noise. The marker stays untracked on purpose: committing it would arm every clone.verdict is PASS and whose kind is run, and only when its tree_fingerprint equals the tree's fingerprint right now. A selftest receipt is refused even though it says PASS, because selftest proves the tool works and never runs the project's checks.Editing a tracked file changes the fingerprint, which is what stops a stale receipt from clearing new work.
After a FAIL, take two rounds of fixing. If a third round is still not producing a passing receipt, stop and tell the user what is failing and what has been tried.
This mirrors the gate's own cap, for the same reason: by the third round the evidence says the problem is not the one being fixed, and further rounds spend the user's tokens confirming that.
| Gotcha | Why it matters |
|---|---|
| Untracked files never count | The fingerprint drops every ?? line, so a pile of .bak files is not why a block happened. Look at the tracked changes instead of tidying scratch files. |
| A FAIL that predates the edits is still the session's to surface | The receipt records what the chain reports now. A pre-existing failure gets reported, not skipped, because the user cannot act on a problem nobody mentioned. |
| NOTHING_DETECTED is not a pass | It is exit 3 precisely so it cannot be mistaken for exit 0. It means nothing was verified, which is a different claim from nothing being wrong. |
| A SKIP with a reason is not a pass either | A chain where everything skipped resolves to NOTHING_DETECTED for the same reason: an unrun check confirms nothing. |
| A selftest receipt cannot clear the gate | Selftest never touches the project's own checks, so honoring it would let a green result from a chain that never read the project unlock the project's work. |
can_fail_demonstrated: false weakens a PASS | It marks a verify that has not proven it can report failure against this exact file. Run the selftest before leaning on that receipt. |
| Doc-only edits to tracked files still arm the gate | No check reads prose, so the chain has nothing to say about it, but the fingerprint changed and a run receipt is still what clears it. |
.memstack/receipts/<task-id>.jsonscripts/verify.py. Detection is bounded and named, results are receipts carrying a tree fingerprint, and a Stop gate blocks unverified tracked work when armed. (Origin: MemStack Session 2, Sep 2026)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub cwinvestments/memstack --plugin memstack87 skills in this plugin
/memstack-seo-ai-search-visibilityUse this skill when the user says 'AI search', 'AI visibility', 'ChatGPT ranking', 'Perplexity optimization', 'GEO', 'generative engine optimization', or needs to optimize content for AI-powered search engines and LLM citations. Do NOT use for traditional SEO audits or Google Ads./memstack-security-api-auditUse this skill when the user says 'audit API', 'check API security', 'API routes security', 'endpoint audit', 'check my routes', or needs to verify API route protection. Reviews API endpoints for authentication, authorization, and input validation gaps. Do NOT use for frontend security headers or dependency scanning./memstack-development-api-designerUse this skill when the user says 'design API', 'API endpoints', 'REST API', 'API designer', 'route structure', 'API architecture', or is designing RESTful API routes, request/response schemas, and endpoint organization. Do NOT use for API security audits or database design.Other plugins' skills for the same job