MCPInstall

cursor-memory-curator

Audit and safely curate Cursor rules and provided memory-bank context. Use when reviewing stale, conflicting, sensitive, or misplaced Cursor instructions, not generic repository docs.

Installs
2.7K
Last 24h
—
Trending rank
—
Security
Not audited

Install

Works with every agent the skills CLI supports.

npx skills add https://github.com/stark-ai-de/agent-skills --skill cursor-memory-curator
  1. 01

    Install

    Run the command in your project. The CLI asks which agents to install for.

  2. 02

    Describe the task

    Ask your agent for something this skill covers. It loads cursor-memory-curator automatically when relevant.

  3. 03

    Review the result

    The agent follows the SKILL.md steps, scripts and references bundled with the skill.

SKILL.md

The instructions your agent reads when the skill is triggered.

Cursor Memory Curator

Goal

Audit Cursor durable context as user-owned agent state: expose stale, unsafe, duplicated, ignored, conflicting, or misplaced rules; propose better destinations; and route review, planning, persistence, and cleanup through one explicit contract.

Keep the subject scoped to Cursor Project Rules, legacy .cursorrules, AGENTS.md, User Rules, Team Rules, and user-maintained Cursor memory-bank artifacts. Do not treat this as a Codex memory curator.

When to use

  • Use for review, placement, planning, or cleanup of the Cursor durable surfaces named in the description.
  • Use when those surfaces are stale, conflicting, sensitive, ignored, over-broad, or causing Cursor to forget or reuse old guidance.

When not to use

  • Do not use for Codex memory, ordinary docs, or generic prompt work without Cursor durable context.
  • Keep review requests read-only. Keep User/Team Rules manual unless a documented file-backed artifact or explicitly approved export path is in scope.

Workflow selection

Expose all eight workflows in this stable order, compactly when intent is clear. Recommend the route matching the requested outcome and delivery; for a bare invocation recommend review-chat while asking the user to choose:

WorkflowDelivery and result
plan-run-cleanup-fileOne record: review, approved plan, backup, cleanup, verification.
review-chatChat: read-only review and recommendations.
review-fileOne record: read-only review and recommendations.
cleanup-chatChat and backup: review, high-confidence atomic cleanup, verification.
cleanup-fileOne record and backup: review, high-confidence atomic cleanup, verification.
plan-cleanup-chatChat: review and approved plan; no cleanup.
plan-cleanup-fileOne record: review and approved plan; no cleanup.
plan-run-cleanup-chatChat and backup: review, approved plan, cleanup, verification.

Route from intent instead of adding an auto workflow:

  • Direct review defaults to review-chat; explicit persistence selects review-file.
  • Explicit cleanup without a delivery preference selects plan-run-cleanup-file.
  • A clear direct request may select another matching route when delivery and execution intent are explicit.
  • Agent-initiated activation may select only a relevant read-only route. Use review-file only when the existing task already requests persistence; never infer cleanup.
  • A bare invocation, conflicting cues, or ambiguity about review versus cleanup, chat versus file, execution, target paths, or mutation authority exposes the table and asks the user to choose.
  • A mutating route may be selected only when the user already requested cleanup of the identified Cursor context scope.

Before substantive inspection, disclose the complete finite options once and state Selected, Reason, target paths, write scope, expected artifacts, protected state, Plan-mode capability, and unresolved approvals. Reuse facts and exact authority already established in the task; combine known fields into a short announcement. If selection is unambiguous, announce it and proceed. If it is ambiguous, stop before inventory and ask only the unresolved choice. Do not repeat the selector or ask for an unchanged selection again.

Workflow selection does not authorize whole-file deletion, destructive recovery, User/Team settings edits, paid or external actions, deployment, publication, or scope expansion.

Inputs to inspect

  • Resolve the repo and only applicable .cursor/rules, .cursorrules, AGENTS.md, provided User/Team Rule exports, and provided memory-bank paths.
  • Inspect current repository evidence only as needed to verify a disputed claim.
  • Load the placement, classification, conflict, and safe-editing references below only when their decision is active. Load the report or plan asset whenever producing that artifact.

