docs-impact-architect

作者: microsoft

当docs-impact-classifier返回结构性判定,表明文档目录结构需根据PR进行调整时使用此技能。建议…

npx skills add https://github.com/microsoft/apm --skill docs-impact-architect

docs-impact-architect

Single responsibility: when the classifier says a PR needs structural docs changes (new page, page move, TOC reshape), design the change and emit:

  1. A precise TOC delta (added pages, moved pages, retired pages)
  2. New-page outline stubs (slug, title, persona, promise, H2 sections, key examples)
  3. The persona-ramp impact (which ramp gains/loses a stop)

You are NOT the writer (doc-writer owns prose). You are the TOC architect. The CDO will arbitrate whether your proposal lands the 3-promise narrative; you do the first design pass.

When to invoke

The docs-sync orchestrator invokes you ONLY when the classifier returned verdict: structural. For no_change or in_place you don't run.

Inputs

  • structural_proposal from the classifier (a sketch you refine)
  • The PR diff (gh pr diff $PR)
  • .apm/docs-index.yml (full corpus map)
  • The PR description (for author-stated intent)

Step 1: read the corpus map, not the corpus

Load .apm/docs-index.yml entirely. Inspect chapters[], pages[], promises[]. This is your map. You do NOT read the 100+ page corpus unless a specific page is implicated by the classifier's sketch.

Step 2: classify the structural shape

Match the PR's surface change to one of these structural shapes:

ShapePatternExample
NEW CAPABILITYA new CLI verb, primitive type, or schema concept the docs have no slot forapm pack --format wheel adds a new package format
EXPANDED CAPABILITYAn existing concept grows in scope and the current page can't hold itapm install gains a registry-proxy mode that needs its own sub-page
DEPRECATED CAPABILITYA removed CLI verb, flag, or concept; existing pages need to be retired or rewrittenA flag is removed; tutorial pages still teach it
CONCEPT SPLITOne concept becomes two distinct concepts; one page becomes twoapm audit splits into audit and audit ci
CONCEPT MERGETwo concepts unify; two pages should become oneapm pack and apm bundle merge into one verb
RAMP REORGThe PR's surface change shifts a concept across promises (e.g. an enterprise feature becomes consumer-default)Policy enforcement moves from enterprise to consumer default behaviour

The structural shape drives the TOC delta shape.

Step 3: design the TOC delta

For each new page proposed, fill in:

new_page:
  slug: docs/src/content/docs/<persona>/<topic>.md
  title: "<short imperative title>"
  persona: consumer | producer | enterprise | cross
  promise: 1 | 2 | 3 | cross
  parent_chapter: <existing chapter slug>
  h2_sections:
    - "## Why <topic>"        # OPTIONAL -- skip unless concept is genuinely new
    - "## How to <use>"        # REQUIRED -- code first
    - "## Reference"           # OPTIONAL -- flag/option table
    - "## Troubleshooting"     # OPTIONAL -- only if known footguns
  bridges:
    incoming:                  # which existing pages should link TO this
      - {from: <slug>, link_text: <suggested>}
    outgoing:                  # which existing pages should this link FROM
      - {to: <slug>, link_text: <suggested>}
  ramp_impact: >-
    one-paragraph description of how this changes the <persona>
    ramp: which step it slots into, whether it adds a stop or
    replaces an existing one

For each moved/retired page:

moved_page:
  from: <slug>
  to: <slug>
  redirect_rationale: <one-sentence>

retired_page:
  slug: <slug>
  reason: <one-sentence>
  redirect_to: <slug>  # MUST exist; orphaning pages breaks SEO

Step 4: validate against the 3-promise narrative

Apply these hard rules. If any fails, redesign:

  1. Every page belongs to exactly one promise. Cross-cutting pages (integrations, troubleshooting, reference) are explicitly marked promise: cross. If a new page straddles two promises, split it OR park it under cross.
  2. Consumer pages don't pre-teach producer concepts. A consumer page may LINK to producer; it may not embed producer prose.
  3. Producer pages don't pre-teach enterprise concepts. Same rule, one promise down.
  4. No page is orphaned from the TOC. Every new page has a parent_chapter and at least one incoming bridge.
  5. No retired page lacks a redirect_to. Search engines will index the old URL for months; the redirect is the SEO contract.

