-
-
Folio for Confluence: self-healing docs for Rovo and AI coding agents
-
Claude Code checks a runbook through Folio's MCP tools, before and after the fixes
-
Review each safe fix and the score it reaches, then apply it as yourself
-
The same loop in Rovo: the Folio Docs Auditor previews fixes and Rovo asks you to confirm
-
Since your last check: 79 to 98, with what changed
-
Import Markdown folders as native Confluence pages, with links rewritten and re-syncs in place
-
Context Health score and a token-budgeted llms-full.md export
-
Folio Docs Auditor in Ask Rovo, Jira drift checks and four read-only MCP tools
Inspiration
AI coding agents and Rovo are only as good as the docs they read. In most engineering teams those docs are split between Markdown in Git and Confluence, and they rot quietly: runbooks still marked draft after the Jira ticket shipped, localhost links pasted while testing, unlabeled stub pages. A person skims past that. An agent repeats it with confidence.
I wanted Confluence docs that notice when they've gone wrong, fix what can be fixed safely, and prove it to the agents that read them.
What it does
Folio keeps your Confluence docs accurate, so the AI tools reading them give correct answers. It works in three tabs:
- Import: turns a folder of Markdown files into proper Confluence pages, with links working. Running it again updates the pages instead of duplicating them.
- Audit & fix: scores a section out of 100 (no AI credits) and lists what's wrong, including docs that fell behind their Jira tickets. It offers only safe fixes: remove dead links, add labels, change "draft" to "active" when the ticket is done. You tick what you want and click Apply. Every change is made as you and kept in page history. Next time, it shows what changed since your last check. It also exports a section as one clean file for AI tools.
- Rovo & MCP: the same checks and fixes in Rovo, Atlassian's AI assistant, which asks before changing anything. Coding assistants like Claude Code, Cursor and Codex read the same docs through Folio's read-only MCP tools, with your own Atlassian login. In the demo, Claude Code's answer flips from "out of date, 3 localhost links" to "up to date".
How I built it
- Forge Custom UI (React, Vite, Tailwind on Atlassian Design System tokens, light and dark) in a Confluence space page.
- One deterministic TypeScript core shared by the browser, resolvers and Rovo actions: Markdown to ADF and back, health scoring, Jira drift, the fix engine and check-to-check comparisons.
- Every Confluence and Jira call goes through
api.asUser(), so Folio never sees more than the user can. - Defensive writes: the server re-reads each page, sanitizes each fix and won't overwrite a page edited after Folio read it.
- No personal data stored: Forge storage holds only the import sync map, and "since your last check" lives in the user's browser as IDs, scores and one-way fingerprints.
- No external servers or egress (eligible for Runs on Atlassian), and 42 unit tests on the core.
Challenges I ran into
- Safe writes: fixes are limited to changes that can't lose meaning, checklist ticking is opt-in, and edit conflicts are handled instead of overwritten.
- Confirmation in Rovo: splitting preview (a GET action) from apply (an UPDATE action) gives users Rovo's own confirm step.
- Remembering the last check without storing content: my first version kept snapshots in Forge storage and they didn't survive intact, so I moved them into the browser as hashed fingerprints.
Accomplishments that I'm proud of
- A closed loop you can watch: an agent finds the problem, Folio fixes it with the user's approval, and the same agent confirms the fix.
- No new permissions for the fix loop, and still eligible for Runs on Atlassian.
What I learned
- Determinism builds trust. A score that doesn't change between runs, and fixes you can read before applying, make people comfortable letting a tool edit their docs.
- rovo:mcp makes a Forge app a first-class tool for coding agents, with Atlassian handling sign-in and permissions.
What's next for Folio for Confluence
- More fix types, such as pointing a dead link at the page that replaced it.
- Page-owner notifications when a watched section drops.
- The fix loop in the Marketplace version once its review completes.
Built With
- atlassian-design-system
- atlassian-forge
- confluence
- jira
- mcp
- node.js
- react
- rovo
- tailwindcss
- typescript
- vite
