Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
80f4127
feat(hyperfleet-jira): make the sprint commands script-driven
rafabene Nov 3, 2026
8a38e6b
fix(hyperfleet-jira): address review on sprint commands
rafabene Nov 3, 2026
d03e7b0
fix(hyperfleet-jira): harden the sprint commands after review
rafabene Nov 3, 2026
20c2a13
HYPERFLEET-1890 - fix(hyperfleet-jira): share the Jira layer and meas…
rafabene Nov 3, 2026
f02010e
HYPERFLEET-1890 - fix(hyperfleet-jira): scope the pulse queue to the …
rafabene Nov 3, 2026
55b6cc3
HYPERFLEET-1890 - fix(hyperfleet-jira): link every ticket key in the …
rafabene Nov 3, 2026
d33cac8
HYPERFLEET-1890 - fix(hyperfleet-jira): scope the pulse link promise …
rafabene Nov 3, 2026
9a9118e
HYPERFLEET-1890 - feat(hyperfleet-jira): link the pull requests of it…
rafabene Nov 3, 2026
03b0dbb
HYPERFLEET-1890 - fix(hyperfleet-jira): take pull request ownership f…
rafabene Nov 3, 2026
36896ba
HYPERFLEET-1890 - fix(hyperfleet-jira): align the pulse doc with the …
rafabene Nov 3, 2026
7603d2e
HYPERFLEET-1890 - docs(hyperfleet-jira): namespace the commands and n…
rafabene Nov 3, 2026
e077735
HYPERFLEET-1890 - docs: say how the suites run
rafabene Nov 3, 2026
a09f122
HYPERFLEET-1890 - fix(hyperfleet-jira): show the pull request a title…
rafabene Nov 3, 2026
856e6d7
HYPERFLEET-1890 - docs(hyperfleet-jira): drop the due date from recom…
rafabene Nov 3, 2026
3dd5e2a
HYPERFLEET-1890 - fix(hyperfleet-jira): state the cross-reference ins…
rafabene Nov 3, 2026
6672f0f
HYPERFLEET-1890 - fix(hyperfleet-jira): a pull request belongs to the…
rafabene Nov 3, 2026
999c1d7
HYPERFLEET-1890 - fix(hyperfleet-jira): say that Jira links no pull r…
rafabene Nov 3, 2026
4aded60
HYPERFLEET-1890 - fix(hyperfleet-jira): read the development panel, n…
rafabene Nov 3, 2026
d4dbe39
HYPERFLEET-1890 - docs(hyperfleet-jira): the title settles each pull …
rafabene Nov 3, 2026
8042d3e
HYPERFLEET-1890 - fix(hyperfleet-jira): ask to review only the pull r…
rafabene Nov 3, 2026
bf78185
HYPERFLEET-1890 - fix(hyperfleet-jira): name the pull request reviewe…
rafabene Nov 3, 2026
3b3acad
HYPERFLEET-1890 - refactor(hyperfleet-jira): share the collector CLI …
rafabene Nov 3, 2026
42c20db
HYPERFLEET-1890 - docs(hyperfleet-jira): name the panel as the source…
rafabene Nov 3, 2026
64a37dc
HYPERFLEET-1890 - fix(hyperfleet-jira): keep the pull requests one so…
rafabene Nov 3, 2026
d62ce84
HYPERFLEET-1890 - fix(hyperfleet-jira): validate the shared CLI value…
rafabene Nov 3, 2026
2edf666
HYPERFLEET-1890 - fix(hyperfleet-jira): treat a pull request lookup t…
rafabene Nov 3, 2026
b511f04
HYPERFLEET-1890 - fix(hyperfleet-jira): keep the report when a read f…
rafabene Nov 4, 2026
089152b
HYPERFLEET-1890 - ci(hyperfleet-jira): run the plugin unit suite from…
rafabene Nov 4, 2026
899b59e
HYPERFLEET-1890 - ci(hyperfleet-jira): run the suite with make test f…
rafabene Nov 4, 2026
e845130
HYPERFLEET-1890 - ci: run every plugin test suite, not only hyperflee…
rafabene Nov 4, 2026
f72a0f7
HYPERFLEET-1890 - fix: scope CI permissions per job, quote PYTHON, ke…
rafabene Nov 4, 2026
22ef289
HYPERFLEET-1890 - fix: measure the baseline at the recorded close, st…
rafabene Nov 4, 2026
3a46b0c
HYPERFLEET-1890 - fix: validate the dev-status summary shape and tigh…
rafabene Nov 4, 2026
fb0a17d
HYPERFLEET-1890 - fix: read a missing dev-status branch as no pull re…
rafabene Nov 4, 2026
05f931f
HYPERFLEET-1890 - test: run the suites on Python 3.9
rafabene Nov 4, 2026
1841751
HYPERFLEET-1890 - fix: measure the closed sprint baseline at its clos…
rafabene Nov 4, 2026
7c748b7
HYPERFLEET-1890 - fix: move a Review blocker whose pull requests are …
rafabene Nov 4, 2026
8107833
HYPERFLEET-1890 - ci: run the plugin tests on Prow
rafabene Nov 4, 2026
59c17e6
HYPERFLEET-1890 - fix: align collector contracts and sanitize CLI errors
rafabene Nov 5, 2026
39caadd
HYPERFLEET-1890 - test: expose Jira tests through the suite runner co…
rafabene Nov 5, 2026
72b7a7f
HYPERFLEET-1890 - ci: use only the discovered suite test target
rafabene Nov 5, 2026
e048f79
HYPERFLEET-1890 - fix: keep discovered runner paths as shell data
rafabene Nov 5, 2026
f86e7b8
HYPERFLEET-1890 - merge main after the test runner bootstrap
rafabene Nov 6, 2026
ee32bcd
HYPERFLEET-1896 - align plugin marketplace checks with architecture t…
rafabene Nov 6, 2026
a591a5d
HYPERFLEET-1896 - defer lint and keep help and test entry points
rafabene Nov 6, 2026
701fd3b
HYPERFLEET-1890 - fix: count malformed changelogs and correct the for…
rafabene Nov 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# CI Workflows

Run all discovered plugin test suites locally before opening a PR:

```bash
make test
```

The Makefile exposes `help` and `test`; the aggregate test target discovers each
suite's `run-tests.sh`. See [CONTRIBUTING.md](../../CONTRIBUTING.md#testing) for
the authoritative runner contract and dependencies.
To run one suite in isolation, invoke its runner directly, for example:

```bash
bash hyperfleet-jira/tests/run-tests.sh
```

The workflows in this directory cover only the scheduled work.

The Prow unit job is configured separately in `openshift/release` under
`ci-operator/config/openshift-hyperfleet/hyperfleet-claude-plugins` and runs
`make test`. Until the presubmit is active, validation must be run locally.

## Open PRs Digest

**File:** `open-prs-digest.yml`
Expand Down
9 changes: 8 additions & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Before making any changes:
| Plugin | Skills | Commands | Agents | Hooks | Version |
|--------|:------:|:--------:|:------:|:-----:|---------|
| `hyperfleet-code-review` | 2 (`review-pr`, `review-local`) | - | - | - | 0.8.1 |
| `hyperfleet-jira` | 4 | 6 | - | - | 0.7.0 |
| `hyperfleet-jira` | 4 | 7 | - | - | 0.8.1 |
| `hyperfleet-architecture` | 1 | - | - | - | 0.2.0 |
| `hyperfleet-standards` | 1 | - | - | - | 1.1.0 |
| `hyperfleet-operational-readiness` | 1 | - | - | - | 0.2.0 |
Expand Down Expand Up @@ -88,6 +88,13 @@ runner contract. Every new suite MUST provide the documented `run-tests.sh`;
new tests in an existing suite reuse its runner. Run `make test` before opening
a PR and confirm your suite appears in the log.

Rules for a change to a plugin that has a suite:

- **Run the suite before opening the PR.** A red test is a review comment you wrote yourself.
- **A script change needs one live run.** The tests stub Jira, so they prove the branches, not the report: run the collector against a real sprint and check that two runs in a row agree.
- **A command file is a contract about script output.** A sentence in `commands/*.md` that describes what a script emits is executable prose. Change the script and the sentence in the same PR; change the sentence and read the branch it describes. This divergence has reached review twice in this repository.
- **A docs-only change still has to be true.** Confirm the command you document exists in `commands/` (a skill is not a command) and that every flag matches the script's `argparse`.

## Boundaries

**DO:**
Expand Down
5 changes: 3 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,9 @@ the runner, not the Makefile. Python unittest runners should honor
the CI build root provides them. The existing work-triage suite requires Bash,
`jq`, and `bc`.

Keep only the aggregate `test` target in the root Makefile; do not add per-suite
targets or a hand-maintained suite list. To run one suite in isolation, invoke
The root Makefile provides `help`, which only lists available targets and their
descriptions, and the aggregate `test` target. Do not add per-suite targets or a
hand-maintained suite list. To run one suite in isolation, invoke
its runner directly:

```bash
Expand Down
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
.PHONY: test
.PHONY: help test

help: ## Show available targets without running them
@awk 'BEGIN {FS = ":.*## "} /^[a-zA-Z_-]+:.*## / {printf " %-12s %s\n", $$1, $$2}' $(MAKEFILE_LIST)

# Shared entry point for local runs and the Prow unit job.
test:
test: ## Run all discovered test suites
@found=0; \
for script in */tests/run-tests.sh */skills/*/scripts/tests/run-tests.sh; do \
[ -f "$$script" ] || continue; \
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,10 @@ Questions or feedback? Open an issue in this repository.

## Testing

Run all discovered test suites from the repository root:
List available targets and run all discovered test suites from the repository root:

```bash
make help
make test
```

Expand Down
2 changes: 1 addition & 1 deletion hyperfleet-jira/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hyperfleet-jira",
"version": "0.7.0",
"version": "0.8.1",
"description": "JIRA integration for HyperFleet team - sprint management, task tracking, ticket creation, triage, and story point estimation",
"author": {
"name": "Ciaran Roche",
Expand Down
2 changes: 2 additions & 0 deletions hyperfleet-jira/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
__pycache__/
*.pyc
123 changes: 85 additions & 38 deletions hyperfleet-jira/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ A Claude Code plugin that integrates JIRA with your development workflow using [
## Features

### For Engineers
- **`/my-sprint`** - View current sprint and your assigned tickets
- **`/my-tasks`** - List all your assigned tasks across projects
- **`/new-comments`** - Find tickets with comments you may have missed
- **`/hyperfleet-jira:my-sprint`** - View current sprint and your assigned tickets
- **`/hyperfleet-jira:my-tasks`** - List all your assigned tasks across projects
- **`/hyperfleet-jira:new-comments`** - Find tickets with comments you may have missed

### For Team Leads
- **`/sprint-status`** - Comprehensive sprint health overview
- **`/team-weekly-update`** - Weekly team progress report grouped by activity type and epic
- **`/triage`** - Audit tickets for missing fields and quality issues
- **`/hyperfleet-jira:sprint-status`** - Comprehensive sprint health overview
- **`/hyperfleet-jira:sprint-pulse-check`** - Twice-weekly nudge queue for large work items (5 SP and above)
- **`/hyperfleet-jira:team-weekly-update`** - Weekly team progress report grouped by activity type and epic
- **`/hyperfleet-jira:triage`** - Audit tickets for missing fields and quality issues

### Skills (Auto-Activated)
- **jira-ticket-creator** - Creates well-structured tickets with What/Why/Acceptance Criteria, duplicate check, story points, activity type, component, parent epic, and validation gate
Expand Down Expand Up @@ -57,6 +58,7 @@ rm -rf "jira_${VERSION#v}_linux_x86_64" "jira_${VERSION#v}_linux_x86_64.tar.gz"
```bash
export JIRA_API_TOKEN="your-api-token"
```
The collector scripts also use this token for the Jira REST API, because jira-cli does not expose the changelog. The changelog carries the exact status transition and the assignee change. Without it, movement falls back to the status category date and comments only, so an item can look older than it is.

3. **Initialize jira-cli for HyperFleet:**
```bash
Expand Down Expand Up @@ -92,48 +94,94 @@ rm -rf "jira_${VERSION#v}_linux_x86_64" "jira_${VERSION#v}_linux_x86_64.tar.gz"

