Skip to main content
Glama
README.md
# SourceCheck

A Forge app for Codegeist 2026 that audits Confluence documentation health —
and exposes the same checks to any agent.

**What it does**

- **Staleness audit** — scores each Confluence page's freshness from its last
  update date and the status of its linked Jira issues, and lists stale pages
  across a space.
- **Unsourced-claim detection** — flags factual/numeric statements in page text
  that carry no link, citation, or attribution.
- **Status-conflict detection** — flags pages that present work as finished
  while a linked Jira issue is not Done.

**How it is exposed (one app, two bonus surfaces)**

- A **Rovo agent** (`rovo:agent`) that runs the audits conversationally in
  Rovo Chat.
- An **MCP server** (`rovo:mcp`) that exposes the same three actions as tools,
  so custom agents in Rovo Studio — and third-party MCP clients — can run the
  same documentation-health checks programmatically.

**Actions / tools**

| Action              | Inputs                     | Result                                             |
| ------------------- | -------------------------- | -------------------------------------------------- |
| `audit_page`        | `pageId`                   | Full audit: freshness score, claims, conflicts     |
| `list_stale_pages`  | `spaceId`, `staleAfterDays?` | Stale pages in a space with age + severity       |
| `check_claim_sources` | `pageId`                 | Claims found on the page and which lack a source   |

**Architecture**

All audit logic lives in `src/core/` as pure functions (no Atlassian calls),
unit-tested locally with `node:test`:

```
npm test   # 29 tests
```

Forge handlers in `src/handlers.js` are a thin data-access layer: they fetch
page/issue data via `@forge/api` and pass it to the core functions.

**Status**: LIVE. Registered, deployed (development v3.0.0, production
v2.0.0), and installed on a demo site (Confluence + Jira). All three
actions verified end-to-end in Rovo Chat against real content. Submission
materials live in `submission/`; the agent-facing companion skill is
`skill.md`. See `PREP.md` for the full history.