ProSkillsLibraryFreePassScan
Mini-apps

Mini-apps · agent skill

CRUD Scaffold

Tables, forms, auth. Done.

What it does

Loads when it is needed

Your agent loads it when the user needs a data-backed internal tool. It carries 3 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

Model an equipment loan tracker

Prompt · Build me a small tracker for our lab's equipment loans.

We lend cameras, laptops and cables to staff and students. We need to know who has what, when it is due back, and any damage notes. Today it is a shared spreadsheet.

Profile used: App name: LoanBench; Stack: Django; Users: lab of 8 (6 technicians, 2 managers)

Without the skill
Here's a data model and scaffold plan for LoanBench in Django. **Models** - `Category`: name (camera, laptop, cable). - `Item`: name, category (FK), asset_tag (unique), serial_number, notes, is_active. - `Borrower`: name, email, type (staff/student). - `Loan`: item (FK), borrower (FK), checked_out_by (FK User), checked_out_at, due_date, returned_at (nullable), return_notes. - `DamageNote`: item (FK), loan (FK, optional), noted_by (FK User), description, created_at. Item status (available / on loan / overdue) is derived from whether an open Loan exists (returned_at is null), so there's no duplicate field to go stale. Add a conditional UniqueConstraint so an item can't have two open loans. **Roles**: 6 technicians and 2 managers. Use Django groups: technicians check out, return and add damage notes; managers can also edit items and borrowers, delete, and see reports. **Screens** 1. Dashboard: who has what, overdue in red, due this week. 2. Item list/detail with loan history and damage notes. 3. Check-out and return forms (return captures condition and notes). 4. Borrower list/detail. Start with the Django admin for quick wins, then add custom views for check-out and return. Add a management command to email overdue lists, and import the spreadsheet via CSV. SQLite or Postgres both work for 8 users. Want me to write the models and views?
With the skill
Before any code, here is the data model for LoanBench to confirm. Every table also gets id, created_at, updated_at. items: name (required), asset_tag (required, unique), category (camera, laptop, cable, other; required), condition (ok, in_repair, retired; default ok), archived_at (null) borrowers: name (required), email (required, unique), kind (staff or student; required), archived_at (null) loans: item_id (required, protected FK), borrower_id (required, FK), loaned_by (required, FK to user), loaned_at (required), due_on (required), returned_at (null), damage_notes (text, optional) Proposed rules: one item per loan; at most one open loan per item (unique where returned_at is empty); "on loan" and "overdue" are derived (open loan; due_on before today), not stored, so they cannot drift. Items and borrowers are archived, never deleted, since loans refer to them. Roles (8 users): manager and technician. Managers manage items, borrowers and users; technicians create and return loans. Invite-only, no public sign-up. After you confirm: migrations, ModelForms and class-based views with LoginRequiredMixin; per entity a list (25 per page, name search, two sortable columns, empty state), detail and edit form; 15 seeded loans, 3 overdue; then I run it. Questions: can one loan cover several items (camera plus cable), or is a kit its own item? Block a second loan while one is overdue?

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: crud-scaffold
description: "Use when the user needs an internal tool, admin app, tracker or back-office that stores records: \"build me a CRUD app\", \"a simple ops dashboard\", \"a place for my team to manage X\". Models the data and confirms it first, then generates list, detail and edit views and adds authentication before any deploy. Reads profile.md for app name, stack and users."
---

# CRUD Scaffold

Internal tools fail in two places: a data model nobody agreed to, and a login that was added after the first deploy. This skill fixes both by agreeing the tables before any code, and by putting auth in before the app is reachable by anyone.

## Before you start

Read `profile.md` in this folder:

| profile.md line | Use |
|---|---|
| **App name** | Project, package and page titles. |
| **Stack** | Next.js + Supabase, Rails, Django or Laravel. Use that stack's own conventions and generators. |
| **Users** | Who uses it and how many. Decides roles (see rules). |

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

## Workflow

1. Ask what the tool manages in one sentence, then list the entities in plain words (for example: customers, tickets, notes).
2. Model the data first. For each table give: name, columns with types, which are required, which are unique, and the relationships. Add `id`, `created_at`, `updated_at` to every table. Show the model as a table and wait for the user to confirm. Do not generate code before they confirm.
3. Create the schema with the stack's migration tool. Review the migration. Do not run a migration against a production database without the user's explicit confirmation.
4. Generate three views per entity: a list, a detail page and an edit form (the same form creates).
5. Add authentication and roles before the first deploy (see stack notes).
6. Seed with 10 to 20 realistic sample rows so the list, search and empty states can be checked.
7. Run the app, open each view, and fix what breaks before reporting.

## Views

- **List:** table with 25 rows per page, a text search on the main name column, sort on at least two columns, and an empty state with a create button.
- **Detail:** all fields, related records, and actions in the same place on every page.
- **Edit:** a label on every field, inline validation errors, required fields marked, save and cancel. Destructive actions ask for confirmation naming the record.

## Stack notes

- **Next.js + Supabase:** enable Row Level Security on every table and write policies before reading data from the browser. Never ship the service role key to the client.

Install

One command, in your project

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

npx proskills-cli add crud-scaffold

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: Tables, forms, auth. Done.
    • Scanned 100/100 before release.

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

Same collection

More from Mini-apps

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.