azure-developer-cli
用于“Azure 开发 命令行”的工程工作流。适用于云基础设施与 DevOps、命令行与系统排障相关的代码开发、测试、调试、集成与维护任务。
Skill by yhdxx
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/yhdxx-azure-developer-cli
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, cloud
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/azure-developer-cli
What's inside
- Skill name
azure-developer-cli- Description
- 用于“Azure 开发 命令行”的工程工作流。适用于云基础设施与 DevOps、命令行与系统排障相关的代码开发、测试、调试、集成与维护任务。
- License
- MIT
- Instructions
- 133 lines in SKILL.md · view on GitHub
Files (6)
- SKILL.md
- azure.yaml · examples/
- iac-and-environments.md · references/
- official-docs.md · references/
- project-structure.md · references/
- security-cicd-operations.md · references/
SKILL.md (first lines)
## 中文摘要
用于“Azure 开发 命令行”的工程工作流。适用于云基础设施与 DevOps、命令行与系统排障相关的代码开发、测试、调试、集成与维护任务。
# Azure Developer CLI best practices
Use this skill to produce maintainable, secure, environment-aware `azd` projects. Prefer repository conventions when they are already coherent, and make the smallest complete change that improves the project.
## Start with repository discovery
Before editing:
1. Find `azure.yaml`, the configured `infra.path`, source projects, deployment scripts, `.gitignore`, and pipeline definitions.
2. Read `azure.yaml` before inferring services or the IaC provider.
3. Identify whether the task is to create, migrate, review, deploy, or troubleshoot.
4. Identify the active environment only when an environment-specific operation is required.
5. Read the relevant reference:
- Repository layout or `azure.yaml`: [references/project-structure.md](references/project-structure.md)
- Bicep, Terraform, parameters, outputs, or environments: [references/iac-and-environments.md](references/iac-and-environments.md)
- Secrets, hooks, CI/CD, deployment, or troubleshooting: [references/security-cicd-operations.md](references/security-cicd-operations.md)
- Product details that may have changed: [references/official-docs.md](references/official-docs.md)
Do not assume the default `infra` path, the default Bicep provider, or a single service when `azure.yaml` says otherwise.
## Apply safety guardrails
- Never commit `.azure`, environment `.env` files, credentials, deployment outputs containing secrets, local Terraform state, or generated deployment artifacts.
- Never put literal secrets in `azure.yaml`, IaC parameter files, hooks, source control, command arguments that will be logged, or IaC outputs.
- Prefer managed identities and RBAC. Use Key Vault references and `azd env set-secret` when a secret is unavoidable.
- Before a command that can create, modify, or delete Azure resources, confirm the target environment, subscription, tenant, region, and expected scope.
- Treat an explicit user request to deploy, provision, destroy, or configure a pipeline as approval for that named action. Otherwise, ask before running `azd up`, `azd provision`, `azd deploy`, `azd down`, or `azd pipeline config`.
- Do not replace Bicep with Terraform, Terraform with Bicep, or an established hosting service unless the user requests that architectural change.
- Preserve resources and state owned outside the current `azd` project.
## Use these defaults
| Concern | Preferred default |
| --- | --- |
| Project manifest | One `azure.yaml` at the repository root |
| Application code | `src/<service-name>` per independently deployable service |
| Infrastructure | `infra` with a thin entry point and reusable modules |
| IaC provider | Bicep unless the repository or user chooses Terraform |
| Deployment environments | Separate named environments for dev, test, staging, and production |
| Local AZD state | `.azure/<environment-name>` and excluded from source control |
| Shared environment state | AZD remote environments backed by Azure Blob Storage |
| Secrets | Managed identity/RBAC first, then Key Vault references |
| Automation scripts | Short, idempotent scripts under `scripts/azd` |
| CI authentication | Workload identity federation/OIDC where supported |
| Routine development | `azd up` for simple workflows; separate phases for controlled workflows |
## Implementation workflow
### 1. Model the application
- Define one `services` entry for each independently deployable component.
- Keep service keys stable because they participate in resource discovery and deployment.
- Map each service to its actual `project`, `language`, and `host`.
- Keep shared infrastructure in IaC rather than inventing a fake deployable service.
- Declare dependencies with supported `azure.yaml` fields instead of relying on file order.
### 2. Model infrastructure
- Keep `main.bicep` or `main.tf` as the orchestration entry point.
- Split reusable or independently understandable infrastructure into modules.
- Parameterize environment-specific values; do not fork the IaC tree per environment.
- Output only stable, nonsecret values required by deployment or application configuration.
- Use deterministic naming and consistent tags that include the project and environment.
- Add role assignments to identities rather than distributing service keys.
- Use infrastructure layers only when separate scopes or lifecycle dependencies justify them.
### 3. Model environments
- Use predictable names such as `<project>-dev` for shared environments and `<alias>-dev` for personal environments.
- Use `azd env set`, `azd env unset`, and `azd env set-secret` rather than editing `.env` directly.
- Use `-e` or `--environment` in scripts and automation so the target is explicit.
- Use `azd env refresh` to synchronize deployment outputs after another actor changes an environment.
- Configure AZD remote state when a team shares environment state.
### 4. Add hooks only for lifecycle gaps
- Prefer declarative IaC and native service configuration over hooks.
- Use root hooks for project-wide behavior and service hooks for service-specific behavior.
- Keep nontrivial hook logic in versioned scripts under `scripts/azd`.
- Set `shell` explicitly. Provide `windows` and `posix` variants when necessary.
- Make hooks idempotent, noninteractive in CI, and fail on errors unless failure is intentionally nonblocking.
- Test a hook independently with `azd hooks run <hook-name>`.
### 5. Build CI/CD deliberately
- Keep the pipeline definition with the template and review generated changes from `azd pipeline config`.
- Use short-lived federated credentials where the provider supports them.
- Run tests and IaC validation before provisioning.
- Use explicit environments and `--no-prompt` in automation.
- Add protected production environments and approval gates.
- For Terraform, configure protected remote state before pipeline setup and account for current AZD authentication limitations.
## Validate before finishing
Run only checks applicable to the repository:
```text
Application: existing formatter, linter, type-check, build, and tests
Bicep: az bicep build --file infra/main.bicep
Terraform: terraform fmt -check -recursive
terraform init -backend=false
terraform validate
AZD hooks: azd hooks run <hook-name>
Packaging: azd package
```
For a Bicep what-if or Terraform plan, choose the correct deployment scope and environment. These checks can authenticate to Azure or read remote state, so follow the safety guardrails.
Verify that:
- `azure.yaml` paths exist and service settings match the source projects.
- The IaC entry point and provider agree with `azure.yaml`.
- Required deployment outputs match the variables consumed by services, hooks, and pipelines.
- `.gitignore` excludes `.azure`, secrets, local state, and generated artifacts.
- No secret appears in tracked content or command output.
- Documentation explains prerequisites, environment creation, deployment, verification, and cleanup.From yhdxx/NSS-Code, MIT.
More from yhdxx/NSS-Code
- 0.543score
acquire-codebase-knowledge
yhdxx
用于“获取 代码库 知识”的工程工作流。适用于代码库理解与工程规划相关的代码开发、测试、调试、集成与维护任务。
SkillBFreshness: B★ 1Claude Code +9 - 0.541score
azure-architecture-autopilot
yhdxx
用于“Azure 架构 autopilot”的工程工作流。适用于云基础设施与 DevOps、代码库理解与工程规划相关的代码开发、测试、调试、集成与维护任务。
SkillBFreshness: B★ 1Claude Code +9 - 0.541score
azure-deployment-preflight
yhdxx
用于“Azure 部署 preflight”的工程工作流。适用于云基础设施与 DevOps、后端语言与框架相关的代码开发、测试、调试、集成与维护任务。
SkillBFreshness: B★ 1Claude Code +9 - 0.538score
aspire
yhdxx
用于“Aspire”的工程工作流。适用于云基础设施与 DevOps相关的代码开发、测试、调试、集成与维护任务。
SkillBFreshness: B★ 1Claude Code +9 - 0.538score
audit-integrity
yhdxx
用于“审计 完整性”的工程工作流。适用于安全审计相关的代码开发、测试、调试、集成与维护任务。
SkillBFreshness: B★ 1Claude Code +9 - 0.536score
aws-cloudwatch-investigation
yhdxx
用于“AWS CloudWatch 调查”的工程工作流。适用于云基础设施与 DevOps、性能与可观测性相关的代码开发、测试、调试、集成与维护任务。
SkillBFreshness: B★ 1Claude Code +9 - 0.536score
arch-linux-triage
yhdxx
用于“Arch Linux linux 故障分诊”的工程工作流。适用于命令行与系统排障相关的代码开发、测试、调试、集成与维护任务。
SkillBFreshness: B★ 1Claude Code +9 - 0.536score
aspnet-minimal-api-openapi
yhdxx
用于“ASP.NET 最小 API API OpenAPI”的工程工作流。适用于通用代码开发相关的代码开发、测试、调试、集成与维护任务。
SkillBFreshness: B★ 1Claude Code +9 - 0.536score
aws-cdk-python-setup
yhdxx
用于“AWS cdk Python setup”的工程工作流。适用于云基础设施与 DevOps相关的代码开发、测试、调试、集成与维护任务。
SkillBFreshness: B★ 1Claude Code +9 - 0.536score
aws-resource-health-diagnose
yhdxx
用于“AWS 资源 健康诊断 诊断”的工程工作流。适用于云基础设施与 DevOps相关的代码开发、测试、调试、集成与维护任务。
SkillBFreshness: B★ 1Claude Code +9 - 0.536score
aws-well-architected-review
yhdxx
用于“AWS 最佳实践 架构评估 审查”的工程工作流。适用于云基础设施与 DevOps相关的代码开发、测试、调试、集成与维护任务。
SkillBFreshness: B★ 1Claude Code +9 - 0.536score
azure-resource-health-diagnose
yhdxx
用于“Azure 资源 健康诊断 诊断”的工程工作流。适用于云基础设施与 DevOps相关的代码开发、测试、调试、集成与维护任务。
SkillBFreshness: B★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Aug 7, 2026 (2 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/yhdxx/NSS-Code
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from yhdxx
- 0.543score
acquire-codebase-knowledge
yhdxx
用于“获取 代码库 知识”的工程工作流。适用于代码库理解与工程规划相关的代码开发、测试、调试、集成与维护任务。
SkillBFreshness: B★ 1Claude Code +9 - 0.541score
azure-architecture-autopilot
yhdxx
用于“Azure 架构 autopilot”的工程工作流。适用于云基础设施与 DevOps、代码库理解与工程规划相关的代码开发、测试、调试、集成与维护任务。
SkillBFreshness: B★ 1Claude Code +9 - 0.541score
azure-deployment-preflight
yhdxx
用于“Azure 部署 preflight”的工程工作流。适用于云基础设施与 DevOps、后端语言与框架相关的代码开发、测试、调试、集成与维护任务。
SkillBFreshness: B★ 1Claude Code +9 - 0.538score
audit-integrity
yhdxx
用于“审计 完整性”的工程工作流。适用于安全审计相关的代码开发、测试、调试、集成与维护任务。
SkillBFreshness: B★ 1Claude Code +9 - 0.538score
aspire
yhdxx
用于“Aspire”的工程工作流。适用于云基础设施与 DevOps相关的代码开发、测试、调试、集成与维护任务。
SkillBFreshness: B★ 1Claude Code +9 - 0.536score
arch-linux-triage
yhdxx
用于“Arch Linux linux 故障分诊”的工程工作流。适用于命令行与系统排障相关的代码开发、测试、调试、集成与维护任务。
SkillBFreshness: B★ 1Claude Code +9
Cite this page
azure-developer-cli skill. Agent Mart. https://agentmart.dev/skills/yhdxx-azure-developer-cli (last updated 2026-10-24)