agentleFS
spboyerspboyer/sensei/.github/copilot-instructions.md

sensei

Copilot instructions58 starsChanged 9 months agoMITView on GitHub

Follow AGENTS.md as the canonical contributor guidance for this repository. This file summarizes the highest-impact rules for GitHub Copilot and Copilot Coding Agent. This repository is Sensei, an Agent Skill that improves SKILL.md frontmatter compliance. The root SKILL.md is the runtime skill; README.md is human-facing documentation; references/ contains progressive-disclosure docs; scripts/ contains the TypeScript token/scoring CLI and optional GEPA evaluator. Run the narrowest relevant checks after changes: Use npm run tokens -- count [paths...], npm run tokens -- suggest [paths...],…

The file

Show its rules and text

We split this copilot-instructions.md into the rules it gives an agent

13 rules. About 0 are common, 5 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Follow AGENTS.md as the canonical contributor guidance for this repository.

    line 3
  2. Very specific:

    Keep SKILL.md focused on operational instructions, not README-style documentation.

    line 11
  3. Very specific:

    Put detailed explanations, examples, and templates under references/.

    line 12
  4. Very specific:

    Prefer positive routing with WHEN: / USE FOR: trigger phrases.

    line 22
  5. Very specific:

    Avoid DO NOT USE FOR: in descriptions because it can contaminate skill routing.

    line 23
  6. Distinctive:

    Keep description fields under 1024 characters.

    line 24
  7. Distinctive:

    Use inline double-quoted descriptions, not folded YAML scalars.

    line 25
  8. Very specific:

    Use skill type prefixes consistently: WORKFLOW SKILL, UTILITY SKILL, or ANALYSIS SKILL.

    line 26
  9. Very specific:

    Keep references/*.md near 2000 tokens or less.

    line 31
  10. Distinctive:

    Run the narrowest relevant checks after changes:

    line 38
  11. Very specific:

    Use npm run tokens -- count [paths...], npm run tokens -- suggest [paths...], or npm run tokens -- compare [refs...] when working on token …

    line 46
  12. Distinctive:

    Update docs only when they are directly related to the change.

    line 51
  13. Very specific:

    If adding test framework support, add a template under references/test-templates/ and document it in references/configuration.md.

    line 53

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

Copilot Instructions

Follow AGENTS.md as the canonical contributor guidance for this repository. This file summarizes the highest-impact rules for GitHub Copilot and Copilot Coding Agent.

Project Context

This repository is Sensei, an Agent Skill that improves SKILL.md frontmatter compliance. The root SKILL.md is the runtime skill; README.md is human-facing documentation; references/ contains progressive-disclosure docs; scripts/ contains the TypeScript token/scoring CLI and optional GEPA evaluator.

Skill Authoring Rules

  • Keep SKILL.md focused on operational instructions, not README-style documentation.
  • Put detailed explanations, examples, and templates under references/.
  • Preserve Agent Skills frontmatter format:

    ---
    name: skill-name
    description: "**WORKFLOW SKILL** - What the skill does. WHEN: \"trigger 1\", \"trigger 2\", \"trigger 3\". INVOKES: tools used. FOR SINGLE OPERATIONS: when to bypass."
    ---
  • Prefer positive routing with WHEN: / USE FOR: trigger phrases.
  • Avoid DO NOT USE FOR: in descriptions because it can contaminate skill routing.
  • Keep description fields under 1024 characters.
  • Use inline double-quoted descriptions, not folded YAML scalars.
  • Use skill type prefixes consistently: **WORKFLOW SKILL**, **UTILITY SKILL**, or **ANALYSIS SKILL**.

Token and Scoring Expectations

  • Target SKILL.md at about 500 tokens; hard limit is 5000 tokens.
  • Keep references/*.md near 2000 tokens or less.
  • Target Medium-High or High advisory score:
    • Medium-High: trigger phrases with a concise description.
    • High: Medium-High plus routing clarity such as INVOKES: and FOR SINGLE OPERATIONS:.

Validation Commands

Run the narrowest relevant checks after changes:

npm run tokens -- check [paths...]
npm run tokens -- score .
npm test

Use npm run tokens -- count [paths...], npm run tokens -- suggest [paths...], or npm run tokens -- compare [refs...] when working on token budgets or optimization.

Change Guidelines

  • Make focused changes and avoid unrelated rewrites.
  • Update docs only when they are directly related to the change.
  • Reuse existing patterns in scripts/src/tokens/commands/ before adding new helpers.
  • If adding test framework support, add a template under references/test-templates/ and document it in references/configuration.md.
  • For MCP-aware skills, include tool prerequisites, fallback guidance, and collision checks as described in references/mcp-integration.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.