Agents & Protocols

Claude Code Memory Review: CLAUDE.md, Rules, Imports

Reviews a pasted Claude Code memory setup (a folder tree plus CLAUDE.md, CLAUDE.local.md, files under .claude/rules/, imported files, AGENTS.md and an auto-memory MEMORY.md) for instructions that silently never reach the model, that load earlier or later than the author thinks, or that contradict each other. It flags an @import whose target is not in the tree (Claude Code gives no warning for it), a relative import resolved from the wrong folder, imports in quotes, in code or with an unescaped space, import chains that are too deep, an AGENTS.md next to a CLAUDE.md that does not import it, a file over 4 MiB, a path-scoped rule whose globs match nothing, an @import inside a path-scoped rule (it loads at session start, so the rule saves nothing), broken rule frontmatter, imports from outside the project, a project-wide rule hidden in a subfolder CLAUDE.md, files far over 200 lines, an auto-memory index cut at 200 lines or 25 KB, stale file paths, opposite instructions in two loaded files and the Next.js agent block that next dev keeps writing back. Each finding has a fixed code, the place, the reason and a fix, then one verdict. Use to review Claude Code memory, check CLAUDE.md imports, or find path-scoped rules not loading before the team relies on the setup.

Claude Code Memory Review: CLAUDE.md, Rules, Imports is a SKILL.md that reviews a pasted Claude Code memory setup (a folder tree plus CLAUDE.md, CLAUDE.local.md, files under .claude/rules/, imported files, AGENTS.md and an auto-memory MEMORY.md) for instructions that silently never reach the model, that load earlier or later than the author thinks, or that contradict each other; an agent buys it once for $0.05 over x402.

Tested 2026-11-26No code, no hidden instructionsv1.1.0 · 13.6 KB · perpetual license

Not for

Judging whether an instruction is wise or well written, writing a CLAUDE.md from nothing, or anything that needs the running Claude Code: it reads a pasted tree and files, so it cannot see the installed version, the managed policy file or what loaded. It does not cover settings.json, hooks or MCP.

Tested, honestly

Tested 2026-11-26 with a strong and a weak model.

With and without the skill

Results with and without the skill, for Sonnet and Haiku
SonnetHaiku
withwithoutwithwithout
Setups reviewed right (37 setups)37/3729/3736/3729/37

Same request on both sides, scored on the concept in any words; the six newer setups also tell the bare side that it has no repository or tools, and only they were run without the skill again. Read by hand, bare Sonnet already knew the missing import, the relative base, quoted, coded and spaced imports, AGENTS.md, stale paths and opposite instructions. It missed the eager import inside a path-scoped rule, the approval for an outside import, and in all four Next.js setups the setting that stops the block; where the block says the dev server re-adds it, it knew the cause only. Bare Haiku missed the same kinds. With the skill both named the Next.js cause and setting in all four.

Same cases and the same checks with and without the skill. The cases are ours, written around what the skill is for; with a handful of cases, a difference of one or two is within noise.

SonnetStrong model, claude-sonnet-5-5
By one shared concept check all 37 pasted memory setups, read by hand. In four setups where the Next.js agent block kept coming back, among them one with only a git log as evidence and one where an unwanted AGENTS.md reappeared, it said that the Next.js dev server writes the block and gave the setting that stops it; it left alone a block the team keeps on purpose and a project that already has the setting. By the exact codes it had 35 of 37: twice the code was right but the verdict line was wrong, for an unescaped space and for a paste without a tree.
HaikuWeak model, claude-haiku-5-5
By the concept check 36 of 37, including all six new setups, but it missed the rule placed in a subfolder file, and by the exact codes it had 30 of 37, mostly extra codes beside the right one. That is noisier than version 1.0, which scored 30 of 31 twice on the same day.

Full test summary

Example

Our own test text, before and after the skill ran. Excerpts only.

English · claude-sonnet-5-5

Before

