Agent skill

Intent Layer

by crafter-station in crafter-station/skills

Set up hierarchical Intent Layer (AGENTS.md files) for codebases.

MITAuto-check passedAgent Workflows

Install Intent Layer

skills CLI
$ npx skills add crafter-station/skills --skill intent-layer -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install crafter-station/skills intent-layer --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/crafter-station/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/intent-layer .claude/skills/intent-layer && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
intent-layer
GitHub stars
111
Used in
1 other repo
Token cost
~633 tokens
SKILL.md length
145 words
Files
8 (incl. scripts, references)
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Set up hierarchical Intent Layer (AGENTS.md files) for codebases.

  • Works in 4 steps: What does this area own? What's out of… → What invariants must never be violated? → What repeatedly confuses new engineers? → …
  • Initializing a new project
  • SKILL.md covers Core Principle, Workflow, When to Create Child Nodes and Capture Questions, plus 1 more section
  • Runs Shell scripts from its folder

What it does

Intent Layer is an agent skill from crafter-station/skills. Set up hierarchical Intent Layer (AGENTS.md files) for codebases. Use when initializing a new project, adding context infrastructure to an existing repo, user asks to set up AGENTS.md, add intent layer, make agents understand the codebase, or scaffolding AI-friendly project documentation.

Its SKILL.md is about 630 tokens, which your agent loads only when the skill is triggered. The skill folder holds 9 other files, including scripts and reference files (for example `README.md`, `references/capture-protocol.md` and `references/node-examples.md`).

It sits in Agent Workflows, covering Agent instruction files and Project scaffolding. The repository describes itself as: Agent skills extracted from real work. Each one shipped something first. The licence is MIT.

When your agent uses it

  • Initializing a new project
  • Adding context infrastructure to an existing repo
  • User asks to set up AGENTS.md
  • Add intent layer

Example prompts

  • “/intent-layer”

Requirements

  • A Bash shell

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  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?

What it can do on your machine

Read from SKILL.md and the folder at commit f0fe474. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 3 files in scripts/ (Shell), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Intent Layer loads about 633 tokens when it runs, and up to ~2.3k if it reads all its reference files. Until then it costs about 76 tokens; SKILL.md has 145 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~76
When it runs · the whole SKILL.md, loaded when a task matches
~633
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from crafter-station/skills at commit f0fe474, republished under its MIT licence (© crafter-station). 145 words, ~633 tokens.

Download SKILL.mdSave it as .claude/skills/intent-layer/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
intent-layer
description
Set up hierarchical Intent Layer (AGENTS.md files) for codebases. Use when initializing a new project, adding context infrastructure to an existing repo, user asks to set up AGENTS.md, add intent layer, make agents understand the codebase, or scaffolding AI-friendly project documentation.
version
1.0.0

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

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).

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

References:

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

© crafter-station, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files (scripts, references) in skills/intent-layer of crafter-station/skills.

  • SKILL.md
  • README.md
  • references/capture-protocol.md
  • references/node-examples.md
  • references/templates.md
  • scripts/analyze_structure.sh
  • scripts/detect_state.sh
  • scripts/estimate_tokens.sh

Open the folder on GitHubat commit f0fe474

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in crafter-station/skills, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Intent Layer next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Intent Layer compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Intent Layer this skillcrafter-station/skills1111 repos~633Automated safety check: PassMIT
AI Bomcdxgen/cdxgen1.1k—~2.5kAutomated safety check: PassApache-2.0
AI Context Workspace Initkvker/ai-context-workspace101—~948Automated safety check: PassMIT
Add Remote Endpointnextcloud/android-library106—~1.1kAutomated safety check: PassCustom licence
AGENTS.md Scaffoldmajiayu000/spellbook286—~1.5kAutomated safety check: PassMIT
Scaffold Clauderagnar-pwninskjold/tech-snacks136—~1.7kAutomated safety check: PassMIT

