sensei
Skill11 starsChanged 9 months agoMITView on GitHub
Iteratively improve skill frontmatter compliance using the Ralph loop pattern. USE FOR: run sensei, sensei help, improve skill, fix frontmatter, skill compliance, frontmatter audit, improve triggers, add anti-triggers, batch skill improvement, check skill tokens. DO NOT USE FOR: creating new skills (use skill-authoring), writing skill content, token optimization only (use markdown-token-optimizer), or non-frontmatter changes.
6 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- sacredcodr/claude-skill-senseitheir own version, first seen Nov 1, 2026
- spboyer/senseitheir own version, first seen Oct 29, 2026
- microsoft/GitHub-Copilot-for-Azureedited, first seen Oct 27, 2026
- AngelescuCiprian/claude-skillsedited, first seen Aug 22, 2026
- Shavy72/claude-skill-senseitheir own version, first seen Jul 24, 2026
- Azure/azure-devtheir own version, first seen Mar 26, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- microsoft/GitHub-Copilot-for-Azure★ 26225% same
- AngelescuCiprian/claude-skills★ 042% same
Wrote their own version · 4
- Azure/azure-dev★ 573same name
- spboyer/sensei★ 60same name
- sacredcodr/claude-skill-sensei★ 1same name
- Shavy72/claude-skill-sensei★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository73 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .agents/skills/vercel-composition-patterns/AGENTS.mdAGENTS.md
- .agents/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- .agents/skills/vercel-react-native-skills/AGENTS.mdAGENTS.md
- appinsights-instrumentationSkill
- azure-aigatewaySkill
- azure-aiSkill
- azure-complianceSkill
- azure-cost-optimizationSkill
- azure-deploySkill
- azure-diagnosticsSkill
- azure-kustoSkill
- azure-networkingSkill
- azure-observabilitySkill
- azure-postgresSkill
- azure-prepareSkill
- azure-resource-visualizerSkill
- azure-role-selectorSkill
- azure-storageSkill
- azure-validateSkill
- entra-app-registrationSkill
- file-test-bugSkill
- markdown-token-optimizerSkill
- microsoft-foundrySkill
- skill-authoringSkill
- vercel-composition-patternsSkill
- vercel-react-best-practicesSkill
- vercel-react-native-skillsSkill
- web-design-guidelinesSkill
- appinsights-instrumentationSkill
- azure-aigatewaySkill
- azure-aiSkill
- azure-complianceSkill
- azure-cost-optimizationSkill
- azure-deploySkill
- azure-diagnosticsSkill
- azure-kustoSkill
- azure-networkingSkill
- azure-observabilitySkill
- azure-postgresSkill
- azure-prepareSkill
- azure-resource-visualizerSkill
- azure-role-selectorSkill
- azure-storageSkill
- azure-validateSkill
- entra-app-registrationSkill
- file-test-bugSkill
- markdown-token-optimizerSkill
- microsoft-foundrySkill
- senseiSkill
- skill-authoringSkill
- appinsights-instrumentationSkill
- azure-aigatewaySkill
- azure-aiSkill
- azure-complianceSkill
- azure-cost-optimizationSkill
- azure-deploySkill
- azure-diagnosticsSkill
- azure-kustoSkill
- azure-networkingSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
When user says "sensei help" or asks how to use sensei, show this:
- Distinctive: line 91
SCORE: - Run rule-based compliance check (see SCORING.md)
- Distinctive: line 92
CHECK: - If score >= Medium-High AND tests pass → go to TOKENS step
- Very specific: line 93
SCAFFOLD: - If tests/{skill-name}/ doesn't exist, create from tests/_template/
- Distinctive: line 94
IMPROVE FRONTMATTER: - Add triggers, anti-triggers, compatibility (stay under 1024 chars)
- Very specific: line 95
IMPROVE TESTS: - Update shouldTriggerPrompts and shouldNotTriggerPrompts to match
- Distinctive: line 97
TOKENS: - Check token budget, gather optimization suggestions
- Distinctive: line 99
PROMPT: - Ask user: Commit, Create Issue, or Skip?
- Very specific: line 131
When tests don't exist, scaffold from tests/_template/:
- Very specific: line 149
Only modify plugin/skills/ - these are the Azure skills used by Copilot
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Sensei
"A true master teaches not by telling, but by refining." - The Skill Sensei
Automates skill frontmatter improvement using the Ralph loop pattern - iteratively improving skills until they reach Medium-High compliance with passing tests, then checking token usage and prompting for action.
Help
When user says "sensei help" or asks how to use sensei, show this:
╔══════════════════════════════════════════════════════════════════╗
║ SENSEI - Skill Frontmatter Compliance Improver ║
╠══════════════════════════════════════════════════════════════════╣
║ ║
║ USAGE: ║
║ Run sensei on <skill-name> # Single skill ║
║ Run sensei on <skill-name> --skip-integration # Fast mode ║
║ Run sensei on <skill1>, <skill2>, ... # Multiple skills ║
║ Run sensei on all Low-adherence skills # Batch by score ║
║ Run sensei on all skills # All skills ║
║ ║
║ EXAMPLES: ║
║ Run sensei on appinsights-instrumentation ║
║ Run sensei on azure-security --skip-integration ║
║ Run sensei on azure-security, azure-networking ║
║ Run sensei on all Low-adherence skills ║
║ ║
║ WHAT IT DOES: ║
║ 1. READ - Load skill's SKILL.md, tests, and token count ║
║ 2. SCORE - Check compliance (Low/Medium/Medium-High/High) ║
║ 3. SCAFFOLD- Create tests from template if missing ║
║ 4. IMPROVE - Add USE FOR triggers + DO NOT USE FOR ║
║ 5. TEST - Run tests, fix if needed ║
║ 6. TOKENS - Check token budget, gather suggestions ║
║ 7. SUMMARY - Show before/after with suggestions ║
║ 8. PROMPT - Ask: Commit, Create Issue, or Skip? ║
║ 9. REPEAT - Until Medium-High score + tests pass ║
║ ║
║ TARGET SCORE: Medium-High ║
║ ✓ Description > 150 chars ║
║ ✓ Has "USE FOR:" trigger phrases ║
║ ✓ Has "DO NOT USE FOR:" anti-triggers ║
║ ✓ SKILL.md < 500 tokens (soft limit) ║
║ ║
║ MORE INFO: ║
║ See .github/skills/sensei/README.md for full documentation ║
║ ║
╚══════════════════════════════════════════════════════════════════╝When to Use
- Improving a skill's frontmatter compliance score
- Adding trigger phrases and anti-triggers to skill descriptions
- Batch-improving multiple skills at once
- Auditing and fixing Low-adherence skills
Invocation Modes
Single Skill
Run sensei on azure-deployMultiple Skills
Run sensei on azure-security, azure-networking, azure-observabilityBy Adherence Level
Run sensei on all Low-adherence skillsAll Skills
Run sensei on all skillsThe Ralph Loop
For each skill, execute this loop until score >= Medium-High AND tests pass:
- READ - Load
plugin/skills/{skill-name}/SKILL.md, tests, and token count - SCORE - Run rule-based compliance check (see SCORING.md)
- CHECK - If score >= Medium-High AND tests pass → go to TOKENS step
- SCAFFOLD - If
tests/{skill-name}/doesn't exist, create fromtests/_template/ - IMPROVE FRONTMATTER - Add triggers, anti-triggers, compatibility (stay under 1024 chars)
- IMPROVE TESTS - Update
shouldTriggerPromptsandshouldNotTriggerPromptsto match - VERIFY - Run
cd tests && npm test -- --testPathPattern={skill-name} - TOKENS - Check token budget, gather optimization suggestions
- SUMMARY - Display before/after comparison with unimplemented suggestions
- PROMPT - Ask user: Commit, Create Issue, or Skip?
- REPEAT - Go to step 2 (max 5 iterations per skill)
Scoring Criteria (Quick Reference)
| Score | Requirements |
| Low | Basic description, no explicit triggers, no anti-triggers |
| Medium | Has trigger keywords/phrases, description > 150 chars |
| Medium-High | Has "USE FOR:" triggers AND "DO NOT USE FOR:" anti-triggers |
| High | Triggers + anti-triggers + compatibility field |
Target: Medium-High (triggers + anti-triggers present)
Frontmatter Template
---
name: skill-name
description: |
[1-2 sentence description of what the skill does]
USE FOR: [trigger phrase 1], [trigger phrase 2], [trigger phrase 3]
DO NOT USE FOR: [scenario] (use other-skill), [scenario] (use another-skill)
---IMPORTANT: Always use multi-line YAML format (
|) for descriptions over 200 characters. Single-line descriptions become difficult to read, review, and maintain. See azure-ai, azure-functions for examples.
Keep total description under 1024 characters.
Test Scaffolding
When tests don't exist, scaffold from tests/_template/:
cp -r tests/_template tests/{skill-name}Then update:
SKILL_NAMEconstant in all test filesshouldTriggerPrompts- 5+ prompts matching new frontmatter triggersshouldNotTriggerPrompts- 5+ prompts matching anti-triggers
Commit Messages:
sensei: improve {skill-name} frontmatterConstraints
- Only modify
plugin/skills/- these are the Azure skills used by Copilot .github/skills/contains meta-skills like sensei for developer tooling- Max 5 iterations per skill before moving on
- Description must stay under 1024 characters
- SKILL.md should stay under 500 tokens (soft limit)
- Tests must pass before prompting for action
- User chooses: Commit, Create Issue, or Skip after each skill
Flags
| Flag | Description |
--skip-integration | Skip integration tests for faster iteration. Only runs unit and trigger tests. |
⚠️ Skipping integration tests speeds up the loop but may miss runtime issues. Consider running full tests before final commit.
Reference Documentation
- SCORING.md - Detailed scoring criteria
- LOOP.md - Ralph loop workflow details
- EXAMPLES.md - Before/after examples
- TOKEN-INTEGRATION.md - Token budget integration
Related Skills
- markdown-token-optimizer - Token analysis and optimization
- skill-authoring - Skill writing guidelines
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.

