chore: add agent skills (pr-quality-gate, portal-ponder-release) + Portal coverage tooling#7
Merged
Merged
Conversation
93689eb to
e9e65b0
Compare
4 tasks
mo4islona
added a commit
that referenced
this pull request
Jul 3, 2026
Makes PR #7 self-contained: the coverage-guard step now ships with its tooling. - portal/vite.portal.config.ts: v8 coverage block scoped to the Portal source (inert unless --coverage; also converts the file to single quotes per Biome) - scripts/sync-upstream.sh: --coverage mode (installs the matching v8 provider, emits portal-coverage/coverage-summary.json) - scripts/coverage-diff.mjs: renders a base-vs-head Portal coverage table for a PR body (head-only fallback when base predates the tooling) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
c3774b6 to
b8e1923
Compare
Two agent skills under .agents/skills/, plus the Portal-layer coverage tooling the pr-quality-gate skill drives (so the skill and its tooling ship together). Skills: - pr-quality-gate: pre-PR gate — verifies changed Portal code has co-located tests, runs the suite via scripts/sync-upstream.sh <ver> --test (grafted ponder tree), generates a Portal-layer coverage diff for the PR body, and enforces the Biome lint/code-style gate. - portal-ponder-release: end-to-end release for @subsquid/ponder (the Portal fork), versioned <ponder-version>-sqd.<rev>, via release.yml + npm Trusted Publishing; includes release-template.md for the required GitHub release notes. Coverage tooling (supports the pr-quality-gate coverage guard): - portal/vite.portal.config.ts: v8 coverage block scoped to the Portal source (inert unless --coverage; also converts the file to single quotes per Biome). - scripts/sync-upstream.sh: --coverage mode (installs the matching v8 provider, emits portal-coverage/coverage-summary.json). - scripts/coverage-diff.mjs: renders a base-vs-head Portal coverage table for a PR body (head-only fallback when base predates the tooling). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
b8e1923 to
7445611
Compare
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.
Adds two agent skills under
.agents/skills/plus the Portal-layer coverage tooling thepr-quality-gateskill drives — so the skill and its tooling ship together and this PR is self-contained.Skills
pr-quality-gateRuns before creating a PR: verifies changed Portal code has co-located tests, runs the suite the repo's way (
scripts/sync-upstream.sh <ver> --test, grafted onto a ponder checkout), generates a Portal-layer coverage diff for the PR body, and enforces the Biome lint/code-style gate.portal-ponder-releaseEnd-to-end release procedure for
@subsquid/ponder(the Portal fork), versioned<ponder-version>-sqd.<rev>, published viarelease.yml+ npm Trusted Publishing. Includesrelease-template.mdfor the (now required) GitHub release notes.Coverage tooling (supports the pr-quality-gate coverage guard)
portal/vite.portal.config.ts— v8 coverage block scoped to the Portal source; inert unless--coverageis passed (also converts the file to single quotes per Biome).scripts/sync-upstream.sh—--coveragemode: installs the matching v8 provider (standalone, since the renamed core breaks a workspace-widepnpm add) and emitsportal-coverage/coverage-summary.json.scripts/coverage-diff.mjs— renders a base-vs-head Portal coverage table for the PR body (head-only absolute fallback when the base branch predates the tooling).Verified end-to-end: a fresh graft reports 90.4% stmts / 77.1% branch / 94.0% funcs, and the diff renderer produces the table + a decrease warning.
🤖 Generated with Claude Code