sync-pr-dashboard

sync-pr-dashboard is a command for Claude Code from openshift-eng/ai-helpers. It costs 28 tokens per session (1,905 once invoked), scanned A, original, Apache-2.0.

A command for synchronising a GitHub Project board, a shared task board, with pull-request details such as authors, reviewers, repositories, and work areas.

In plain words
What is it for?
Use it to update the NI&D pull-request review board and classify pull requests whose work area is unclear. It needs authenticated GitHub and Jira command-line access.
Why use it?
It removes repetitive board updates and keeps reviewer assignments and team-owned pull requests aligned with GitHub data.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code; mentions AGENTS.md.

Part of the nid-team plugin — 2 commands shipped together

Good fit Use it to update the NI&D pull-request review board and classify pull requests whose work area is unclear. It needs authenticated GitHub and Jira command-line access.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/openshift-eng/ai-helpers/sync-pr-dashboard
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/openshift-eng/ai-helpers

Made for: Claude Code.

Or install nid-team, the plugin that ships this one along with the rest of its 2 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sync-pr-dashboard

README.md
[![agentmods](https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/sync-pr-dashboard.svg)](https://agentmods.dev/commands/openshift-eng/ai-helpers/sync-pr-dashboard)
Your own site
<a href="https://agentmods.dev/commands/openshift-eng/ai-helpers/sync-pr-dashboard"><img src="https://agentmods.dev/badge/commands/openshift-eng/ai-helpers/sync-pr-dashboard.svg" alt="Measured on agentmods" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,905 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.01905
Opus 5 $0.00014 $0.00953
Sonnet 5 $0.00006 $0.00381
Haiku 4.5 $0.00003 $0.00191

Measured 2d ago against content hash 8285f70032d4, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

sync-pr-dashboard scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

r = subprocess.run(['gh','pr','view',str(number),'-R',repo,'--json','state,mergedAt','-q','.state + \" \" + .mergedAt'], capture_output=True, text=True)
plugins/nid-team/commands/sync-pr-dashboard.md · 155 lines

How it starts

The opening of the file, as written. The whole thing — 155 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Name

nid-team:sync-pr-dashboard

Synopsis

/nid-team:sync-pr-dashboard

Description

Syncs the NI&D PR Review GitHub Project board (https://github.com/orgs/openshift/projects/28). Runs a script for deterministic operations, then uses AI to classify ambiguous PR areas.

Prerequisites

  • GitHub CLI (gh) authenticated with read:project and project scopes
  • acli (Jira CLI) installed and authenticated with access to OCPBUGS project
  • Access to the openshift org

Implementation

Step 1: Run the sync script

Run ~/.claude/commands/sync-pr-dashboard.sh (or plugins/nid-team/scripts/pr-dashboard/sync-dashboard.sh).

This handles:

  • PR Author — Populates blank "PR Author" fields with display names
  • Reviewer Sync — When Primary or Secondary Reviewer is set, comments /assign @user on the PR if not already assigned
  • Shared Repo PRs — Adds team-authored PRs from shared repos (defined in config.sh)
  • Area (deterministic) — Sets Area for repos with obvious mappings (defined in REPO_TO_AREA in config.sh)

Step 2: Classify ambiguous PR areas with AI

After the script completes, run the helper script to get structured data on unclassified items:

~/.claude/commands/list-unclassified-areas.sh

This outputs each unclassified item with its item ID, repo, PR number, title, URL, and changed files.

For each item in the output, classify into one of these areas based on the title and changed files:

Area Option ID Signals
GWAPI 196a759b Files in pkg/operator/controller/gateway*, pkg/operator/controller/gatewayclass*, title mentions gateway/istio/sail/GWAPI/noOLM, api changes to gateway fields
Router 667048b1 Files in pkg/operator/controller/ingress*, router template changes, HAProxy config, route-controller-manager, IngressController API changes
DNS c2935ddd DNS-related api changes, coredns plugins
ExDNS b02c7810 External DNS related changes
ALBO a6184328 ALB related changes
Misc 1ec39a5b OWNERS file updates, CI/Prow config, AGENTS.md, coderabbit config, repo meta, go bumps that span areas, docs that don't fit another area
AI 9f9c29ab ai-helpers plugin PRs, MCP server tooling, Claude Code skills and agents

Read the full file on GitHub · 155 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 155 lines · 28 tokens per session scan A 8285f70032d4

Subscribe to this mod's changes

sync-pr-dashboard is a command published in the GitHub repository openshift-eng/ai-helpers (116 stars, last pushed 2d ago), licensed Apache-2.0. It adds 28 tokens to every session and 1,905 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.