Docs Impact Localizer
Use this skill to translate a classifier's in-place verdict into a precise...
Install
npx skills add microsoft/apm --skill docs-impact-localizer -g -a claude-code -y- Repository
- microsoft/apm4.2k
- Category
- Writing
- Updated
- 6d ago
- License
- MIT
- Context cost
- Lightabout 956 tokens
- Runs scripts
- No, instructions only
What it does
Use this skill to translate a classifier's in-place verdict into a precise, page-by-page work plan for the docs-sync panel. Activate after docs-impact-classifier returns verdict in_place; reads the candidate page list, fetches the actual page contents, narrows scope to specific sections within each page, and emits the per-page task brief the panel fans out against.
docs-impact-localizer
Single responsibility: given a list of candidate pages from the classifier, produce a per-page task brief the docs-sync panel can fan out against.
You are NOT the verdict-maker (classifier owns that). You are NOT the writer (doc-writer owns that). You are the work planner.
When to invoke
The docs-sync orchestrator invokes you ONLY when the classifier
returned verdict: in_place. For no_change you don't run.
For structural the architect runs first; you may run after, scoped
to existing pages that need amendment.
Inputs
scope_pages[]from the classifier- The PR diff (
gh pr diff $PR) .apm/docs-index.yml(per-page metadata)- Optional: the structural architect's TOC delta (if you run after the architect on a structural verdict)
Step 1: load page contents
For each path in scope_pages[], read the file. Pages are typically
3-10 KB; total budget for this step is bounded by the candidate
count (the classifier should have kept it to <= 6).
Step 2: narrow scope inside each page
For each page, identify the SPECIFIC section(s) that need to change:
- Read the page's H2/H3 structure
- For each diff symbol from the classifier output, find the section most directly documenting it
- Capture line ranges:
lines 120-145notthe whole page
The output is a sections_to_edit[] per page, where each entry is:
page: docs/src/content/docs/consumer/install.md
sections_to_edit:
- section: "## From Git"
line_range: [120, 145]
diff_symbol: "--no-cache flag"
edit_kind: add | modify | remove
rationale: "the new --no-cache flag is documented nowhere; section already lists other flags so this is the natural home"
Step 3: detect cross-page conflicts
If two pages document the same symbol and the diff changes the symbol's behaviour, BOTH pages need an edit AND they must stay consistent. Flag this in the brief so the CDO synthesizer knows to cross-check coherence between the two redrafts:
