self_improve

self_improve is a cursor rule for Cursor from neuromechanist/research-skills. It costs 4 tokens per session (628 once invoked), scanned A, original, BSD-3-Clause.

A set of rules for improving project guidance from repeated patterns, failed approaches, research notes, ideas, plans, and code reviews.

In plain words
What is it for?
Use it to record recurring bugs, standardize proven solutions, and update engineering rules based on project experience.
Why use it?
It helps turn lessons from past work into documented rules and removes guidance when the technology or practice changes.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it to record recurring bugs, standardize proven solutions, and update engineering rules based on project experience.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/neuromechanist/research-skills/self_improve
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/neuromechanist/research-skills

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for self_improve

README.md
[![agentmods](https://agentmods.dev/badge/rules/neuromechanist/research-skills/self_improve/github.svg)](https://agentmods.dev/rules/neuromechanist/research-skills/self_improve)
Your own site
<a href="https://agentmods.dev/rules/neuromechanist/research-skills/self_improve"><img src="https://agentmods.dev/badge/rules/neuromechanist/research-skills/self_improve/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for self_improve

Your own site · 80×15
<a href="https://agentmods.dev/rules/neuromechanist/research-skills/self_improve"><img src="https://agentmods.dev/badge/rules/neuromechanist/research-skills/self_improve.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 4 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 628 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00004 $0.00628
Opus 5 $0.00002 $0.00314
Sonnet 5 $0.00001 $0.00126
Haiku 4.5 $0.00000 $0.00063

Measured 5d ago against content hash 373e6c9dec0e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

self_improve scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/project/templates/cursor/core_rules/self_improve.mdc · 90 lines

How it starts

The opening of the file, as written. The whole thing — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Continuous Rule Improvement

Philosophy: Rules Grow from Understanding

Think deeply: Why did this pattern emerge? What problem does it solve? Learn actively: Every project teaches something - capture it. Evolve thoughtfully: Rules should guide, not constrain creativity.

Improvement Triggers

  • Pattern used 3+ times → Create rule
  • Common failures in .context/scratch_history.md → Add prevention rule
  • Successful .context/research.md solutions → Standardize
  • Mature .context/ideas.md concepts → Formalize
  • Repeated PR feedback → Document standard

Analysis Sources

  1. .context/scratch_history.md: Mine for anti-patterns
  2. .context/research.md: Extract proven solutions
  3. .context/ideas.md: Promote design principles
  4. .context/plan.md: Identify workflow patterns
  5. Code reviews: Track common feedback

Rule Updates

Add Rules When:

  • New pattern appears 3+ times
  • Common bug could be prevented
  • Better approach discovered
  • Security/performance pattern emerges

Modify Rules When:

  • Better examples found in codebase
  • Edge cases discovered
  • Implementation changed
  • Related rules updated

Remove Rules When:

  • Tech stack changed
  • Pattern deprecated
  • No longer applicable

Quality Checks

  • Actionable: Clear what to do
  • Specific: No ambiguity
  • Examples: From actual code
  • Cross-referenced: Link related rules

Learning-Driven Creation

Extract wisdom, not just fixes:

# From .context/scratch_history.md failure:
# "Database connections leaked after 24hrs"
# THINK: Why? Resource management issue.
# LESSON: Explicit cleanup isn't reliable.
# → Rule: Always use context managers

with get_db() as db:  # Guaranteed cleanup
    process(db)
# Not: db = get_db(); process(db); db.close()  # Risky

Ask yourself:

  • What's the root cause?
  • Will this prevent future issues?
  • Is this a symptom of a bigger pattern?

Thoughtful Maintenance Process

  1. Weekly: Review .context/scratch_history.md - What patterns emerged?
  2. After features: Mine .context/research.md - What worked well?
  3. Post-refactor: Update rules - What changed fundamentally?
  4. Quarterly: Audit all - Are rules still serving us?

Read the full file on GitHub · 90 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 90 lines · 4 tokens per session scan A 373e6c9dec0e

Subscribe to this mod's changes

self_improve is a cursor rule published in the GitHub repository neuromechanist/research-skills (45 stars, last pushed 6d ago), licensed BSD-3-Clause. It adds 4 tokens to every session and 628 once invoked, about $0.0000 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.