Skip to content
Back to skills

Publish Report Board

ASecurity

Publish recurring analyses, such as backlog or bug triage, as report boards with stable URLs. Use for "publish a report board" or "refresh the board".

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added October 2, 2026
ai-agentsgoshellbashgit

Works with

  • claude code
  • terminal
  • cli

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned November 10, 2026

npx -y skills add cboone/agent-harness-plugins --skill publish-report-board --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Publish Report Board?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Publish Report Board
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cboone-publish-report-board/badge)](https://www.skillsdirectory.com/skills/cboone-publish-report-board)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: publish-report-board
description: >-
  Publish recurring analyses, such as backlog or bug triage, as report boards
  with stable URLs. Use for "publish a report board" or "refresh the board".
---

# Publish Report Board

Publish an analysis as a report board, and re-sync it in place when its source data changes.

A report board is an analysis with three properties that terminal output serves badly: it is re-run against source data that keeps changing, it is scanned for what to do next rather than read top to bottom, and it stays open as a working surface. Each board type is a fixed page template plus a reference describing the data it needs and how to derive it.

**A board renders the source of truth and never becomes one.** GitHub, or whatever else a board reads, stays authoritative, and every sync re-derives the board from it. The page holds nothing a later sync would contradict: no checkboxes, no editable status, no runtime state, and no page that saves its own versions, which would also conflict with every republish.

## Board Types

| Board type       | Answers                                                                                          | Reference                                    |
| ---------------- | ------------------------------------------------------------------------------------------------ | -------------------------------------------- |
| `backlog-triage` | What to start next, what can run in parallel, and what is blocked                                | `./references/board-types/backlog-triage.md` |
| `bugs`           | Which of a repository's bugs are critical, which are high priority, and how the rest are triaged | `./references/board-types/bugs.md`           |

Only these two ship a template. When the user wants a board for another kind of analysis, such as CI health or release readiness, say that no template exists for it yet and deliver the analysis in the terminal. When the user asks for a page all the same, lay it out by hand from the starter page, as [Hand-Laid Reports](#hand-laid-reports) describes. Never improvise a page from scratch or from a copy of a published one: boards read as one system because they share one design, described in `./references/design-conventions.md`.

## Workflow

### 1. Decide Whether a Board Is Warranted

Read `./references/choosing-a-board.md`. A one-time answer belongs in the terminal; say so in one sentence and answer there. When the user asks for a page all the same, lay it out by hand instead, as [Hand-Laid Reports](#hand-laid-reports) describes.

### 2. Locate the Script

The `report-board` script ships with this plugin. It validates board data, renders it into the template, reads it back out of a published page, and compares two syncs. Invoke it via `bash` followed by the quoted path:

```bash
bash "${CLAUDE_PLUGIN_ROOT}/scripts/report-board"
```

Before this file reaches you, Claude Code replaces the plugin-root placeholder with the installed plugin's absolute, version-correct directory. No search or shell variable is needed. Use the documented invocation when checking command permissions in the active harness. A command permission does not establish access to files, sockets or the network. Do not assume `sandbox.excludedCommands`, a matching command name or a permitted child command exempts a wrapper or pipeline from the sandbox. If access is denied, report the harness, the command and the resource named in the error; stop dependent steps and use the host's approval flow only when authorized. Never add a broad shell exemption or change user settings to make the helper run.

**If the path was not substituted**, it still begins with `$` rather than `/`. Codex CLI substitutes the placeholder only in hook commands. In that case locate the script with `**/publish-report-board/**/scripts/report-board`, prefer a match inside the harness's own installed-plugin directory, ignore any match under a `.bak` or other backup directory, confirm it with `test -x`, and use that absolute path for the rest of the session. The script finds its templates relative to its own location, so run it from where it is installed rather than from a copy.

In the commands below, `REPORT_BOARD` is shorthand for that full **quoted path**.

Each board type also has a gather script, which ships beside it and is found the same way, with its own name in place of `report-board`: `backlog-gather` for a `backlog-triage` board and `bugs-gather` for a `bugs` board.

```bash
bash "${CLAUDE_PLUGIN_ROOT}/scripts/backlog-gather"
bash "${CLAUDE_PLUGIN_ROOT}/scripts/bugs-gather"
```

The board-type references write those quoted paths as `BACKLOG_GATHER` and `BUGS_GATHER`. Both derive each issue's progress and affinity from gathered signals, as `./references/progress-model.md` describes, so the analysis never writes either. Their working files, such as the gather, the analysis, and a bugs board's assessments and score, sit beside the board data in the same directory; the bugs board's persistent cache has a directory of its own, which its reference names.

### 3. Choose Where the Board Lives

Name the data file `REPO-BOARD.json` and the board `REPO-BOARD.html`, where `REPO` is the repository name without its owner and `BOARD` is the board type: `agent-harness-plugins-backlog-triage.json` and `agent-harness-plugins-backlog-triage.html`. Those two names are fixed rather than illustrative, and the same names are used wherever the files live. The local fallback has no Artifact to recover a board from and finds the previous one by this name alone, so a session that invents its own name reads a re-sync as a first publish: it reports no changes and leaves the earlier board sitting beside the new one.

`REPO-BOARD.html` names the published board, not every page this sync renders. Without the Artifact tool the two are separate files: step 7 renders a working page that step 8 is still free to reject, and step 9 renders the board itself once the checks have passed. Give that working page any other name in the same directory, such as `REPO-BOARD.next.html`, and leave `REPO-BOARD.html` alone until step 9. The fixed name governs discovery, which is what the rule above protects; it does not mean a sync may write only one file.

- **With the Artifact tool** (Claude Code): keep both files in a directory of their own named `OWNER/REPO`, inside the session scratchpad directory when the system prompt lists one, and otherwise inside a directory from `mktemp -d "${TMPDIR:-/tmp}/report-board-XXXXXX"`. The published Artifact is the board; the local files are this conversation's working copies. The directory is what keeps two boards apart, because the file names carry the repository without its owner: boarding `owner-a/widgets` and `owner-b/widgets` in one session would otherwise write both to `widgets-BOARD.json` and leave the second render sitting on the first board's working data.
- **Without the Artifact tool** (Codex CLI): keep both files in `${XDG_CACHE_HOME:-$HOME/.cache}/report-boards/REPO-PATH/`, creating it if needed. `REPO-PATH` is the host and path of `repoUrl` together, such as `git.example.com/enterprise/owner/name`, or `github.com/OWNER/REPO` when the board carries none. The whole address is the key because a host alone is not unique: two repositories can share an owner and a name under different path prefixes on one host. The rendered `REPO-BOARD.html` there is the board, and the next session finds it at that exact path. Because the path is built from the identity, a repository that is renamed or moves to another host or prefix lands in a different directory, so step 4 finds nothing and reads the sync as a first publish. The identity guard in step 8 then never runs, and the old board stays where it was. Say so to the user rather than leaving it behind silently, and move or remove it by hand.

### 4. Find the Previous Board

Establish whether this is a first publish or a re-sync before gathering anything. `./references/artifact-mechanics.md` covers each case, and each one has a silent failure mode.

- **Published earlier in this conversation**: the working `.json` holds the previous data; copy it to `PREVIOUS_JSON`. If the working files are gone, as they are once a session restart clears the scratchpad, recover the data from the published board the way the next case does.
- **Published in an earlier conversation**: use the URL the user gives, or find it with the Artifact `list` action by the board's exact title, which has to match exactly one entry. Boards for like-named repositories share a title, so where several match, confirm a candidate's `repo` from its extracted data before publishing over it, as `./references/artifact-mechanics.md` describes. Read the artifact, save the HTML it returns, and recover the data the page was built from:

  ```bash
  bash REPORT_BOARD extract PAGE_HTML > PREVIOUS_JSON
  ```

- **Local fallback**: the previous board is `REPO-BOARD.html` in that directory; `extract` it to `PREVIOUS_JSON` the same way. Look for that name rather than for whatever HTML the directory happens to hold, and treat its absence as a first publish rather than reaching for a near match.
- **Nothing found**: this is a first publish.

Keep `PREVIOUS_JSON` apart from the working files, as `REPO-BOARD.previous.json`. Steps 6 and 7 overwrite the working files with this sync, so a comparison against them finds nothing to report.

On a re-sync, the previous data is a draft, not a source. Its lanes, tiers, and reasons are a starting point; the sources decide what is true now.

### 5. Gather and Analyze

Follow the board type's reference for the commands to run and the analysis to perform, including any check-in with the user it calls for. A `bugs` sync always checks in about its Critical and High priority calls before writing the board, and can end there when nothing has moved. Record the sync metadata as you gather: `./references/sync-metadata.md` lists what every board must state.

### 6. Write and Validate the Board Data

Write the data as JSON to the working `.json` path with the Write tool, then validate it:

```bash
bash REPORT_BOARD validate DATA_JSON
```

Fix every problem it lists, then validate again. Each board type has its own rules, listed in its reference, and they catch a stale board: an open issue left out of every lane, a blocking issue that has since closed, a start pick that is already in progress, a Critical bug resting on a triage entry that has expired. They check pull request, branch, and cross-repository references only for their shape, so confirm those are still open while gathering. Resolve each by placing or correcting the item, never by deleting an open issue from the data.

### 7. Render

Render to a working path, never straight onto a board that is already published:

```bash
bash REPORT_BOARD render DATA_JSON PAGE_HTML
```

Add `--standalone` when there is no Artifact tool. It writes a complete HTML document that opens straight from disk; the default output is a fragment, because the Artifact tool supplies its own document skeleton.

Without the Artifact tool, make `PAGE_HTML` the working page from step 3, `REPO-BOARD.next.html` beside the data file, rather than the board itself. Rendering onto the board would publish it here, before step 8 has compared anything, so a sync that step 8 tells you to abandon would already have replaced what was there. Step 9 renders onto `REPO-BOARD.html` once the checks have passed.

Never edit the rendered page. Change the data and render again.

### 8. Compare With the Previous Sync

Skip this step on a first publish. On a re-sync:

```bash
bash REPORT_BOARD compare PREVIOUS_JSON DATA_JSON
```

`PREVIOUS_JSON` is the copy step 4 saved, never a working file this sync has already overwritten. Keep the output: it is the change report, and a sync that silently overwrites the board is indistinguishable from one that did nothing.

Stop before publishing if the report carries a `Changed board identity` line naming `title`, `repo`, or `repoUrl`. A later conversation finds this board by its exact title, so a rebuilt title leaves the old board stranded and publishes a second one beside it, with nothing on either page saying so. The local fallback finds the board by the host and path of `repoUrl` as well, so a move between hosts, or to a different path prefix on one host, reads as a first publish and strands the board at the old path. These fields change only when the repository itself has been renamed or moved; confirm that is what happened, and move the old board to the new path, before going on.

### 9. Publish

**With the Artifact tool**, publish the rendered page as `./references/artifact-mechanics.md` describes: the same file path within a conversation, the board's URL from a later one, and the favicon and icon only on the first publish. Never pass `force`, and never declare runtime capabilities.

**Without it**, publishing is a second render, this time onto the board path itself. It comes last, after step 8, so that a re-sync which has to stop stops with the published board untouched.

Skip the freshness check on a first publish, since step 4 found no board and there is nothing to extract. Otherwise extract the board at its path once more and confirm it still holds the data step 4 recovered. A difference means another session published while this one was gathering, so begin again from that newer board rather than writing over it. Then run `render` again, giving it the board path as its output, and give the user that path.

Render onto the board rather than moving the file step 7 produced. `render` replaces a page in place: it writes through a temporary file in the board's own directory and gives it the mode the board already has, so a board written under a strict umask is not widened by a later session running under a looser one. Moving a file carries the mode of the file being moved, which would lose that.

This is weaker than what the Artifact tool does, and it is worth knowing by how much. That tool refuses a publish outright to a page that changed since this conversation read it. Nothing on disk refuses anything, and this check does not hold the file between confirming it and writing over it, so two sessions can still interleave. It catches the ordinary case and turns a silent overwrite into a stop. `./references/artifact-mechanics.md` states what it leaves uncovered.

### 10. Report

Tell the user:

1. The board's URL, or the absolute path of the local file, which opens in any browser.
2. The sync line: when, against which branch, and at which commit.
3. On a re-sync, the `compare` output under a "Changes since the last sync" heading, unedited.
4. The board's summary.
5. When the board is shared by link, that link viewers keep seeing the pinned version until the user moves the pin, as `./references/artifact-mechanics.md` describes.

Then stop. Publishing a board does not start work on anything it recommends.

## Hand-Laid Reports

Some reports fit no board type but are still wanted as a page: a cross-repository audit, a migration plan, an incident brief. Lay such a report out by hand, starting from the page the script writes:

```bash
bash REPORT_BOARD starter PAGE_HTML
```

- **The starter is the system's anatomy with sample text**: masthead, count strip, summary, ranked sections, an aside, the Report divider, report rows, a reference table, and the footer, with the shared stylesheet already inlined. Replace the text, drop the parts the report does not need, and repeat the ones it does, following `./references/design-conventions.md`. Draw on the stylesheet's classes; a rule the page needs that the sheet lacks goes in a second style element after the shared one.
- **A hand-laid report is a snapshot, not a board.** It carries no board data, so `validate`, `extract`, and `compare` do not apply and nothing re-syncs it. Its masthead and footer say when it was laid out, against which branch and commit where one applies, and that it was laid out by hand.
- **Name it `SLUG.html`**, where `SLUG` is a short kebab-case name for the subject, such as `monitoring-gaps` or `auth-migration`. A report can span several repositories, so the name does not depend on one. Give the page a `<title>` naming the subject, and keep it unchanged across revisions, because it is how a later conversation finds the report.
- **With the Artifact tool**, write the page into a `reports` directory inside the session scratchpad directory, creating it if needed, or inside a directory from `mktemp -d "${TMPDIR:-/tmp}/report-board-XXXXXX"` when there is none. Publish it as `./references/artifact-mechanics.md` describes for a board, except that the first publish passes the icon `report`, no favicon, and a one-sentence description naming the subject; later publishes omit the icon, as a board's do. To revise it in the same conversation, edit the file and publish the same path again. In a later conversation, find the URL by the exact title, which has to match exactly one entry: a hand-laid page carries no board data, so when none or several match, ask the user for the URL rather than extracting or guessing. Then read the page, save it, edit that copy, and publish it with the URL. Never pass `force`.
- **Without the Artifact tool**, write it with `--standalone` straight to `${XDG_CACHE_HOME:-$HOME/.cache}/report-boards/reports/SLUG.html`, creating the directory if needed. That file is the published page: no second render or freshness check follows, and a revision is an edit to it. Give the user its absolute path.
- **`starter` only ever creates a page.** It refuses a path that already exists, so it never writes over a page laid out by hand; a revision always edits the page itself.

## Error Handling

- If `gh` is not authenticated, tell the user to run `gh auth login` and stop; a board built from partial data is worse than none.
- If `bugs-gather` reports that the ZenHub token variable is not set, tell the user which variable the config names and stop.
- If `bugs-gather score` refuses the assessments, read the bugs it names again rather than editing their `updatedAt`; a stale assessment describes a bug that has since changed.
- If `jq` is missing, `report-board` exits with status 2 and says so. Tell the user to install it.
- If validation fails after an honest attempt to place every item, show the user the remaining problems rather than publishing a board that breaks its own rules.
- If a publish is refused because the page changed since this conversation read it, read it again, rebuild from what comes back, and publish again.
- If no board type fits the request, say so and answer in the terminal, unless the user asks for a page; then follow [Hand-Laid Reports](#hand-laid-reports).

Files in this skill

  • SKILL.md13.3 KB
  • references/artifact-mechanics.md7 KB
  • references/board-types/backlog-triage.md21.1 KB
  • references/choosing-a-board.md2.8 KB
  • references/design-conventions.md3.2 KB
  • references/sync-metadata.md3.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.