/xwiki:xwiki-jira-bfdfrom xwiki
Scores old open bugs from jira.xwiki.org, proposes dispositions (close, suggest, or quick-fix), generates a report and review file, and applies only developer-approved closes via a terminal command.
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.
Read when SKILL.md points to them.
A BFD aims to retire or fix as many JIRA bugs as possible in one day. This skill does the preparation: it scores the oldest open bugs, proposes which ones a committer would close (and why), which are cheap enough to fix on the day, and which need a human's call. Then it applies only the closes the developer approved.
The one real harm is a wrong close: a report closed on someone who is still hitting the bug, sometimes fifteen years after they filed it. Everything below exists to prevent that. Recall does not matter; a bug wrongly left open simply stays open.
Never write to JIRA from this skill. The only writer is apply.py --apply, which asks
for a typed confirmation phrase. Hand the developer that command to run in their own
terminal. Never run it yourself, and never pipe, echo or otherwise feed it the phrase:
the phrase is the developer's approval, not a formality to route around.
<skill> below is this skill's directory. The tools are Python 3, standard library only.
tools/README.md explains how they decide, and
tools/eval/RESULTS.md holds the measurement behind every
threshold.
JIRA_API_TOKEN must be set (a jira.xwiki.org personal access token, see
docs/setup.md). Reads need it too. If it is missing, stop and say so.TYPESAFE_TOKEN (or TYPESAFE_API_KEY) set: the judge is jev. Say so and go on.claude CLI? It uses your claude.ai plan's usage, never API credits:
about two calls per bug. It can propose Cannot Reproduce, Invalid and Won't Fix
closes; its Inactive and Duplicate closes come out as suggestions." On a no, stop:
without a judge there is nothing to propose. A host without the claude CLI logged in
to claude.ai can only use jev.--cohort 5yr --limit 200. Cohorts are 5yr, 2yr, 1yr and all, taken
oldest first. --project defaults to XWIKI. Every bar was measured on XWIKI bugs, so
say so when another project is chosen.Use one run directory per BFD, under the work directory:
<work>/jira/<YYYY-MM-DD>-bfd-<project>/. Create it, tell the developer the path once,
and export it for every step:
export BFD_RESULTS_DIR="<work>/jira/<YYYY-MM-DD>-bfd-xwiki"
python3 <skill>/tools/fetch_candidates.py --cohort 5yr --limit 200 # bugs + descriptions + comments
python3 <skill>/tools/score_issues.py # the judge scores each bug
python3 <skill>/tools/enrich_duplicates.py # find + pick duplicate targets
python3 <skill>/tools/triage.py # scores → proposals → review.json
python3 <skill>/tools/make_report.py # → report.md
Add --judge claude to score_issues.py and enrich_duplicates.py when the developer
chose Claude and a TypeSafe key is also set. Without a key, Claude is already the default.
Every step checkpoints into the run directory. Re-running a step resumes it, and the two
judge steps skip work already done, so a failed or interrupted run is continued, not
restarted. For 200 bugs, retrieval takes a couple of minutes; scoring takes seconds with
jev and a few minutes with Claude.
Do not pass --close-bar, and do not edit a threshold in triage.py, to get more closes.
The bars are measured, and changing one needs a new backtest (see tools/README.md).
Read report.md and give the developer a summary, not the file:
Duplicate / Solved By close for a careful look, since a
wrong target is the most common mistake;report.md and review.json.Section 1 of the report holds the closes, section 2 the quick wins (cheapest first) and section 3 the suggestions.
Approval is the presence of a close row in review.json. When the developer
rejects a close, edit review.json: delete the row, or change its disposition to
suggest or keep. Then re-run make_report.py.
close, and never add one. Only triage.py proposes closes.
apply.py refuses a close row whose judge was not measured for that resolution, so a
hand-made close fails anyway.target_issue to a key the pipeline did not retrieve. If the
developer names the right target, record the correction and leave that bug to be closed
by hand in JIRA.Run the dry run yourself. It writes nothing and lists exactly what would be written:
python3 <skill>/tools/apply.py
Then give the developer the real command to run in their own terminal, starting with a small batch so the first closes can be checked in JIRA:
BFD_RESULTS_DIR="<run dir>" python3 <skill>/tools/apply.py --apply --limit 5
It comments, transitions each approved issue with its resolution, and links a
Duplicate / Solved By target. A Solved By close copies its target's Fix Version/s (skipped
while the target has none); any other close clears them. It skips an issue someone already
resolved, but it does not re-read comments posted since the analysis. So when days have passed, re-run
fetch_candidates.py and the steps after it before applying.
xwiki-jira to read it, xwiki-build and
xwiki-pull-request to fix it).xwiki-jira.xwiki-dev-llm with the
issue key, and do not work around it by hand-tuning a threshold.tools/README.md (opens in a new tab)tools/apply.py (opens in a new tab)tools/enrich_duplicates.py (opens in a new tab)tools/eval/RESULTS.md (opens in a new tab)tools/eval/backtest.py (opens in a new tab)tools/eval/closed_targets.json (opens in a new tab)tools/eval/fetch_closed_targets.py (opens in a new tab)tools/eval/fetch_labeled.py (opens in a new tab)tools/eval/labeled.json (opens in a new tab)tools/fetch_candidates.py (opens in a new tab)tools/grounding/rewrites.md (opens in a new tab)tools/grounding/support-strategy.md (opens in a new tab)tools/lib/claude_judge.py (opens in a new tab)tools/lib/jev.py (opens in a new tab)tools/lib/jira.py (opens in a new tab)tools/lib/judge.py (opens in a new tab)tools/lib/paths.py (opens in a new tab)tools/lib/questions.py (opens in a new tab)tools/make_report.py (opens in a new tab)tools/score_issues.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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./xwiki-buildBuild and test XWiki Maven modules. Use when building XWiki, running its tests, or when the user mentions mvn, a build, a failing test, or a specific XWiki module./xwiki-capture-ui-changeCapture the "before" screenshot of a fix to existing XWiki UI when the branch can no longer produce it (the fix is already in the working tree) - on the released version's Docker image, or by building and deploying the pre-fix code on a local instance - and shoot the same fixture in both states. Costs minutes to tens of minutes, so propose it and run it only with the user's explicit approval. Not for a new feature or a redesign (there is no "before"), nor when the bug can still be shot on a running instance before applying the fix. For deploying an extension without a comparison use xwiki-deploy-extension; for Maven commands use xwiki-build; for the PR/JIRA screenshot conventions use xwiki-pull-request; for manually testing every fix of a release use xwiki-manual-test./xwiki-ci-checkEXPLICIT INVOCATION ONLY — never load this skill to answer a question about CI. The daily acting sweep of ci.xwiki.org: it turns what is red on the maintained branches into incidents, attributes each to the commit that caused it and comments there, opens PRs for mechanical fixes (a failing quality gate or a build break first), files proven flicker issues, drafts a fix for one flicker, and posts a digest to Matrix. Only with --write does it write to GitHub, JIRA and Matrix; otherwise it analyses to stdout and asks before each write. Use ONLY when named — `/xwiki-ci-check`, "run the CI check", or a scheduled routine invoking it by name. Do NOT use it for "what's the CI status?", "is master green?", "why is this test failing?" or any other read-only CI question: those are xwiki-release-test-triage. To fix one flicker use xwiki-fix-flickering-docker-test, to file an issue use xwiki-jira, to open a PR use xwiki-pull-request, for Maven use xwiki-build, for Sonar findings use xwiki-fix-sonarqube-issue./xwiki-contrib-releaseRelease an xwiki-contrib extension (groupId org.xwiki.contrib) end to end — preflight, `mvn release:prepare`/`release:perform` to nexus.xwiki.org, the issue-tracker version (JIRA or OpenProject), the extensions.xwiki.org import and release notes, then the hand-off to the announcement. Use when asked to release or publish a version of a contrib extension ("release v1.15 of the doc app"). Not for xwiki-commons/rendering/platform releases (use xwiki-xs-release). For the blog post use xwiki-contrib-release-blog-post; for Maven/JDK use xwiki-build; for tracker calls use xwiki-jira or xwiki-openproject.