Official agent skill

Redirection

by MicrosoftDocs in MicrosoftDocs/semantic-kernel-docs

How to delete, rename, or move articles on Microsoft Learn while preserving Platform IDs, preventing broken links, and managing redirects.

OfficialMITAuto-check passedAI & LLM Engineering

Install Redirection

skills CLI
$ npx skills add MicrosoftDocs/semantic-kernel-docs --skill redirection -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install MicrosoftDocs/semantic-kernel-docs redirection --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/MicrosoftDocs/semantic-kernel-docs.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/redirection .claude/skills/redirection && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
redirection
GitHub stars
264
Token cost
~1.5k tokens
SKILL.md length
722 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

How to delete, rename, or move articles on Microsoft Learn while preserving Platform IDs, preventing broken links, and managing redirects.

  • Works in 2 steps: Don't change content during file… → Eliminate duplicate content
  • AI & LLM Engineering work in your project
  • SKILL.md covers Purpose, When Redirection Is Required, The Redirection File and Platform ID, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Redirection is an agent skill from MicrosoftDocs/semantic-kernel-docs, published by the product's own GitHub organization. How to delete, rename, or move articles on Microsoft Learn while preserving Platform IDs, preventing broken links, and managing redirects.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering. The repository describes itself as: Semantic Kernel (SK) is a lightweight SDK enabling integration of AI Large Language Models (LLMs) with conventional programming languages. The licence is MIT.

When your agent uses it

  • AI & LLM Engineering work in your project

Example prompts

  • “/redirection”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Don't change content during file operations. The Platform ID relies on
  2. Eliminate duplicate content

What it can do on your machine

Read from SKILL.md and the folder at commit 6997e10. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json, yaml and powershell).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • learn.microsoft.com
    • bing.com
    • search.google.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Redirection loads about 1.5k tokens when it runs. Until then it costs about 38 tokens; SKILL.md has 722 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~38
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from MicrosoftDocs/semantic-kernel-docs at commit 6997e10, republished under its MIT licence (© MicrosoftDocs). 722 words, ~1,494 tokens.

