# 安装 entra-agent-id

- 类型: Skill 技能
- 说明: 为智能体快速配置 Microsoft Entra 身份蓝图、实例身份与 OAuth 令牌交换。
- 仓库: https://github.com/microsoft/GitHub-Copilot-for-Azure
- ⚠ 安全: 该技能材料显示其为开源的提示型技能，本身未声明内置密钥、远程端点或本地执行能力，整体风险较低。但其面向 Microsoft Graph 上的身份与权限配置，若按指引实际操作，可能涉及高权限目录对象与 OAuth 配置变更，需谨慎核验最小权限与官方文档。

## 方式一 · 一键代装（复制提示词让 AI 代劳）

### Claude Code
```
请帮我安装 askskill 上的 "entra-agent-id" 技能：
1. 下载 https://raw.githubusercontent.com/microsoft/GitHub-Copilot-for-Azure/main/plugin/skills/entra-agent-id/SKILL.md
2. 保存为 ~/.claude/skills/entra-agent-id/SKILL.md
3. 装好后重载技能，告诉我可以用了
```

### Codex
```
请帮我安装 askskill 上的 "entra-agent-id" 技能：
1. 下载 https://raw.githubusercontent.com/microsoft/GitHub-Copilot-for-Azure/main/plugin/skills/entra-agent-id/SKILL.md
2. 保存为 ~/.codex/skills/entra-agent-id/SKILL.md
3. 装好后重载技能，告诉我可以用了
```

### Cursor
```
请帮我安装 askskill 上的 "entra-agent-id" 技能：
1. 下载 https://raw.githubusercontent.com/microsoft/GitHub-Copilot-for-Azure/main/plugin/skills/entra-agent-id/SKILL.md
2. 保存为 ~/.cursor/skills/entra-agent-id/SKILL.md
3. 装好后重载技能，告诉我可以用了
```

## 方式二 · 命令行安装（原生命令与配置）

### Claude Code
```bash
mkdir -p '~/.claude/skills/entra-agent-id' && curl -fsSL 'https://raw.githubusercontent.com/microsoft/GitHub-Copilot-for-Azure/main/plugin/skills/entra-agent-id/SKILL.md' -o '~/.claude/skills/entra-agent-id/SKILL.md'
```

### Codex
```bash
mkdir -p '~/.codex/skills/entra-agent-id' && curl -fsSL 'https://raw.githubusercontent.com/microsoft/GitHub-Copilot-for-Azure/main/plugin/skills/entra-agent-id/SKILL.md' -o '~/.codex/skills/entra-agent-id/SKILL.md'
```

### Cursor
```bash
mkdir -p '~/.cursor/skills/entra-agent-id' && curl -fsSL 'https://raw.githubusercontent.com/microsoft/GitHub-Copilot-for-Azure/main/plugin/skills/entra-agent-id/SKILL.md' -o '~/.cursor/skills/entra-agent-id/SKILL.md'
```
