Insert the `performance-audit` composite action from `jabranr/workflows` as a step that runs Lighthouse against one or more URLs and posts results to PRs or uploads them as artifacts (step-level `uses:`). Load when the user asks to add Lighthouse to CI, run performance audits, audit Core Web Vitals on PRs, or wire `jabranr/workflows` performance-audit. Do not load for creating a new top-level workflow file.
Ships in jabraf-skills. 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.
None: SKILL.md is the whole skill.
jabraf-workflows-performance-auditInserts the
performance-audit
composite action from
jabranr/workflows as a step that
runs Lighthouse against one or more URLs. On pull_request events the action
posts results as a PR comment; on push events the HTML reports are uploaded
as a lighthouse-results workflow artifact. Prose-only — you (the agent)
read the file system, surface candidates, and confirm with the user before
any irreversible step.
The canonical placement and behaviour reference lives in
jabranr/workflows README → actions/performance-audit.
If this file and the README disagree, trust the README.
Load when the user's prompt mentions any of:
jabranr/workflows performance audit", "jabraf performance audit"Do not load for creating a new top-level workflow file (use a workflow skill).
Do not load for non-Lighthouse perf tooling (WebPageTest, SpeedCurve, Calibre)
unless the user also asks for jabranr/workflows.
Each numbered step is one agent message. Steps marked [wait for user] require a user response before continuing.
Brief acknowledge. One sentence: "I'll insert the performance-audit composite action. That's: ask for the URL list, detect existing workflows, surface candidates, write the snippet inline. The enclosing job must declare permissions: pull-requests: write and contents: read — I'll surface that explicitly. Proceed?" [wait for user]
Ask for the URL list. This input is not detectable. Ask: "Which URLs should Lighthouse audit? Comma-separated, e.g. https://example.com,https://example.com/about." If package.json has a homepage field, suggest it as a default. [wait for user]
Detect candidate workflows. Scan .github/workflows/*.{yml,yaml} for workflows that look like good insertion targets — ones with a deployment trigger or an existing deployment-status / audit job:
grep -lE 'pull_request|push|deployment-status|audit' .github/workflows/*.{yml,yaml} 2>/dev/null
If none exist, ask: "No existing workflows look like good targets. Should I recommend creating a new audit job inside pr-checks.yml, or is there a specific workflow file you'd like to target?" [wait for user]
Detect existing usage. Grep the candidates for an existing reference:
grep -l 'jabranr/workflows/.github/actions/performance-audit' .github/workflows/*.{yml,yaml} 2>/dev/null
If a match is found, surface the file(s) and stop: "performance-audit is already wired in <path>. No changes needed." [wait for user] Never insert a duplicate.
Pick a target. Present the candidate workflows. If a deployment-status job exists (likely from jabraf-workflows-wait-cf-pages), recommend the dedicated audit job pattern with needs: [deployment-status] so Lighthouse only runs after the Pages deploy is live. [wait for user]
Show the diff, do not auto-edit. Print the snippet and the exact placement instruction. Ask: "Apply this change automatically (with a diff preview), or paste it in yourself?" [wait for user]
The dedicated-job snippet (preferred when paired with jabraf-workflows-wait-cf-pages):
audit:
runs-on: ubuntu-latest
needs: [deployment-status] # optional — only if a deployment-status job exists
permissions:
pull-requests: write
contents: read
steps:
- uses: jabranr/workflows/.github/actions/performance-audit@main
with:
urls: '<comma-separated URLs from step 2>'
github-token: ${{ secrets.GITHUB_TOKEN }}
If no deployment-status job exists, drop the needs: line.
Print required secrets and permissions. State explicitly:
GITHUB_TOKEN — auto-bound by GitHub Actions; no manual setup. Used to post the PR comment / commit status.permissions: pull-requests: write — mandatory on the enclosing job for the PR comment to land.permissions: contents: read — required to clone the repo if actions/checkout is also present in the job.Validate. Recommend the user opens a PR and confirms a Lighthouse comment appears. For push events, confirm the lighthouse-results artifact lands in the workflow run summary.
Default ref is @main, matching the source repo README. To pin to an
immutable SHA:
uses: jabranr/workflows/.github/actions/performance-audit@<full-40-char-sha>
Replace <full-40-char-sha> with the commit SHA from
https://github.com/jabranr/workflows/commits/main.
urls input must come from the user (or package.json homepage with explicit confirmation).permissions: pull-requests: write — the PR comment fails silently without it.localhost or pre-deploy URLs — Lighthouse needs a publicly reachable origin.pull_request_target trigger unless the user understands the security model — pull-requests: write on a fork PR is a privilege boundary.| Situation | Action |
|---|---|
| URLs include preview / per-PR subdomains | Recommend pairing with jabraf-workflows-wait-cf-pages so the audit waits for the preview to be live, and templating the URL via ${{ steps.<x>.outputs }}. |
| User wants per-page budgets / asserts | Out of scope for this skill. The action returns the raw Lighthouse report; budgets must be enforced in a follow-up step. |
Repo blocks actions[bot] from commenting on PRs | Surface this — the comment will silently 403. Recommend a PAT-backed github-token if the user cannot relax the restriction. |
User wants the artifact on pull_request events too | Not configurable via inputs. Direct the user to the upstream README; do not patch the action. |
Enclosing job already declares permissions: for other actions | Merge pull-requests: write and contents: read into the existing block — do not overwrite. Show the diff. |
| URL list is very long (10+) | Surface the runtime cost — each URL adds Lighthouse run time. Recommend splitting into multiple audit jobs or trimming the list. |
.github/actions/performance-auditactions/performance-auditjabraf-workflows-wait-cf-pages (gate the audit on a live deploy), secureci (secure-ci/cli) (validate the modified workflow)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/jabraf-skills:jabraf-workflows-performance-auditfrom jabraf-skills
npx claudepluginhub jabranr/skills --plugin jabraf-skills17 skills in this plugin
/jabraf-app-config-setupSet up `@jabraf/app-config` end-to-end in a project — install the runtime dep, scaffold `config/make-config.ts`, augment the `FeatureMap`, gitignore the generated artifact, add `prebuild`/`predev` scripts, wire the bootstrap `setConfig` call, and (React apps) mount the in-app `FeatureFlagsPanel` toggle UI. Load when the user asks to add app config, set up feature flags, configure `@jabraf/app-config`, wire `jabraf-config build`, or add a feature flags toggle panel / floating button./jabraf-commitlintSet up commitlint in a project using `@jabraf/dev`'s shared base (conventional commits). Load when the user asks to add commitlint, enforce conventional commits, configure `commitlint.config.js`, or wire up `@jabraf/dev` commitlint specifically. Do not load for general commit-message-quality questions unrelated to `@jabraf/dev`./jabraf-