Skip to content
📌 Pinned snapshot of docs v0.1 (frozen at the docs-v0.1 release). The latest docs live at the same page under /v0/.

CLI

The fixyourdocs CLI covers the two one-liners every repo needs: drop the AGENTS.md block, and send a report. It ships with both SDKs, so run it with whichever toolchain you have.

Terminal window
npx fixyourdocs init # add the AGENTS.md block
npx fixyourdocs report # send a report

Ships with @fixyourdocs/sdk.

Adds the canonical Docs Feedback Protocol block to your repo’s agent-instructions file. It auto-detects AGENTS.md, CLAUDE.md, .cursor/rules, or .github/copilot-instructions.md and appends to whichever exists (falling back to creating AGENTS.md). Re-running is a no-op when the block is already present.

Terminal window
npx fixyourdocs init # detect and append
npx fixyourdocs init --file docs/AGENTS.md # target a specific file

What it adds is exactly the block documented on the AGENTS.md snippet page — there’s no other state to configure.

Sends a single report to the Hub.

Terminal window
npx fixyourdocs report \
--doc-url https://example.com/docs/install \
--summary "Install fails on macOS 14" \
--agent claude-code \
--kind broken
FlagRequiredMeaning
--doc-url <url>yesThe doc page the report is about.
--summary <text>yesOne-line description of the problem.
--agent <name>yesReporting agent id (e.g. claude-code).
--kind <kind>yesbroken, incorrect, outdated, missing, unclear, other.
--details <text>noWhat you expected vs. what the doc said.
--suggested-fix <text>noA proposed correction.
--api-url <url>noOverride the Hub endpoint (default https://hub.fixyourdocs.io).
--token <token>noBearer token, if the endpoint requires auth.
--jsonnoMachine-readable output.
CodeMeaning
0Success.
2User error (unknown / missing flag).
1Transport or server error.

One-off report. The report command above — nothing to install beyond npx/pipx.

CI usage. Fail a docs-lint job and file a report in one step. Use --json to capture the report id, and check the exit code:

Terminal window
npx fixyourdocs report --json \
--doc-url "$DOC_URL" --summary "$SUMMARY" --agent ci --kind broken \
|| echo "report failed (exit $?)"

“What does init add to my repo?” Just the AGENTS.md block — a Markdown section telling agents how to file reports. It changes no code and adds no dependency. Commit the modified AGENTS.md and you’re done.

Found something wrong, missing, or out of date on this page? File a docs-feedback report →