Skip to content

Docs from code

Keeps internal docs in step with the code.

EngineeringWorks with Claude Code · Cursor

What it does

  • Spots changed APIs
  • Updates the matching docs
  • Opens a PR for review

Your approval boundaries

Approval required

These actions always wait for your yes:

  • Publishing public docs

You decide what happens next.

More about this workflow

This setup is for developers and small engineering teams who want fewer chores. It takes a repeat chore off your plate and hands back something you can check quickly.

First, it spots changed APIs. Next, it updates the matching docs. Finally, it opens a PR for review. It works with your git host and docs site, each on its own login with limited access.

You get the prep work done and waiting for you. The agent stops and asks for your yes before publishing public docs, and says plainly if a step cannot be undone.

Before you startGit host · Docs site accessScoped permissionsClaude Code or Cursor
Explore required tools and model recommendations

Tools and access

  • GitHub

    Handles the git host part of this job. Grant a fine-grained token, read code and write comments.

    API required: Yes. Needs a GitHub App or a fine-grained personal access token scoped to the repos it needs.

  • Docs site

    Handles the docs site part of this job. Grant draft or branch access, not publish.

    API required: Optional. Your docs repo or CMS. Most agents work through a branch or draft.

    No sign-up needed

Official links only. Not sponsored, no affiliate links.

Model recommendations

Best pick

Claude Opus 5.5

Its maker points to it for long running coding work.

$4 per million input tokens, $20 per million output tokens.

Anthropic docs as of October 11, 2026

Cheaper backup

Claude Sonnet 5.5

Half the price per token and still strong for reviews and docs.

$2 per million input tokens, $10 per million output tokens.

Anthropic docs as of October 11, 2026

Our own picks. Not sponsored, no affiliate links.

Build your prompt

Add your details, then copy the prompt into your tool.

1Your details

Fill these in and the prompt updates as you type.

2Your prompt

3 of 3 still empty
Fill these in before you run it: [YOUR REPO AND DOCS LOCATION] [WHICH APIS OR FOLDERS TO WATCH] [WHO REVIEWS DOC CHANGES] You are the Docs from code agent. Keeps internal docs in step with the code. Use only the details filled in above. If any [BRACKETED] item is still blank or unclear, stop and ask for it first. Do not guess. What you do on your own: - Spots changed APIs - Updates the matching docs - Opens a PR for review What you must never do without a yes from a person: - Publishing public docs Rules: - Before any step on the list above, stop and ask. Say in plain words what you want to do, who it affects, and whether it can be undone. - If something cannot be undone, say so first, in one short line. - Write drafts, not final actions. A person sends, pays, posts, or deletes. - Keep a short log of every action you took and every source you read. - If you are unsure, ask instead of guessing.
View run instructionsPaste into: Claude Code, Cursor

Your answers stay in this browser only.

Run your workflow

Connect your tools with only the access this setup needs, then follow these steps.

Steps

Do these in order. Test on old data before it touches live work.

  1. 1Connect GitHub with its own login, not yours. Grant a fine-grained token, read code and write comments.
  2. 2Set up Docs site. Keep it to draft or branch access, not publish.
  3. 3Paste the prompt where your harness takes instructions. See the note under the Copy button.
  4. 4Do a dry run on old or test data first. Check every draft and every stop point by hand before you let it near live work.
  5. 5Read its log after the first real run. Only widen access once a week of runs looks clean.

Safeguards and trust score

The score describes this example setup’s access, approval boundaries, ability to undo changes, and scope.

Access18 / 30

Can draft things that send or spend, so it sits close to risky actions.

Human approval27 / 30

Waits for a yes on: publishing public docs.

Undo and logs17 / 20

Leaves drafts you can throw away, with a record of what it made.

Scope18 / 20

Runs on its own login across 2 tools. Fewer connections means a smaller blast radius.

How to raise it

  • Access: Take away its ability to send, post or spend. Let it only write drafts, and have a person press send or pay from their own account +6
  • Human approval: Add a second named stop next to "publishing public docs", so every step that leaves your hands waits for a yes, and have the confirm say plainly what cannot be undone +3
  • Scope: Run it on one tool only, with its own login that can see just what this job needs +2

Do all of these to reach 91, up from 80.

Want help getting there? Get an AI Trust Audit from Pixeldesigns

Reviewed by Trustcase (example setup). How scoring works

Embed badge

Show this trust score on your site or README. It links back here.

Trustcase trust score badge
Markdown
[![Trustcase trust score for Docs from code](https://trustcase.dev/badge/docs-from-code.svg)](https://trustcase.dev/use-cases/docs-from-code)
HTML
<a href="https://trustcase.dev/use-cases/docs-from-code"><img src="https://trustcase.dev/badge/docs-from-code.svg" alt="Trustcase trust score for Docs from code" height="20"></a>
  • Client site request handler

    Turns a client's text message about their website into a proposed code change ready for review. Made for a freelancer who maintains a small site for a client.

  • Trending repo scout

    Finds the top trending open source repos each day and sums them up so you can spot tools worth using. Useful if most of your stack is built on open source.

  • Integration research sweep

    Checks a long list of products for APIs, sign in methods, MCP support and how hard they are to connect. You still spot check the findings before trusting them.

  • Workflow builder by chat

    Builds automation workflows from plain language instructions instead of dragging nodes by hand. You review and test each workflow before turning it on.

See all 55 engineering workflows

Other workflows that use the same tools

  • Help tutorials from your app

    Support. Drives your web app on demo data to make step by step help pictures, narrated videos and a help page. Rerun it when the screens change.

  • Weekly local events draft with fact checks

    Marketing. Every Wednesday it drafts next week's events roundup for a local guide site using only listings already on the guide, and notes every URL it read. A second mode fact checks a stale place page against primary sources.

  • Help shipping pages checked against warehouse facts before a sale

    Ecommerce and resale. Before a big sale, the agent compares your help center's shipping pages with a facts file built from your real shipping zones and recent orders. It proposes edits to any page that is wrong and lists what it left alone.