publish-to-confluence
Skill1.3k starsChanged 4 months agoMITView on GitHub
Publish any markdown file from the vault to Confluence with format conversion and approval gate
Trending
Quiet since October.thin dataabout the whole repository
Who's talking about huytieu/COG-second-brain
- sudosubin/agents.nix“agent-plugins.github.huytieu.cog-second-brain: init at 3.15.0”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.huytieu.cog-second-brain: 3.10.0 → 3.15.0”GitHub · Oct 3, 2026
- sudosubin/agents.nix“agent-skills.github.huytieu.cog-second-brain: init at 3.10.0”GitHub · Sep 28, 2026
- frsvffcy/llm-wiki-km“[L3][Evaluation][Agent Workflow][Second Brain] 評估 COG closed-loop、self-evolution 與 multi-agent knowledge …”GitHub · Sep 18, 2026
The biggest 4 of 4 mentions linking to the repository that our crawl found. Each line is their own headline.
In this repository109 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- auto-researchSkill
- braindumpSkill
- closed-loopSkill
- comprehensive-analysisSkill
- content-factorySkill
- create-user-storySkill
- daily-briefSkill
- daily-journalSkill
- data-formsSkill
- editorial-illustrationsSkill
- export-open-issuesSkill
- generate-prdSkill
- generate-release-notesSkill
- harvestSkill
- knowledge-consolidationSkill
- loop-engineeringSkill
- meeting-transcriptSkill
- memory-hygieneSkill
- museum-artSkill
- no-ai-slopSkill
- onboardingSkill
- product-ui-tasteSkill
- publish-to-confluenceSkill
- release-videoSkill
- retroSkill
- review-cockpitSkill
- scoutSkill
- slop-gateSkill
- taste-skillSkill
- team-briefSkill
- ultragoalSkill
- update-cogSkill
- update-knowledge-baseSkill
- url-dumpSkill
- voice-baselineSkill
- weekly-checkinSkill
- auto-researchSkill
- braindumpSkill
- closed-loopSkill
- comprehensive-analysisSkill
- content-factorySkill
- create-user-storySkill
- daily-briefSkill
- daily-journalSkill
- data-formsSkill
- editorial-illustrationsSkill
- export-open-issuesSkill
- generate-prdSkill
- generate-release-notesSkill
- harvestSkill
- knowledge-consolidationSkill
- loop-engineeringSkill
- meeting-transcriptSkill
- memory-hygieneSkill
- museum-artSkill
- no-ai-slopSkill
- onboardingSkill
- product-ui-tasteSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
After generating a PRD, release notes, or other document that should go to the wiki
- Very specific: line 19
If agent_mode: team — no significant benefit for this skill (single sequential operation)
- Very specific: line 20
If agent_mode: solo — standard execution
- Distinctive: line 27
If Confluence is not active: Inform the user and stop.
- Distinctive: line 35
If Confluence is disabled: Skip silently per COG conventions.
- Very specific: line 37
Get current timestamp: Run date '+%Y-%m-%d %H:%M' using Bash
- Distinctive: line 60
If this skill is invoked right after generating a PRD, release notes, or other document, use that document.
- Distinctive: line 64
Ask the user (if not already provided):
- Very specific: line 228
If the vault file already has confluence_page_id in its frontmatter:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
COG Publish to Confluence Skill
When to Invoke
- User wants to publish a document to Confluence
- User says "publish to Confluence", "push to wiki", "send to Confluence", "confluence publish"
- User has a markdown file they want to share with the team on Confluence
- After generating a PRD, release notes, or other document that should go to the wiki
Agent Mode Awareness
Check agent_mode in 00-inbox/MY-PROFILE.md frontmatter:
- If
agent_mode: team— no significant benefit for this skill (single sequential operation) - If
agent_mode: solo— standard execution
Command: /publish-to-confluence
Pre-Flight Check
- Read
00-inbox/MY-INTEGRATIONS.md— Confluence MUST be listed under Active Integrations- If Confluence is not active: Inform the user and stop.
Confluence is not in your active integrations. Would you like to: a) Set up Confluence integration (I'll add it to MY-INTEGRATIONS.md) b) Export the document in a Confluence-compatible format for manual upload - If Confluence is disabled: Skip silently per COG conventions. Suggest alternative publishing (HackMD, Notion) if active.
- If Confluence is not active: Inform the user and stop.
- Get current timestamp: Run
date '+%Y-%m-%d %H:%M'using Bash
Execution Strategy
Phase 1: Identify the Source Document
Determine what to publish:
Option A: User specifies a file path
Read the specified file from the vault.Option B: User describes the document
Search for matching files:
1. Glob for likely matches in 04-projects/, 05-knowledge/, 01-daily/
2. Present candidates and let user chooseOption C: Just-generated document If this skill is invoked right after generating a PRD, release notes, or other document, use that document.
Phase 2: Configure Publishing Target
Ask the user (if not already provided):
Where should this be published in Confluence?
Required:
- Space key: [CUSTOMIZE: YOUR-SPACE-KEY] (or let me search for spaces)
- Parent page: [Page title or ID under which to nest this page]
Optional:
- Page title: [defaults to the document's H1 heading]
- Labels: [Confluence labels to add]
- Publish mode: "create new" or "update existing"If the user doesn't know the space or parent page:
Use WebFetch to search Confluence:
GET /wiki/rest/api/space?limit=50
- List available spaces for the user to choose
GET /wiki/rest/api/content?spaceKey=[SPACE]&type=page&limit=25
- List pages in the space for parent page selectionPhase 3: Convert Markdown to Confluence Format
Convert the markdown document to Confluence storage format (XHTML):
Conversion rules:
| Markdown | Confluence Storage Format |
# Heading | <h1>Heading</h1> |
## Heading | <h2>Heading</h2> |
**bold** | <strong>bold</strong> |
*italic* | <em>italic</em> |
- list item | <ul><li>list item</li></ul> |
1. list item | <ol><li>list item</li></ol> |
[text](url) | <a href="url">text</a> |
`code` | <code>code</code> |
| Code blocks | <ac:structured-macro ac:name="code"><ac:plain-text-body><![CDATA[...]]></ac:plain-text-body></ac:structured-macro> |
| Tables | <table><tbody><tr><th>...</th></tr><tr><td>...</td></tr></tbody></table> |
> blockquote | <blockquote><p>quote</p></blockquote> |
--- | <hr /> |
- [ ] task | <ac:task-list><ac:task><ac:task-status>incomplete</ac:task-status><ac:task-body>task</ac:task-body></ac:task></ac:task-list> |
- [x] task | Same with complete status |
| YAML frontmatter | Strip entirely (not displayed in Confluence) |
Important conversion notes:
- Strip YAML frontmatter — it should not appear in the Confluence page
- Preserve table structure carefully
- Convert relative vault links to plain text (they won't work in Confluence)
- Handle nested lists properly
- Preserve emoji characters as-is
Phase 4: Preview and Approval Gate
CRITICAL: NEVER publish without explicit user approval.
Present a summary to the user:
Ready to publish to Confluence:
Document: [filename]
Title: [page title]
Space: [space key]
Parent Page: [parent page title]
Mode: [create new / update existing]
Labels: [labels]
Content preview (first 500 chars):
[preview text]
Estimated page size: [approximate word count]
Proceed with publishing? (yes/no)Wait for explicit "yes" before proceeding.
Phase 5: Publish
Create New Page
Use WebFetch to POST to Confluence REST API:
POST [CUSTOMIZE: your-confluence-url]/wiki/rest/api/content
Headers:
Content-Type: application/json
Authorization: [from configured credentials]
Body:
{
"type": "page",
"title": "[page title]",
"space": { "key": "[SPACE_KEY]" },
"ancestors": [{ "id": "[PARENT_PAGE_ID]" }],
"body": {
"storage": {
"value": "[converted XHTML content]",
"representation": "storage"
}
},
"metadata": {
"labels": [
{ "prefix": "global", "name": "[label]" }
]
}
}Update Existing Page
First, get the current page to obtain the version number:
GET [CUSTOMIZE: your-confluence-url]/wiki/rest/api/content/[PAGE_ID]?expand=version
Then update:
PUT [CUSTOMIZE: your-confluence-url]/wiki/rest/api/content/[PAGE_ID]
Body:
{
"type": "page",
"title": "[page title]",
"version": { "number": [current_version + 1] },
"body": {
"storage": {
"value": "[converted XHTML content]",
"representation": "storage"
}
}
}Phase 6: Confirm and Update Vault
After successful publishing:
- Confirm to the user:
Published successfully! Page: [Title] URL: [Confluence page URL] Space: [Space Key] Version: [version number] - Update the source vault file (add published metadata to frontmatter):
confluence_url: "[page URL]" confluence_page_id: "[page ID]" confluence_space: "[space key]" published_at: "[timestamp]" confluence_version: [version number] - Log the publication for future reference.
Re-Publishing (Update Flow)
If the vault file already has confluence_page_id in its frontmatter:
This document was previously published to Confluence:
URL: [confluence_url]
Last published: [published_at]
Would you like to:
a) Update the existing Confluence page (increment version)
b) Create a new page (separate copy)
c) CancelFallback Behavior
| Scenario | Behavior |
| Confluence not active | Stop and inform user; suggest alternative platforms |
| Confluence API fails | Save the converted XHTML to a file so user can manually paste it |
| Authentication failure | Inform user their Confluence credentials may need refreshing |
| Page already exists (same title) | Ask user: update existing, create with different title, or cancel |
| Very large document | Warn user about page size; suggest splitting into child pages |
| Complex markdown (unsupported elements) | Convert best-effort, warn about any elements that couldn't be converted |
Error Handling
- API 403 (Forbidden): User may lack write permissions to the target space
- API 404 (Not Found): Space key or parent page ID may be incorrect
- API 409 (Conflict): Page was modified by someone else; fetch latest version and retry
- Conversion failures: Fall back to plain text for elements that can't be converted
- Rate limits: Retry with backoff
- Network errors: Save converted content locally so no work is lost
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

