/xwiki:xwiki-daily-closefrom xwiki
Daily workflow to close open GitHub PRs, JIRA issues, and forum topics. Collects items, judges readiness, and offers merge/close/conclude actions one at a time.
Ships in xwiki. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Each day, move the developer's already open work towards done. Not new work, not triage of other people's backlog.
Ask before each write, one at a time — a merge, a close or a forum post is public and hard to take back, and "ready" is only the rules' opinion. The routine-PRs item is the one batch: the developer approves the listed PRs together.
daily-close.mjs gathers the data and applies every rule code can decide; you answer only the
questions it leaves, then it ranks. Never re-implement its rules or re-query what it gathered — if
its output looks wrong, fix the script. Each item's blockers explain its verdict.
It is at ${CLAUDE_PLUGIN_ROOT}/scripts/daily-close.mjs (Kimi Code ${KIMI_SKILL_DIR}/../../scripts/,
opencode $XWIKI_LLM_HOME/xwiki/scripts/); below, dc means node <that path>. It prints where its
files are.
Credentials: GitHub through the gh login; JIRA through JIRA_API_TOKEN, else anonymously with a
jira username in the config; the forum through DISCOURSE_API_KEY + DISCOURSE_API_USERNAME to
write — without them, forum actions become drafts to paste.
dc collect # or --only gh|jira|forum: no budget, no history; later commands take the same --only
It takes a few minutes (GitHub's search API allows 30 requests a minute). On skipped forum: no forum username, ask once and run dc config forum=<username> (likewise github=, jira=). An
ERROR line means that category is missing from the report — say so, never present it as empty.
dc pending # items waiting for a judgement
dc show <itemId> # one item: facts, questions, evidence
Read each item with show, one at a time (a run is hundreds of KB), and answer into the answers
file pending names — a JSON object keyed by item id. pending has already filled in, marked
carried, the answers of earlier runs whose item has not changed since (at most two weeks old):
leave them, and judge only what it lists. rank remembers your answers for the next runs.
cls — ready, close or not-close, to change the script's verdict. Only ready and close
are offered, so set close whenever there is a concrete step for the developer.action — the next step in a few words ("close the PR: surli says it is obsolete").note — what the developer must know before saying yes; also where you say you are unsure.solutionPost — forum only, the post to mark as the solution.waiting: false — someone commented after the developer, but nobody is waiting (an
acknowledgement, or a PR its author parked).By kind:
pomVersion to its unreleased JIRA version for the Fix
Versions. A bug missing from a maintained branch it affects is a backport to do: close.ready with solutionPost,
CLOSE-a/b/c → close with the action, NOT-CLOSE → not-close. Count votes given in words
("yes", "lgtm") — votes only sees +1/-1. For CLOSE-a, draft the conclusion in
runs/<date>-drafts/<topicId>.md: the outcome and who voted, the decided points, next steps only
if the thread names them (never invent a JIRA key), and the attribution line of
kb/servers/index.md.dc rank # --budget N / --others-budget N for one run (defaults 10 and 5)
It groups linked items into units (a PR and its issue, a PR stack in merge order, a forum topic and the PRs it unblocks) and ranks them in two buckets with their own budgets — your work and others' work waiting on you — someone waiting first, then ready, then oldest. Stale items are only counted; bot PRs assigned to the developer are one routine item. Show the report as it is.
Walk both lists in order, your work first:
| Step | How |
|---|---|
| Merge a PR | gh pr merge <url> --squash --delete-branch (xwiki-pull-request). In a stack, follow the listed order and re-check the next one is still mergeable. |
| Close a JIRA issue | Through xwiki-jira: resolution Fixed, the Fix Versions from §2. |
| Missing backport | Hand over to xwiki-backport. |
| Mark a forum post solved | dc accept <topicId> <postNumber> |
| Post a forum conclusion | Show the draft, apply the developer's edits, post it with the discourse MCP, then dc accept it. |
| Reply, or request a review | Draft it (with the attribution line), show it, post it. |
A forum topic or reply outside this sweep (brainstorming, proposal, vote) is xwiki-forum's.
One item at a time. Finish an item (its writes, the follow-ups they call for such as a doc page
or a KB sync, then dc done <itemId> <action>, which the next report counts), report the outcome, and
ask before moving on: never open the next item in the turn that finishes one. A "no" or "later" is
not re-offered in the same run.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
daily-close, github-prs, jira-issues, forum-topics, workflow-automation
npx claudepluginhub xwiki/xwiki-dev-llm --plugin xwiki38 skills in this plugin
/xwiki-backportBackport any change (bug fix, feature, refactor, or test) to an older branch of an XWiki repo (xwiki-platform / xwiki-commons / xwiki-rendering / xwiki-contrib). Cherry-pick `-x` the source commit(s) into a worktree, ADAPT the result to the older branch (module pom versions, Java level, `@since` tags, data migration versions and skip ranges, style/API divergence), verify it compiles against that branch, and push / open a PR. Use whenever a commit that exists on one branch needs to be applied to an older/maintenance branch. For the `testneeded`-labelled test sweep use xwiki-backport-testneeded (which builds on this skill); for Maven commands use xwiki-build; for PR/commit conventions use xwiki-pull-request; for the versioning/`@since` conventions (the format and what carries `@since`) use xwiki-knowledge./xwiki-backport-testneededBackport the automated test of one JIRA issue labelled `testneeded` to the currently-supported stable branches, adjust its `@since` tags across all branches, and open the PRs. Use when asked to backport the test of a given testneeded issue, or to catch a stable branch up with a recently-added test. (For several issues at once, the user will say so — then apply this per issue.) This is the test-specific layer on top of xwiki-backport (which owns the generic cherry-pick / adapt-to-branch / verify mechanics — including the mandatory pom-version, Java-version and `@since` checks). For Maven use xwiki-build; for PR/commit conventions use xwiki-pull-request; for the `@since` rules use xwiki-knowledge; for querying JIRA (the testneeded sweep) use xwiki-jira.