ProSkillsLibraryFreePassScan
Code Review

Code Review · agent skill

PR Describer

Title and description from your diff. No filler.

What it does

Loads when it is needed

Your agent loads it when the user opens or describes a pull request. It carries 5 rules and reads a profile.md with your details before it starts, so the output matches your brand and project.

Same prompt, with and without

Describe a soft-delete PR

Prompt · Write the PR title and description for my branch. I'm about to open it.

branch: feat/project-archive (BILL-340: "Customers can't recover a project they deleted")
git log main..HEAD --oneline
  a1f3c9e feat: add deleted_at to projects
  77b0d41 feat: archive instead of delete in DELETE /projects/:id
  e92c0aa fix: exclude archived from project list
git diff --stat
  db/migrations/0042_projects_deleted_at.sql | 4 ++
  src/projects/repo.ts                       | 18 +++--
  src/projects/routes.ts                     | 12 +-
  src/projects/repo.test.ts                  | 31 +++
diff (excerpt)
+ ALTER TABLE projects ADD COLUMN deleted_at timestamptz;
+ CREATE INDEX idx_projects_live ON projects (org_id) WHERE deleted_at IS NULL;
- await db.query("DELETE FROM projects WHERE id = $1 AND org_id = $2", [id, orgId]);
+ await db.query("UPDATE projects SET deleted_at = now() WHERE id = $1 AND org_id = $2 AND deleted_at IS NULL", [id, orgId]);
- "SELECT * FROM projects WHERE org_id = $1 ORDER BY created_at DESC"
+ "SELECT * FROM projects WHERE org_id = $1 AND deleted_at IS NULL ORDER BY created_at DESC"
unchanged in repo.ts: getProject = "SELECT * FROM projects WHERE id = $1 AND org_id = $2"

Profile used: Project: project management API; Stack: TypeScript, Express, Postgres (node-postgres); Strictness: Standard; Conventions: conventional commits, title under 72 chars

Without the skill
**Title:** feat: soft-delete projects instead of hard delete (BILL-340) ## Summary Customers can't recover a project after deleting it (BILL-340). DELETE /projects/:id now archives the project by setting `deleted_at` instead of removing the row, so the data can be restored later. ## Changes - Migration 0042 adds a nullable `projects.deleted_at timestamptz` and a partial index `idx_projects_live` on `(org_id) WHERE deleted_at IS NULL`. - `DELETE /projects/:id` now runs an UPDATE setting `deleted_at = now()` (only if not already archived). - The project list query excludes archived projects. - Added tests in `repo.test.ts`. ## Notes for reviewers - `getProject` is unchanged, so archived projects can still be fetched by id. That's probably what a restore flow needs, but it means a deleted project is still readable via GET /projects/:id. Worth deciding whether that's intended. - There is no restore endpoint yet; this PR only stops the data loss. - The migration is additive and safe to deploy before the code. ## Testing Unit tests in `src/projects/repo.test.ts`. Locally: run the migration, delete a project, confirm it disappears from the list.
With the skill
feat(projects): archive projects instead of hard-deleting them ## What DELETE /projects/:id now sets `deleted_at` instead of removing the row, and the project list hides archived rows. `getProject` by id is unchanged, so it still returns archived projects. ## Why BILL-340: customers cannot recover a project they deleted by mistake. ## How - Partial index on `org_id WHERE deleted_at IS NULL` keeps the list query on live rows. - The UPDATE filters `deleted_at IS NULL`, so a repeat DELETE does not move the timestamp. ## How to test 1. `npm test -- projects` 2. Create a project, DELETE it, then GET /projects. Expect it gone from the list while the row still exists with `deleted_at` set. ## Risk Medium. Behaviour change on a delete path, and there is no restore endpoint yet, so recovery is a manual UPDATE. The index is not built CONCURRENTLY and blocks writes to `projects` while it builds; check the row count before deploying. Rollback: revert the code; the column and index can stay. Not verified: I have not run the tests. `GET /projects/:id` still returning archived rows looks unintended; confirm, or filter it in a follow-up.

Both answers from the same model (Claude sonnet), 2026-10-16. The one without the skill was written in a separate session that never saw it. Shortened where marked with …

SKILL.md

First 40 lines

---
name: pr-describer
description: "Use when the user says 'write the PR description', 'describe this PR', 'PR title', 'summarise my changes', 'what should the commit message be', or is about to open a pull request. Reads the diff and the commits, then writes a short, honest title and description: what changed, why, how to test it, risk, and a screenshots placeholder for UI changes. No filler. Reads profile.md for project, stack, strictness and conventions."
---

# PR Describer

A pull request description exists so a reviewer can decide in two minutes where to look hardest. It is not a diary and not a sales pitch.

## Before you start

Read `profile.md` in this folder:

| profile.md line | Use |
|---|---|
| **Project** | Name the service or area in the summary when it helps a reader outside the team. |
| **Stack** | Pick the right test commands and the right words (migration, route, component, handler). |
| **Strictness** | Gentle: describe and flag only the obvious risk. Standard: the full template. Strict: also list what you did not test and every behaviour change. |
| **Conventions** | Title format (for example conventional commits), commit and branch rules. Follow them exactly. |

If a line says "not set", ask once, write the answer into profile.md, continue.

## Workflow

1. **Get the change.** Run `git diff <base>...HEAD --stat`, then the full diff, then `git log <base>..HEAD --oneline`. If the user pasted a diff, use that. Never describe a change you have not read.
2. **Find the why.** Look in commit messages, the branch name, linked issue numbers and code comments. If the reason is not in any of them, ask one question: "Why is this needed now?" Do not invent a motivation.
3. **Classify the change.** One primary type: feature, fix, refactor, perf, docs, test, chore, migration. If the diff mixes a refactor with a behaviour change, say so in the description and suggest splitting.
4. **Write the title** using the Conventions line. Without one: imperative mood, under 72 characters, no trailing period, says what the change does ("Retry webhook delivery with backoff"), not what you did ("Updated webhook code").
5. **Write the description** with the template below. Every section is required, but a section may be one line.
6. **Run the honesty check** at the end before you hand it over.

## Template

```markdown
## What
<1-3 sentences: the behaviour that is different after this merges.>

## Why
<The problem or ticket. Link the issue. One short paragraph at most.>

Install

One command, in your project

It detects your agent; add --agent all for every agent.

npx proskills-cli add pr-describer

Or copy the skill folder (the one holding SKILL.md) into the directory your agent reads, then restart it or start a new session.

AgentThis projectEvery project
Claude Code.claude/skills/~/.claude/skills/
Cursor.agents/skills/ (or .cursor/skills/)~/.cursor/skills/
Codex.agents/skills/~/.agents/skills/
Gemini CLI.agents/skills/ (or .gemini/skills/)~/.gemini/skills/

Changelog

What changed

  • v1.0.0 · 2026-10-16
    • First versioned release: Title and description from your diff. No filler.
    • Scanned 100/100 before release.

Keep it current with npx proskills-cli update; your profile.md is never touched.

Same collection

More from Code Review

The scan checks spec compliance, token cost, clarity and security patterns. A clean scan is not a guarantee: static scanners can be evaded. Scan any skill yourself.