azd-extension-unit-testing

azd-extension-unit-testing is a skill for Claude Code, Codex from Azure/azure-dev. It costs 115 tokens per session (1,464 once invoked), scanned A, original, MIT.

A guide for writing and reviewing focused Go unit tests for Azure Developer CLI extensions. Unit tests check a small part of a program in isolation, often with mocks instead of real services.

In plain words
What is it for?
Use it for feature tests, regression tests, acceptance-criteria mapping, mock assertions, and coverage of Azure agents, connections, projects, routines, skills, and related tools.
Why use it?
It helps test the intended behaviour and detect regressions without changing production code, adding dependencies, or relying on slow or unpredictable external systems.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit Use it for feature tests, regression tests, acceptance-criteria mapping, mock assertions, and coverage of Azure agents, connections, projects, routines, skills, and related tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/azure/azure-dev/azd-extension-unit-testing
About the project

Azure Developer CLI (azd) is a command-line tool for building, deploying, and operating applications on Azure. Developers use it to move through application workflows such as coding, building, deployment, and monitoring with Azure templates and resources. Its catalogue entries help AI agents work with azd and Azure application projects.

Azure/azure-dev · 573 stars · on GitHub · aka.ms

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Azure/azure-dev --skill azd-extension-unit-testing
Clone the repo
git clone --depth 1 https://github.com/Azure/azure-dev

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for azd-extension-unit-testing

README.md
[![agentmods](https://agentmods.dev/badge/skills/azure/azure-dev/azd-extension-unit-testing/github.svg)](https://agentmods.dev/skills/azure/azure-dev/azd-extension-unit-testing)
Your own site
<a href="https://agentmods.dev/skills/azure/azure-dev/azd-extension-unit-testing"><img src="https://agentmods.dev/badge/skills/azure/azure-dev/azd-extension-unit-testing/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for azd-extension-unit-testing

Your own site · 80×15
<a href="https://agentmods.dev/skills/azure/azure-dev/azd-extension-unit-testing"><img src="https://agentmods.dev/badge/skills/azure/azure-dev/azd-extension-unit-testing.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 115 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,464 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00115 $0.01464
Opus 5.5 $0.00046 $0.00586
Sonnet 5.5 $0.00023 $0.00293
Haiku 4.5 $0.00012 $0.00146

Measured 6d ago against content hash 47549d7bb18e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

azd-extension-unit-testing scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

cli/azd/extensions/skills/azd-extension-unit-testing/SKILL.md · 129 lines

How it starts

The opening of the file, as written. The whole thing — 129 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AZD Extension Unit Testing

Purpose and boundaries

Detect feature regressions through focused, deterministic unit tests. Higher coverage is not a substitute for meaningful assertions.

Work only on the requested feature and extension. Read applicable AGENTS.md and existing tests first. Reuse the module's framework, mocks, and helpers. Do not add dependencies, change CI, migrate skills, or modify production behavior unless separately requested. Report defects exposed by a tests-only task.

Review-only tasks, including PR/code reviews, are static-only: inspect code and supplied evidence without editing files, building, running tests, installing tools, or executing PR code. Execution guidance below applies only to test-authoring tasks and never overrides a reviewer's read-only restrictions.

1. Define the expected behavior

  • Identify the user goal and its requirement source: acceptance criteria, test plan, issue/specification, documented contract, or existing supported behavior.
  • Read the implementation to locate the behavior and test seams, not to derive the expected answer from whatever the implementation currently does.
  • State the relevant Given / When / Then: preconditions, action, result, and any forbidden side effects. Keep this brief; no separate plan file is required.
  • If requirements are clear, proceed. If a material expectation is missing or conflicts with current behavior, ask for clarification instead of inventing it.
  • If the user asks only for a test plan or review, do not implement tests.

Choose cases by impact and the change: success, relevant invalid inputs, boundary conditions, error propagation, and state transitions. Do not generate a full parameter matrix or add tests solely to increase coverage.

2. Keep the test at unit scope

  • Call the relevant production logic in-process. Mock or fake external boundaries such as Azure clients, credentials, the clock, or process execution as needed.
  • Do not mock the function under test or assert only a value configured on a mock.
  • Do not contact Azure, use developer credentials, create resources, replay HTTP recordings, or launch azd/extension binaries.
  • Use synthetic inputs and existing in-memory fixtures. Where file behavior requires real files, use isolated temporary directories and describe that boundary; do not claim this proves the installed CLI works.
  • If the required claim needs a real process or service, report that it belongs to another test level rather than silently expanding this task.

Read the full file on GitHub · 129 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 129 lines · 115 tokens per session scan A 47549d7bb18e

Subscribe to this mod's changes

azd-extension-unit-testing is a skill published in the GitHub repository Azure/azure-dev (573 stars, last pushed today), licensed MIT. It adds 115 tokens to every session and 1,464 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-24.

Related

azd-extension-unit-testing compared with skills from other repositories

azd-extension-unit-testing next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
azd-extension-unit-testingAzure/azure-devSkill573todayMITA115Claude Code, Codex
author-testAzure/azure-sdk-for-netSkill6.1kyesterdayMITA68Claude Code, Codex
golang-testingalexastrum/sklSkill115d agoMITA115Claude Code
angular-testingmanu14357/zskillsSkill164mo agoMITA94Claude Code, Codex
test-writingjnMetaCode/skilletSkill22mo agoMITA43Claude Code, Codex
golang-stretchr-testifyalexastrum/sklSkill115d agoMITA97Claude Code
diagnoseJustineDevs/premortemSkill14mo agoApache-2.0A66Claude Code, Codex