kienbui1995/magic-powers/ado-security-policies
Claude Code and agent skill by kienbui1995/magic-powers
- community
Checking that the SKILL.md file is still in the repository.
Use when configuring Azure DevOps security — security groups and permissions, branch policies, PR policies, audit log review, and org/project-level security governance.
Install
npx vskill@latest install kienbui1995/magic-powers/ado-security-policiesSKILL.md
The same SKILL.md was published earlier as kienbui1995/magic-powers/ado-security-policies.
ADO Security & Policies
When to Use
- Setting up security groups and permission inheritance
- Configuring branch protection policies (required reviewers, builds, etc.)
- Reviewing audit logs for security incidents
- Implementing PR quality policies
- Least-privilege access design for projects
Core Jobs
1. Security Groups & Permissions
Built-in groups (project level):
| Group | Default permissions | |
|---|---|---|
| Contributors | Read/write code, create PRs, run pipelines | |
| Readers | Read-only access | |
| Project Administrators | Full project control | |
| Build Administrators | Manage pipelines and agent pools | |
| Release Managers | Manage release pipelines |
Principle: Use groups, not individuals. Assign permissions to groups, add users to groups.
2. Branch Policies
Configure via UI: Repos → Branches → branch name → Branch policies
Critical policies for protected branches (main/release):
Bypass permissions: Grant "Bypass policies when completing pull requests" ONLY to Release Managers group.
3. PR Policies
Useful policy types:
Minimum number of reviewers— prevents self-mergeRequired reviewer— force specific team review (security team, architects)Work item linking— mandatory traceabilityBuild— CI must pass before mergeComment resolution— all PR comments must be resolved
4. Audit Log Review
Key events to monitor:
Security.ModifyPermission— permission changesGit.RefUpdatePoliciesBypassed— branch policy bypassPipelineRun.AccessSecureFile/PipelineRun.AccessVariableGroup— sensitive resource accessExtension.Installed/Extension.Disabled— marketplace changes
Key Concepts
- Security descriptor — unique identifier for a security group
- Inheritance — child permissions inherit from parent (project → team → user); explicit deny overrides
- Branch policy — server-side enforcement on protected branches; cannot be bypassed without explicit grant
- Bypass policy — privilege allowing specific users/groups to merge without meeting policies; audit carefully
- Audit log — org-level activity log; 90-day retention for basic, longer with streaming to SIEM
Checklist
- [ ] Main/release branches have branch policies enabled?
- [ ] Self-approval disabled (requestors cannot approve own PRs)?
- [ ] CI build required before merge on protected branches?
- [ ] Audit log streaming configured (SIEM or Azure Monitor)?
- [ ] Bypass policy granted to named group (not individuals, not Contributors)?
- [ ] No direct permission assignments to individuals (groups only)?
Key Outputs
- Branch policies configured on all protected branches
- Security groups aligned to least-privilege roles
- Audit log export schedule for compliance
- PR quality policies consistently applied
Output Format
- 🔴 Critical — no branch policies on main (anyone can push directly), bypass policy granted to Contributors, audit log not monitored
- 🟡 Warning — self-approval allowed, no required build on PRs, permissions assigned to individuals not groups
- 🟢 Suggestion — stream audit logs to Azure Monitor, add Required Reviewer policy for security-sensitive paths, enable work item linking for traceability
Anti-Patterns
- Granting bypass policy to broad groups (defeats the purpose of branch policies)
- Setting minimum reviewers to 1 with self-approval allowed (= no real review)
- No audit log monitoring (security incidents go undetected)
- Permission sprawl — too many groups with overlapping permissions
Integration
ado-organization— org-level security settings (AAD, guest access)ado-api-cli— automate security group membership and policy configuration
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ado-security-policies/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kienbui1995/magic-powers/ado-security-policies)