Agent Skills: File-First Architecture

>

UncategorizedID: resolve-io/.prism/file-first

Install this agent skill to your local

pnpm dlx add-skill https://github.com/resolve-io/.prism/tree/HEAD/plugins/prism-devtools/skills/file-first

Skill Files

Browse the full folder contents for file-first.

Download Skill

Loading file tree…

plugins/prism-devtools/skills/file-first/SKILL.md

Skill Metadata

Name
file-first
Description
>

File-First Architecture

Core Principle: Read source files directly. No RAG, no vector databases, no pre-loaded summaries.

When Agents Should Apply This

  • Entering an unfamiliar codebase
  • Need to understand project structure before implementation
  • Looking for specific code patterns or implementations
  • User asks "analyze this codebase" or "what files should I read"

The Pattern (For Agents)

1. DETECT  → Run analyzer to identify project type
2. LOCATE  → Use Glob/Grep to find relevant files
3. READ    → Read actual source files (not summaries)
4. CITE    → Always reference file:line when quoting
5. ITERATE → Search again if needed

Quick Project Detection

python "${CLAUDE_PLUGIN_ROOT}/skills/file-first/scripts/analyze_codebase.py" "$(pwd)"

Returns: project type, key files, suggested read order.

Reference Documentation

Load these only when needed (progressive disclosure):

Scripts

| Script | Purpose | |--------|---------| | scripts/analyze_codebase.py | Detect project type, suggest key files | | scripts/validate_file_first.py | Check if agents follow principles |

Integration

This principle is referenced by:

  • Agent personas (dev, qa, architect) when entering new codebases
  • shared/reference/file-first.md for quick lookup
  • Context loader hook for "analyze codebase" triggers