Back to skills
SKILL.md
Check
ASecurityValidate every reasoning artifact in vault _context.md tables against schema rules. [D]/[I] need an invalidates clause, [S] needs an activation clause, [E] needs a fix: line, every artifact needs # number + priority + YYYY-MM-DD date. Exit non-zero on violation so it runs as a hook or in CI. Triggers: "lint vault", "validate artifacts", "check artifact schema", "memento check", "are my decisions valid".
- 4 stars
- 0 votes
- 0 copies
- 0 views
- Added December 6, 2026
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add Aiyo28/memento-os --skill check --agent claude-codeAre you the author of Check?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/aiyo28-check)---
name: check
version: 1.0.0
description: >
Validate every reasoning artifact in vault _context.md tables against
schema rules. [D]/[I] need an invalidates clause, [S] needs an activation
clause, [E] needs a fix: line, every artifact needs # number + priority +
YYYY-MM-DD date. Exit non-zero on violation so it runs as a hook or in CI.
Triggers: "lint vault", "validate artifacts", "check artifact schema",
"memento check", "are my decisions valid".
user_invocable: true
---
# /check
Enforce the reasoning-artifact schema across every `_context.md` in a vault. Prose templates can't do this — that's the point.
## What gets checked
| Rule | Applies to | Required text (case-insensitive) |
|------|-----------|----------------------------------|
| R1 | `[D]`, `[I]` | `invalidates if` / `invalidates when` / `dies if` |
| R2 | `[S]` | `Activation:` / `activates when` (use `--strict` for literal `Activation:`) |
| R3 | `[E]` | `fix:` |
| R4 | all | `#` column non-empty |
| R5 | all | priority column non-empty |
| R6 | all | row contains `YYYY-MM-DD` date |
| R7 | warning | malformed table row (unbalanced backticks, <4 cells); promoted to violation under `--strict` |
## How to invoke
```bash
python3 .agents/skills/check/lint.py [VAULT_ROOT] [--strict] [--ci] [--format json] [--quiet]
```
Vault root resolution: argument → `$MEMENTO_VAULT_ROOT` → CWD.
| Flag | Effect |
|------|--------|
| `--strict` | Requires literal `Activation:` for `[S]`; promotes R7 warnings to violations |
| `--ci` | Sugar for `--strict --quiet` |
| `--format json` | Machine-readable for hooks/CI |
| `--quiet` | Suppress per-file OK lines |
| Exit | Meaning |
|------|---------|
| 0 | clean |
| 1 | violations found |
| 2 | usage / IO error |
## When the agent invokes this
1. User says "lint", "validate", "check artifacts".
2. Run the script via shell.
3. For each violation, ask the user the missing field, then edit the artifact row in place. Re-run check to confirm clean.
## Don't
- Don't auto-fix without user confirmation.
- Don't widen the rules. Adding `"maybe invalidates if"` defeats the purpose.
- Don't run `--strict` on legacy vaults without warning the user — many existing `[S]` entries use `activates when`.
Files in this skill
- SKILL.md
- lint.py
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.