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.

referencesCONVENTIONS.md

≈529 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Azure Skills frontmatter conventions

Basic format

Per the agentskills.io spec, required and optional fields:

The frontmatter has the following format.

---
name: skill-name
description: "[ACTION VERB] [UNIQUE_DOMAIN]. [One clarifying sentence]. WHEN: trigger 1, trigger 2, trigger 3."
license: MIT
metadata:
  author: Microsoft
  version: "0.0.0-placeholder"
---

Rules

Skill name must:

  • Has only Lowercase alphanumeric + hyphens
  • Has no consecutive hyphens (--)
  • Not start or end with hyphen -
  • Match parent directory name
  • Has 1-64 characters

Description length must be >= 150 characters and <= 1024 characters. Description must contain trigger phrases ("WHEN:"). Description should avoid having anti-triggers ("DO NOT USE FOR:"), see Anti-trigger rule section below.

The license must be MIT. The author must be "Microsoft". The version must be "0.0.0-placeholder".

There may be additional properties. Leave it up to the author to make sure they are correct.

Use inline double-quoted strings for descriptions. Do NOT use >- folded scalars (incompatible with skills.sh). Do NOT use | literal blocks (preserves newlines). Keep total description under 1024 characters.

Anti-trigger rule

⚠️ "DO NOT USE FOR:" carries context-dependent risk. In multi-skill environments (10+ skills with overlapping domains), anti-trigger clauses introduce the very keywords that cause wrong-skill activation on Claude Sonnet and fast-pattern-matching models (evidence). For small, isolated skill sets (1-5 skills), the risk is low. When in doubt, use positive routing with WHEN: and distinctive quoted phrases.

Exception: DO NOT USE FOR: is REQUIRED when a specialized skill's triggers overlap with a broader skill (e.g., azure-prepare on "deploy to Azure"). Without the negative discriminator, the broader skill captures prompts that should route to the specialized one. Use routing test result to determine if a DO NOT USE FOR: clause is needed.

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.