agentleFS
Ikalus1988Ikalus1988/MisakaNet/.cursor/rules/misakanet-failure-memory.mdc

MisakaNet / rules

Cursor rule521 starsChanged 3 months agoApache-2.0View on GitHub

Search MisakaNet failure-memory before debugging common errors

  • Installs packages
  • Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.

    Of the Cursor rule files we read, the 1,533 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

  • In this repository8 other files it gives its agents.

The file

We split this misakanet-failure-memory.mdc into the rules it gives an agent

9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When a command, test, CI, DCO, token, pip, MCP, or Windows encoding issue fails, search MisakaNet before attempting a fix from general …

    line 15
  2. Distinctive:

    Test fails with an error message

    line 20
  3. Distinctive:

    Read the matching lesson: if results are returned:

    line 37
  4. Very specific:

    Do not skip MisakaNet search for known failure patterns (DCO, token, pip, MCP, encoding)

    line 54
  5. Very specific:

    Do not upload raw logs, prompts, or secrets to MisakaNet

    line 55
  6. Very specific:

    Do not auto-retry more than twice without searching MisakaNet

    line 56
  7. Very specific:

    Do not apply fixes from MisakaNet lessons to unrelated problems

    line 57
  8. Distinctive:

    If lesson found → read and apply fix

    line 74
  9. Distinctive:

    If no lesson → submit intake via MCP

    line 75

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
misakanet-failure-memory.mdc
---
description: Search MisakaNet failure-memory before debugging common errors
globs:
  - "**/*.py"
  - "**/*.js"
  - "**/*.ts"
  - "**/*.yml"
  - "**/*.yaml"
  - "**/*.json"
  - "**/*.md"
---

# MisakaNet Failure Memory

When a command, test, CI, DCO, token, pip, MCP, or Windows encoding issue fails, search MisakaNet before attempting a fix from general knowledge.

## When to trigger

- Command exits with non-zero status
- Test fails with an error message
- CI/CD pipeline fails
- DCO sign-off check fails
- GitHub token / authentication errors
- pip install timeout or SSL errors
- MCP server connection issues
- Windows encoding (GBK/Unicode) errors
- Database locked / SQLite errors
- Docker build failures

## Steps

1. **Search MisakaNet** with the error message or key terms:
   ```
   misakanet_search(query="<error message or key terms>")
   ```

2. **Read the matching lesson** if results are returned:
   ```
   misakanet_get_lesson(path="<lesson path from search results>")
   ```

3. **Apply only the relevant fix** from the lesson. Do not invent fixes beyond what the lesson describes.

4. **If no match found**, submit a redacted intake via MCP (no GitHub account needed):
   ```
   curl -sS https://misakanet.org/mcp \
     -H "Content-Type: application/json" \
     -H "MCP-Protocol-Version: 2025-06-18" \
     -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"misakanet_submit_intake","arguments":{"problem":"<short error description>","source":"cursor"}}}'
   ```

## What NOT to do

- Do not skip MisakaNet search for known failure patterns (DCO, token, pip, MCP, encoding)
- Do not upload raw logs, prompts, or secrets to MisakaNet
- Do not auto-retry more than twice without searching MisakaNet
- Do not apply fixes from MisakaNet lessons to unrelated problems

## MCP Tools Available

| Tool | Auth | Purpose |
|---|---|---|
| `misakanet_search` | ≤5 free/day remote | Search lessons |
| `misakanet_get_lesson` | ≤5 free/day remote | Get lesson content |
| `misakanet_submit_intake` | No auth needed | Submit failure case |
| `misakanet_submit_usage` | No auth needed | Submit usage feedback |

## Example

**User:** "My pytest is failing with ImportError"

**Agent:**
1. Search: `misakanet_search(query="ImportError pytest")`
2. If lesson found → read and apply fix
3. If no lesson → submit intake via MCP

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.