memory-first
Lookup chain enforced before any file read or search: project and global memory, grep/glob, targeted read — stop at the first step that answers
Install
npx skills add https://github.com/yeisonrestrepo/code-conductor/tree/main/skills/memory-first
claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install yeisonrestrepo-code-conductor@llmmart
git clone https://github.com/yeisonrestrepo/code-conductor.git
The skills CLI installs just this skill, for any of its supported agents. Claude Code installs the whole yeisonrestrepo/code-conductor collection as a plugin from our marketplace. Git is the plain clone.
Skill manifest
Memory-First Protocol
Follow this lookup chain in strict order before reading any file, running any search, or spawning any tool. Stop at the first step that answers the question.
Chain
1. Memory
Check .claude/memory/project.md (project) and ~/.claude/memory/personal.md (global preferences).
Use the Grep tool on both files:
Grep pattern="<keyword>" path=".claude/memory/project.md"
Grep pattern="<keyword>" path="~/.claude/memory/personal.md"
If Grep returns matches, use that information and stop. If no matches, proceed to step 2.
2. Grep / Glob
For pattern searches, use the Grep or Glob tools inline. Never read a full file to find a pattern.
3. Targeted Read
Last resort. Only when steps 1–2 cannot answer.
- Always specify
offsetandlimit. - Max 150 lines per call.
- Know approximately which lines to read before calling.
The pre-tool-use hook blocks Read calls on files >150 lines with no explicit limit. If blocked, return to step 1.
Files (code-conductor)
-
SKILL.md 1.2 KB
--- name: memory-first description: "Lookup chain enforced before any file read or search: project and global memory, grep/glob, targeted read — stop at the first step that answers" type: skill --- # Memory-First Protocol Follow this lookup chain in strict order before reading any file, running any search, or spawning any tool. Stop at the first step that answers the question. ## Chain ### 1. Memory Check `.claude/memory/project.md` (project) and `~/.claude/memory/personal.md` (global preferences). Use the Grep tool on both files: ``` Grep pattern="<keyword>" path=".claude/memory/project.md" Grep pattern="<keyword>" path="~/.claude/memory/personal.md" ``` If Grep returns matches, use that information and stop. If no matches, proceed to step 2. ### 2. Grep / Glob For pattern searches, use the `Grep` or `Glob` tools inline. Never read a full file to find a pattern. ### 3. Targeted Read Last resort. Only when steps 1–2 cannot answer. - Always specify `offset` and `limit`. - Max 150 lines per call. - Know approximately which lines to read before calling. The `pre-tool-use` hook blocks `Read` calls on files >150 lines with no explicit `limit`. If blocked, return to step 1.
Comments (0)
Sign in to join the conversation.
Reviews (0)
No reviews yet.
No comments yet.