Repository navigation
Add security-tracker-stats-dashboard tool + skill - #248
Merged
Merged
Conversation
Generalised from the airflow-s reference dashboard, this adds a read-only stats dashboard for any apache-steward adopter. Output is a self-contained HTML page with Plotly charts: lifecycle bands (per adopter-configurable categories), opened-vs-untriaged backlog, cumulative opened/closed, mean time to triage, mean time to first response, and PR-driven mean times (createdAt -> PR-opened, PR-open -> PR-merged, PR-merged -> advisory announced). Configuration lives in a YAML overlay the adopter places at `.apache-steward-overrides/security-tracker-stats.yaml` (path configurable in `<project-config>/security-tracker-stats.md`). Defaults reproduce the airflow-s reference implementation byte-for-byte; everything that was hardcoded there (bucket granularity, milestones, scope labels, category predicates, triage keywords, bot prefixes, upstream repo) is now an overrideable knob. The skill at `.claude/skills/security-tracker-stats-dashboard/SKILL.md` follows the framework's standard structural template (placeholder convention header, adopter-override section, snapshot-drift section, prerequisites, inputs, how-to-invoke, golden rules, failure modes). The renderer prefers PyYAML when available and falls back to a tiny bundled YAML subset parser when it is not, so adopters without a build step still get the dashboard.
1 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new skill + tool pair,
security-tracker-stats-dashboard, thatrenders a self-contained HTML dashboard of
<tracker>repositorystatistics. Generalised from the in-tree airflow-s implementation
that has been driving the security team's monthly review cadence.
Output: line / area charts (no bars,
connectgaps: true) coveringopen_untriaged/open_triaged/
open_pr_merged/fixed_released/closed_other, evaluatedper-bucket via configurable predicates.
<upstream>).<upstream>).<upstream>).Vertical annotations on every chart mark the project-configurable
milestones (e.g. "skill adoption", "team handover").
Why it's useful
Steward adopters today don't have a built-in way to see how their
tracker is trending over time. The reference dashboard is what
gave the airflow-s team a clear "the new skill suite has cut median
time-to-triage from ~5d to <4h" data point, and it surfaced
backlog pressure that drove process tweaks. Making it
project-configurable means any adopter can get the same visibility
without re-implementing the data-plane.
The tool is read-only on GitHub. Both the slash-command path (the
skill) and the script path (
run.sh) run the same fetch + renderpipeline.
Config schema
Load order (highest priority last):
tools/security-tracker-stats-dashboard/default-config.yaml.$TRACKER_STATS_CONFIGoverlay (deep-merged; lists REPLACED).TRACKER_STATS_BUCKETS,TRACKER_STATS_START,TRACKER_STATS_UPSTREAM_REPO.Predicate keys:
state,state_reason,any_label,all_labels,not_label,not_any_label,no_scope_label,has_scope_label,pr_merged_by_snapshot, plusany_of/all_ofcombinators.Documented in
tools/security-tracker-stats-dashboard/README.mdand inlinein
default-config.yaml.Defaults reproduce the airflow-s reference byte-for-byte
The shipped
default-config.yamlreproduces the airflow-simplementation exactly. With the same cache, the new renderer
emits a dashboard whose chart data series are identical to the
existing one (per-bucket counts, cumulative series, mean-time
values, etc.). Differences in the emitted HTML are limited to
variable rename (
months->buckets) and the title text.Files
Security family integration
The skill is named
security-tracker-stats-dashboardand lives underthe
security-*family prefix, so it joins the security-issue familythat adopters already opt into via the
families: securitylock-fileentry. No
setup-stewardchanges are needed —adoptandupgradealready pick up any
security-*skill the snapshot ships.Adopters' existing
.gitignorepattern/.claude/skills/security-*already excludes the symlink the snapshot creates, so no gitignore
edit is required either.
Adopter migration note
Adopters who previously committed a local copy at
<adopter-repo>/.claude/skills/security-tracker-stats-dashboard/will,after running
/setup-steward upgrade, get the framework versionsymlinked in. They should
git rm -rthe committed local copy infavour of the symlink; the gitignore already excludes the resulting
dangling symlink. The airflow-s adopter has been verified to render
identically before and after the swap.
Test plan
output's chart data series byte-for-byte.
TRACKER_STATS_BUCKETS=quarterlyrenders a valid quarterlydashboard with 13 buckets (2023-Q2 through 2026-Q2).
milestones: []overlay removes all vertical lines.upstream_repo: nulloverlay omits the three PR-drivencharts without crashing.
default-config.yamlcorrectly.
framework's other skill files for cross-link correctness.
🤖 Generated with Claude Code