Index of every page on this site: llms.txt
All skills
microsoft avatar

/sensei

@147c081 official
Run it yourself

Iteratively improve skill frontmatter to achieve good routing test coverage. WHEN: run sensei, sensei help, improve skill routing

Use this Skill: https://skilld.dev/gh/microsoft/github-copilot-for-azure/sensei

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈34 tokens for metadata: the name and description. ≈925 when used: this file. ≈529 more on demand in 1 file.

Description uses 1.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈138 characters, or 1.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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 <skill1>, <skill2>, ...   # Multiple skills     ║
║    Run sensei on all skills                # All skills          ║
║                                                                  ║
║  EXAMPLES:                                                       ║
║    Run sensei on appinsights-instrumentation                     ║
║    Run sensei on azure-ai, azure-compute                         ║
║                                                                  ║
║  WHAT IT DOES:                                                   ║
║    1. READ      - Load skill's SKILL.md and tests                ║
║    2. VERIFY    - Compare skill frontmatter with convention      ║
║    3. SCAFFOLD  - Create tests from frontmatter if missing       ║
║    4. IMPROVE   - Add WHEN: triggers                             ║
║    5. TEST      - Run tests, fix if needed                       ║
║    6. SUMMARY   - Show before/after with suggestions             ║
║    7. PROMPT    - Ask: Commit, Create Issue, or Skip?            ║
║    8. REPEAT    - Until routing tests pass                       ║
╚══════════════════════════════════════════════════════════════════╝

Main Loop

For each skill, execute this loop until the frontmatter aligns with convention, have thorough routing tests AND routing tests pass:

  1. READ - Load plugins/{plugin}/skills/{skill-name}/SKILL.md, and vally eval suites in evals/{skill-name}/*.yaml.
  2. VERIFY - Compare the skill frontmatter with conventions in CONVENTIONS. If the skill's frontmatter violates any written convention, notify the user and propose a fix to align the frontmatter with the convention.
  3. SCAFFOLD - If evals/{skill-name}/ doesn't exist, follow instructions in vally-eval skill to scaffold a set of routing tests. The routing tests test if the skill can be invoked for target user prompts. Generate user prompts that match the target scenario of the skill's description.
  4. IMPROVE - If the skill description doesn't already have WHEN: triggers, add them.
  5. TEST - Follow instructions in vally-eval skill to run the routing tests. If there are failed tests, suggest fixes.
  6. SUMMARY - Display before/after comparison with unimplemented suggestions.
  7. PROMPT - Ask user to commit the fixes or take any alternative actions.
  8. REPEAT - Go to step 2 (max 5 iterations per skill)

Constraints

  • Only modify plugins/{plugin}/skills/ - these are the Azure skills used by Copilot
  • Files in .github/skills/ should be left as is
  • Max 5 iterations per skill before moving on

Related Skills

  • vally-eval - vally eval suite writing guidelines

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning2mo5 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill is designed to help developers standardize and test the frontmatter of other skills. It operates on local files within a specific plugin directory and relies on another skill for testing procedures. The security profile of this skill is safe, as it focuses on documentation compliance and test scaffolding without involving dangerous system operations or external network requests.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

  • Runlayer8mo

    5/6 files flagged

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

Signed by skilld at 147c081. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 4 months ago
metadata
{
  "author": "Microsoft",
  "version": "1.0.6"
}
  • Testing
  • skill-compliance
  • frontmatter
  • token-counting
  • workflow
  • ralph-loop
  • gepa
  • batch-improvement

README badge

README badge for microsoft/github-copilot-for-azure/sensei

Automates iterative improvement of skill frontmatter compliance using the Ralph loop pattern, scoring against the agentskills.io specification and running tests until skills reach Medium-High compliance. Targets Azure skill developers maintaining multiple skills with strict trigger phrase and token budget requirements.

Generated from the current SKILL.md.

What does sensei do?
Sensei automates skill frontmatter improvement using the Ralph loop pattern, iteratively enhancing skills until they reach Medium-High compliance with passing tests, then checking token usage. It validates frontmatter against the agentskills.io specification and can run on single skills, multiple skills, or batch-process by adherence level.
Can sensei run on multiple skills at once?
Yes. You can run sensei on specific skills by name (e.g., 'Run sensei on azure-security, azure-observability'), by adherence level (e.g., 'Run sensei on all Low-adherence skills'), or on all skills in the registry.
What is GEPA mode and when should I use it?
GEPA mode replaces template-based frontmatter improvement with evolutionary optimization, using an LLM to propose and evaluate candidate improvements automatically. Use it with the --gepa flag when you want more aggressive optimization; without it, sensei uses template-based triggers. GEPA does not execute Jest tests but uses trigger definitions as evaluation inputs.
Does sensei modify tests?
Yes. Sensei scaffolds missing tests from a template, then updates shouldTriggerPrompts and shouldNotTriggerPrompts to match the finalized frontmatter. It also runs the test suite to verify changes pass before prompting for commit or issue creation.
What is the target compliance score?
Medium-High. This requires a description with WHEN: trigger phrases (preferred) or USE FOR: triggers, ≤60 words, >150 characters, and no problematic DO NOT USE FOR: clauses unless disambiguation is critical.

Generated from the current SKILL.md. These answers refresh after source changes.