agentleFS
strikersamstrikersam/autonomous-ai-agency/.agents/skills/context-prime/SKILL.md

context-prime

Skill9 starsChanged 3 months agoMITView on GitHub

Build a mental map: [module] → [responsibility] → [interfaces with]

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 5 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use at the start of:

    line 7
  2. Distinctive:

    Look for patterns across 5-10 representative files:

    line 32
  3. Distinctive:

    Do NOT start implementing before completing this skill

    line 83
  4. Distinctive:

    If CLAUDE.md contradicts README.md, CLAUDE.md wins

    line 84
  5. Distinctive:

    Keep the summary concise — this is a mental model, not a transcript

    line 87

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Skill: context-prime

Purpose

Prime Claude with deep repository context before starting any significant task. Ensures Claude has a full mental model of the codebase architecture, conventions, and constraints before writing a single line of code.

Trigger

Use at the start of:

  • A new coding session on an unfamiliar area
  • A complex feature that touches many files
  • A debugging session for a hard-to-reproduce bug
  • Onboarding to a new repository

Process

Step 1: Read Core Docs

In order:

  1. CLAUDE.md — primary instructions and conventions
  2. README.md — project overview and purpose
  3. TOOLS.md — available tooling
  4. agent/CLAUDE.md — agent-specific context (if exists)
  5. Any docs/ folder overview files

Step 2: Map the Architecture

Scan the top-level directory structure. For each major directory:

  • Identify its purpose
  • Note key files within it
  • Understand how it connects to other directories

Build a mental map: [module] → [responsibility] → [interfaces with]

Step 3: Find Conventions

Look for patterns across 5-10 representative files:

  • Naming conventions (files, functions, classes, variables)
  • Import organization style
  • Error handling patterns
  • Testing patterns (test file location, naming, fixtures)
  • Comment/docstring style
  • Type annotation usage

Step 4: Understand Data Flow

Trace the main data flow through the system:

  • Entry points (API routes, CLI commands, event handlers)
  • Core processing logic
  • Storage/persistence layer
  • Output/response formation

Step 5: Identify Constraints

Note any explicit constraints from CLAUDE.md or comments:

  • Performance-sensitive areas
  • Security boundaries
  • Deprecated patterns to avoid
  • In-progress refactors to be aware of

Step 6: Declare Readiness

Output a structured context summary:

## Context Prime Complete

### Project
[1-2 sentence description of what this project does]

### Architecture
- [Layer/Module]: [responsibility]
- [Layer/Module]: [responsibility]

### Key Conventions
- [Convention]: [example]
- [Convention]: [example]

### Data Flow
[Entry] → [Processing] → [Storage] → [Output]

### Constraints to Respect
- [Constraint]
- [Constraint]

### Ready for Task
I have sufficient context to begin. Proceeding with: [task description]

Rules

  • Do NOT start implementing before completing this skill
  • If CLAUDE.md contradicts README.md, CLAUDE.md wins
  • Note areas of uncertainty explicitly rather than assuming
  • Re-prime if switching to a completely different part of the codebase
  • Keep the summary concise — this is a mental model, not a transcript

Value

This skill prevents the most common failure mode: writing code that technically works but violates project conventions, misunderstands architecture, or duplicates existing functionality.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.