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...],…
In this repository4 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .ai-team-templates/copilot-instructions.mdCopilot instructions
- {skill-name}Skill
- senseiSkill
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
- Distinctive: line 3
Follow AGENTS.md as the canonical contributor guidance for this repository.
- Very specific: line 11
Keep SKILL.md focused on operational instructions, not README-style documentation.
- Very specific: line 12
Put detailed explanations, examples, and templates under references/.
- Very specific: line 22
Prefer positive routing with WHEN: / USE FOR: trigger phrases.
- Very specific: line 23
Avoid DO NOT USE FOR: in descriptions because it can contaminate skill routing.
- Distinctive: line 24
Keep description fields under 1024 characters.
- Distinctive: line 25
Use inline double-quoted descriptions, not folded YAML scalars.
- Very specific: line 26
Use skill type prefixes consistently: WORKFLOW SKILL, UTILITY SKILL, or ANALYSIS SKILL.
- Very specific: line 31
Keep references/*.md near 2000 tokens or less.
- Distinctive: line 38
Run the narrowest relevant checks after changes:
- Very specific: line 46
Use npm run tokens -- count [paths...], npm run tokens -- suggest [paths...], or npm run tokens -- compare [refs...] when working on token …
- Distinctive: line 51
Update docs only when they are directly related to the change.
- Very specific: line 53
If adding test framework support, add a template under references/test-templates/ and document it in references/configuration.md.
≈ “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.
Files
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.mdfocused 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.mdat about 500 tokens; hard limit is 5000 tokens. - Keep
references/*.mdnear 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:andFOR SINGLE OPERATIONS:.
Validation Commands
Run the narrowest relevant checks after changes:
npm run tokens -- check [paths...]
npm run tokens -- score .
npm testUse 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 inreferences/configuration.md. - For MCP-aware skills, include tool prerequisites, fallback guidance, and collision checks as described in
references/mcp-integration.md.
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
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.

