Intent Layer logo

Intent Layer

Community
fimoklei
intent-layer

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.

Overview

Publisherfimoklei
Repositorypm-ai-playbook
Skill nameintent-layer
Stars
42
Forks
8
Bundled files
7
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 7 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by fimoklei on GitHub. Read the source before you install it.

Installation

Install the Intent Layer AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/fimoklei/pm-ai-playbook/tree/main/skills/agentic-skills/intent-layer
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fimoklei/pm-ai-playbook.git /tmp/pm-ai-playbook
mkdir -p .claude/skills
cp -r /tmp/pm-ai-playbook/skills/agentic-skills/intent-layer .claude/skills/intent-layer
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Intent Layer in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Intent Layer on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Intent Layer is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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:

ModeUse whenRoot files
AGENTS.md onlyThe project wants one portable context surfaceAGENTS.md
CLAUDE.md onlyThe project is Claude-only and has no cross-agent needCLAUDE.md
AGENTS.md canonical + CLAUDE.md adapterClaude Code is used, but context should stay portableAGENTS.md plus thin CLAUDE.md

Adapter example:

markdown
@AGENTS.md

## Claude Code Specific Instructions

- Prefer editing existing files over creating new abstractions.
- Use plan mode for large refactors.
- Run local verification commands before final response.

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.

markdown
## Intent Layer

**Before modifying code in a subdirectory, read its AGENTS.md first** to understand local patterns and invariants.

- **[Area 1]**: `path/to/AGENTS.md` - Brief description
- **[Area 2]**: `path/to/AGENTS.md` - Brief description

### Global Invariants

- [Invariant that applies across all areas]
- [Another global invariant]

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

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
   scripts/check_context_staleness.sh /path/to/project

4. Decide
   No root file        -> Ask which supported mode to use
   Existing root files -> Preserve intent; add adapter/import only if useful
   Child nodes needed  -> Add local AGENTS.md files with verification commands

5. Execute
   Add the Required Root Intent Layer to the canonical root context file
   Use references/templates.md for structure
   Use references/node-examples.md for real-world patterns
   Validate: canonical source is clear, READ-FIRST directive exists, every node has Verification, <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) Staleness check -> Run scripts/check_context_staleness.sh
   d) Both/all

When to Create Child Nodes

SignalAction
>20k tokens in directoryCreate AGENTS.md
Responsibility shiftCreate AGENTS.md
Hidden contracts/invariantsDocument in nearest ancestor
Cross-cutting concernPlace 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.

LevelMeaningAction
LOWLittle code movement since the context updateReview during normal maintenance
MEDIUMMeaningful movement or one critical-looking path changedReview verification commands and invariants
HIGHHeavy movement, many commits, or several critical-looking paths changedAudit before trusting the node
UNKNOWNGit history or context files are unavailableInspect freshness manually

Capture Questions

When documenting existing code, ask:

  1. What does this area own? What's out of scope?
  2. What invariants must never be violated?
  3. What repeatedly confuses new engineers?
  4. 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 boundaries
  • scripts/estimate_tokens.sh - Measure directory complexity
  • scripts/check_context_staleness.sh - Flag context nodes with code movement since their last update

References:

  • references/templates.md - Root and child node templates
  • references/node-examples.md - Real-world examples
  • references/capture-protocol.md - SME interview protocol

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Intent Layer AI skill do?

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.

Why use Intent Layer on TypingMind?

Because you install it once and use it with any model. Intent Layer is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Intent Layer in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/fimoklei/pm-ai-playbook/tree/main/skills/agentic-skills/intent-layer. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Intent Layer?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Intent Layer?

As many as you like. As long as a model supports skills, you can use Intent Layer with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Intent Layer AI skill free?

It is published on GitHub by fimoklei. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