Tree: CLAUDE.md (8 lines) docs/testing-guide.md (50 lines) docs/architecture.md (30 lines) src/index.ts === CLAUDE.md === # Shop Follow the test rules: @docs/testing.md Follow the structure notes: @docs/architecture.md

After

[IMPORT-MISSING] CLAUDE.md, line 3 (@docs/testing.md): the target is not in the pasted tree (the tree has docs/testing-guide.md, not docs/testing.md). The import loads nothing, and Claude Code prints no warning. Fix: change the path to @docs/testing-guide.md, then confirm the cost with /context. Verdict: broken

What is in the file

  • The answer
  • What the pasted tree decides
  • The codes
  • Rules
  • Work in this order
  • How to check a fix
  • Short example

Languages

Any language. Tried in: English.

License

Perpetual, non-exclusive; use and modify for yourself incl. paid work; no resale or republishing. Holder: Georgi Kalchev, aiskills402.com. Full terms.

Versions

Current version 1.1.0, updated 2026-11-26. Whoever bought an earlier version gets new ones free through the same re-download token.

  1. v1.1.0 · 2026-11-26

    Nineteenth code, [NEXT-AGENT-BLOCK]: the managed block that the Next.js development server writes into a memory file and brings back after someone deletes it, with the setting that stops it and the difference between version 16.3 (the block can land in CLAUDE.md) and 16.4 (only AGENTS.md). Paths inside node_modules are no longer judged. Checked on 26 November 2026 against the code of Next.js releases 16.3.0, 16.3.8 and 16.4.0 to 16.4.6.

    Tests: six new setups (four flawed, two sound), 37 in all. One flawed setup and one sound setup quote the sentence in which the block says who re-adds it; three flawed setups leave it out. The side without the skill was run on the new setups only; the side with the skill was run again in full. With one shared concept check for both sides: Sonnet 37/37 with, 29/37 without; Haiku 36/37 with, 29/37 without. Scored on the exact codes, Sonnet had 35/37 (two wrong verdict lines) and Haiku 30/37, worse than with 1.0: it adds extra codes. Read by hand, bare models never named the switch; where the block itself says the dev server re-adds it, they knew the cause and still did not know how to turn it off.

    Checks widened after the run, for both sides: the import-in-code case also accepts "imports there are not parsed" and "does not load"; the outside-import case also accepts the approval named in the next sentence; the stale-script case also accepts that the tree has only the other script. Price unchanged at $0.05.

  2. v1.0.0 · 2026-10-15

    First release: reviews a pasted Claude Code memory setup (folder tree, CLAUDE.md, rules, imports, AGENTS.md, auto-memory MEMORY.md) and lists each problem with a fixed code, the place, the reason and a fix, then a verdict (broken, fix before use, no known problems). Broken: an @import whose target is not in the tree (silent), a relative import counted from the wrong folder, imports in quotes, in code or with an unescaped space, import chains deeper than four hops, an AGENTS.md next to a CLAUDE.md that does not import it, a file over 4 MiB, a path-scoped rule whose globs match no file, an auto-memory index cut at 200 lines or 25 KB. Fix before use: an @import inside a path-scoped rule (loads at start, measured), broken rule frontmatter, imports from outside the project, a project-wide rule in a subfolder CLAUDE.md, files far over 200 lines, stale paths, opposite instructions in two files, and a tree that was not pasted. Facts: our own measurements on Claude Code 2.1.300 and the official memory pages, both 15 October 2026; the skill tells the reader to re-check against the current pages.

    Price and test numbers: to be added after the model test.

FAQ

Nineteen codes are listed; what do they cover?

Eighteen kinds of quiet trouble: a missing import target, a path counted from the wrong folder, imports in quotes, in code or with a bare space, chains past four hops, an unimported AGENTS.md, files over 4 MiB, globs that match nothing, an import inside a path-scoped rule, broken frontmatter, imports from outside the repo, a project-wide rule in a subfolder, huge files, a cut memory index, stale paths, opposite instructions and the Next.js block that comes back after you delete it. The nineteenth asks for the folder tree.

