ProSkillsLibraryFreePassScan
Mini-apps

Mini-apps · agent skill

Admin Panel

A clean back office for any API.

What it does

Loads when it is needed

Your agent loads it when the user needs an admin interface. 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

Support admin panel with refunds

Prompt · Add an admin panel for our support team of 5 to look up customers, refund orders and suspend accounts.

Parcelly is a parcel-delivery booking app. Models: User (customers), Order (status, total_cents, payment_intent_id), Refund. Payments through Stripe. Customers have address and phone. There is no admin yet; Devise is installed for staff and customers (staff? boolean on User).

Profile used: App name: Parcelly; Stack: Rails (Devise, Pundit, PaperTrail); Users: 5 support agents plus 1 owner

Without the skill
Recommended design for Parcelly's admin, using what you already have. **Structure**: an `Admin::` namespace at `/admin` with its own layout. Authenticate with Devise and require `staff?` in a before_action, plus Pundit policies per action. Return 404 for non-staff. **Screens** 1. Customer search (email, name, phone) and customer detail with orders. 2. Order detail with a Refund action. 3. Suspend / reactivate account. **Refunds** - Pundit `OrderPolicy#refund?`. Consider limiting large refunds to the owner (threshold on total_cents). A `role` enum (support, owner) is better than a single `staff?` boolean. - Call Stripe from a service object (`Refunds::Create`) with an idempotency key. Lock the order row, check the refundable amount (total minus existing refunds), create the Refund record, update status. - Require a reason and a confirmation step. Handle Stripe failures without leaving a half-recorded refund. **Suspend**: add `suspended_at` to User, block login via Devise's `active_for_authentication?`, and require a reason. **Audit**: PaperTrail on User, Order and Refund with `whodunnit` set to the staff user. **PII**: customers have address and phone, so show them only on the detail page, keep them out of logs, and consider masking phone in search results. **Tests**: policy specs (customers locked out), refund amount edge cases, and double-click idempotency.
With the skill
Build, not reuse: Rails ships no admin, and an /admin namespace gives in-place confirmation and an audit trail that generated screens lack. Tasks (saved to profile.md): find a customer, refund an order, suspend an account. Worst mistake: a wrong refund. Never shown: card data. Role matrix (staff_role column users cannot edit, checked in Pundit on every action) | Action | support | admin | owner | | View customers, orders | yes | yes | yes | | Suspend (tier 1) | no | yes | yes | | Refund (tier 2) | up to $100 | yes | yes | | Roles, data export | no | no | yes | Suspend is tier 1: the button becomes "Confirm suspend?" in place. Refund is tier 2: shows amount and card ending, needs a reason (10+ characters), writes order and audit row in one transaction with a Stripe idempotency key; on timeout it says "Refund status unknown, check Stripe before retrying" and logs no success. Lists: 25 per page, ransack search (exact email or order id first), filters in the URL. Phone masked until revealed (logged). Audit: append-only audit_logs (occurred_at, actor_id, actor_role, action, entity_type, entity_id, before, after, reason, request_id); app role insert and select only; denials logged too. Guard tests: 403 per mutation for the wrong role, an audit row per tier-2 action (`bin/rails test test/controllers/admin`). Not run: the additive audit migration; say go and I run `db:migrate`.

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 …

Install

One command, in your project

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

npx proskills-cli add admin-panel --order <order id from your receipt>

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: A clean back office for any API.
    • Scanned 100/100 before release.

Keep it current with npx proskills-cli update; your profile.md is never touched. Everyone who bought it gets the update free and an email when it lands.

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.