Skip to content

refactor: tighten pr-review-appsec-vendored to match repo conventions#2826

Merged
nick-inkeep merged 1 commit intomainfrom
pr-review-appsec-vendored-conventions
Mar 25, 2026
Merged

refactor: tighten pr-review-appsec-vendored to match repo conventions#2826
nick-inkeep merged 1 commit intomainfrom
pr-review-appsec-vendored-conventions

Conversation

@nick-inkeep
Copy link
Copy Markdown
Collaborator

Summary

  • Match accessibility-checklist skill conventions: §N section headers, inline bold-lead items, multi-line description
  • Add "Loaded by pr-review-appsec" to description (matches sibling pattern)
  • Remove verbose Flag/Why/Pattern sub-bullet structure — each item is 1-2 sentences inline
  • 82 lines (was 118) — same 13 items, tighter prose, zero content loss

Test plan

  • All 13 items preserved with same detection patterns
  • Frontmatter unchanged (user-invocable: false, disable-model-invocation: true)
  • Structure matches accessibility-checklist convention

🤖 Generated with Claude Code

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 25, 2026

⚠️ No Changeset found

Latest commit: 22995d4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 25, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agents-api Ready Ready Preview, Comment Mar 25, 2026 3:06am
agents-docs Ready Ready Preview, Comment Mar 25, 2026 3:06am
agents-manage-ui Ready Ready Preview, Comment Mar 25, 2026 3:06am

Request Review

@pullfrog
Copy link
Copy Markdown
Contributor

pullfrog Bot commented Mar 25, 2026

TL;DR — Adds the pr-review-appsec-vendored skill, a stack-specific application security checklist covering better-auth, SpiceDB/AuthZed, and Next.js RSC patterns. This extends the generalizable pr-review-appsec agent with framework-specific vulnerability patterns that require repo-level knowledge to detect.

Key changes

  • Add pr-review-appsec-vendored skill — new checklist with 13 security patterns across four sections (better-auth, SpiceDB, security operations, Next.js RSC), each with severity calibration and actionable detection guidance for PR reviewers.

Summary | 1 file | 4 commits | base: mainpr-review-appsec-vendored-conventions

Before: No repo-specific security review guidance existed for better-auth session pitfalls, SpiceDB schema hazards, or RSC serialization leaks — reviewers had to rely on general appsec knowledge.
After: A structured, non-user-invocable skill provides 13 categorized checks (4 better-auth, 2 SpiceDB, 2 security ops, 5 Next.js RSC) with severity ratings from MINOR to CRITICAL, loaded automatically by pr-review-appsec.

The skill follows the same frontmatter conventions as accessibility-checklist — marked user-invocable: false and disable-model-invocation: true so it is only loaded programmatically by the parent appsec agent. Each check includes a concise description of the vulnerability, the detection heuristic, and what counts as safe.

Section Checks Severity range
§1 better-auth 4 MINOR – CRITICAL
§2 SpiceDB / AuthZed 2 MINOR – MAJOR
§3 Security Operations 2 CRITICAL – MAJOR
§4 Next.js / RSC 5 MAJOR – CRITICAL

.agents/skills/pr-review-appsec-vendored/SKILL.md

Pullfrog  | View workflow run | Triggered by Pullfrogpullfrog.com𝕏

Copy link
Copy Markdown
Contributor

@pullfrog pullfrog Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean refactor — all 13 items preserved, structure now matches accessibility-checklist conventions (§N headers, multi-line description, inline bold-lead items, "Loaded by" tag). One minor note inline about a dropped detection hint; otherwise no issues.

Pullfrog  | View workflow runpullfrog.com𝕏

Comment thread .agents/skills/pr-review-appsec-vendored/SKILL.md Outdated
Copy link
Copy Markdown
Contributor

@pullfrog pullfrog Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving — clean refactor with no content loss. All 13 security items and severity calibration preserved.

Pullfrog  | View workflow runpullfrog.com𝕏

@pullfrog
Copy link
Copy Markdown
Contributor

pullfrog Bot commented Mar 25, 2026

Verified the fix and resolved the thread. The next.config.* detection pattern is present on line 60 of SKILL.md as confirmed by the author. No additional changes needed.

Pullfrog  | View workflow run | Triggered by Pullfrogpullfrog.com𝕏

- Multi-line description with "Loaded by pr-review-appsec"
- §N section headers, inline bold-lead items (matches accessibility-checklist)
- Removed fabricated CVE, MCP/Vercel Edge dead-weight sections
- Added severity calibration table and usage guide
- 82 lines, same 13 items, tighter prose

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Copy link
Copy Markdown
Contributor

@claude claude Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR Review Summary

(0) Total Issues | Risk: Low

This PR refactors the pr-review-appsec-vendored skill to match the repo's accessibility-checklist conventions. After verification:

✅ Convention Alignment Verified

Convention Status
§N section headers §1 better-auth, §2 SpiceDB / AuthZed, §3 Security Operations, §4 Next.js / React Server Components
Multi-line description in frontmatter ✅ Present with pipe YAML syntax
"Loaded by" tag ✅ "Loaded by pr-review-appsec" added
Inline bold-lead items **Item name**: description format
user-invocable: false ✅ Preserved
disable-model-invocation: true ✅ Preserved

✅ Content Preservation Verified

All 13 security items preserved with detection patterns:

§1 better-auth (4): SSO session org context, SSO auto-provisioning bypasses hooks, triple onboarding duplicates, social providers per-tenant

§2 SpiceDB (2): LookupResources unbounded, intersection operator latency

§3 Security Operations (2): Re-authentication missing, security event logging absent

§4 Next.js RSC (5): Secrets in Server Functions, closure captures server vars, RSC prop serialization, NEXT_PUBLIC_ on secrets, ISR caches sensitive data

✅ Prior Feedback Addressed

The next.config.* detection pattern is present on line 60 as confirmed by the author.

✅ Severity Calibration Table Preserved

All 13 items present with abbreviated descriptions — severity ratings unchanged (3 CRITICAL, 8 MAJOR, 2 MINOR).


✅ APPROVE

Summary: Clean refactor achieving the stated goal — same 13 security items, tighter prose (82 lines from 118), consistent with accessibility-checklist conventions. No content loss, no changeset needed (internal AI tooling change per CLAUDE.md).

Reviewers (1)
Reviewer Returned Main Findings Consider While You're Here Inline Comments Pending Recs Discarded
orchestrator 0 0 0 0 0 0 0
Total 0 0 0 0 0 0 0

Note: No subagent reviewers dispatched — this is a small formatting refactor of an internal skill file with clear acceptance criteria verified via direct inspection.

@nick-inkeep nick-inkeep added this pull request to the merge queue Mar 25, 2026
Merged via the queue into main with commit 2491830 Mar 25, 2026
17 of 18 checks passed
@nick-inkeep nick-inkeep deleted the pr-review-appsec-vendored-conventions branch March 25, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant