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
Who's talking about Azure/azure-cli
- NixOS/nixpkgs“Build failure: azure-cli”GitHub · Aug 27, 2025 · 39 reactions
- hashicorp/terraform-provider-azuread“azuread_group_role_management_policy throws 403 permission scope not granted error”GitHub · Jun 11, 2024 · 28 reactions
- hashicorp/terraform-provider-azurerm“[preview] Support for mutual TLS and shared ssl policy in application_gateway”GitHub · Mar 29, 2021 · 25 reactions
- A Hacker News story“Azure CLI converts local accounts to MSFT online accounts on Win11”Hacker News · Jul 16, 2024 · 6 points
- A Hacker News story“Azure CLI takes ~700MB of disk space”Hacker News · Nov 30, 2023 · 3 points
The biggest 5 of 5 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository10 other files it gives its agents.
- common-aaz-custom-code-generationSkill
- common-custom-code-routerSkill
- common-legacy-non-sdk-custom-code-generationSkill
- common-legacy-sdk-backed-custom-code-generationSkill
- openspec-apply-changeSkill
- openspec-archive-changeSkill
- openspec-exploreSkill
- openspec-proposeSkill
- openspec-sync-specsSkill
- openspec-update-changeSkill
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
- Very specific: line 17
Read top-level _help.py for import precedence.
- Very specific: line 19
Read manual/_help.py second and treat overlapping entries as overrides.
- Very specific: line 22
Keep only commands with executable az ...
- Distinctive: line 25
Ask before manual completion.
- Distinctive: line 26
If missing examples exist, ask whether to continue with manual additions.
- Very specific: line 30
Update tests/latest/example_steps.py with step_<name> functions.
- Very specific: line 31
Update tests/latest/test_<module>_scenario.py to call all steps.
- Very specific: line 32
Keep or add coverage hooks: calc_coverage(__file__) and raise_if().
- Distinctive: line 34
Ask before running tests.
- Very specific: line 36
If yes, run azdev test <module> --live --no-exitfirst.
- Distinctive: line 40
If coverage < 80%, warn and recommend adding help examples and corresponding live test steps.
- Distinctive: line 49
Use live test template as the base structure.
≈ “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.
Files
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
- Resolve final help examples.
- Read top-level
_help.pyfor import precedence. - Read
generated/_help.pyfirst. - Read
manual/_help.pysecond and treat overlapping entries as overrides.
- Build command/example inventory.
- Keep only commands with executable
az ...examples. - Record commands with missing examples.
- Ask before manual completion.
- If missing examples exist, ask whether to continue with manual additions.
- Provide the missing command list in the question.
- Generate or update live test files.
- Update
tests/latest/example_steps.pywithstep_<name>functions. - Update
tests/latest/test_<module>_scenario.pyto call all steps. - Keep or add coverage hooks:
calc_coverage(__file__)andraise_if().
- Ask before running tests.
- Prompt user whether to run live tests.
- If yes, run
azdev test <module> --live --no-exitfirst.
- Evaluate coverage.
- Parse
tests/latest/*_coverage.mdfor 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.
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.

