cffrank/paperclip-skills-agents/code-reviewer

Claude Code and agent skill by cffrank/paperclip-skills-agents

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Code review skill with Cloudflare Workers runtime checks, D1 query safety, Drizzle ORM patterns, wrangler.toml validation, and SvelteKit conventions. Provides three-tier feedback (blocker/suggestion/nit) with copy-paste-ready fixes. Use when reviewing PRs, auditing code quality, checking Workers compatibility, or mentoring through code review. Triggers on: "review", "PR", "code review", "check this code", "is this safe", "review my changes", "code quality", or any request to evaluate code.

Install

npx vskill@latest install cffrank/paperclip-skills-agents/code-reviewer

SKILL.md

The same SKILL.md was published earlier as cffrank/paperclip-skills-agents/code-reviewer.

Code Reviewer Skill

Adapted from agency-agents engineering-code-reviewer.md — enhanced with Cloudflare Workers runtime checks, D1 safety, and SvelteKit conventions.

Review Priority System

Blockers (must fix before merge)
  • Security vulnerabilities (SQL injection, XSS, auth bypass)
  • Workers runtime incompatibility (Node built-ins, process.env)
  • Data loss risk (missing await on D1, destructive migrations)
  • Stack violations (Prisma usage, wrong framework)
Suggestions (should fix, non-blocking)
  • Missing input validation, error handling
  • Performance issues (N+1 queries, unbatched D1 writes)
  • Missing TypeScript types
  • Accessibility gaps in UI components
Nits (style, optional improvements)
  • Naming conventions, code organization
  • Documentation gaps
  • Tailwind class ordering

Review Comment Format

[BLOCKER] Security: SQL injection risk
Line 42: User input interpolated directly into query.
Why: Attacker could inject `'; DROP TABLE users; --`
Fix:
const user = await db
.prepare('SELECT * FROM users WHERE email = ?')
.bind(email)
.first();

Cloudflare-Specific Checks

Workers Runtime
[ ] No require() or __dirname/__filename
[ ] No process.env — uses env parameter or platform.env
[ ] No dynamic import() — all imports static
[ ] No fs, path, child_process, or Node built-ins
[ ] No setTimeout/setInterval outside request context
[ ] Uses ctx.waitUntil() for background work, not dangling promises
[ ] Bundle stays under 10MB (check with --dry-run)
D1 Safety
[ ] All queries use .prepare().bind() — never string interpolation
[ ] Every D1 operation has await
[ ] Multiple writes use db.batch([...])
[ ] No SELECT * in production code — specify columns
[ ] Transactions are single-aggregate (D1 single-writer model)
[ ] Migrations are additive or use expand-and-contract
SvelteKit Conventions
[ ] Server data in +page.server.ts, not +page.ts
[ ] Form actions use fail() for errors, redirect() for success
[ ] No secrets in client-accessible load functions
[ ] Platform bindings accessed via platform.env, not global
[ ] Components use shadcn-svelte, not custom implementations
[ ] Tailwind classes only — no <style> blocks
wrangler.toml
[ ] compatibility_date is set and recent (within 6 months)
[ ] All environments have matching bindings
[ ] No secrets in [vars] — uses wrangler secret put
[ ] Routes don't conflict across environments
[ ] Migrations dir matches vitest config
Drizzle ORM
[ ] Schema changes have corresponding migration files
[ ] No Prisma imports anywhere in codebase
[ ] Relations defined correctly
[ ] Indexes on frequently queried columns

Anti-Patterns to Flag

PatternSeverityFix
process.env.XBlockerUse env.X from handler
import fs from 'fs'BlockerUse R2 or KV
db.exec(userInput)BlockerUse .prepare().bind()
await Promise.all(items.map(i => db.prepare(...).run()))SuggestionUse db.batch([...])
fetch('http://...')SuggestionUse HTTPS only
JSON.parse(body) without try/catchSuggestionWrap in try/catch or use Zod
console.log in production codeNitRemove or use structured logging
Inline styles in Svelte componentsNitUse Tailwind classes

Review Workflow

  1. Read the PR description and linked issue
  2. Check changed files list — flag wrangler.toml, migration, and workflow changes
  3. Review each file against the checklists above
  4. Post inline comments with severity + fix
  5. Write summary: X blockers, Y suggestions, Z nits
  6. Verdict: Approve / Request Changes / Comment

Relationship to Other Skills

  • Loaded by: App Dev Lead (primary), QA Lead (secondary)
  • Feeds into: reality-checker (code quality is part of Gate 1)
  • References: cf-workers-api (backend patterns), sveltekit-frontend (UI patterns)

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cffrank/paperclip-skills-agents/code-reviewer/badge)](https://verified-skill.com/skills/cffrank/paperclip-skills-agents/code-reviewer)

Something wrong with this skill or its page? Tell us.