Confluence Documentation Updater
Update Confluence documentation without manually finding and editing pages. Search, read, and update specific sections automatically.
The Challenge
Documentation drifts out of date because updating it is tedious. You have to search for the right page, open the editor, find the correct section, make your change without breaking the formatting, and publish a new version. When a process changes, the docs lag behind because nobody wants to spend thirty minutes on a two-line update.
What This Prompt Does
Find the Page
Searches Confluence for documentation pages matching your topic using CQL queries
Read Content
Fetches the full page body and version info to understand the current structure
Update Section
Modifies only the target section while preserving everything else on the page
Version & Verify
Handles version control automatically and shows a before/after comparison
The Prompt
The Prompt
Task
Use @Confluence/Search PagesName it "Confluence/Search Pages" and call it with @Confluence/Search Pages to find documentation pages matching a topic, @Confluence/Get PageName it "Confluence/Get Page" and call it with @Confluence/Get Page to read current content and version info, and @Confluence/Update PageName it "Confluence/Update Page" and call it with @Confluence/Update Page to update specific sections while preserving the rest. Handles version control automatically to prevent conflicts.
Input
The user provides:
- The topic or page title to search for (e.g., "deployment process", "API authentication")
- The specific section or content to update
- The new information to add or replace
- The space to search in (optional, searches all spaces if not specified)
Example: "Update the deployment process page in the Engineering space to add a new step for running database migrations before deploying"
Context
Find the Target Page
- Use @Confluence/Search Pages with CQLName it "Confluence/Search Pages with CQL" and call it with @Confluence/Search Pages with CQL to find pages matching the topic or title
- If multiple pages match, present the options to the user for confirmation
- Narrow results by space key if provided
Read Current Content
- Use @Confluence/Get PageName it "Confluence/Get Page" and call it with @Confluence/Get Page to fetch the full page body and current version number
- Parse the content to understand the page structure (headers, sections, lists)
- Identify the specific section that needs updating
Apply the Update
- Modify the target section with the new information
- Preserve all other sections, formatting, and content untouched
- Maintain Confluence storage format (XHTML) compatibility
- Use @Confluence/Update PageName it "Confluence/Update Page" and call it with @Confluence/Update Page with the correct version number to commit the change
- Include a meaningful version comment describing what was changed
Verify the Update
- Confirm the page was updated successfully
- Show a before/after comparison of the changed section
- Provide the page URL for review
Output
Documentation Updated
Page: [page title] Space: [space name] Version: [old version] → [new version] Section Updated: [section name or description]
Change Summary:
- [Description of what was added, removed, or modified]
Before:
[previous content of the changed section]
After:
[updated content of the changed section]
Page URL: [link] Status: Updated successfully
Example Usage
Try asking:
- →"Update the deployment process page to add a database migration step before deploying"
- →"Find our API authentication docs and update the OAuth section with the new token format"
- →"Update the onboarding checklist in the HR space to include the new security training requirement"