The actual problem
In an internal engineering setup, the requirement sits in a Jira issue and the design doc sits in a Confluence page. To get AI involved, you open the web UI, copy the body text, paste it in — and lose the attachments, comments and subtasks along the way.
We use two existing CLIs and expose them to the agent as callable capabilities. No custom API integration, no MCP server to build.
Two tools, two jobs
| Tool | Target | Capabilities |
|---|---|---|
| pchuri/confluence-cli | Confluence Server / Data Center | Read pages, search, list spaces, create/update/delete pages, upload and download attachments, comments, export, format conversion |
| @pchuri/jira-cli | Jira Server / Data Center | Read issues, add comments, update content |
Where the installs differ
The names look similar; the package names and init commands do not.
| Step | Confluence | Jira |
|---|---|---|
| Install | npm install -g confluence-cli | npm install -g @pchuri/jira-cli |
| Init | confluence init (flag-based) | jira config (flag-based) |
| URL | --domain + --api-path | --server (full URL) |
| Auth | --auth-type basic + --email + --token | --username + --token |
| Install skill | confluence install-skill --dest ./.claude/skills/wiki | jira install-skill --dest ./.claude/skills/jira |
Confluence setup
--api-path is usually /rest/api. If your Confluence lives under a sub-path (e.g. wiki.xxx.com/confluence), adjust it accordingly.
Jira setup
Jira init is simpler: --server takes the full URL, no domain/API-path split.
Two prompts you can use
Confluence: read → plan → execute → attach
The important part: write the output back to the original page, not just into the chat. Attachments under the requirement page are visible to everyone.
Jira: read → code → commit → comment
Same principle — write the plan and result back as issue comments. The requester never has to look at your chat window.
A real run: turning Confluence into a weekly report
We also use the same skill for routine reporting. The goal was simple: read one Confluence page, extract the week's work, and generate an Excel report with three fixed sections.
The prompt we actually used
The prompt is short but includes the three essentials: which skill to use, which PageId to read, and what artefact to produce. A PageId is more stable than a page title — renaming the page does not break the flow.
What the run produced
- A three-section weekly report generated from the template and saved as 周报1106.xlsx, with the worksheet named 11.02-11.06.
- The sections contained 9 progress items, 5 issues with fixes, and 8 items for next week's plan.
- The agent also kept generate_weekly_report_1106.py, so the report can be adjusted and regenerated without starting over.
- The run took about 11 minutes 20 seconds. This is a multi-step task, not an instant chat reply.
Two practical rules follow from the run: read first, generate second — do not let the agent modify the source page immediately; and keep the generation script so format fixes are a small edit and a rerun, not a full redo.
Chaining them together
- Requirement gathering — Jira issue plus the linked Confluence doc, merged into one brief.
- Plan — the agent drafts a change plan for human review.
- Execution — hand it to a coding agent (see Coding Agents).
- Write-back — plan and result go to Jira comments and Confluence attachments.
- Codify — turn the whole flow into a Skill so next time is one sentence.