mcpbeat

Dev Setup

azure/dev-setup

Set up the local development environment for APIView Copilot. Use for: dev setup, environment setup, install dependencies, create venv, configure env, permissions, get started, onboarding, new developer, RBAC setup, .env file.

547 tokens
context cost
the whole folder, loaded on every use
1
files
instructions only
0
copies elsewhere
how many repositories repackaged it
136
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/Azure/azure-sdk-tools --skill dev-setup

The instruction itself

8 sections, as written by the author

Development Environment Setup

Procedure

1. Create and activate a virtual environment

# Windows
python -m venv .venv
.venv\Scripts\activate

# Linux/macOS
python -m venv .venv
source .venv/bin/activate

2. Install dependencies

# Runtime + dev + eval dependencies
pip install -r dev_requirements.txt

# Runtime only
pip install -r requirements.txt

3. Create the .env file

Create a .env file in the project root with:

ENVIRONMENT_NAME="staging"

All other settings (Cosmos DB, Search, Key Vault, etc.) are resolved from App Configuration at runtime.

4. Grant Azure RBAC permissions

avc ops grant

This grants your identity the required roles:

  • App Configuration Data Reader on avc-appconfig-staging
  • Search Index Data Reader on Azure AI Search
  • Cosmos DB Contributor on avc-cosmos-staging
  • Key Vault access on avc-vault-staging
  • Cognitive Services OpenAI User on azsdk-engsys-openai
  • Azure AI User on azsdk-engsys-ai

Pass --assignee-id <ID> to grant to a specific user instead of yourself.

5. Verify the setup

# Run unit tests
pytest tests

# Generate a review (needs a test API view file in scratch/apiviews/<lang>/)
avc review generate -l python -t scratch/apiviews/python/test.txt

# Health check the deployed service
avc ops check

Gotchas

  • Always activate the venv before running any commands (avc, pytest, pylint, etc.)
  • avc not found? Use .\avc on Windows PowerShell, or ensure the project root is in your PATH
  • ModuleNotFoundError: prompty — You're running outside the venv. Activate it first.
  • Azure auth errors — Run az login first, then avc ops grant to set up RBAC
  • Staging vs production — The .env defaults to staging. To use production, swap to the production App Config endpoint and set ENVIRONMENT_NAME="production"

How to use it

Copy the folder

Take azure/dev-setup from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.

Install what it needs

The instructions reference pip. Without those the skill loads but fails at the first command.