From supervibe
Use AFTER completing significant work (feature shipped, bug fixed, decision made, incident resolved) to add a memory entry capturing the learning for future skill runs. Triggers: "добавь в память, save decision, сохрани решение, запиши learning".
How this skill is triggered — by the user, by Claude, or both
Slash command
/supervibe:add-memoryThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
This skill turns completed, verified work into durable project memory. A memory
This skill turns completed, verified work into durable project memory. A memory entry is for future context: it should help a later skill run make a better decision, avoid a repeated failure, or apply a proven project pattern without reconstructing the whole history.
Memory is not a scratchpad, task log, or place to store uncertain claims. Add a memory entry only when the learning is stable enough to survive beyond the current session and is backed by source evidence that another skill run can inspect.
AFTER:
decisions/patterns/incidents/learnings/solutions/NOT for: routine commits, doc edits, trivial bug fixes.
Store only high-signal knowledge with durable context value:
Never store:
Follow <resolved-supervibe-plugin-root>/docs/references/skill-expert-operating-standard.md: start from source of truth, preserve context evidence, apply scope safety, use real producers with runtime receipts for durable delegated outputs, verify before completion claims, and keep confidence below gate when evidence is partial.
.supervibe/memory/index.json for tag conventions (use existing tags where possible)<resolved-supervibe-plugin-root>/confidence-rubrics/memory-entry.yaml for quality barCategory selection:
├─ "Why we chose X over Y" -> decisions/
├─ "How we always do Z" -> patterns/
├─ "What broke and how we fixed" -> incidents/
├─ "Surprising thing about project/stack" -> learnings/
└─ "Specific problem + specific solution" -> solutions/
Evidence and retention:
├─ No reusable future decision, source proof, or freshness trigger -> stop; do not write memory.
├─ Duplicate or older guidance exists -> link, supersede, or contradict; do not create a parallel entry.
└─ Verified source evidence, tags, freshness, and context proof exist -> continue to draft and index verification.
Confidence self-assessment:
├─ Verified through testing + review -> 9-10
├─ Worked but not deeply tested -> 7-8
├─ Hypothetical / one-off -> <=6 (don't add to memory)
| Memory type | Required evidence | Freshness rule | Reject when |
|---|---|---|---|
| Decision | source artifact, alternatives, chosen path, command proof | recheck when owner, API, or workflow changes | rationale is speculative |
| Pattern or solution | repeated use or verified fix, source paths, regression command | recheck when dependent files or tests move | only a one-off task note exists |
| Incident or learning | failure symptom, root cause, repair, prevention, rerun evidence | recheck at next similar failure or release gate | raw logs or secrets would be stored |
freshness: fresh | aging | stale | superseded when the project memory
schema already supports it; otherwise include a Freshness body section with
retrievedAt, lastVerified, and recheckWhen..supervibe/memory/index.json whenever possible. Choose
3-7 lowercase tags covering subsystem, artifact type, workflow phase, and
risk area; avoid one-off synonyms.supersedes, supersededBy, contradicts, and bidirectional related
links so context can show the lifecycle.Every memory entry must include a context-proof block or section with:
queries: memory/search queries or source paths used to check for duplicates.sources: file paths, command outputs, receipts, artifact paths, or external
docs that support the claim.memoryEvidence: related memory ids read before writing the new entry.codeEvidence: CodeGraph result and Code Graph readiness or a fallback reason.retrievedAt: ISO timestamp for volatile evidence.limits: what was not checked and how that affects confidence.Operational runbook:
Read existing memory entries, index tags, confidence rubric, source artifacts, receipts, command output, and CodeGraph/Code Graph readiness for the proposed learning.
Run duplicate, freshness, secret/sensitive-data, and source-evidence checks before drafting.
Write one scoped entry only after the claim is verified and confidence is high enough; preserve supersession and bidirectional links instead of deleting older entries.
Verify by rebuilding the memory index and re-reading the new entry from the index. If verification fails, repair frontmatter/body/linkage, rerun the same command, and do not claim memory persistence until it passes.
Step 0 — read existing entries
Choose category (decision tree)
Generate slug from topic (kebab-case, ≤50 chars)
Create file at .supervibe/memory/<category>/[<date>-]<slug>.md (date prefix for time-sensitive types)
Fill frontmatter:
---
id: <slug>
type: <category-singular>
date: YYYY-MM-DD
tags: [<3-7 tags from project vocabulary>]
related: [<other entry IDs if applicable>]
supersedes: [<older entry IDs if replacing guidance>]
supersededBy: []
freshness: fresh
retrievedAt: <ISO timestamp>
agent: <skill-bundle id, host runtime id, or "user">
confidence: <0-10 self-score>
---
Write body with mandatory sections:
lastVerified, recheckWhen, stale triggers)Score with supervibe:confidence-scoring (memory-entry rubric ≥9 required)
Trigger <resolved-supervibe-plugin-root>/scripts/build-memory-index.mjs to update index.json
Cross-link — update related: in any related entries (bidirectional)
Lifecycle metadata — add supersedes:, supersededBy: or contradicts: when this entry replaces or conflicts with earlier memory. Contradictions are review candidates, not automatic deletes.
Repair loop — if the index build, rubric score, duplicate check, or source citation check fails, fix only the memory entry or its links and rerun the failing command before reporting success.
supersedes, supersededBy, or
contradicts metadata.retrievedAt and a recheck
trigger.Return a parseable memoryWriteReport:
{
"status": "PASS | PARTIAL | BLOCKED",
"path": ".supervibe/memory/<category>/<slug>.md",
"category": "decision | pattern | incident | learning | solution",
"id": "stable-slug",
"tags": ["existing-tag"],
"freshness": {"state": "fresh | aging | stale | superseded", "recheckWhen": "trigger"},
"supersedes": ["memory-id or empty"],
"relatedUpdated": 0,
"contextProof": {"queries": [], "sources": [], "memoryEvidence": [], "codeEvidence": "CodeGraph status", "limits": "known limits"},
"indexUpdated": {"command": "node <resolved-supervibe-plugin-root>/scripts/build-memory-index.mjs --root <project>", "exitCode": 0},
"confidence": 0,
"nextAction": "use-memory | repair-entry | rerun-index | stop"
}
supervibe:project-memorynode <resolved-supervibe-plugin-root>/scripts/build-memory-index.mjs --root <project> after any frontmatter, tag, related-link, or supersession repair.<resolved-supervibe-plugin-root>/scripts/build-memory-index.mjs - deterministic index rebuild.<resolved-supervibe-plugin-root>/scripts/search-memory.mjs - duplicate and context check surface.<resolved-supervibe-plugin-root>/scripts/lib/memory-store.mjs - memory storage helper.<resolved-supervibe-plugin-root>/tests/memory-curation.test.mjs and <resolved-supervibe-plugin-root>/tests/memory-store.test.mjs - regression eval coverage.<resolved-supervibe-plugin-root>/tests/fixtures/memory/golden-queries.json - context fixture pack.supervibe:project-memory — search/read companionskill-bundle:add-memory - owns memory-entry hygiene and lifecycle metadata.supervibe:pre-pr-check and supervibe:verification - can request memory capture at the end of significant verified work.references/practice-pack.md - Read when add-memory needs deeper load rules, local evidence anchors, gotchas, or a final checklist.scripts/self-check.mjs - Run with --check before claiming the add-memory resource tree is complete; add --json when machine-readable evidence is needed.evals/regression.json - Use when tuning add-memory trigger boundaries or checking should-trigger and should-not-trigger prompts.examples/workflow.md - Load when a concrete add-memory workflow example or anti-example would clarify the next action.templates/output-contract.md - Use when emitting agent-output so status, evidence, blockers, confidence, and nextAction stay consistent.npx claudepluginhub vtrka/supervibe --plugin supervibeGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.