Keep Docs in Sync
Example at a glance
Keep code examples aligned with a changing API.
Maintenance · Documentation. Illustrative workflow, not a recorded run or customer result.
Illustrative workflow
The workflow
A readable example of the seats on this canvas. Statuses in the drawing are illustrative.
Change the parts
The same graph is the product canvas, not an editor embedded in this website. In the app you can change the brief, each agent seat’s role and task, and the terminal command.
Check the result
Proposed check: Compile documented examples against current types.
This page does not report a historical outcome. Run the project’s own commands in your terminal and read the output yourself.
Try this pattern
Download DNP and rebuild the pattern around your own brief. Related examples stay in the library.
Keep Docs in Sync
Keep code examples aligned with a changing API.
Illustrative scenario: an API changes and its examples may be stale. Review the source and documentation together, then verify examples using the project’s tools.
A starting point, not a recorded run.
Explore the layout, then adapt the roles, tasks and checks to your project.
Example scenario
Documentation can drift when code changes without a matching review.
- Find examples that use the changed API
- Check names and signatures against the source
- Decide whether examples can be validated automatically
Checks to consider
Choose checks that fit your project before you start.
- Names and signatures match the source
- Code examples use the current interface
- Documentation checks pass when the project provides them
One way to divide the work.
Maintenance · Documentation
Locate affected docs
Ask an agent to identify references to the changed API.
Update the examples
Revise the affected text and code snippets to match the current interface.
Verify the result
Run documentation checks available in the project and review the final diff.
Seats in this layout
2 illustrative seats, each with a focused task.
Update affected documentation.
Review examples and available docs checks.
- TypeScript (example)
- Markdown
- Project documentation checks