Why does it ask for the folder tree?

A missing import prints no warning and the exit code stays 0, so the only way to find it is to compare each path with the files that exist. If you paste no tree, the skill does not guess: it names the imports it could not check and says the tree is needed. Targets outside the project folder are never called missing, because the tree cannot show them.

Is moving a heavy import into .claude/rules/ a way to save context?

No. We measured on Claude Code 2.1.300 on 15 October 2026 that an import inside a rule with paths loads at session start, although the body of the rule waits for a matching file. The documentation does not say this. Remove the import from the rule and mention the file in plain words instead.

Does it help Claude Sonnet?

It gained eight setups out of thirty-seven: 29 alone, 37 with this file. Alone it already caught missing imports, a wrong base folder, imports in quotes or code, AGENTS.md, stale paths and opposite instructions. It missed that a heavy import in a path-scoped rule loads at start, the approval an outside import needs, and, in all four Next.js cases, the setting that stops the dev server from writing its block back. Haiku went from 29 to 36 on the same count.

Read more

Share

Read this page as Markdown: /skills/claude-code-memory-review.md.

  • Claude Code Settings Review: Hooks, Permissions, MCP

    Agents & Protocols

    SKILL.md · v1.0.0 · 13.6 KB

    Reviews a pasted Claude Code configuration (settings.json, hooks, permission rules, MCP server switches, scripts that start Claude Code) for keys and meanings that are easy to get wrong and that fail without an error. It flags disabledMcpjsonServers used on a server that does not come from a project's .mcp.json, a settings file with a JSON syntax error, a blocking hook that exits 1 instead of 2, the deprecated top-level approve or block decision of a PreToolUse hook, hook event names that do not exist, matchers that match too much or nothing (the matcher is an unanchored regular expression, and plugin MCP tools carry a plugin prefix), path rules written for Write instead of Edit, single-slash absolute paths, an allow rule for src that matches only the top-level folder, Bash rule patterns with the colon or the space in the wrong place, hook timeouts that are expected to block, bypassPermissions in project settings, and many claude -p runs started at once. Each finding has a fixed code, the place, the reason and a fix, then one verdict. Use to review Claude Code settings, check hook and permission rules, or disable an MCP server correctly before the team relies on the configuration.

    $0.05once

    • x402
    • USDC
    • Base
    Get skill

    Tested with Sonnet and Haiku, 8 Oct 2026

  • SKILL.md Review: Safe and Within the Limits

    Agents & Protocols

    SKILL.md · v1.0.1 · 6.7 KB

    Reviews a SKILL.md file before you install, buy or publish it and lists every problem with a fixed code, the place and a fix, then gives one verdict. It checks the front matter against the published limits (name up to 64 characters in lowercase, hyphens and digits, no reserved words; description present, up to 1,024 characters, naming both its job and the requests that should trigger it, in the third person), and it reads the body for hidden orders to the agent, credentials pasted into the text, commands that download and run remote code, Windows-style paths, a body over 500 lines and the lack of any example. Use to review a SKILL.md, audit a Claude or agent skill before installing it, check a skill file for prompt injection, or lint a skill before publishing it to a marketplace.

    $0.05once

    • x402
    • USDC
    • Base
    Get skill

    Tested with Sonnet and Haiku, 8 Oct 2026