Download SKILL.mdSave it as .claude/skills/redirection/SKILL.md (or your agent's skills folder).
name
redirection
description
How to delete, rename, or move articles on Microsoft Learn while preserving Platform IDs, preventing broken links, and managing redirects.

Skill: Redirection on Microsoft Learn

Purpose

This skill describes how to properly redirect content when articles are deleted, renamed, or moved on Microsoft Learn. Proper redirection prevents broken links, avoids 404 errors, and ensures the Platform ID algorithm correctly associates the new location with the original content.

When Redirection Is Required

Redirection is always required for:

  • Renaming files (not just article titles)
  • Moving a file to a different folder or directory
  • Migrating content to a new repository
  • Merging files

These operations are treated as "remove and replace" by the platform, not as in-place updates.

The Redirection File

Redirects are managed in a JSON file at the repo root, typically named .openpublishing.redirection.json. Each entry maps an old source path to a new target URL.

Entry Format
json
{
  "redirections": [
    {
      "source_path_from_root": "/articles/ai-services/content-safety/concepts/custom-categories-rapid.md",
      "redirect_url": "/azure/ai-services/content-safety/concepts/custom-categories",
      "redirect_document_id": true
    }
  ]
}
Properties
PropertyRequiredDescription
source_path_from_rootYesAbsolute path to the old file in the repo. Must start with /.
redirect_urlYesTarget URL — can be a relative path, a site-relative path on Microsoft Learn, or an external URL.
redirect_document_idNoSet to true to transfer the document ID (and reporting data like page views and rankings) from the old article to the target. Defaults to false if omitted.

Platform ID

The Platform ID is a unique identifier for Learn documents, designed to replace the Document ID system. Unlike Document ID, the Platform ID is automatically generated based on content similarity and URL redirection relationships.

Best Practices for Platform ID Continuity
  1. Don't change content during file operations. The Platform ID relies on a 90% content similarity threshold. If similarity drops below 90%, the platform treats the documents as distinct entities with different IDs. Rename or move first, then make content changes in a separate PR.

  2. Eliminate duplicate content:

    • Same repo: Delete the original and set up redirection in the same PR.
    • Cross-repo migration: Publish in the target repo and create the redirect in a first PR, then delete the old document within 24 hours in a second PR. After 24 hours the Platform ID is finalized.

[!WARNING] Not following redirection policies risks losing historical BI data. The Platform ID is also used by recommendations and search services — changes to the ID can make content inaccessible or degrade search results.

Redirection Workflows

Add the ROBOTS: NOINDEX metadata as the last entry in the article's YAML frontmatter, then republish:

yaml
ROBOTS: NOINDEX

This tells search engines not to index the page while still allowing crawlers to follow links on it to other pages.

Deleting an Article
  1. Ensure you're listed as author in the article's metadata (update if not).
  2. Delete the article file.
  3. Add a redirect entry in .openpublishing.redirection.json pointing to an appropriate replacement page.
  4. Include both the deletion and the redirect in the same PR.
Show full SKILL.md (266 more words)Show less
Renaming a File
  1. Create a copy of the article with the new file name.
  2. Delete the old file.
  3. Add a redirect from the old path to the new path in the redirection file.
  4. Update the TOC entry for the article.
Moving a File

Same process as renaming — create the file in the new location, delete the original, add the redirect, and update the TOC.

Updating Cross-References

Don't rely on redirects alone for internal links. After any file operation, scan for and update cross-references:

powershell
# Find all files linking to the old article
Get-ChildItem -Recurse -Include *.md |
    Select-String '<old-article-name>' |
    Group-Object Path |
    Select-Object Name

Update or remove these cross-links in the same or a follow-up PR.

Post-Merge Checklist

After your PR merges, complete these steps:

StepDetails
Test redirects in stagingVerify the old URL redirects to the correct target before signing off
Update FWLinksCheck the FWLink tool for any links pointing to the old article and update them
Manage inbound linksIdentify high-traffic non-Microsoft inbound links (blogs, forums) and coordinate updates if possible
Remove search cache (rare)Only if content must be removed urgently for legal or severe customer issues — use Bing and Google removal tools
Review old redirectsPeriodically review and clean up redirect entries based on your org's retention policy
Check Platform ID DashboardVerify that file URL changes follow best practices

Relationship with TOC and Breadcrumbs

When you delete, rename, or move an article, you must also update the corresponding TOC entry to reflect the new file path. If the move changes the article's URL structure, verify that the breadcrumb tocHref mappings still apply correctly.

Reference

© MicrosoftDocs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .github/skills/redirection of MicrosoftDocs/semantic-kernel-docs.

Open the folder on GitHubat commit 6997e10

Compare with similar skills

Redirection next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Redirection compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Redirection this skillMicrosoftDocs/semantic-kernel-docs264—~1.5kAutomated safety check: PassMIT
Agent BuildershareAI-lab/learn-claude-code78k6 repos~1.2kAutomated safety check: PassMIT
Add Uint Supportpytorch/pytorch104k2 repos~2.3kAutomated safety check: PassCustom licence
Peft Fine TuningOrchestra-Research/AI-Research-SKILLs13k9 repos~3.1kAutomated safety check: PassMIT
Segment Anything Model GuideOrchestra-Research/AI-Research-SKILLs13k9 repos~3.3kAutomated safety check: PassMIT
1passwordtrpc-group/trpc-agent-go1.8k15 repos~656Automated safety check: PassApache-2.0

Similar skills

  • Agent Builder

    shareAI-lab/learn-claude-code

    Design and build AI agents for any domain. An agent skill from shareAI-lab/learn-claude-code.

    78k GitHub starsUsed in 6 repos~1.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Add Uint Support

    pytorch/pytorch

    Add unsigned integer (uint) type support to PyTorch operators by updating ATDISPATCH macros.

    104k GitHub starsUsed in 2 repos~2.3k tokens
    AI & LLM EngineeringAuto-check passed
  • Peft Fine Tuning

    Orchestra-Research/AI-Research-SKILLs

    Parameter-efficient fine-tuning for LLMs using LoRA, QLoRA, and 25+ methods.

    13k GitHub starsUsed in 9 repos~3.1k tokens
    AI & LLM EngineeringAuto-check passed
  • Segment Anything Model Guide

    Orchestra-Research/AI-Research-SKILLs

    Guide to using Meta's Segment Anything Model for zero-shot image segmentation with point, box or mask prompts, or automatic mask generation.

    13k GitHub starsUsed in 9 repos~3.3k tokens
    AI & LLM EngineeringAuto-check passed
  • 1password

    trpc-group/trpc-agent-go

    Set up and use 1Password CLI (op). An agent skill from trpc-group/trpc-agent-go.

    1.8k GitHub starsUsed in 15 repos~656 tokens
    AI & LLM EngineeringAuto-check passed
  • Chroma Vector Database

    Orchestra-Research/AI-Research-SKILLs

    Shows how to store documents and embeddings in Chroma, query them by similarity with metadata filters, and persist them to disk for RAG and semantic search projects.

    13k GitHub starsUsed in 8 repos~2.3k tokens
    AI & LLM EngineeringAuto-check passed

More from MicrosoftDocs/semantic-kernel-docs

  • Breadcrumbs

    MicrosoftDocs/semantic-kernel-docs

    Official

    How breadcrumbs work on Microsoft Learn: structure, creation, configuration in docfx.json, and best practices for documentation repos.

    264 GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Code Snippets

    MicrosoftDocs/semantic-kernel-docs

    Official

    How to reference code from sample repos in Agent Framework docs pages using :::code directives, snippet tags, zone pivots, and highlight attributes.

    264 GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Cross Repository References

    MicrosoftDocs/semantic-kernel-docs

    Official

    How to configure cross-repository references (CRR) and create API class links for Microsoft Learn docs in this repository.

    264 GitHub stars~1k tokensUpdated today
    Auto-check passed
  • Sample Structure

    MicrosoftDocs/semantic-kernel-docs

    Official

    Conceptual organization of Agent Framework documentation and samples.

    264 GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Toc

    MicrosoftDocs/semantic-kernel-docs

    Official

    How to create, structure, and configure table of contents (TOC) files for Microsoft Learn documentation using toc.yml and docfx.json.

    264 GitHub stars~2.2k tokensUpdated today
    Auto-check passed
  • Per Concept Documentation

    MicrosoftDocs/semantic-kernel-docs

    Official

    Required when reviewing, updating, auditing, or creating any concept documentation page.

    264 GitHub stars~1k tokensUpdated today
    Auto-check passed

Questions about Redirection

What does Redirection do?

How to delete, rename, or move articles on Microsoft Learn while preserving Platform IDs, preventing broken links, and managing redirects. Redirection is an agent skill from MicrosoftDocs/semantic-kernel-docs, published by the product's own GitHub organization. How to delete, rename, or move articles on Microsoft Learn while preserving Platform IDs, preventing broken links, and managing redirects.

When should I use Redirection?

Redirection fits situations like: AI & LLM Engineering work in your project.

How do I install Redirection in Claude Code?

Run `npx skills add MicrosoftDocs/semantic-kernel-docs --skill redirection -a claude-code`. Or copy the skill folder (.github/skills/redirection in MicrosoftDocs/semantic-kernel-docs) into .claude/skills/redirection in your project. Claude Code loads it when a task matches its description.

How do I install Redirection in Codex?

Run `npx skills add MicrosoftDocs/semantic-kernel-docs --skill redirection -a codex`. Or copy the skill folder (.github/skills/redirection in MicrosoftDocs/semantic-kernel-docs) into .agents/skills/redirection in your project. Codex loads it when a task matches its description.

Can I use Redirection in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add MicrosoftDocs/semantic-kernel-docs --skill redirection -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/redirection, .gemini/skills/redirection, .github/skills/redirection and .opencode/skills/redirection in your project.

What does Redirection need to run?

SKILL.md names no scripts, command-line tools or credentials: Redirection is instructions for the agent only.

Does Redirection access the network?

SKILL.md names 3 domains. As links in the text: learn.microsoft.com, bing.com and search.google.com. This is read from the text; nothing was executed.

Is Redirection safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Redirection use?

Redirection is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Redirection use?

About 1.5k tokens (SKILL.md is roughly 6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Redirection?

Skills that share tags, products or a category with Redirection: Agent Builder (shareAI-lab/learn-claude-code, 78k stars), Add Uint Support (pytorch/pytorch, 104k stars), Peft Fine Tuning (Orchestra-Research/AI-Research-SKILLs, 13k stars) and Segment Anything Model Guide (Orchestra-Research/AI-Research-SKILLs, 13k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Redirection?

MicrosoftDocs (a GitHub organization, an official publisher) maintains it in MicrosoftDocs/semantic-kernel-docs, which has 264 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 7, 2026.

Source: MicrosoftDocs/semantic-kernel-docs on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.