agent-instructions

Audit and update repository instruction files with YAML frontmatter schema.

1|1|Updated May 3, 2026
One-click install
npx skills add https://github.com/matt-riley/agent-skills --skill agent-instructions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-instructions
Source: https://github.com/matt-riley/agent-skills/tree/main/skills/agent-instructions
Command: npx skills add https://github.com/matt-riley/agent-skills --skill agent-instructions

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps maintain high-quality agent instruction files by capturing non-obvious operational knowledge and ensuring instruction docs stay discoverable, auditable, and aligned with project conventions.

Core Features & Use Cases

  • Audit and identify gaps in AGENTS.md, COPILOT instructions, per-path guides, and routing files.
  • Apply the Discoverability Filter to determine what non-discoverable but high-impact knowledge should be documented.
  • Create or update instruction files for a repository, split oversized guides, and align with tooling and governance patterns.
  • Validate instruction files against the repository state to reduce duplication and maintenance burden.

Quick Start

Audit existing instruction files and create or update a focused per-path instruction file using the Discoverability Filter.

Frequently Asked Questions about agent-instructions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit and update stale agent instruction files in my repository?

Auditing agent instruction files involves scanning AGENTS.md and per-path guides to identify stale, missing, or overly generic content, then updating them to ensure non-obvious operational knowledge is captured and discoverable.

What is the Discoverability Filter for documentation governance?

The Discoverability Filter determines what non-discoverable but high-impact operational knowledge should be documented in instruction files, ensuring guidance remains high-value, actionable, and aligned with project conventions.

How do I validate SKILL.md frontmatter schema and ensure YAML compliance?

Validating SKILL.md frontmatter involves enforcing YAML presence and maintaining a consistent frontmatter schema, ensuring instruction files align with governance patterns and repository state to reduce duplication.

When do I need to create per-path instruction guides for a repository?

Per-path instruction guides are needed when AGENTS.md or instructional templates are missing, oversized, or overly generic, and when learned lessons from past corrections should be codified into actionable documentation.

What's the best way to split oversized agent documentation guides?

Splitting oversized agent documentation guides is best handled by validating instruction files against repository state to reduce duplication and maintenance burden while aligning with tooling and governance patterns.

How do I codify learned lessons from past corrections into agent instructions?

Codifying learned lessons involves applying the Discoverability Filter to capture non-obvious operational knowledge from past corrections, then creating or updating instruction files to ensure this knowledge remains discoverable and auditable.