Step 5: emit the architect report

Return JSON:

{
  "structural_shape": "NEW CAPABILITY" | "EXPANDED CAPABILITY" | "DEPRECATED CAPABILITY" | "CONCEPT SPLIT" | "CONCEPT MERGE" | "RAMP REORG",
  "toc_delta": {
    "new_pages": [...],
    "moved_pages": [...],
    "retired_pages": [...],
    "chapter_changes": [...]
  },
  "promise_validation": {
    "all_pages_single_promise": true | false,
    "no_orphans": true | false,
    "no_unredirected_retires": true | false,
    "concerns": []
  },
  "downstream_in_place_pages": ["..."],
  "rationale": "<2-3 sentence summary of why this structural delta and not alternatives>"
}

downstream_in_place_pages[] is the handoff to the localizer -- after the architect approves the TOC, the localizer plans in-place edits to existing pages that REFERENCE the new structure.

Output contract

Return a SINGLE JSON document matching the schema in Step 5 as the final message of your task. No prose around the JSON.

Anti-patterns

  • Inflating new-page counts to seem thorough. The minimal true delta wins.
  • Skipping the promise-validation step. The CDO will catch it; better to self-catch.
  • Designing a new chapter when an existing chapter has room. Always prefer extending over creating.
  • Forgetting redirect_to on retired pages. SEO debt is the silent corpus killer.

来自 microsoft 的更多技能

oss-growth
microsoft
OSS增长黑客角色
agent-framework-azure-ai-py
microsoft
使用Microsoft Agent Framework Python SDK(agent-framework-azure-ai)构建Azure AI Foundry代理。在创建使用AzureAIAgentsProvider的持久化代理、使用托管工具(代码解释器、文件搜索、网络搜索)、集成MCP服务器、管理对话线程或实现流式响应时使用。涵盖函数工具、结构化输出和多工具代理。
development
airunway-aks-setup
microsoft
在AKS上设置AI Runway——从裸集群到运行模型。涵盖集群验证、控制器安装、GPU评估、提供商设置和首次部署。适用场景:“设置AI Runway”、“接入AKS集群”、“安装AI Runway”、“airunway设置”、“将模型部署到AKS”、“在AKS上进行GPU推理”、“在AKS上配置KAITO”、“在AKS上运行LLM”、“在AKS上使用vLLM”、“在AKS上设置模型服务”、“AI Runway控制器”。
devops
appinsights-instrumentation
microsoft
使用Azure Application Insights对Web应用进行插桩的指南。提供遥测模式、SDK设置和配置参考。适用场景:如何对应用进行插桩、App Insights SDK、遥测模式、什么是App Insights、Application Insights指南、插桩示例、APM最佳实践。
devops
applicationinsights-web-ts
microsoft
使用Application Insights JavaScript SDK(@microsoft/applicationinsights-web)为浏览器/Web应用添加检测。用于真实用户监控(RUM)——页面视图、点击、AJAX/fetch依赖项、异常、自定义事件,以及与后端OpenTelemetry追踪关联的浏览器端GenAI代理追踪。涵盖SDK加载器脚本和npm设置、框架扩展(React、React Native、Angular)、点击分析、遥测初始化器,以及从浏览器发出的代理/工具/模型跨度所遵循的OTel GenAI语义约定。
devops
azure-ai-anomalydetector-java
microsoft
使用适用于 Java 的 Azure AI 异常检测器 SDK 构建异常检测应用程序。在实现单变量/多变量异常检测、时间序列分析或 AI 驱动的监控时使用。
development
azure-ai-language-conversations-py
microsoft
使用azure-ai-language-conversations Python SDK实现对话语言理解(CLU)。当使用ConversationAnalysisClient分析对话意图和实体、构建NLP功能或将语言理解集成到应用程序中时使用。
development
azure-ai-ml-py
microsoft
Azure Machine Learning SDK v2 for Python。用于机器学习工作区、作业、模型、数据集、计算资源和管道。 触发词:“azure-ai-ml”、“MLClient”、“工作区”、“模型注册表”、“训练作业”、“数据集”。
development