agentleFS
Microsoft AzureKnown publisherAzure/azure-cli/.github/skills/common-live-test-from-help/SKILL.md

common-live-test-from-help

Skill4.6k starsChanged 3 months agoMITView on GitHub

Use when creating or updating Azure CLI live tests from module help examples. Resolve generated vs manual help precedence, detect missing examples, scaffold scenario tests, and enforce 80% command-level coverage checks.

Trending

Quiet this year.thin dataabout the whole repository

Dec 2025: 0 mentionsJan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 0 mentionsJun 2026: 0 mentionsJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the Azure/azure-cli repository that our weekly crawl found: only 5 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

The file

We split this skill into the rules it gives an agent

12 rules. About 0 are common, 5 are distinctive, and 7 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.

  • 7

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read top-level _help.py for import precedence.

    line 17
  2. Very specific:

    Read manual/_help.py second and treat overlapping entries as overrides.

    line 19
  3. Very specific:

    Keep only commands with executable az ...

    line 22
  4. Distinctive:

    Ask before manual completion.

    line 25
  5. Distinctive:

    If missing examples exist, ask whether to continue with manual additions.

    line 26
  6. Very specific:

    Update tests/latest/example_steps.py with step_<name> functions.

    line 30
  7. Very specific:

    Update tests/latest/test_<module>_scenario.py to call all steps.

    line 31
  8. Very specific:

    Keep or add coverage hooks: calc_coverage(__file__) and raise_if().

    line 32
  9. Distinctive:

    Ask before running tests.

    line 34
  10. Very specific:

    If yes, run azdev test <module> --live --no-exitfirst.

    line 36
  11. Distinctive:

    If coverage < 80%, warn and recommend adding help examples and corresponding live test steps.

    line 40
  12. Distinctive:

    Use live test template as the base structure.

    line 49

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill 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
SKILL.md

Common Live Test From Help

Generate consistent live test scaffolding from effective command help.

Inputs

  • Module path, e.g. src/azure-cli/azure/cli/command_modules/<module-name>
  • Existing help files (generated/_help.py, manual/_help.py, and top-level _help.py)
  • Existing tests under tests/latest/

Procedure

  1. Resolve final help examples.
  • Read top-level _help.py for import precedence.
  • Read generated/_help.py first.
  • Read manual/_help.py second and treat overlapping entries as overrides.
  1. Build command/example inventory.
  • Keep only commands with executable az ... examples.
  • Record commands with missing examples.
  1. Ask before manual completion.
  • If missing examples exist, ask whether to continue with manual additions.
  • Provide the missing command list in the question.
  1. Generate or update live test files.
  • Update tests/latest/example_steps.py with step_<name> functions.
  • Update tests/latest/test_<module>_scenario.py to call all steps.
  • Keep or add coverage hooks: calc_coverage(__file__) and raise_if().
  1. Ask before running tests.
  • Prompt user whether to run live tests.
  • If yes, run azdev test <module> --live --no-exitfirst.
  1. Evaluate coverage.
  • Parse tests/latest/*_coverage.md for command-level coverage.
  • If coverage < 80%, warn and recommend adding help examples and corresponding live test steps.

Output

  • Effective help mapping (command -> example source: generated/manual)
  • Missing example command list
  • Updated test files
  • Coverage summary and action items

Template

  • Use live test template as the base structure.

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.