Intent Layer
Sets up hierarchical AGENTS.md context files so agents can navigate codebases like senior engineers.
- CCM score
- 62 of 100
- skills.sh installs
- 646
- GitHub stars
- 115
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers detecting Intent Layer state, measuring directory complexity, and scaffolding root and child AGENTS.md nodes
- Includes 3 scripts (
detect_state.sh,analyze_structure.sh,estimate_tokens.sh) plus templates, real-world node examples, and an SME capture protocol - Enforces a single root context file, a READ-FIRST directive, and under 4k tokens per node
- Designed for initializing new projects or adding AI-friendly documentation to existing repositories
Install
$ npx -y skills add crafter-station/skills --skill intent-layer -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Intent Layer
Hierarchical AGENTS.md infrastructure so agents navigate codebases like senior engineers.
Core Principle
Only ONE root context file. CLAUDE.md and AGENTS.md should NOT coexist at project root. Child AGENTS.md in subdirectories are encouraged for complex subsystems.
Workflow
1. Detect state
scripts/detect_state.sh /path/to/project
→ Returns: none | partial | complete
2. Route
none/partial → Initial setup (steps 3-5)
complete → Maintenance (step 6)
3. Measure [gate - show table first]
scripts/analyze_structure.sh /path/to/project
scripts/estimate_tokens.sh /path/to/each/source/dir
4. Decide
No root file → Ask: CLAUDE.md or AGENTS.md?
Has root file → Add Intent Layer section + child nodes if needed
5. Execute
Use references/templates.md for structure
Use references/node-examples.md for real-world patterns
Validate: one root, READ-FIRST directive, <4k tokens per node
6. Maintenance mode (when state=complete)
Ask user:
a) Audit nodes → Use references/capture-protocol.md for SME questions
b) Find candidates → Re-measure tokens, suggest new nodes
c) Both
When to Create Child Nodes
Details
- Repository
- github.com/crafter-station/skills
- Categories
- Memory & Context, Technical Documentation
- First seen
- Jun 3, 2026
Questions
What does the intent-layer skill do for my codebase?
The intent-layer skill sets up a hierarchical structure of AGENTS.md files so agents can navigate a codebase like senior engineers. It measures token counts per directory and places child AGENTS.md nodes where a subsystem needs them.
How do I install the intent-layer skill?
Run npx -y skills add crafter-station/skills --skill intent-layer -y inside your project. Once installed, the agent can set up AGENTS.md files for a new project or an existing repo.
Which skills lead the Memory & Context category next to intent-layer?
Intent-layer sits in the Memory & Context category alongside handoff and several caveman skills, including caveman-compress and caveman-stats. Its own focus is structuring a repository's AGENTS.md files so agents understand the code.
When should I use the intent-layer skill?
Use it when initializing a new project, adding context infrastructure to an existing repo, or asking an agent to set up AGENTS.md or an intent layer. It works from detected state and routes to initial setup or maintenance accordingly.
Similar to Intent Layer
More Memory & Contextagents-mdgetsentry/skills8.2K installsConcise AGENTS.md and CLAUDE.md setup that inspects the repo and keeps agent instructions reference-backed.
writing-for-agentsmattpocock/skills617.9K installsGuide for writing any document an agent consumes, covering skills, AGENTS.md, CLAUDE.md, and pointed-to docs.
deepinityeachan-heo/oh-my-claudecode1.2K installsHierarchical AGENTS.md generator that documents every directory of a codebase for AI agents.
scanwshobson/agents5.4K installsKeeps project docs and AGENTS.md current by scanning the codebase, with human confirmation before any architectural edits.
harness-engineeringpproenca/dot-skills317 installsAgent-first repository scaffolding that builds knowledge maps, domain boundaries, enforcement rules, and quality scoring for coding agents.