Confluence connector

From andreaswasita/copilot-cowork-dojo · View interactive version

Confluence connector is an AI agent skill from the GitHub repository andreaswasita/copilot-cowork-dojo. Read, search, create, and update Confluence pages from Copilot. Use when the team's durable knowledge — runbooks, decision records, design docs, meeting archives — lives in Confluence rather than SharePoint. Triggers: "find the runbook", "publish the decision", "Confluence page", "RFC", "wiki page".

How to use this skill

Skill file

Confluence Connector

Confluence is wiki-as-knowledge-graph. Use page hierarchy and labels — they're the schema your synthesis depends on.


Quick Reference

| Task | Approach |

|---|---|

| Find prior art | CQL by space + label + lastmodified — before creating |

| Publish a decision | Resolve parentId -> create with decision label -> link to RFC |

| Update a runbook | Read storage representation -> edit -> publish with version bump |

| Find duplicates | title ~ "..." across the space; merge before adding |

| Cross-link to Jira | Use Jira macro by issue key — not raw URL |

| Archive an old page | Add archived label, move to archive parent — don't delete |

Prerequisites — this skill is a playbook, not the connector

A SKILL.md cannot call Confluence on its own. It assumes the platform already exposes Confluence as a tool. The skill teaches Cowork how to use Confluence well; the connector itself is separate infrastructure.

Before this skill works end-to-end you need:

  1. A Confluence MCP server (or equivalent platform connector) installed and running, exposing tools like SearchPages, GetPage, CreatePage, UpdatePage. Examples: Atlassian's remote MCP, mcp-atlassian, or a wrapper around the Confluence REST API.
  2. Credentials — Atlassian API token or OAuth session bound to your account, configured in the connector.
  3. Network egress + tenant trust — the connector must be able to reach *.atlassian.net/wiki from the Cowork environment with your auth.
  4. Tool discovery — confirm Confluence tools are visible (ask Cowork: "what Confluence tools do you have?") before using this skill.

If any of those are missing, this skill degrades to a manual reference: "Search Confluence yourself with these CQL patterns and paste the result back."

When to Use

How to Use

  1. Resolve the space + parent page. spaceKey + parentId. New pages without a parent become orphans.
  2. Search with CQL before creating — duplicates are the #1 Confluence pathology.
  3. Read the page (storage format / ADF) — not just the rendered view; macros matter.
  4. Create / update with proper headings, labels, and links to parents / RFCs.
  5. Verify the page renders correctly — macros (Jira, Excerpt, ToC) often break on first publish.

Canonical CQL Patterns

| Goal | CQL |

|---|---|

| Recent decisions in a space | space = ENG AND label = "decision" AND lastmodified > now("-30d") |

| Find duplicates of a title | space = ENG AND title ~ "incident response" |

| RFCs awaiting review | space = ARCH AND label = "rfc" AND label = "review" |

| Stale runbooks | space = OPS AND label = "runbook" AND lastmodified < now("-180d") |

| Pages by an author | space = ENG AND creator = "username" |

Parameter Guidance

| Parameter | Why it matters |

|---|---|

| spaceKey | Spaces have permissions — wrong space = wrong audience. |

| parentId | Determines breadcrumb / tree placement. |

| labels | Drive your CQL hygiene. Standardize across the team. |

| representation | storage for round-trippable edits, wiki for quick markdown-ish. |

| version.number | Required for concurrency-safe updates. |

Examples

| Don't: Anti-pattern | Do: Right move |

|---|---|

| Create a page with no parent | Resolve parentId first — orphan pages don't get found |

| Edit the rendered HTML view | Edit the storage representation for round-trippable changes |

| Rewrite a decision record in place | Supersede it with a new page; decision records are immutable |

| Publish without checking for duplicates | Run a CQL title ~ search before creating |

Critical Rules

Common Pitfalls

Anti-Patterns

Verify Before Publishing

Related

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.