home / skills / ntaksh42 / agents / azure-artifacts-manager

azure-artifacts-manager skill

/.claude/skills/azure-artifacts-manager

This skill helps you manage Azure Artifacts feeds, publish packages, and control access across npm, NuGet, and universal packages.

npx playbooks add skill ntaksh42/agents --skill azure-artifacts-manager

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
1.5 KB
---
name: azure-artifacts-manager
description: Manage Azure Artifacts including package feeds, versions, and dependencies. Use when publishing or managing artifact packages.
---

# Azure Artifacts Manager Skill

Azure Artifactsでパッケージを管理するスキルです。

## 主な機能

- **Feedの作成**: npm、NuGet、Maven、Python
- **パッケージ公開**: ビルド成果物の公開
- **パッケージ管理**: バージョン管理
- **アクセス制御**: 権限設定

## Feed作成

```bash
# npm Feed作成
az artifacts feed create \
  --name "my-npm-feed" \
  --feed-type npm

# NuGet Feed
az artifacts feed create \
  --name "my-nuget-feed" \
  --feed-type nuget

# Universal Packages
az artifacts feed create \
  --name "my-universal-feed" \
  --feed-type universal
```

## パッケージ公開

### npm

```yaml
steps:
  - task: Npm@1
    inputs:
      command: 'publish'
      publishRegistry: 'useFeed'
      publishFeed: 'my-npm-feed'
```

### NuGet

```yaml
steps:
  - task: NuGetCommand@2
    inputs:
      command: 'push'
      packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg'
      nuGetFeedType: 'internal'
      publishVstsFeed: 'my-nuget-feed'
```

### Universal Packages

```bash
az artifacts universal publish \
  --organization https://dev.azure.com/myorg \
  --feed my-universal-feed \
  --name my-package \
  --version 1.0.0 \
  --path ./dist
```

## .npmrc設定

```ini
registry=https://pkgs.dev.azure.com/myorg/_packaging/my-npm-feed/npm/registry/
always-auth=true
```

## バージョン情報
- Version: 1.0.0

Overview

This skill manages Azure Artifacts feeds, packages, versions, and access control to streamline publishing and consumption of npm, NuGet, Maven, Python, and universal packages. It is designed to automate feed creation, package publishing, version management, and permission configuration within Azure DevOps. Use it to centralize artifact distribution and maintain consistent package lifecycles across projects.

How this skill works

The skill interacts with Azure Artifacts via the Azure CLI and Azure DevOps pipeline tasks to create feeds, publish packages, and manage versions. It configures registries (for example .npmrc), runs publish or push steps in pipelines, and can publish universal packages using the az artifacts commands. Access control is handled by configuring feed permissions and feed types appropriate to package ecosystems.

When to use it

  • Setting up a new feed for npm, NuGet, Maven, Python, or universal packages
  • Automating package publishing from CI/CD pipelines
  • Controlling package versions and cleanup policies across teams
  • Configuring registry credentials and .npmrc or CI task settings
  • Managing feed access and permissions for project collaborators

Best practices

  • Create separate feeds per lifecycle or scope (dev, staging, prod) to reduce accidental consumption
  • Use CI tasks for publish steps (Npm@1, NuGetCommand@2) and store credentials in pipeline variables or service connections
  • Set always-auth and correct registry URL in .npmrc to ensure authenticated publishes
  • Apply least-privilege permissions on feeds and audit access regularly
  • Tag and version packages semantically; automate retention/cleanup for old versions

Example use cases

  • Create an npm feed and configure .npmrc for developers to publish and install private packages
  • Publish build artifacts as NuGet packages from a pipeline using NuGetCommand@2 push
  • Distribute CLI binaries or build outputs as Universal Packages with az artifacts universal publish
  • Establish separate feeds for internal and external consumers and manage access policies
  • Automate release pipelines to publish versioned packages and update downstream projects

FAQ

Which package types are supported?

npm, NuGet, Maven, Python, and Universal Packages are supported.

How do I publish from CI?

Use pipeline tasks like Npm@1 or NuGetCommand@2, or call az artifacts universal publish in scripts with proper service connections and credentials.