Skip to content

Add Learn CLI fallback to all skills#123

Merged
TianqiZhang merged 2 commits intoMicrosoftDocs:mainfrom
TianqiZhang:skills/add-cli-alternative
Mar 13, 2026
Merged

Add Learn CLI fallback to all skills#123
TianqiZhang merged 2 commits intoMicrosoftDocs:mainfrom
TianqiZhang:skills/add-cli-alternative

Conversation

@TianqiZhang
Copy link
Collaborator

Summary

  • Adds a "CLI Alternative" section to all 3 skills (microsoft-docs, microsoft-code-reference, microsoft-skill-creator)
  • Maps each MCP tool to its mslearn CLI equivalent so agents can fall back to the CLI via Bash when the Learn MCP server is unavailable
  • Shows both npx @microsoft/learn-cli (no install) and npm install -g (global install) usage

Test plan

  • Verify each skill's CLI section renders correctly in markdown
  • Confirm MCP tool → CLI command mappings are accurate
  • Check that the skill-creator instructs generated skills to include CLI fallback

🤖 Generated with Claude Code

Copilot AI review requested due to automatic review settings March 13, 2026 01:29
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a "CLI Alternative" section to all three skills (microsoft-docs, microsoft-code-reference, microsoft-skill-creator) so that agents can fall back to the mslearn CLI via Bash when the Learn MCP server is unavailable. Each section shows npx and global install usage, and maps MCP tools to their CLI equivalents.

Changes:

  • Added CLI fallback documentation with MCP tool → CLI command mapping tables to all three SKILL.md files
  • Included additional CLI option hints (--section, --max-chars, --json) in relevant skills
  • Instructed the skill-creator to propagate CLI fallback tables into generated skills

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
skills/microsoft-docs/SKILL.md Adds CLI Alternative section mapping search and fetch tools
skills/microsoft-code-reference/SKILL.md Adds CLI Alternative section mapping all three tools, plus --json hint
skills/microsoft-skill-creator/SKILL.md Adds CLI Alternative section and instruction for generated skills to include it

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

TianqiZhang and others added 2 commits March 13, 2026 09:42
Add CLI fallback sections to microsoft-docs, microsoft-code-reference,
and microsoft-skill-creator skills so agents can use the mslearn CLI
via Bash when the Learn MCP server is not available. Each section maps
MCP tools to their CLI equivalents and shows both npx and global install
usage.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…lates

- Update compatibility frontmatter in all 3 skills to reflect CLI fallback
- Move "Why Use This" above "CLI Alternative" in microsoft-docs skill
- Add CLI Alternative section to the example generated skill in skill-creator
- Add CLI mapping table to the top of skill-templates.md so generated
  skills can reference CLI equivalents without duplicating in every template

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a "CLI Alternative" section to all three skills (microsoft-docs, microsoft-code-reference, microsoft-skill-creator) and the skill templates reference, documenting how agents can fall back to the mslearn CLI when the Learn MCP server is unavailable. It also softens the compatibility frontmatter from "Requires" to "Works best with."

Changes:

  • Updated compatibility frontmatter in all three SKILL.md files to indicate CLI fallback support
  • Added CLI Alternative sections with MCP tool → CLI command mapping tables and usage examples to each skill
  • Updated the skill-creator's template reference and example generated skill to include the CLI fallback table

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
skills/microsoft-docs/SKILL.md Softened compatibility, added CLI fallback section with search and fetch mappings
skills/microsoft-code-reference/SKILL.md Softened compatibility, added CLI fallback section with all three command mappings
skills/microsoft-skill-creator/SKILL.md Softened compatibility, added CLI fallback as a subsection of tools and in the example generated skill
skills/microsoft-skill-creator/references/skill-templates.md Added CLI fallback mapping table for use in generated skill templates

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TianqiZhang TianqiZhang merged commit e670723 into MicrosoftDocs:main Mar 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants