fimoklei/pm-ai-playbook/intent-layer
Claude Code and agent skill by fimoklei/pm-ai-playbook
- community
Checking that the SKILL.md file is still in the repository.
Use when initializing or maintaining agent-friendly repo context, setting up AGENTS.md or CLAUDE.md, adding local rules, defining verification commands, or checking whether context files are stale.
Install
npx vskill@latest install fimoklei/pm-ai-playbook/intent-layerSKILL.md
Intent Layer
Context infrastructure that helps agents find local rules, understand ownership boundaries, verify changes, and notice when context may be stale.
Root Context Strategy
Default: use AGENTS.md as the canonical cross-agent source. Use CLAUDE.md as a thin Claude Code adapter when Claude Code is used.
Supported modes:
| Mode | Use when | Root files | |
|---|---|---|---|
| AGENTS.md only | The project wants one portable context surface | AGENTS.md | |
| CLAUDE.md only | The project is Claude-only and has no cross-agent need | CLAUDE.md | |
| AGENTS.md canonical + CLAUDE.md adapter | Claude Code is used, but context should stay portable | AGENTS.md plus thin CLAUDE.md |
Adapter example:
Child AGENTS.md files in subdirectories are encouraged for complex subsystems. Root adapters should point to canonical context instead of duplicating it.
Required Root Intent Layer
Add this to the canonical context file at project root: AGENTS.md by default, or CLAUDE.md in CLAUDE-only mode. In adapter mode, add it to AGENTS.md; CLAUDE.md imports it.
This navigation contract is mandatory when child context nodes exist. Extend it with the project's real boundaries and global invariants; do not leave placeholder areas in finalized context.
Workflow
When to Create Child Nodes
| Signal | Action | |
|---|---|---|
| >20k tokens in directory | Create AGENTS.md | |
| Responsibility shift | Create AGENTS.md | |
| Hidden contracts/invariants | Document in nearest ancestor | |
| Cross-cutting concern | Place at LCA |
Do NOT create for: every directory, simple utilities, test folders (unless complex).
Staleness Risk Levels
scripts/check_context_staleness.sh uses git history as a review trigger, not as proof that context is wrong.
| Level | Meaning | Action | |
|---|---|---|---|
| LOW | Little code movement since the context update | Review during normal maintenance | |
| MEDIUM | Meaningful movement or one critical-looking path changed | Review verification commands and invariants | |
| HIGH | Heavy movement, many commits, or several critical-looking paths changed | Audit before trusting the node | |
| UNKNOWN | Git history or context files are unavailable | Inspect freshness manually |
Capture Questions
When documenting existing code, ask:
- What does this area own? What's out of scope?
- What invariants must never be violated?
- What repeatedly confuses new engineers?
- What patterns should always be followed?
Resources
Scripts:
scripts/detect_state.sh- Check Intent Layer state (none/partial/complete)scripts/analyze_structure.sh- Find semantic boundariesscripts/estimate_tokens.sh- Measure directory complexityscripts/check_context_staleness.sh- Flag context nodes with code movement since their last update
References:
references/templates.md- Root and child node templatesreferences/node-examples.md- Real-world examplesreferences/capture-protocol.md- SME interview protocol
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agentic-skills/intent-layer/SKILL.md
Popularity
- Repository stars
- 42
- Repository forks
- 8
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 13 Sep 2026, a month ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/fimoklei/pm-ai-playbook/intent-layer)