By tomkyser
Documentation management system for the Foreign Policy WordPress codebase. Command-workflow-agent architecture with pipeline enforcement, 31 commands, 13 specialist agents.
Validate that documentation claims match actual source code. Zero-tolerance mode flags any discrepancy.
Create documentation for entirely new code that doesn't have docs yet. Describe the new code and the engine will analyze it and generate complete documentation.
Generate or update API Reference sections in documentation files. Extracts function signatures from source code and creates formatted reference tables.
Compare documentation against source code and report discrepancies. Supports quick, standard, and deep audit depths.
Batch-process all items listed in the needs-revision-tracker. Reads the tracker, processes each item, and marks them complete.
API Reference agent for the FP codebase. Generates and audits API Reference tables with accurate function signatures and provenance tracking.
Citation management agent for the FP codebase. Generates, updates, verifies, and audits code citation blocks in developer documentation.
Index management agent for the FP codebase. Maintains PROJECT-INDEX.md, source-map.json, cross-document links, and the CLAUDE.md template.
Locals contract agent for the FP codebase. Manages $locals variable documentation across PHP template components — annotations, contracts, validation, cross-references, shapes, and coverage.
Documentation modification agent for the FP codebase. Handles revise, add, auto-update, auto-revise, and deprecate operations. Spawned by write operation workflows.
Admin access level
Server config contains admin-level keywords
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
Note: This repository contains only the fp-docs plugin engine — the commands, agents, workflows, and modules that drive documentation operations. It does not contain any generated documentation, source code, or sensitive information from the Foreign Policy codebase. Those live in separate, access-controlled private repositories.
fp-docs is prototyped against the foreignpolicy.com WordPress codebase, which serves as its immediate proving ground. However, the architecture is designed to be fully adaptable — any codebase, in any language or framework, can be documented using this same system. The FP integration is a reference implementation, not a hard dependency.
Documentation management system for the Foreign Policy WordPress codebase. fp-docs is a Claude Code plugin that automates the creation, revision, validation, and maintenance of technical documentation by reading your source code directly and keeping docs in sync with every change.
fp-docs enforces zero-tolerance verbosity (every source item must be documented), cross-references every claim against actual code, manages citations with provenance tracking, and maintains a separate docs git repo that branch-mirrors your codebase. It ships 31 commands, 13 specialized agents (fp-docs-* prefix), workflows that orchestrate multi-agent execution, and an automated 8-stage post-modification pipeline that runs after every documentation change.
$locals arrays between files without formal contracts. fp-docs annotates source code with @locals PHPDoc blocks and generates contract tables./plugin marketplace add tomkyser/fp-tools
/plugin install fp-docs@fp-tools
claude --plugin-dir ~/cc-plugins/fp-docs
Path note: Point --plugin-dir at the fp-docs/ directory. This IS the plugin root. The parent directory (cc-plugins/) is the marketplace wrapper (fp-tools).
The plugin auto-allows Read, Grep, and Glob. Write, Edit, and Bash operations will prompt for user approval per-session. Validation commands run without permission prompts; modification commands will ask.
Install the plugin using one of the methods above.
Run setup to verify your environment:
/fp-docs:setup
Setup checks plugin structure, detects the docs repo, verifies the codebase .gitignore includes the docs directory, and confirms branch sync status. It reports overall health as HEALTHY, DEGRADED, or BROKEN.
Sync branches if prompted:
/fp-docs:sync
Try your first command -- run a quick audit to see the state of your docs:
/fp-docs:audit --depth quick
Update docs after code changes:
/fp-docs:auto-update
From here, the SessionStart hooks handle branch detection and plugin context injection automatically on every new session.
/fp-docs:update --check
This compares your installed version against the latest release on GitHub and reports whether an update is available.
npx claudepluginhub tomkyser/fp-docsDocumentation management system for the Foreign Policy WordPress codebase. Three-repo architecture with branch mirroring, 9 engine agents, 19 user commands.
Generate and maintain documentation from code with drift detection. Validates docs against source, auto-generates from code patterns, syncs outdated content, and provides reusable templates for consistent documentation.
Lightweight documentation memory for AI coding agents: scaffold a docs tree, validate it, and auto-load recent context each session.
Documentation and authoring workflow router: audit docs vs code drift, sync docs after changes, optimize prompts and SKILL.md files, validate GLFM and Markdown formatting, summarize files/URLs/images with fidelity enforcement. Use when: docs are out of date, CLAUDE.md needs improving, SKILL.md needs optimizing, checking if documentation matches code, summarizing files or URLs.
Import external documentation locally - bypass AI-blocking sites via Context7, WebFetch, or Playwright
Agents specialized in technical documentation and knowledge management. Focuses on documentation architecture and user-focused writing.
Documentation review, cleanup, and generation with AI slop detection, style learning, and human-quality writing enforcement