docs-impact-classifier

Featured

Use this skill to classify the documentation impact of a pull request diff, returning one of three verdicts -- no-change, in-place edit, or structural change -- with bounded LLM cost. Activate as a sibling skill of docs-sync; the orchestrator calls this first, before any panel spawn, to keep cost floor at 1 LLM call when no docs work is needed. Reads .apm/docs-index.yml as the corpus map; never reads the full corpus.

AI & Automation 3,385 stars 300 forks Updated 2 days ago MIT

Install

View on GitHub

Quality Score: 91/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# docs-impact-classifier Single responsibility: given a PR diff and the `.apm/docs-index.yml` corpus map, emit ONE classification verdict. This skill is the cost gate for the entire docs-sync system. ~70% of PRs should exit at verdict `no_change` with zero panel spawn. ## Architecture This is a 3-layer funnel inside a single skill invocation: - **L0 deterministic path gate** -- pure file-path matching, no LLM. - **L1 symbol extraction + corpus grep** -- pure text processing, no LLM. - **L2 LLM classifier** -- bounded ~8 KB context envelope, 1 call. The skill returns the verdict from the earliest layer that can decide. ## Step 1: L0 deterministic path gate (no LLM) Read `.apm/docs-index.yml` to load `no_impact_paths[]` and `user_surface_paths[]`. Get the changed file list from the PR diff (`gh pr diff --name-only`). ``` if every changed file matches no_impact_paths AND none match user_surface_paths: return {verdict: "no_change", confidence: "high", source: "L0", scope_pages: []} ``` This handles: - Test-only PRs (`tests/**`) - CI workflow PRs (`.github/workflows/**`) - Doc-only PRs (`docs/**`) -- out of scope, docs-sync doesn't review docs PRs - Primitive-only PRs (`.apm/**`) - Script and meta PRs Expected hit rate: ~70% of PRs short-circuit here. ## Step 2: L1 symbol extraction + corpus grep (no LLM) If L0 did not exit, extract user-observable symbols from the diff: - **CLI command names** -- grep diff for `^@click.command`, `^@cli.command`, or any `apm <ver...

Details

Author
microsoft
Repository
microsoft/apm
Created
10 months ago
Last Updated
2 days ago
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Featured

docs-sync

Use this skill whenever a pull request is opened, reopened, or synchronized in microsoft/apm to assess whether and how the documentation corpus must change to stay truthful with the proposed code change. Activate even when the PR title or body says nothing about docs -- the skill must run on every PR to detect silent drift between code and docs. Classifies impact as no-change, in-place edit (one to a few paragraphs), or structural change (new page or TOC reshape), then orchestrates a CDO + doc-writer + python-architect + editorial-owner + growth-hacker loop to produce a patch-ready advisory. Does NOT review code quality, security, or test coverage. Does NOT auto-merge or auto-push doc edits.

3,385 Updated 2 days ago
microsoft
AI & Automation Featured

docs-impact-architect

Use this skill when the docs-impact-classifier returns a structural verdict, signalling that the documentation TOC must change to accommodate the PR. Proposes TOC deltas (new pages, moves, merges) and emits new-page outline stubs that the doc-sync panel later fleshes out. Holds the 3-promise narrative (consume / produce / govern) and the persona ramps as hard constraints.

3,385 Updated 2 days ago
microsoft
AI & Automation Featured

docs-impact-localizer

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.

3,385 Updated 2 days ago
microsoft