Value: Feedback -- accumulated knowledge creates compound feedback loops
Works with
across sessions. What you learn today should accelerate tomorrow's work.
AI-first code editor with Composer
Before installing skills in Cursor, ensure your development environment meets these requirements:
node --versionmemory-protocolExecute the skills CLI command in your project's root directory to begin installation:
Fetches memory-protocol from jwilger/agent-skills and configures it for Cursor.
The CLI shows a list of agents. Use arrow keys and space to select Cursor:
Confirm successful installation by checking the skill directory location:
Restart Cursor to activate memory-protocol. Access via /memory-protocol in your agent's command palette.
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your environment. Always review source, verify the publisher, and test in isolation before production.
Submit your Claude Code skill and start earning
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
0
total installs
0
this week
2
GitHub stars
0
upvotes
Run in your terminal
0
installs
0
this week
2
stars
Value: Feedback -- accumulated knowledge creates compound feedback loops across sessions. What you learn today should accelerate tomorrow's work.
Teaches the agent to systematically store and recall project knowledge across sessions using the Memento MCP knowledge graph.
Your long-term memory (training data) and short-term memory (context window) are excellent, but mid-term memory for project-specific knowledge outside the current context is poor. Memento addresses this gap by persisting a knowledge graph across sessions and projects.
Solves: context loss between sessions, repeated debugging of known issues, rediscovery of established conventions, repeated user corrections for the same mistakes.
Before proceeding, confirm that Memento MCP tools are available
(mcp__memento__semantic_search, mcp__memento__create_entities, etc.).
If Memento MCP tools are NOT available, stop and inform the user:
"The memory-protocol skill requires Memento MCP, but I don't have access to mcp__memento__* tools. To enable memory persistence, install and configure the Memento MCP server (https://github.com/gannonh/memento-mcp). Without it, this skill cannot function and I will proceed without cross-session memory."
Then continue working without memory protocol practices — do not attempt a file-based workaround.
When this skill is active and Memento MCP tools are available, do NOT use any
file-based memory system for cross-session knowledge storage. This includes
the built-in memory/ directory, MEMORY.md index, auto-memory features, or
any other file-based persistence mechanism. All cross-session memory storage
goes through Memento MCP tools exclusively.
File-based memory systems and Memento serve the same purpose — persisting knowledge across sessions. Using both creates split-brain: knowledge stored in files is invisible to Memento searches, and knowledge in Memento is invisible to file reads. Pick one. When this skill is loaded, Memento is the one.
Note: this does NOT prohibit WORKING_STATE.md (which is crash-recovery
infrastructure, not cross-session memory) or project documentation files
(which are deliverables, not memory).
Before starting any non-trivial task, recall relevant past knowledge. This step is mandatory. Do not skip it because "this seems simple" or because you believe you remember from a prior session — you do not retain memory between sessions.
Recall triggers:
For error-triggered recall, see the dedicated section below.
Apply Multi-Dimensional Search (next section) to every recall event.
How to recall — all three steps are required:
Search: mcp__memento__semantic_search — query describing the current
work, limit 10. This returns summaries only — not the full picture.
Open: mcp__memento__open_nodes — for EVERY relevant entity returned
by search, call open_nodes to retrieve the complete entity: all
observations, all relations, full context. Do NOT skip this step.
Semantic search returns partial data; the full entity often contains
critical details (caveats, corrections, related warnings) that the search
summary omits. Skipping open_nodes means you are acting on incomplete
information.
Traverse: Follow relations on opened entities to discover connected
knowledge. Call open_nodes on each related entity. Continue traversing
until results are no longer relevant. Relations like depends_on,
contradicts, supersedes, and part_of frequently point to information
that changes how you should act — a fix that depends on a workaround, a
convention that was later corrected, a decision that was superseded.
Skipping steps 2 or 3 defeats the purpose of a knowledge graph. A flat keyword search could do step 1 alone — the graph's value is in the connections between knowledge. If you only search and never open or traverse, you will miss counter-information, corrections, and dependencies that would have prevented mistakes.
IMPORTANT: Do NOT use mcp__memento__read_graph — memories span all
projects and the graph is too large to be useful.
Every recall event requires at least two searches — not just one. The reason: agents consistently search for the technical topic but miss process and workflow learnings that would prevent repeated mistakes. Prior session logs show patterns of the same user corrections recurring (team member usage, ADR process, TDD workflow, build commands, approval process) because agents only searched for the feature name and never for process learnings about the type of work being done.
Required search dimensions:
| About to... | Also search for... |
|---|---|
| Do TDD work | "TDD process mistakes", "ping-pong pairing lessons" |
| Spawn agents/subagents | "team member usage", "agent coordination issues" |
| Debug an error | "debugging workflow mistakes", prior error occurrences |
| Create an ADR | "ADR process", "ADR mistakes" |
| Commit/PR/merge | "commit conventions", "approval process" |
| Any process step | "[process] corrections", "[process] lessons learned" |
This table is non-exhaustive. The principle: always ask "what have I learned about doing this kind of thing?" in addition to "what do I know about this specific thing?"
This is separated from the general recall triggers because error-triggered recall is where agents most consistently fail to search memory. The pattern: an error occurs, the agent immediately starts debugging from scratch, burns through multiple fix attempts, and only much later (if ever) thinks to check whether this problem was solved before. This wastes time and repeats past work.
Fires on:
The rule: Search memory BEFORE attempting a fix. Not after three failed attempts. Not after spending 10 minutes debugging. Before.
Apply multi-dimensional search:
If you've been corrected by the user: search for whether this correction (or a similar one) was already stored in memory. If it was, you failed to recall — acknowledge this and reinforce the memory with updated context.
After solving a non-obvious problem, learning a convention, or making a decision, store it immediately — do not wait, you will lose context.
What to store:
What not to store:
Always search before creating — mcp__memento__semantic_search first. If a
related entity exists, extend it with mcp__memento__add_observations rather
than creating a duplicate.
Entity naming: <Descriptive Name> <Project> <YYYY-MM>
(e.g., "Cargo Test Timeout Fix TaskFlow 2026-01")
Observation format:
"Project: <name> | Path: <path> | Scope: PROJECT_SPECIFIC | Date: YYYY-MM-DD | <insight>""Scope: GENERAL | Date: YYYY-MM-DD | <insight>"Relationships — ALWAYS create at least one after creating or updating an
entity. Use mcp__memento__create_relations to link to related entities.
Active-voice relation types: implements, extends, depends_on,
discovered_during, contradicts, supersedes, validates, part_of,
related_to, derived_from.
See references/memento-protocol.md for entity type table, observation
format guide, relationship table, traversal strategy, and examples.
This protocol applies to both the main agent AND any subagents to which work is delegated. When instructing a subagent, include the memory protocol requirement explicitly.
Subagents must:
When running inside a pipeline or factory workflow, the pipeline stores
operational learnings in .factory/memory/ to optimize future runs.
Types of learnings tracked:
Standalone users can ignore factory memory; the standard memory practices above remain unchanged.
When you encounter a memory that is no longer accurate (API changed, convention abandoned, bug fixed upstream), update or delete it. Wrong memories are worse than no memories.
Pruning triggers:
Before context compaction or at natural stopping points, proactively store any unsaved discoveries before knowledge is lost to truncation. This is your last chance before the knowledge evaporates.
For sessions lasting beyond a single task (pipeline runs, multi-slice TDD, team coordination), maintain a WORKING_STATE.md file as insurance against context compaction and crashes.
.factory/WORKING_STATE.md (pipeline mode) or project rootSee references/working-state.md for the full format and examples.
See CONSTRAINT-RESOLUTION.md in the template directory for the
consolidated self-reminder protocol (frequency, combined re-read list,
and post-compaction rules).
Advisory in all modes. Recall and storage discipline are self-enforced.
The constraint against read_graph is gating: the tool will return
unhelpful results, acting as a natural deterrent.
Hard constraints:
[RP] -- if Memento is
unavailable, document the gap, continue without memory, inform user.After completing work guided by this skill, verify:
create_relationsThis skill requires Memento MCP. For enhanced workflows, it integrates with:
Missing a dependency? Install with:
npx skills add jwilger/agent-skills --skill debugging-protocol
Make data-driven prioritization decisions faster
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Prerequisites
Time Estimate
30-60 minutes to see productivity improvements
Steps
Common Pitfalls
✓ Do
✗ Don't
💡 Pro Tips
✓ Use when
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid when
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
mattpocock/skills
parcadei/continuous-claude-v3
cursor/plugins
ailabs-393/ai-labs-claude-skills
pproenca/dot-skills
mattpocock/skills
Registry listing for memory-protocol matched our evaluation — installs cleanly and behaves as described in the markdown.
Useful defaults in memory-protocol — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
memory-protocol reduced setup friction for our internal harness; good balance of opinion and flexibility.
memory-protocol is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
memory-protocol reduced setup friction for our internal harness; good balance of opinion and flexibility.
memory-protocol is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
memory-protocol reduced setup friction for our internal harness; good balance of opinion and flexibility.
Keeps context tight: memory-protocol is the kind of skill you can hand to a new teammate without a long onboarding doc.
We added memory-protocol from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
Keeps context tight: memory-protocol is the kind of skill you can hand to a new teammate without a long onboarding doc.
showing 1-10 of 27