Workflow

Every route applies the same review quality to the explicitly requested scope before planning or cleanup. A request about one file or claim does not authorize inspecting the entire store: use targeted reads instead of whole-root inventory/scanner commands, and consult other evidence only to resolve an in-scope conflict. Delivery never reduces review quality:

  1. Resolve the selected route, target repo and context paths, persistence path when applicable, and protected state.

  2. Inventory Cursor context without dumping contents:

    node scripts/inventory-cursor-context.mjs --repo .
    

    Add --memory-bank PATH for explicit memory-bank artifacts. Use --json when structured evidence is useful.

  3. Run the redacted risk scanner when looking for sensitive, stale, broad, ignored, legacy, local, or conflict-prone rules:

    node scripts/scan-cursor-context-risks.mjs --repo . --json
    

    Exit code 1 means findings were found, not that the scan failed. Summarize counts and highest-signal redacted findings instead of pasting the full payload.

  4. Parse .mdc frontmatter fields that affect Cursor behavior: description, globs, and alwaysApply.

  5. Flag plain .md files under .cursor/rules as ignored by Cursor Project Rules metadata and recommend conversion to .mdc or relocation to AGENTS.md.

  6. Treat User Rules and Team Rules as settings evidence or user-provided exports unless a current documented filesystem path is available.

  7. Read context files in bounded chunks and redact sensitive values.

  8. Extract one atomic claim per row. Split compound rules before classification.

  9. Verify disputed claims against only the repo files needed for the dispute. Load references/conflict-resolution.md when precedence is unclear.

  10. Assign exactly one primary classification per atomic claim: KEEP, KEEP BUT REWRITE, MOVE TO CURSOR PROJECT RULE, MOVE TO AGENTS.md, MOVE TO REPO DOCS, MOVE TO CURSOR USER RULES, MOVE TO CURSOR TEAM RULES, MOVE TO SKILL, MOVE TO CONFIG, DELETE, or ASK USER.

  11. Tag high-risk entries as useful context only: stale, duplicated, too-broad, too-specific, repo-specific, workflow, config, sensitive, conflicting, ignored, legacy, or useful.

  12. Add confidence (high, medium, or low) and a proposed action to every entry.

  13. Produce the complete review before planning or editing. Route delivery must not reduce review quality or expand the requested scope.

Route execution

  • review-chat: return the review in chat and create no durable curation report.
  • review-file: persist the single curation record and make no context change.
  • cleanup-chat: derive only high-confidence atomic actions from the completed review, back up every exact file to be changed, apply them, re-read changed sections, and report verification in chat. Create no durable curation report.
  • cleanup-file: create the curation record before mutation; if persistence fails, stop. Then back up exact files, apply only high-confidence atomic actions, and complete the same record with execution and verification.
  • plan-cleanup-chat and plan-cleanup-file: enter the Plan lifecycle, resolve the cleanup plan with the user, and stop after approval without changing Cursor context.
  • plan-run-cleanup-chat and plan-run-cleanup-file: enter the Plan lifecycle, resolve and approve the complete cleanup plan, recheck state, exit Plan mode, back up exact files, execute only the unchanged plan, and verify. Do not ask a generic second cleanup question after plan approval.

Direct cleanup (cleanup-chat or cleanup-file) is limited to high-confidence atomic edits, moves, or entry deletion in existing, editable, runtime-owned Cursor context. Defer whole-file deletion, new context files, config, User Rules, Team Rules, AGENTS.md, repository docs, skills, uncertain memory-bank schemas, medium/low-confidence changes, and any scope expansion. A plan-run route may execute broader curation changes only when the approved plan names each destination, write path, backup, rollback, and separate approval boundary. User and Team Rules remain manual unless a documented editable export is explicitly in scope.

Plan lifecycle

Respect active/requested native Plan mode and actual write permissions on every route: no report, backup, or cleanup write while Plan is active or permission is unknown. Planning may continue read-only without a manual mode switch. For plan-* routes or pending material questions, read references/plan-lifecycle.md. Reuse unchanged approval; mode exit alone is not approval, and unanswered questions grant no authority. Recheck state before writes and reconfirm only material changes. Plan-only routes never authorize cleanup.

