Skip to content
Development
Command

/prime

Load project context and output a structured summary.

shell
$ npx -y skills add DefaultPerson/agent-setup --agent claude-code

Ships with agent-setup. Installing the plugin gets this command.

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/prime

Context preview

What this command does when you run it.

Load project context and output a structured summary.

Command definition

prime.md
allowed-tools: Bash(git *), Bash(find *), Bash(head *), Read, Glob, Grep
description: Load project context and output a structured summary.

Build comprehensive understanding of the codebase. Run all steps, then output a concise summary.

Process

1. Project Structure

git ls-files | head -100

Show directory tree (depth 3, skip noise):

find . -maxdepth 3 -type f \
  -not -path '*/node_modules/*' \
  -not -path '*/.git/*' \
  -not -path '*/dist/*' \
  -not -path '*/build/*' \
  -not -path '*/__pycache__/*' \
  -not -path '*/.next/*' \
  | head -80

2. Core Documentation

Read whatever exists — skip what's missing:

  • `README.md`, `CLAUDE.md`
  • `docs/` directory (if present — scan for architecture, API, specs)
  • Any other top-level docs (PRD, spec, CONTRIBUTING, ARCHITECTURE, etc.)

3. Stack Detection

Look for common config files to detect the stack:

  • `package.json`, `pyproject.toml`, `go.mod`, `Cargo.toml`, `requirements.txt`
  • Build/lint configs (`tsconfig.json`, `ruff.toml`, `.eslintrc*`, etc.)
  • Infra files (`Dockerfile`, `docker-compose.yml`, `.github/workflows/`)

4. Key Files

From the file tree, identify and read entry points, core schemas/models, and important service files.

5. Git Activity

git log --oneline -20
git branch -a
git diff --stat HEAD~5..HEAD 2>/dev/null

Output Summary

## Project Context

### Overview
- **Purpose**: {what this project does}
- **Tech Stack**: {languages, frameworks, key deps}

### Architecture
- **Structure**: {key directories, patterns}
- **Entry Points**: {main files}
- **Config**: {build tools, CI/CD, infra}

### Current State
- **Branch**: {current branch}
- **Recent Work**: {last 5 commits summary}
- **Active Areas**: {most changed files/dirs}

### Key Files
- {path} — {purpose}
- ...

Make the summary easy to scan — bullet points, clear headers, no walls of text.

Read more
Read it on GitHub ↗
Ships withagent-setup

Universal setup for Claude Code and OpenAI Codex CLI — security hooks, notifications, status line, and productivity commands.

Get the whole plugin, auto-invoked
Stats
11
Stars
0
Views
1
Forks
Active
Maintenance
Python
Language
MIT
License
28d ago
Last commit
8mo ago
Created

Repo: DefaultPerson/agent-setup