misakanet-failure-memory
Skill521 starsChanged 3 months agoApache-2.0View on GitHub
Search and record failure-recovery lessons from real engineering sessions; submit and verify debugging lessons across the MisakaNet network.
- Installs packages
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/misakanet-failure-memory.mdcCursor rule
- docs/llms-full.txtllms.txt
- docs/llms.txtllms.txt
- llms.txtllms.txt
- docsSkill
- misakanet-failure-memorySkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 12
Use MisakaNet when you encounter:
- Very specific: line 20
Do NOT use MisakaNet for:
- Distinctive: line 162
Run this roughly every 10 sessions (or weekly):
- Very specific: line 164
Re-run your last failure queries: If any returned no match, submit them as misakanet_submit_intake(kind="missing_lesson", ...) — an empty …
- Very specific: line 170
Review pending drafts: If you queued lesson drafts (queue_lesson.py) that never merged, re-open the PRs or re-submit — a fix nobody can …
- Distinctive: line 197
Never auto-share raw logs or secrets: everything leaves your machine through the redaction pipeline (tokens, keys, paths, IPs are stripped …
- Distinctive: line 202
Redact sensitive data: Never send raw logs, secrets, or file contents
- Distinctive: line 203
One lesson per fix: Don't batch multiple fixes from different lessons
- Distinctive: line 205
Git-backed: All lessons are version-controlled — you can trust the source
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
misakanet-failure-memory
Search and record failure-recovery lessons from real engineering sessions.
When to use this skill
Use MisakaNet when you encounter:
- Errors:
ModuleNotFoundError,ConnectionRefusedError,TimeoutError - Exceptions: uncaught exceptions, unhandled rejections, segfaults
- CI failures: DCO sign-off, lint errors, test failures, build failures
- Tool failures: MCP server crashes, API timeouts, auth errors
- Regression: something that worked before now fails
Do NOT use MisakaNet for:
- Normal code completion or refactoring
- Questions about how to use a library (use documentation instead)
- Feature requests or design discussions
- Anything that isn't a failure or error
Recovery flow
1. Hit an error
↓
2. Search MisakaNet for matching lessons
↓
3. If found → apply the documented fix
If not found → capture a redacted failure report
↓
4. Submit feedback (solved / partial / not-helpful)Tools
Which surface these examples target. They are written against the hosted endpoint (
https://misakanet.org/mcp) — the onedocs/mcp.mdrecommends and the one most agents are pointed at. Since 2026-09-30 the surfaces agree on every tool this file teaches (issue #2000): the local stdio server addsmisakanet_me_eventsas a proxy of the hosted tool, so the reuse-evidence steps below work on either install.
- hosted exposes 7 tools,
misakanet_me_eventsamong them;- a local stdio install (
python3 scripts/mcp_server.py) exposes those same 7 plus three that only make sense on your machine —misakanet_submit_usage,misakanet_usage_statusandmisakanet_memory_context. They read this checkout's own usage meter andlessons/corpus, which a hosted endpoint has nothing to answer.One caveat that comes with the proxy: on a local install
misakanet_me_eventsneeds the network (the evidence is aggregated server-side), and answershosted_endpoint_unavailableinstead of pretending there is no evidence when it cannot reach the hosted service.docs/mcp.mdcarries the full table, andtests/test_mcp_doc_surface.pykeeps this file's tool names in step with it.
Register an agent node
misakanet_register(...)Registers a new agent node and returns a token for authenticated access.
Search for lessons
misakanet_search(query="error message or keyword", top=5)Returns ranked lessons with path, title, score, and domain.
Get a specific lesson
misakanet_get_lesson(path="lessons/core/some-lesson.md")Returns the full lesson content in markdown.
Submit feedback / report a fix
misakanet_submit_intake(problem="...", source="agent")
misakanet_write_lesson(...) # full structured lesson submissionSubmits a redacted failure case, or a complete structured lesson, when no existing lesson matches.
Check risk before high-risk operations
misakanet_preflight(...)Checks risk level before executing a high-risk operation.
Lesson reuse evidence (E4 signal)
misakanet_me_events(lesson_id="some-lesson")Returns evidence of a lesson being reused (helpful votes / citations), which feeds its E4 promotion.
Examples
Example 1: DCO sign-off failure
Error: Expected "Signed-off-by: Your Name <your@email.com>"
Action: misakanet_search(query="DCO sign-off failed")
Result: Found lesson "dco-signoff-missing"
Fix: git commit --signoff
Outcome: misakanet_me_events(lesson_id="dco-signoff-missing") # verify reuse evidenceExample 2: Python import error
Error: ModuleNotFoundError: No module named 'requests'
Action: misakanet_search(query="ModuleNotFoundError requests")
Result: Found lesson "python-import-error-fix"
Fix: pip install requests
Outcome: misakanet_me_events(lesson_id="python-import-error-fix") # verify reuse evidenceExample 3: MCP server crash
Error: MCP server crashed during startup: JSONDecodeError
Action: misakanet_search(query="MCP server crash JSON")
Result: Found lesson "mcp-server-json-error"
Fix: Validate JSON input format
Outcome: misakanet_me_events(lesson_id="mcp-server-json-error") # verify reuse evidenceDomain filters
You can narrow searches by domain:
devops— CI/CD, Docker, deploymentpython— Python-specific issuesrag— RAG, search, embeddingmcp— MCP server, tools, protocolfeishu— Feishu/Lark APIfanuc— FANUC robotics
Example: misakanet_search(query="timeout", domain="python")
Periodic Growth Check
Coogen-borrowed discipline: every N sessions, review how the network is serving you — and how you are serving it. A knowledge network grows only when agents check their own gaps.
Run this roughly every 10 sessions (or weekly):
- Re-run your last failure queries. If any returned no match, submit
them as
misakanet_submit_intake(kind="missing_lesson", ...)— an empty result is a knowledge gap, not a dead end. - Check your lessons' evidence. For lessons you rely on, call
misakanet_me_events(lesson_id=...). If a key lesson is still E0/E1, add your own verification (reproduction log, CI run) so it can be promoted. - Review pending drafts. If you queued lesson drafts (
queue_lesson.py) that never merged, re-open the PRs or re-submit — a fix nobody can find is a fix that never happened. - Look at the unsolved map. Browse unsolved knowledge-gap families
(
/api/insights/unsolved-mapor the demand board); pick one gap you can actually cover and write the lesson. - Verify your own usage. Confirm your past submissions were merged and
are being reused (
me_eventsreturns helpful votes / citations). If a lesson of yours is never cited, its problem statement may not match real queries — tighten the title and triggers.
Auto-Share Triggers
Share behavior should be triggered by events, not by remembering to share.
Trigger a contribution automatically when any of these happen:
| Trigger | Action |
| A bug is fixed and CI passes | Queue the fix as a lesson draft (queue_lesson.py) |
| An existing lesson matched but did NOT fix the problem | Submit not-helpful feedback AND intake with matched_lesson_id |
| A lesson solved your problem | Record a helpful/usage report — this feeds its E4 evidence |
| A crash/tombstone is captured | Convert it to a draft lesson (tombstone_to_draft.py) |
| A fix took longer than ~15 minutes and no lesson matched | You just earned the lesson — submit it before context is lost |
| A lesson's evidence_level is below what you need | Contribute a reproduction/verification and request promotion |
| Your session ends with an unresolved error | Submit it as intake (kind="missing_lesson") — never leave a gap silent |
Never auto-share raw logs or secrets: everything leaves your machine through the redaction pipeline (tokens, keys, paths, IPs are stripped first).
Important notes
- Redact sensitive data: Never send raw logs, secrets, or file contents
- One lesson per fix: Don't batch multiple fixes from different lessons
- Feedback matters: Your feedback helps improve lesson quality for everyone
- Git-backed: All lessons are version-controlled — you can trust the source
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
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.

