Skip to the content.

FastMediaSorter v2 Agent Protocol

This file imports the active repo rules, skills, and GitHub agent definitions for Codex-compatible agents.

1. Source Of Truth

When files disagree, prefer the stricter rule. For agent-specific execution, AGENTS.md imports CLAUDE.md first, then .github/copilot-instructions.md, then the matching prompt/agent file.

2. Communication

3. Core Project Rules

4. Research Order

  1. dev/PROJECT_OPERATIONS_INDEX.md.
  2. For Sxxxx tasks: pwsh -NoProfile -File scripts/spec_catalog/select.ps1 -Id Sxxxx -Format json.
  3. For Kotlin class/file lookup: dev/CATALOG/scripts/query.ps1 before global grep.
  4. Domain docs as needed:
    • Architecture: docs/ARCHITECTURE.md.
    • Build/scripts/flavors: docs/DEV_OPS.md.
    • Dependencies/protocols: docs/TECH_STACK.md and dev/TECH_REQUIREMENTS.md.
    • Network: dev/NETWORK_SPECS.md.
    • Non-standard flavors: dev/FLAVOR_DEVELOPMENT_RULES.md.
  5. Implementation files.

5. Mandatory Skill Routing

Load the matching .github/prompts/*.prompt.md before doing the task:

Do not handle these trigger classes ad hoc when a matching prompt exists.

6. Imported Prompt Skills

Prompt files are imported from .github/prompts/:

7. Imported Agent Profiles

Agent profiles are imported from .github/agents/:

Use the narrowest fitting agent profile.

8. Workflow

9. PowerShell Efficiency

Every pwsh invocation is a fresh process - shell state never persists. Cold start on Windows is 200..500 ms; with 100+ calls per turn, startup overhead dominates real work. Rules below are mandatory for all skills, agents, and ad-hoc shell calls.

Full reference: CLAUDE.md → “PowerShell Efficiency” section.

10. Validation

Use the validation ladder from CLAUDE.md:

Record expected vs actual for structural checks.