Do not invoke cursor-spec-interviewer inside this curation workflow. If findings require a broader durable rule, repository spec, or unresolved product decision, finish the selected curation route and offer the interviewer as a separate follow-up.

File delivery contract

File routes persist exactly one redacted curation record. Prefer an existing repository-native report location; otherwise use <repo>/.agent-reports/cursor-memory-curation/<UTC timestamp>-<selection-id>.md. Create a new path without overwriting and keep all route output in that record.

The record contains Review, Plan, Execution Receipt, Deferred Work, Backup, and Verification. Use not applicable with a reason for phases the route does not perform. Create the record before mutation for cleanup-file and plan-run-cleanup-file; persistence failure blocks cleanup. Chat routes create no report file. Backup directories remain mandatory safety artifacts and do not count as curation reports.

Explicit --backup-root requires a stable non-sensitive --backup-root-alias; file routes persist the script-reported portable storage locator and <storage-locator>/backup-manifest.json. Report exact absolute backup and manifest paths only in non-persisted chat, never in repository artifacts.

Safety rules

  • Do not inspect when the route is unresolved, and do not mutate unless the selected route and user request authorize cleanup of the exact target scope.
  • Never silently delete, rewrite, truncate, or move Cursor context files.
  • Back up every exact file before an approved edit and report the backup path.
  • Do not print full secrets, tokens, credentials, customer data, private identifiers, or sensitive personal data.
  • If secret-like data is found, redact values in output, identify file and line when possible, recommend removal, and recommend rotation for real credentials.
  • If a memory-bank schema is unclear, do not edit it directly. Defer it in the current record or chat result.
  • Do not edit User Rules or Team Rules from chat-only summaries; give manual action recommendations instead.
  • Do not apply repo-specific assumptions globally. Prefer AGENTS.md, Cursor Project Rules, or repo docs for repo rules.
  • Do not run broad destructive commands.

References

Read only when needed:

  • Placement and classification: references/context-surface-anatomy.md, references/classification-rubric.md.
  • Conflicts and safe mutation: references/conflict-resolution.md, references/safe-editing-procedure.md.
  • Examples and output artifacts: references/example-review-report.md, assets/review-report-template.md, assets/cleanup-plan-template.md.

Scripts

Use only when needed. All scripts are non-interactive, use Node.js stdlib only, and accept --help.

node scripts/inventory-cursor-context.mjs [--repo PATH] [--memory-bank PATH] [--json]
node scripts/scan-cursor-context-risks.mjs [--repo PATH] [--memory-bank PATH] [--json] [--max-findings N]
node scripts/backup-cursor-context.mjs [--repo PATH] [--memory-bank PATH] [--backup-root PATH --backup-root-alias NAME] [--include PATH ...]
  • Inventory is read-only. The scanner is read-only, redacts by default, bounds findings, and uses exit 1 for findings rather than execution failure.
  • backup-cursor-context.mjs creates a no-clobber backup plus backup-manifest.json without editing sources. Unredacted backup payloads and manifests stay outside Git worktrees. Preflight rejects unsafe roots and every symlink path component; any traversal error fails before root creation. Use exact --include paths for edits; zero includes retains legacy discovery. Before invoking it, read references/safe-editing-procedure.md for root safety, preflight, manifest reconciliation, and recovery.

Output format

Use the workflow announcement above; report only unresolved approval gates.

Before producing a report, load and follow assets/review-report-template.md as the canonical heading and field contract. File routes copy that complete template into the one curation record; chat routes render only applicable sections in chat and create no report file. Populate every applicable field, use not applicable with a reason for skipped phases, and redact sensitive values.

Before edits, complete the review and decision tables. After edits, complete the same record's receipt, including Manifest reconciliation and unmatched paths; New paths (created-no-preimage) and rollback; Backup mode and manifest path; Backup integrity result; and the row schema | Changed path | Backup destination | Bytes | SHA-256 | Verification |.