Similar skills

  • AI Bom

    cdxgen/cdxgen

    Generates AI-BOM, MCP inventory, AI skill inventory, and AI authorship provenance documents with cdxgen, cataloging models, inference services, Hugging Face purls, MCP servers and their…

    1.1k GitHub stars~2.5k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • AI Context Workspace Init

    kvker/ai-context-workspace

    Turns existing work units or an empty directory into an AI Context Workspace by scanning materials, generating background and conventions, and installing runtime skills.

    101 GitHub stars~948 tokensUpdated 29 days ago
    Agent WorkflowsAuto-check passed
  • Add Remote Endpoint

    nextcloud/android-library

    A skill your agent uses when adding a new remote/network endpoint (a RemoteOperation / OCSRemoteOperation) to this Nextcloud Android library, or when the user says "add an endpoint", "new remote…

    106 GitHub stars~1.1k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • AGENTS.md Scaffold

    majiayu000/spellbook

    Scans a repository for real evidence and proposes, or on request writes, a small stack of root and scoped AGENTS.md files with validation commands and generated-file boundaries.

    286 GitHub stars~1.5k tokensUpdated today
    Agent WorkflowsAuto-check passed
  • Scaffold Claude

    ragnar-pwninskjold/tech-snacks

    A skill your agent uses when the user wants to create, draft, or scaffold a CLAUDE.md (or AGENTS.md) file for their project.

    136 GitHub stars~1.7k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Harness Init

    k1ein-chen/Harness-Starter

    Initialize this project with the Harness Engineering starter template.

    119 GitHub stars~995 tokensUpdated 13 days ago
    Agent WorkflowsAuto-check: notes

More from crafter-station/skills

  • CLI Audit

    crafter-station/skills

    Audit an existing CLI against cli-build: how well an agent can operate it and how well a human can read it.

    111 GitHub stars~3k tokensUpdated 29 days ago
    Auto-check passed
  • Obsidian Plugin Release

    crafter-station/skills

    Release a new version of an Obsidian community plugin without forgetting steps.

    111 GitHub stars~1.8k tokensUpdated 29 days ago
    Auto-check passed
  • Skill Gen

    crafter-station/skills

    Deprecated. An agent skill from crafter-station/skills.

    111 GitHub stars~5.7k tokensUpdated 29 days ago
    Auto-check passed
  • Generate Brand Assets

    crafter-station/skills

    Generate OG images and favicon based on project branding. An agent skill from crafter-station/skills.

    111 GitHub stars~1.3k tokensUpdated 29 days ago
    Auto-check passed
  • CLI Build

    crafter-station/skills

    Design and build a CLI that an AI agent can operate safely and a human can supervise.

    111 GitHub stars~5.2k tokensUpdated 29 days ago
    Auto-check passed
  • Surfacer

    crafter-station/skills

    Compile a mapped surface into working interfaces and keep them alive as the target changes.

    111 GitHub stars~829 tokensUpdated 29 days ago
    Auto-check passed

Categories

Questions about Intent Layer

What does Intent Layer do?

Set up hierarchical Intent Layer (AGENTS.md files) for codebases. Intent Layer is an agent skill from crafter-station/skills.md files) for codebases.

When should I use Intent Layer?

Intent Layer fits situations like: initializing a new project; adding context infrastructure to an existing repo; user asks to set up AGENTS.md; add intent layer.

How do I install Intent Layer in Claude Code?

Run `npx skills add crafter-station/skills --skill intent-layer -a claude-code`. Or copy the skill folder (skills/intent-layer in crafter-station/skills) into .claude/skills/intent-layer in your project. Claude Code loads it when a task matches its description.

How do I install Intent Layer in Codex?

Run `npx skills add crafter-station/skills --skill intent-layer -a codex`. Or copy the skill folder (skills/intent-layer in crafter-station/skills) into .agents/skills/intent-layer in your project. Codex loads it when a task matches its description.

Can I use Intent Layer in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add crafter-station/skills --skill intent-layer -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/intent-layer, .gemini/skills/intent-layer, .github/skills/intent-layer and .opencode/skills/intent-layer in your project.

What does Intent Layer need to run?

Going by SKILL.md and its folder, Intent Layer needs a shell for the scripts in its folder. Our summary lists: A Bash shell.

Does Intent Layer access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Intent Layer safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Intent Layer use?

Intent Layer is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Intent Layer use?

About 633 tokens (SKILL.md is roughly 2.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.7k tokens, read only when the agent opens those files.

What are the alternatives to Intent Layer?

Skills that share tags, products or a category with Intent Layer: AI Bom (cdxgen/cdxgen, 1.1k stars), AI Context Workspace Init (kvker/ai-context-workspace, 101 stars), Add Remote Endpoint (nextcloud/android-library, 106 stars) and AGENTS.md Scaffold (majiayu000/spellbook, 286 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Intent Layer?

crafter-station (a GitHub organization) maintains it in crafter-station/skills, which has 111 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on September 7, 2026.

Source: crafter-station/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.