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.
npx fixyourdocs init # add the AGENTS.md blocknpx fixyourdocs report … # send a reportShips with @fixyourdocs/sdk.
pipx run fixyourdocs init # add the AGENTS.md blockpipx run fixyourdocs report … # send a reportShips with the fixyourdocs Python package.
fixyourdocs init
Section titled “fixyourdocs init”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.
npx fixyourdocs init # detect and appendnpx fixyourdocs init --file docs/AGENTS.md # target a specific fileWhat it adds is exactly the block documented on the AGENTS.md snippet page — there’s no other state to configure.
fixyourdocs report
Section titled “fixyourdocs report”Sends a single report to the Hub.
npx fixyourdocs report \ --doc-url https://example.com/docs/install \ --summary "Install fails on macOS 14" \ --agent claude-code \ --kind broken| Flag | Required | Meaning |
|---|---|---|
--doc-url <url> | yes | The doc page the report is about. |
--summary <text> | yes | One-line description of the problem. |
--agent <name> | yes | Reporting agent id (e.g. claude-code). |
--kind <kind> | yes | broken, incorrect, outdated, missing, unclear, other. |
--details <text> | no | What you expected vs. what the doc said. |
--suggested-fix <text> | no | A proposed correction. |
--api-url <url> | no | Override the Hub endpoint (default https://hub.fixyourdocs.io). |
--token <token> | no | Bearer token, if the endpoint requires auth. |
--json | no | Machine-readable output. |
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
0 | Success. |
2 | User error (unknown / missing flag). |
1 | Transport or server error. |
Common workflows
Section titled “Common workflows”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:
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 →