Agent Skills and Instruction Files

Instruction files that define behavioral rules for AI agents, paired with modular, reusable workflow playbooks (Agent Skills). Conserves context window capacity while maintaining consistent rules and work quality across different agents.

General Meaning

Instruction files (CLAUDE.md, AGENTS.md, system prompts, etc.) are persistent configuration documents that provide AI coding agents with development policies, forbidden actions, coding conventions, and tool usage guidelines.

Agent Skills are modular playbooks that extract the step-by-step procedures and judgment criteria for specialized workflows—such as handoffs, deployments, code reviews, or research—into standalone files. Typically structured with YAML frontmatter metadata (name and description) and Markdown instructions, skills are loaded dynamically on demand so agents can execute complex tasks reproducibly without bloating the baseline context window.

Why It Matters

  • Centralized governance and rule compliance: Explicitly codifies absolute rules—such as no guessing, secret protection, and Git branching—to prevent arbitrary agent behavior.
  • Conserving context window capacity: Loading every operational playbook into every session wastes tokens and degrades attention; keeping base rules minimal and loading skills on demand maximizes accuracy.
  • Standardizing complex workflows: Systematizing procedures like handoffs and site launches preserves consistent quality across agent sessions and model providers.

How the Site Factory Uses It

In the Site Factory, top-level shared rules are consolidated in AGENTS.md as the first document read by every agent (Claude, Codex, Cursor, Grok Bot, Antigravity), enforcing the K104 local-first cascade, one-ticket-one-owner, no guessing, and private-repository rules. Each site repository's CLAUDE.md transparently inherits shared rules by including @../HONBU/rules.md at the top, while operator decisions made in chat are appended line by line to decisions.md as a permanent decision log (ADR).

Recurring operational procedures are modularized under .claude/skills/<name>/SKILL.md—automatically discovered by Claude and Cursor, and referenced directly at the same path by Codex and cloud sessions. Key skills include next-work (.claude/skills/next-work/SKILL.md) for surveying projects and proposing the highest-impact next action, handoff (.claude/skills/handoff/SKILL.md) for recording session handoffs and updating README.md and decisions.md, and site-publish (.claude/skills/site-publish/SKILL.md) for launching new sites, verifying DNS, and registering links in memocho-home.

Caveats & Operational Rules

  • Do not stuff every instruction into one giant file: Always loading thousands of lines of instructions wastes context tokens and causes competing rules or buried instructions to be ignored; split baseline rules from on-demand skills.
  • Do not maintain separate diverging instructions per tool: Writing separate rules for Claude, Cursor, and Codex leads to drift when policies change; maintain a single source of truth (AGENTS.md and shared skills) read by all agents.

Related Terms

References

  • Book: ThoughtWorks, "Technology Radar" (Context Engineering & Reusable Agent Playbooks)

Verified: 2026-11-08