How it works
Doc is the second step in the Lift pipeline, running after Inky rewrites your commit message.- Your latest commit diff is retrieved
- The diff is sent to Claude CLI for analysis
- Claude determines which documentation files (if any) need updates
- If updates are needed, the relevant files are edited directly
- The changes are left in your working directory for you to review
#doc so the pipeline knows this tool has run. If the commit has already been processed, Doc skips it in passive mode.
What Doc considers
Doc looks at documentation files that already exist in your repository. The default paths are:- README.md β project overview and setup instructions
- CLAUDE.md β AI context files in the root or subdirectories
- .mdx files β documentation pages
- .feature files β BDD/Gherkin specifications
doc.paths setting in your lift config.
Doc only edits existing files. It never creates new documentation files. If your project needs a new doc, you write it β Doc keeps it current after that.
When Doc makes changes
Doc only updates documentation when code changes affect:- User-facing behavior
- APIs or endpoints
- Configuration options
- Workflows or setup instructions
Running Doc by itself
To run only Doc without the rest of the pipeline:Reviewing changes
After Doc runs, any modified files appear in your working directory as uncommitted changes. Youβll see output like:Cleanup mode
If Doc made changes you donβt want, cleanup mode reverts all.md file modifications from the current commit:
.md file to its state before the pipeline ran and amends the commit to remove those changes.