procedure-in-memory
Disallow long numbered procedures in always-loaded agent guidance; move them to a skill
Next step
procedure-in-memory ships in eslint-plugin-conventions, with 6 of its 20 rules in the recommended preset.
npm install -D eslint-plugin-conventionsimport { configs } from 'eslint-plugin-conventions';
export default [configs.recommended];
Move long numbered procedures out of always-loaded guidance into a skill
Rule Details
A procedure is needed when its task runs. CLAUDE.md, AGENTS.md and GEMINI.md are read on every
session. A numbered list longer than maxSteps (default 5) in one of them is a skill paying rent in
the wrong place.
A list is a run of numbered items (1. or 1)); blank lines and indented continuation lines do not
end it. Lists inside code fences are not read.
Options
{ "maxSteps": 5 }Examples
❌ Incorrect
A seven-step release checklist in CLAUDE.md.
✅ Correct
The checklist in .claude/skills/release/SKILL.md, and in CLAUDE.md at most one line that names
the skill.
Use this rule
npm install -D eslint-plugin-conventionsimport conventions from 'eslint-plugin-conventions';export default [ { plugins: { 'conventions': conventions }, rules: { 'conventions/procedure-in-memory': 'error' }, },];npm install -D oxlint-plugin-conventions{ "jsPlugins": ["oxlint-plugin-conventions"], "rules": { "conventions/procedure-in-memory": "error" }}import { defineConfig } from 'vite-plus';export default defineConfig({ lint: { jsPlugins: ['oxlint-plugin-conventions'], rules: { 'conventions/procedure-in-memory': 'error', }, },});oxlint-plugin-conventions re-exports eslint-plugin-conventions/oxlint: the same rules under the same IDs, and no ESLint install. Why oxlint.
Did this rule catch something? Star the repo to get new CWE coverage as we ship it — or follow the AI-code-security benchmarks behind these rules.