### Commands

#### `/my-sprint`
Commands are namespaced by plugin: invoke them as `/hyperfleet-jira:<command>`. The examples below spell the namespace out, because a command such as `/sprint-status` is common enough to collide with another installed plugin.

#### `/hyperfleet-jira:my-sprint`
Shows your current sprint at a glance:
```
/my-sprint
```text
/hyperfleet-jira:my-sprint
```
Output includes:
- Sprint name and days remaining
- Your tickets grouped by status
- Story points summary
- Blockers or high-priority items

#### `/my-tasks`
#### `/hyperfleet-jira:my-tasks`
Lists all your assigned tickets:
```
/my-tasks
```text
/hyperfleet-jira:my-tasks
```

#### `/new-comments`
#### `/hyperfleet-jira:new-comments`
Find tickets with recent comments:
```
/new-comments
```text
/hyperfleet-jira:new-comments
```

#### `/sprint-status` (Team Leads)
#### `/hyperfleet-jira:sprint-status` (Team Leads)
Comprehensive sprint health report:
```
/sprint-status
/sprint-status HF # Specific project
```text
/hyperfleet-jira:sprint-status
/hyperfleet-jira:sprint-status HF # Specific project
```
Output includes:
- Progress by status and story points
- Blockers and at-risk items
- Team workload distribution
- Carry-over risk assessment
- Progress by status, by story points and by item count
- Blocked items, highest-priority open items, and stale in-progress work
- Team workload distribution, including unassigned work
- Carry-over totals (items, story points, and reasons) and a capacity projection from the previous sprint's pace
- Every ticket key as a link, in every section, including the blocker keys inside a line
- The pull requests of the items in `Review`, read from Jira's development panel: the GitHub app's `dev-status` record for every repository, plus any link attached by hand

#### `/team-weekly-update` (Team Leads)
Weekly progress report for team updates:
The numbers come from `scripts/sprint_status.py` (`--format json` or the rendered `--format markdown`), not from hand-written JQL: story points need `issue view --raw`, and `issue list` truncates at 100 issues without saying so.

Options: `--today YYYY-MM-DD` for a reproducible run, `--sprint <id>` for another sprint, `--stale-days`, `--blocker-priority`, `--link-style markdown|slack|bare`, `--no-baseline`, `--no-prs`.

The collector tests use the plugin-level runner convention:

```bash
bash hyperfleet-jira/tests/run-tests.sh
```

The root `make test` discovers this runner automatically. It runs Python unittest
discovery relative to the runner's directory and returns the test process's exit
status. Set `PYTHON` to select an interpreter (default: `python3`); neither a live
Jira connection nor credentials are required for these tests.

Both collectors invoke only `jira` from your trusted `PATH`. The `--jira` option
accepts only `jira`, not arbitrary commands or executable paths. CLI failures
report a fixed command identifier and failure reason or exit status, never raw
stdout/stderr, which may contain private issue data or authentication details.

These rules decide what the output is worth:

