Skip to content
Agentmart
Submit a tool

prime

Use when loading project context and architecture overview before starting implementation work, with optional focus on a specific area

Skill by giladresisi

IndexedMIT★ 2
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/giladresisi-prime

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when loading project context and architecture overview before starting implementation work, with optional focus on a specific area

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/prime

What's inside

Skill name
prime
Description
Use when loading project context and architecture overview before starting implementation work, with optional focus on a specific area
License
MIT
Instructions
183 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Prime: Load Project Context

## Objective

Build understanding of the codebase - either high-level overview or focused deep-dive based on whether a focus area argument is provided.

## Usage

- `/prime` - High-level overview (architecture, patterns, structure)
- `/prime "authentication system"` - Deep-dive into specific area
- `/prime "API endpoints"` - Focus on particular functionality

## Decision: Which Mode?

**Check if focus area argument was provided:**
- Arguments provided → Use **FOCUSED mode**
- No arguments → Use **HIGH-LEVEL mode**

---

## HIGH-LEVEL Mode (No Arguments)

**Goal:** Understand architecture, patterns, and structure with minimal token usage.

### Step 1: Directory Structure

Use Bash to show directory tree (2 levels max):
```bash
tree -L 2 -I 'node_modules|__pycache__|.git|dist|build|.next|coverage|venv|.venv'
```

If tree not available, use ls or alternative.

### Step 2: Count Files (Optional)

Only if in a git repo:
```bash
git ls-files | wc -l
```

### Step 3: Read Minimal Documentation

**Read at most 3 files:**
1. Root README.md (if exists)
2. CLAUDE.md or .claude/config (if exists)
3. One config file: package.json OR pyproject.toml OR tsconfig.json OR Cargo.toml

**DO NOT read:**
- Implementation files (src/, lib/, etc.)
- Test files
- Subdirectory READMEs
- Multiple config files

### Step 4: Check Git State (If Git Repo)

```bash
git status
git log -10 --oneline
```

### Step 5: Internalize Context

Build mental model of the project:
- Purpose and type of application (from README)
- Primary technologies and frameworks (from config)
- Directory structure and organization
- Key directories and their likely purposes (inferred from names)
- Main architectural patterns (if obvious from structure)

**DO NOT output this to CLI.** Keep context in memory for answering questions.

### Step 6: Output Completion

Output only:
```
Finished priming project.
```

No detailed report. Context is loaded and ready for use.

---

## FOCUSED Mode (With Argument)

**Goal:** Deep understanding of a specific area, ignore everything else.

### Step 1: Extract Keywords

From the focus area argument, identify key search terms.

Example: "authentication system" → keywords: auth, authentication, login, session, user

### Step 2: Find Relevant Files

Use Grep to search for files containing focus keywords:
```bash
grep -r "keyword1\|keyword2" --files-with-matches --include="*.py" --include="*.ts" --include="*.js"
```

Or use Glob for pattern matching:
```bash
**/*auth*/**
**/*login*/**
```

### Step 3: Read All Relevant Files

- Read ALL files found in Step 2 that are directly related
- Read imported dependencies if critical to understanding
- Read related documentation
- Go deep into implementation details

**No limit on file reading in focused mode.**

### Step 4: Analyze for Structural Blockers

**Internalize understanding** (keep in memory, don't output):
- Key functions/classes/components
- Main data structures or types

From giladresisi/ai-dev-env, MIT.

More from giladresisi/ai-dev-env

Signals

Stars
2
Forks
0
Open issues
0
Last commit (this folder)
Mar 6, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from giladresisi

Cite this page

prime skill. Agent Mart. https://agentmart.dev/skills/giladresisi-prime (last updated 2026-10-24)