Inject comprehensive project context from CLAUDE.md files into Claude Code's working memory, enabling informed code generation, debugging, and architectural decisions.
Provides Claude Code with comprehensive project context from CLAUDE.md files, enabling informed development decisions, accurate code generation, and deep understanding of project architecture, conventions, and workflows.
Extracts and injects structured project context from CLAUDE.md documentation files into Claude Code's working memory. This ensures Claude understands your project's architecture, conventions, tech stack, deployment strategy, and development workflows before writing any code.
Search for CLAUDE.md in the repository root:
```bash
if [ -f "CLAUDE.md" ]; then
echo "CLAUDE.md found at project root"
else
echo "CLAUDE.md not found - searching subdirectories"
find . -name "CLAUDE.md" -type f
fi
```
If no CLAUDE.md exists, inform the user that this skill requires a CLAUDE.md file and suggest creating one based on project documentation.
Read the entire CLAUDE.md file to extract structured information:
Extract and memorize project-specific patterns:
Identify all technologies and tools:
Note any limitations or critical requirements:
If CLAUDE.md references other files, read them:
Summarize the loaded context for the user:
```
✓ Project: [Name]
✓ Tech Stack: [Primary technologies]
✓ Architecture: [Key patterns]
✓ Conventions: [Critical rules]
✓ Environment: [Dev/staging/prod setup]
✓ Constraints: [Important limitations]
Context loaded. Ready to work on this project.
```
Throughout the session:
**User**: "Add a new bookmarklet that extracts page metadata"
**Claude Code**:
1. Reads CLAUDE.md to understand BMS namespace, component system, dark theme defaults
2. Notes CSS prefix convention (`bms-`)
3. Identifies loader pattern (GitHub raw URLs)
4. Creates `JavaScript/MetadataExtractor-refactored.js` with BMS.runMetadataExtractor function
5. Uses `await BMS.loadComponents(['core/panel/panel'])` for dynamic loading
6. Includes dark theme and animation support
7. Creates minified loader in `Bookmarklets/loaders/MetadataExtractor-loader.js`
8. Warns about CSP limitations on GitHub.com
**User**: "Add a new API endpoint for user preferences"
**Claude Code**:
1. Reads CLAUDE.md to understand Railway multi-environment setup
2. Notes database schema location (`src/lib/db/schema.ts`)
3. Identifies auth pattern (NextAuth v5, session object structure)
4. Checks environment variables needed (`DATABASE_URL`, `AUTH_SECRET`)
5. Creates API route following existing patterns in `/api`
6. Adds rate limiting using `src/lib/ip-rate-limit.ts`
7. Updates schema if needed, reminds to run `drizzle-kit push` on all 3 DBs
8. Follows security practices from SECURITY.md (generic error messages, input validation)
**User**: "Create a new dropdown component"
**Claude Code**:
1. Reads CLAUDE.md to understand component architecture
2. Checks naming conventions for component files
3. Identifies existing styling patterns (CSS modules, Tailwind, etc.)
4. Notes accessibility requirements mentioned in docs
5. Creates component following established patterns
6. Adds dark theme support if project uses it
7. Includes animation hooks if project uses them
8. Updates component index/registry if needed
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/claude-code-context-provider/raw