Completion criteria

  • One of the eight canonical workflows was selected from clear authority or resolved ambiguity; agent activation never inferred cleanup.
  • Applicable context and .mdc metadata were inventoried or reported missing; User/Team Rules remained evidence or approved exports rather than silent edits.
  • Every atomic claim has one classification, risk tags, confidence, action, and higher-precedence conflict evidence when applicable.
  • Plan and direct-cleanup boundaries remain satisfied.
  • Chat/file delivery matches the canonical template contract, and every authorized edit has an exact-file backup, manifest reconciliation, re-read, and integrity result.

Failure modes

  • Missing surfaces or settings exports: report what is unavailable and provide manual User/Team Rule recommendations when needed.
  • Plain .md under .cursor/rules or unknown memory-bank schema: flag/defer rather than silently editing; recommend .mdc conversion or AGENTS.md relocation when applicable.
  • Sensitive or conflicting content: redact; cite location and higher source; recommend removal/rotation or classify for rewrite, move, deletion, or user decision.
  • Persistence, backup, or approved-state recheck failure: stop before mutation (or before further mutation), report the failure, and return to planning after drift.

FAQ

What does the cursor-memory-curator skill do?

Audit and safely curate Cursor rules and provided memory-bank context. Use when reviewing stale, conflicting, sensitive, or misplaced Cursor instructions, not generic repository docs.

How do I install cursor-memory-curator?

Run npx skills add https://github.com/stark-ai-de/agent-skills --skill cursor-memory-curator in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/cursor-memory-curator/ (personal) or .claude/skills/cursor-memory-curator/ (project).

Which AI agents can use cursor-memory-curator?

Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.

Is cursor-memory-curator safe to install?

No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.

Who maintains cursor-memory-curator?

It is published by stark-ai-de in stark-ai-de/agent-skills. It has 2,684 recorded installs.

More from stark-ai-de/agent-skills

View all →

codex-memory-curator

stark-ai-de/agent-skills

Audit and safely curate Codex memory, including stale claims, cross-repo leakage, sensitive entries, and memory configuration. Use when reviewing or cleaning Codex memory, not generic repository docs.

AI & Agents2.7K installs

codegraph-ast-grep

stark-ai-de/agent-skills

Set up, update, or diagnose CodeGraph and ast-grep so coding agents can use semantic repository scope and structural syntax evidence automatically. Use when a repository needs an idempotent CodeGraph/ast-grep installation, stable tool and index migrations, MCP reconnection, persisted agent guidance, or a read-only setup diagnosis.

AI & Agents2.7K installs

drawio-diagrams

stark-ai-de/agent-skills

Create, edit, review, or export editable draw.io diagrams. Use when the user needs .drawio architecture, flow, sequence, network, or other technical diagrams; not data plots or artistic images.

animated-readme-logo

stark-ai-de/agent-skills

Create, transform, animate, or audit GitHub README logos and their verified SVG/PNG/GIF delivery. Use when a repository needs branding assets, not ordinary README prose or app/site motion.

Docs & Writing2.7K installs

architecture-compass

stark-ai-de/agent-skills

Set up ADR governance, audit architecture and drift, or plan and execute bounded refactors and code simplification. Use when work needs binding architecture decisions, library reuse, shared-code ownership, provider-to-local mapping, or architecture PR review.

jev-capability-advisor

stark-ai-de/agent-skills

Recommend available skills or MCP tools using TypeSafe Jev, or explicitly choose one next skill. Use when the user requests capability advice, candidate inspection, selection evaluation, or reusable host integration. Native client selection remains the default and fallback.

AI & Agents2.6K installs

Popular ai & agents skills

View category →

google-agents-cli-publish

google/agents-cli

This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).

AI & Agents513.9K installs

google-agents-cli-eval

google/agents-cli

This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).

AI & Agents513.5K installs

skill-creator

anthropics/skills

Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.

OfficialAI & Agents416.4K installs

codex-pet

prime-skills/runcomfy-agent-skills

Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.

AI & Agents402.1K installs

full-output-enforcement

leonxlnx/taste-skill

Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.

AI & Agents401K installs

executing-plans

obra/superpowers

Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available

AI & Agents245.7K installs