Skip to content

Instruction File Standards #1264

Description

@ashleyshaw

Overview

Create docs/INSTRUCTIONS_STANDARDS.md — documentation standards for portable, reusable instruction files for agents, Copilot, and teams.

Research & Content Creation

Planning Reference:

Research Prompt:

Document instruction file standards for LightSpeed. Research and create:

  1. Instruction file purpose — Portable, reusable guidance for Copilot, agents, teams
  2. File format — Markdown + YAML frontmatter specification
  3. Folder structureinstructions/{scope}.instructions.md pattern
  4. Frontmatter — Required vs. optional fields, NO references field constraint (use inline links)
  5. Mandatory sections: Role declaration, Overview, General Rules, Detailed Guidance, Examples, Validation
  6. Best practices — Clarity, conciseness, actionability
  7. Real examples — Reference existing instruction files from .github/instructions/ and instructions/
  8. Deprecation & migration — How to update/retire old instructions

Mermaid diagrams (2-3 required):

  • Instruction hierarchy: global → repo-specific → agent-specific
  • Instruction lifecycle: creation → review → publication → deprecation

Key constraint: Document that references frontmatter field is removed; use inline links instead.

Definition of Ready

  • Planning reviewed
  • Real instruction file examples identified from repo
  • Constraint understood: NO references field

Definition of Done

Files & References

File: docs/INSTRUCTIONS_STANDARDS.md
Epic: #1261
PR: #1251
Plan: PLAN-EXPANDED.md

Metadata

Metadata

Assignees

Labels

No labels
No labels

Fields

Priority

None yet

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions