intel
Skill4 starsChanged 3 months agoMITView on GitHub
Generate or refresh the project context scaffold in .claude/context/ (architecture, decisions, conventions, patterns).
1 other project uses a version of this.
Adopted by
Most recently taken up by
- buildomator/buildomatortheir own version, first seen Nov 4, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- buildomator/buildomator★ 102same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository53 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- actionableSkill
- astro-bootstrapSkill
- astro-patternsSkill
- autopilotSkill
- axon-code-intelSkill
- brainstormingSkill
- commit-conventionsSkill
- cross-repo-contextSkill
- django-bootstrapSkill
- django-patternsSkill
- executeSkill
- find-sessionSkill
- flutter-bootstrapSkill
- flutter-patternsSkill
- full-featureSkill
- nextjs-bootstrapSkill
- nextjs-fullstack-bootstrapSkill
- nextjs-fullstack-patternsSkill
- nextjs-mui-bootstrapSkill
- nextjs-patternsSkill
- nextjs-shadcn-bootstrapSkill
- orchestratorSkill
- phase-breakdownSkill
- plan-and-scopeSkill
- prdSkill
- reactSkill
- recallSkill
- reflectSkill
- relaySkill
- rememberSkill
- scaffoldSkill
- scratchSkill
- tailwindSkill
- ux-specSkill
- ux-to-promptsSkill
- verify-astroSkill
- verify-djangoSkill
- verify-flutterSkill
- verify-nextjs-fullstackSkill
- verify-nextjs-muiSkill
- verify-nextjs-shadcnSkill
- verify-nextjsSkill
- verifySkill
- visual-feedbackSkill
- work-disciplineSkill
- worktreesSkill
- wrapSkill
- write-as-friendSkill
- write-as-humanSkill
- writing-clearlySkill
- writing-skillsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
31 rules. About 0 are common, 14 are distinctive, and 17 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈14
Distinctive · estimate
This author's own choices. Worth a look.
17
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
After major refactors, dependency upgrades, or architectural shifts
- Distinctive: line 18
When onboarding a new stack or sub-project
- Distinctive: line 20
Do NOT use for: small bug fixes, routine feature work where context files already exist and are current.
- Very specific: line 26
Check the state of .claude/context/:
- Very specific: line 31
If user passed --full → Full Refresh mode
- Very specific: line 34
Backwards compatibility: If .claude/architecture.md exists but .claude/context/ does not, treat as First Run mode.
- Very specific: line 38
Run axon_list_repos to check if the current repo is indexed.
- Very specific: line 51
Read package manifests (requirements.txt, package.json, pubspec.yaml, go.mod) for stack and decision data
- Distinctive: line 54
Read CLAUDE.md and any existing project documentation for documented conventions
- Distinctive: line 55
Read package manifests to identify stack and key dependencies
- Distinctive: line 57
Read entry point files to understand the top-level structure
- Distinctive: line 59
Read 2-3 representative examples of each discovered pattern
- Very specific: line 63
Run git log --since="[last-updated-date]" --stat --pretty=format:"%H %s" to identify what changed
- Very specific: line 64
If Axon available, run axon_detect_changes on the range for structural impact
- Very specific: line 106
When a recurring structural pattern is discovered, create a pattern file following the format in patterns/README.md.
- Very specific: line 122
Create architecture.md with extracted Stack, Architecture Overview, Constraints, Key Entry Points
- Very specific: line 125
Create any patterns/*.md files for significant patterns discovered
- Very specific: line 128
Write .claude/architecture.md as a slimmed summary — same Stack/Overview/Constraints/Entry Points sections plus a pointer to context/ — …
- Very specific: line 139
Read all existing context files in .claude/context/
- Distinctive: line 140
Update only the files identified in Step 3 as affected by recent changes
- Distinctive: line 141
Do NOT rewrite files whose underlying code hasn't changed
- Very specific: line 142
NEVER modify ## Manual Notes sections or anything below them
- Very specific: line 143
If a new pattern is discovered, create a new patterns/*.md file and regenerate ROUTER.md
- Very specific: line 144
Update Last updated dates only on files that were modified
- Very specific: line 145
Update .claude/architecture.md if the architecture summary changed
- Distinctive: line 149
After writing or updating context files, rebuild ROUTER.md:
- Very specific: line 151
Read the current ROUTER.md (or use the template for first run)
- Distinctive: line 152
Update the Context Files table:
- Distinctive: line 156
Update the Task Routing table if new pattern files warrant specific routing (e.g., a "Testing Pattern" file should be listed under …
- Distinctive: line 157
Keep ROUTER.md under 50 lines — it's a dispatch table, not a knowledge base
- Distinctive: line 161
After writing/updating the files:
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.
Files
Skill: Architecture Intel
Overview
Extract and maintain a persistent architectural context scaffold in .claude/context/. Eliminates cold-start context loss across sessions by documenting stack, decisions, patterns, constraints, and conventions — each in its own file so agents load only what's relevant per task.
For backwards compatibility, .claude/architecture.md is maintained as a slimmed summary pointing to the full scaffold.
When to Use
- First session on a new-to-you project
- After major refactors, dependency upgrades, or architectural shifts
- Periodically (every few weeks) to keep context files current
- When onboarding a new stack or sub-project
Do NOT use for: small bug fixes, routine feature work where context files already exist and are current.
Process
Step 1: Detect Mode
Check the state of .claude/context/:
.claude/context/ROUTER.mddoes not exist → First Run mode (full analysis, generate entire scaffold)- ROUTER.md exists but is still an unfilled template → also First Run mode. The installer pre-seeds
.claude/context/with blank templates, so existence alone doesn't mean the scaffold is populated. Telltales: theLast updatedheader comment still readsYYYY-MM-DD, or the Context Files table shows Status "Template" for every file. - ROUTER.md is populated → read the
Last updateddate from each context file's header comment- If user passed
--full→ Full Refresh mode - Otherwise → Incremental mode
- If user passed
Backwards compatibility: If .claude/architecture.md exists but .claude/context/ does not, treat as First Run mode. The monolithic file will be preserved as a reference during migration.
Step 2: Check Axon Availability
Run axon_list_repos to check if the current repo is indexed.
- Axon available → use the Axon analysis path (faster, more structural)
- Axon unavailable → use the file-read analysis path (still effective, just more manual)
Inform the user which path you're taking.
Step 3: Analyze the Codebase
With Axon:
axon_querywith broad concept terms — "authentication", "error handling", "data models", "routing", "middleware" — to identify the major patterns in useaxon_contexton key entry points (main URL conf, root app component, main router, etc.) to map the layer structureaxon_cypherfor structural queries when needed — find all classes following a pattern, identify service layers, locate middleware chains- Read package manifests (requirements.txt, package.json, pubspec.yaml, go.mod) for stack and decision data
Without Axon:
- Read CLAUDE.md and any existing project documentation for documented conventions
- Read package manifests to identify stack and key dependencies
- Identify entry points — glob for urls.py, app/layout.tsx, main.dart, main.go, index.ts, etc.
- Read entry point files to understand the top-level structure
- Glob for structural patterns:
**/services.py,**/repositories.py,**/middleware.*,**/serializers.py,**/hooks/use*.ts - Read 2-3 representative examples of each discovered pattern
- Infer decisions from dependency choices and configuration files
Incremental mode — both paths:
- Run
git log --since="[last-updated-date]" --stat --pretty=format:"%H %s"to identify what changed - If Axon available, run
axon_detect_changeson the range for structural impact - Classify changed files to determine which context files need updating:
- Config/manifest changes →
architecture.md+decisions.md - New directories or apps →
architecture.md+conventions.md - New service/pattern files → suggest adding a pattern to
patterns/ - New middleware, validators, exception handlers →
architecture.md(constraints) + suggest pattern - Dependency additions/removals →
decisions.md
- Config/manifest changes →
- Re-analyze only the code relevant to affected files
- Skip context files whose underlying code did not change
Step 4: Extract Architecture
For each category, extract concrete, specific findings — not generic descriptions. Every bullet should be grounded in what the code actually does.
For architecture.md (.claude/context/architecture.md):
| Category | What to capture | Example |
| Stack | Technology, version, directory | Django 5.2 + DRF (server/) |
| Architecture Overview | Layer map, boundaries, data flow | "Three-layer: views → services → models. All external API calls isolated in clients/" |
| Constraints | Non-negotiable rules | "All list endpoints paginated (PageNumberPagination, default 20)" |
| Key Entry Points | 3-5 files to understand first | server/config/urls.py, web/app/layout.tsx |
For decisions.md (.claude/context/decisions.md):
| What to capture | Example |
| Technology/pattern choice + rationale + date | "JWT over sessions: stateless auth for mobile client support" |
| Status: Active or Superseded | If superseded, link to the replacement decision |
For conventions.md (.claude/context/conventions.md):
| Category | What to capture | Example |
| Naming | Naming conventions with examples | "Tests: apps/[domain]/tests/test_[module].py" |
| File Organization | Directory structure rules | "One service file per Django app" |
| Error Handling | Error handling norms | "All API errors go through custom exception handler" |
| Testing | Testing conventions | "Integration tests use factory_boy, unit tests use mocks" |
| Project-Specific Rules | Anything else specific to this project | "Never import from another app's models directly" |
For patterns/ (.claude/context/patterns/):
When a recurring structural pattern is discovered, create a pattern file following the format in patterns/README.md. Only create pattern files for significant, reusable patterns — not every code convention.
Multi-stack projects: Detect multiple sub-projects (look for multiple package manifests at different directory levels, or sub-project directories in CLAUDE.md). Keep Decisions flat (project-wide). Give Conventions and Patterns per-stack subsections:
## Naming
### Backend (server/)
- ...
### Frontend (web/)
- ...Step 5: Write or Update Context Files
First Run:
- Ensure the
.claude/context/structure exists. The installer usually pre-seeds it with blank templates (ROUTER.md, decisions.md, conventions.md, patterns/README.md) — fill those in place. If a file is missing, create it using the formats in Step 4 with a<!-- Generated by /intel. Last updated: YYYY-MM-DD -->header comment and a## Manual Notessection at the bottom.- Create
architecture.mdwith extracted Stack, Architecture Overview, Constraints, Key Entry Points - Fill
decisions.mdwith extracted decisions (replace placeholder entries) - Fill
conventions.mdwith extracted conventions by category - Create any
patterns/*.mdfiles for significant patterns discovered
- Create
- Set the
Last updateddate to today in each file's header comment - Generate
ROUTER.md(see Step 5b) - Write
.claude/architecture.mdas a slimmed summary — same Stack/Overview/Constraints/Entry Points sections plus a pointer tocontext/— this maintains backwards compatibility
Full Refresh (--full):
- Re-analyze the entire codebase (same as First Run analysis)
- Rewrite all context files with fresh findings
- Preserve the
## Manual Notessection and everything below it in each file that has one - Regenerate
ROUTER.md(see Step 5b) - Update
.claude/architecture.mdsummary - Update
Last updateddates
Incremental:
- Read all existing context files in
.claude/context/ - Update only the files identified in Step 3 as affected by recent changes
- Do NOT rewrite files whose underlying code hasn't changed
- NEVER modify
## Manual Notessections or anything below them - If a new pattern is discovered, create a new
patterns/*.mdfile and regenerate ROUTER.md - Update
Last updateddates only on files that were modified - Update
.claude/architecture.mdif the architecture summary changed
Step 5b: Generate ROUTER.md
After writing or updating context files, rebuild ROUTER.md:
- Read the current
ROUTER.md(or use the template for first run) - Update the Context Files table:
- List every file in
.claude/context/(except ROUTER.md itself) - List every
patterns/*.mdfile individually - Set Status to "Populated" for files with content, "Template" for empty ones
- List every file in
- Update the Task Routing table if new pattern files warrant specific routing (e.g., a "Testing Pattern" file should be listed under Debugging/Fixing tasks)
- Keep ROUTER.md under 50 lines — it's a dispatch table, not a knowledge base
Step 6: Wrap Up
After writing/updating the files:
- Summarize what was found or changed, listing which context files were created/updated
- Note if anything looks unusual or worth the user's attention
- Mention the drift detector: "You can check recent changes against these conventions by loading
agents/drift-detector.mdas a subagent." - Mention memory commands: "Use
/rememberto capture additional decisions, conventions, or patterns. Use/recallat the start of future sessions to load relevant context."
Quick Reference
| Mode | Trigger | Scope | Manual Notes |
| First Run | Scaffold missing, or only unfilled templates | Full analysis, all context files | N/A |
| Incremental | Context exists (default) | Changed files only | Preserved |
| Full Refresh | User passes --full | Full re-analysis, all files | Preserved |
| Axon Available | Analysis Approach |
| Yes | axon_query → axon_context → axon_cypher + manifest reads |
| No | Entry point reads → glob for patterns → representative file reads |
| Context File | Contains | Size Target |
architecture.md | Stack, overview, constraints, entry points | Under 80 lines |
decisions.md | Lightweight ADRs with rationale | Under 60 lines |
conventions.md | Naming, file org, error handling, testing norms | Under 60 lines |
patterns/*.md | One file per significant reusable pattern | Under 40 lines each |
ROUTER.md | Navigation hub — dispatch table | Under 50 lines |
Total token budget: The scaffold should be smaller in aggregate than the old monolithic architecture.md when only relevant files are loaded per task. ROUTER.md + one context file should be under 100 lines.
Common Mistakes
- Overwriting Manual Notes — never modify content after the
## Manual Notesheading in any context file - Rewriting unchanged files — in incremental mode, only touch files affected by recent changes
- Generic descriptions — "uses a service layer" is useless. "Business logic in
apps/*/services.py, views call service functions, never access ORM directly" is useful - Too long — if any single context file exceeds its size target, trim aggressively. The point of the scaffold is to load less, not more
- Missing rationale in Decisions — "uses JWT" isn't a decision. "JWT over sessions: needed stateless auth for mobile clients" is
- Forgetting backwards compat — always update
.claude/architecture.mdalongside the scaffold so projects that haven't migrated still get a useful summary - Bloated ROUTER.md — the router is a dispatch table. If it exceeds 50 lines, you're putting content in it that belongs in the context files
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
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.

