Skip to content

missing_docs: fix audit for Astro layout & document Kitty keyboard protocol#52

Open
hongyi-chen wants to merge 1 commit intomainfrom
oz/missing-docs-audit-fixes
Open

missing_docs: fix audit for Astro layout & document Kitty keyboard protocol#52
hongyi-chen wants to merge 1 commit intomainfrom
oz/missing-docs-audit-fixes

Conversation

@hongyi-chen
Copy link
Copy Markdown
Collaborator

Summary

The missing_docs skill's audit script was producing false negatives because it assumed a legacy docs/ subdirectory layout and .md filenames. On the current Astro Starlight tree (src/content/docs/, .mdx), the script resolved every mapped doc as missing and surfaced 71+ high-severity "Mapped doc does not exist" findings.

This PR makes the audit useful again, adds keyword-matching logic for slash-command flags, and patches a real coverage gap that surfaced during triage.

What changed

  • audit_docs.py

    • Resolve docs from the repo root and look under src/content/docs/ (Astro layout) with a fallback to legacy docs/.
    • Accept .md.mdx interchangeably, plus README.mdindex.mdx, when checking surface-map entries.
    • Surface-map presence is treated as verified by default; the keyword-presence check is now opt-in via --weak-coverage (low-severity, noisier).
    • Broaden camel_to_search_terms to handle slash-command flags (RewindSlashCommand/rewind, ForkFromCommand/fork-from), UI-suffix flags (ContextWindowUsageV2), and first-N-words prefixes.
  • feature_surface_map.md — fully refreshed:

    • Every entry now points at the real .mdx file. The previous map referenced ~40 paths under agent-platform/warp-agents/* that don't exist; those features actually live under agent-platform/local-agents/* or agent-platform/capabilities/*.
    • Added newly shipped GA flags (AskUserQuestion, OzChangelogUpdates, KittyKeyboardProtocol, WarpPacks, SharedWithMe, BundledSkills, SkillArguments, OpenCodeNotifications, CodexNotifications, etc.) to their respective pages.
    • Moved ListSkills and SyncAmbientPlans to the ignore list (server-side wiring, not user-facing).
  • SKILL.md — documents --weak-coverage, the .md/.mdx resolution behavior, and corrects the script invocation path.

  • terminal/more-features/full-screen-apps.mdx — adds a Kitty keyboard protocol section. The flag is GA, was unmapped previously, and the feature is most relevant to users running TUI apps that need progressive-enhancement key reporting.

Audit results

Before: 71 high + 47 stale findings (almost all stale-map false positives).

After: default mode reports 0 feature/CLI/API gaps and 47 staleness candidates. --weak-coverage surfaces ~30 mapped pages whose target file exists but where the feature name doesn't appear verbatim — a useful follow-up list for the docs team to review.

Test plan

  • npm run build — clean (316 pages built in ~58s)
  • python3 .agents/skills/missing_docs/scripts/audit_docs.py --warp-internal /workspace/warp-internal --warp-server /workspace/warp-server — runs without errors
  • python3 .agents/skills/missing_docs/scripts/audit_docs.py --weak-coverage --category features — produces the expected weak-coverage list
  • Manual review of the new Kitty keyboard protocol section for accuracy

This PR was created by Oz (running Claude Code).

…nt Kitty keyboard protocol

The audit script assumed a `docs/` subdirectory layout and `.md` filenames,
so on the current Astro Starlight tree (`src/content/docs/`, `.mdx`) every
mapped doc resolved as missing. This refreshes the skill so it produces
useful signal again.

- audit_docs.py: resolve doc paths from the repo root, accept .md/.mdx
  interchangeably (and README.md → index.mdx), add --weak-coverage flag
  for the strict keyword check, broaden keyword extraction to handle
  slash-command flags (RewindSlashCommand → /rewind) and UI-suffix flags.
- feature_surface_map.md: update every entry to the actual `.mdx` paths,
  fix `agent-platform/warp-agents/*` mappings that should be either
  `local-agents/*` or `capabilities/*`, add ListSkills/SyncAmbientPlans
  to the ignore list (server-side).
- SKILL.md: document `--weak-coverage` and the `.md`/`.mdx` resolution.
- full-screen-apps.mdx: add a Kitty keyboard protocol section so the
  newly-shipped flag is documented where TUI users will look.

Default audit now runs clean for features/CLI/API; `--weak-coverage`
surfaces ~30 mapped pages where the feature isn't named verbatim, for
follow-up review.

Co-Authored-By: Oz <oz-agent@warp.dev>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@cla-bot cla-bot Bot added the cla-signed label May 10, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented May 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs Ready Ready Preview, Comment May 10, 2026 4:17pm

Request Review

@hongyi-chen hongyi-chen requested a review from dannyneira May 10, 2026 19:56
@hongyi-chen hongyi-chen marked this pull request as ready for review May 10, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant