Skip to content
Back to skills

Memory First

ASecurity

Lookup chain enforced before any file read or search: project and global memory, grep/glob, targeted read — stop at the first step that answers

  • 22 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 23, 2026
ai-agents

Security analysis

A100/100

Scanned October 7, 2026

npx -y skills add yeisonrestrepo/code-conductor --skill memory-first --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Memory First?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Memory First
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yeisonrestrepo-memory-first/badge)](https://www.skillsdirectory.com/skills/yeisonrestrepo-memory-first)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.