# Microsoft Learn CLI (agent skill)

> Microsoft Learn CLI is an agent skill (a SKILL.md file) from MicrosoftDocs/mcp. Use the Microsoft Learn CLI to retrieve current official Microsoft documentation and code samples when Microsoft Learn MCP tools are unavailable. It works with Claude Code, Codex, Cursor, Gemini CLI and GitHub Copilot and has 1,936 GitHub stars across a repository of 2 listed skills.

Use the Microsoft Learn CLI to retrieve current official Microsoft documentation and code samples when Microsoft Learn MCP tools are unavailable. Use for questions about Microsoft technologies, SDKs, APIs, configuration, limits, best practices, tutorials, or Microsoft-specific coding errors that would otherwise benefit from current official documentation. Prefer Microsoft Learn MCP tools when they are available.

## Key facts

| Fact | Value |
|---|---|
| Repository | https://github.com/MicrosoftDocs/mcp |
| Skill path | cli/assets/microsoft-learn-cli/SKILL.md |
| Skill name | microsoft-learn-cli |
| GitHub stars | 1,936 |
| Installs on skills.sh | not listed |
| License | CC-BY-4.0 |
| Skills in repo | 2 |
| Plugin marketplace | microsoft-docs-marketplace |
| Official | no |
| Works with | Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot |
| Category | Docs & writing |
| Last commit | Sep 10, 2026 |

## When it triggers

- Use the Microsoft Learn CLI to retrieve current official Microsoft documentation and code samples when Microsoft Learn MCP tools are unavailable.
- Use for questions about Microsoft technologies, SDKs, APIs, configuration, limits, best practices, tutorials, or Microsoft-specific coding errors that would otherwise benefit from current official documentation.

## Add this skill

### Claude Code

```sh
/plugin marketplace add MicrosoftDocs/mcp
/plugin install microsoft-docs@microsoft-docs-marketplace
```

In the Claude apps, zip the skill folder and upload it under Customize > Skills > + > Upload a skill (code execution must be on).

### ChatGPT / Codex

```sh
git clone --depth 1 https://github.com/MicrosoftDocs/mcp.git
cp -r mcp/cli/assets/microsoft-learn-cli .agents/skills/microsoft-learn-cli   # repo; ~/.agents/skills for all projects
```

### Cursor

```sh
git clone --depth 1 https://github.com/MicrosoftDocs/mcp.git
cp -r mcp/cli/assets/microsoft-learn-cli .cursor/skills/microsoft-learn-cli   # project; ~/.cursor/skills for all projects
```

Sources (checked 2026-10-07): https://code.claude.com/docs/en/skills, https://support.claude.com/en/articles/12512180-using-skills-in-claude, https://learn.chatgpt.com/docs/build-skills, https://cursor.com/docs/context/skills

---

Canonical page: https://appsgit.com/skills/microsoftdocs-microsoft-learn-cli
Source: appsgit (https://appsgit.com), the app store for github. Data from the GitHub API, refreshed nightly.
Machine access: JSON API https://appsgit.com/api/v1/apps (OpenAPI: https://appsgit.com/openapi.json), MCP server https://mcp.appsgit.com/mcp, full index https://appsgit.com/llms-full.txt.