More in Agents & Protocols

  • Claude Connectors and ChatGPT Apps: MCP Submission Review

    Agents & Protocols

    SKILL.md · v1.0.0 · 11.8 KB

    Reviews an MCP server's tools/list, or a description of its tools, before it is submitted to the Claude connectors directory, the ChatGPT app directory, or both, and says what would be refused or flagged and how to fix it. Knows the two refusals no annotation can fix: tools that move money (pay, transfer, trade, send crypto) in both directories, and tools that make images, video or audio with AI models, in the Claude directory only. Keeps the two directories apart: Claude wants a title plus readOnlyHint or destructiveHint, ChatGPT asks for explicit readOnlyHint, destructiveHint and openWorldHint on every tool. Checks name length, descriptions, catch-all tools and custom query tools, gives each fix as an exact change, and separates blockers from suggestions. Use when reviewing an MCP server or its tools/list before submitting it to the Claude connectors directory or the ChatGPT app directory, or when a submission was refused.

    $0.05once

    • x402
    • USDC
    • Base
    Get skill

    Tested with Sonnet and Haiku, 24 Nov 2026

  • MCP Tool Schema: Definitions from API Docs

    Agents & Protocols

    SKILL.md · v1.1.2 · 10.7 KB

    Writes the MCP tool definition for one API operation - name, description, inputSchema and annotations - as the JSON a server returns from tools/list. The schema takes exactly the parameters the operation takes - required ones listed, defaults stated, exact enums, integer amounts, date formats, ranges, string and array limits, either-or parameters that refuse a call with both or neither - and refuses unknown ones. Credentials never become parameters, text in the API docs that speaks to the assistant stays out of the description, one tool does one operation, and every tool gets a title and all four annotations as explicit true or false (reads, safe repeats, destructive writes, open world), as the MCP specification of 2025-11-25 and the Claude and ChatGPT directories expect. Use when asked to write, review or fix an MCP tool definition, a tool schema or an inputSchema, or to turn an API endpoint, an OpenAPI operation or a function signature into an MCP tool.

    $0.03once

    • x402
    • USDC
    • Base
    Get skill

    Tested with Sonnet and Haiku, 23 Oct 2026

  • Recommended

    x402 Listing Review: Catalogs, Scanners, Buyers

    Agents & Protocols

    SKILL.md · v1.1.0 · 15.4 KB

    Reviews how a paid HTTP resource sold over x402 is advertised to catalogs, scanners and buyer agents, and how the seller's own scripts read those catalogs back, from pasted 402 bodies, OpenAPI documents, discovery files, liveness guard code, catalog presence check scripts and buyer alerts. Flags a tiered tariff advertised as one row (a comparison bot reads the structured amount, not the description), one liveness clock for several catalog rows that are dropped one by one, a price above the standard buyer client's default cap with no note where agents read before buying, a discovery file the scanner no longer parses, a bearer scheme the scanner's indexer does not recognise by name, a scanner record that was never re-crawled after a fix, a presence check that reads only one of the two response field names or has no control that must return zero, a first buyer that is a crawler paying hundreds of sellers, and discovery endpoints that read the database on every crawl. Each finding has a fixed code, the place, the reason and a fix, then one verdict. Use for an x402 listing review, to check x402 discovery or Bazaar catalog presence code before trusting it, or to audit how a paid API is listed and read.

    $0.05once

    • x402
    • USDC
    • Base
    Get skill

    Tested with Sonnet and Haiku, 29 Oct 2026

  • Retry Backoff Review

    Agents & Protocols

    SKILL.md · v1.0.0 · 6.0 KB

    Reviews ONE piece of retry code, or a written retry design for an agent or a service client, and lists only the five mistakes that turn a failure into an outage or a double write, one line each with a fixed code, the place, why it hurts and the fix - or exactly No findings. It catches waits that grow without a random part, a loop with no limit on tries or on total time, a POST repeated with no idempotency key, a 429 or 503 answer whose Retry-After header is never read, and retries on client errors that cannot change. It leaves out the safe look-alikes, such as a GET retried with a cap and jitter, a retry set of 408, 429 and server errors only, and a wait taken straight from Retry-After. Use to review the retry loop of an API client, to audit how an agent calls tools that fail, or before shipping a client to production.

    $0.01once

    • x402
    • USDC
    • Base
    Get skill

    Tested with Sonnet and Haiku, 26 Oct 2026