- **A pull request belongs to the ticket its title names**, and only to it. Jira attaches a pull request to every ticket its title mentions, so `architecture#255`, titled `HYPERFLEET-1636`, is `HYPERFLEET-1636`'s pull request and never `HYPERFLEET-1669`'s, even when the panel shows it on both. A link titled for another ticket, or for no ticket at all, is not printed on the ticket's line: the reviewer named there would open someone else's diff, and two stalls would read as one shared blocker.
- **Ownership is per pull request, by its own title.** A ticket can own several - the same work opened in two repositories, or a follow-up after a merge - and each is listed as its own. Numbers restart in every repository, so the URL identifies the pull request: `hyperfleet-api#120` and `hyperfleet-infra#120` are two. The `+N` on a long list is a width limit, not a ranking, and the report never asks anyone which one is the real work.
- **"No link" is not "no pull request".** The report reads Jira, not GitHub: an empty segment means no record in Jira, and the recommendation is about the link - attach the pull request, or move the ticket back. A lookup that was skipped, unavailable or failed leaves the ask neutral: an empty list from a read that did not answer is unknown, not none.
- **An unreadable issue stays unknown.** A sprint item, blocker or link target the token cannot see is skipped instead of aborting the report, a blocker whose target cannot be read stays open with status `?`, and the Method section says how many reads failed.
- **The state rides along when Jira reports one.** The panel has two kinds of record: the GitHub app's `dev-status` (every repository, with a state) and hand-attached remote links (no state). Both are read and deduplicated, so `PR [#181](url) (merged)` and `PR [#177](url)` stay distinguishable - one is a ticket waiting for its status, the other one waiting for a reviewer. `--no-prs` skips the lookup; a failed read is reported as a partial signal instead of a silent gap.

#### `/hyperfleet-jira:sprint-pulse-check` (Team Leads)
Nudge queue for the large items, run a couple of times per week:
```text
/hyperfleet-jira:sprint-pulse-check
/hyperfleet-jira:sprint-pulse-check HF # Specific project
```
/team-weekly-update # All teams in HYPERFLEET
/team-weekly-update HYPERFLEET # Specific project
/team-weekly-update HYPERFLEET 6278 # Specific team
/team-weekly-update "" 6278 # Default project with team filter
Output includes:
- Items >= 5 SP ranked by days without movement (last status change, last human comment, or assignment to the current owner)
- The specific ask per item, pointing at the blocker or the reviewer when the delay is not the owner's
- Assignment gap: large items with no owner, and which of them block other work
- Concentration: owners holding more than one large item
- The pull request of an item in `Review`, inside the ask, under the same ownership rule as `/sprint-status`
- The reviewers the ask names, never the author: `dev-status` reports every requested reviewer, and the ask names all of them: `Ask Tirth and Rafael to approve or reject PR [#257](url)`. Naming one would decide who reviews, and naming the assignee would point at the person who wrote the diff. The author, a reviewer who already approved and Jira's `User ` placeholder are dropped; a hand-attached link with no reviewer list falls back to `Ask a reviewer` instead of guessing.

#### `/hyperfleet-jira:team-weekly-update` (Team Leads)
Weekly progress report for team updates:
```text
/hyperfleet-jira:team-weekly-update # All teams in HYPERFLEET
/hyperfleet-jira:team-weekly-update HYPERFLEET # Specific project
/hyperfleet-jira:team-weekly-update HYPERFLEET 6278 # Specific team
/hyperfleet-jira:team-weekly-update "" 6278 # Default project with team filter
```
Output includes:
- Closed issues from the last 7 days (Story, Task, Bug)
Expand All @@ -142,11 +190,11 @@ Output includes:
- Epic status tracking
- Issues without parent epics highlighted

#### `/triage` (Team Leads)
#### `/hyperfleet-jira:triage` (Team Leads)
Audit tickets for quality:
```
/triage
/triage backlog # Check backlog instead of sprint
```text
/hyperfleet-jira:triage
/hyperfleet-jira:triage backlog # Check backlog instead of sprint
```
Checks for:
- Missing story points
Expand Down Expand Up @@ -191,12 +239,11 @@ The estimator analyzes:
- Team velocity patterns

#### Ticket Implementation Validation
Check if a ticket's requirements are implemented:
```
/is-ticket-implemented HYPERFLEET-123 # local codebase
/is-ticket-implemented HYPERFLEET-123 github # remote (infers repo from ticket)
A skill, so it is triggered by asking rather than by a slash command:
```text
Is HYPERFLEET-123 implemented?
Is HYPERFLEET-123 implemented in the remote repo? # infers the repo from the ticket
```
Or ask naturally: "Is HYPERFLEET-123 implemented?" / "Check if this ticket is done"

Generates an acceptance report with:
- Completion percentage
Expand Down
Loading