Design & UI
add-admin-page
This skill should be used when the user asks to "add admin page", "add admin", "admin dashboard", or wants to add NiceGUI admin pages to an existing domain.
Mr-DooSun · Static checks on file
Installation
Read the source and dependencies before running a command. Copying does not install or execute anything.
npx skills add Mr-DooSun/fastapi-agent-blueprint --skill add-admin-pageAbout this skill
name: add-admin-page argument-hint: domain_name description: | This skill should be used when the user asks to "add admin page", "add admin", "admin dashboard", or wants to add NiceGUI admin pages to an existing domain.
Add Admin Page to Existing Domain
Domain name: $ARGUMENTS
Default Flow Position
- Step:
implement(approach optionsupstream conditional — required for sensitive fields or new admin auth surfaces) - Routes after:
/test-domain {name} run(verify) →/security-review(self-review) if sensitive fields exposed - Recursion guard: do not invoke
/plan-featurefrom inside this skill
Procedure Overview
- Analysis — verify domain exists, read DTO fields, ask user preferences
- Implementation — directory structure → admin config → page routes
- Verification — pre-commit, import check, server start
Core Rules
- CRUD pages are config-only
BaseAdminPageinstances — they inherit the design system automatically (the base class renders via the component builders). - Custom / non-CRUD pages MUST compose
admin.componentsbuilders (c.page_header,c.card,c.stat_card,c.data_grid,c.confirm_dialog, …) — never rawui.card/ui.aggrid/ui.dialogfor those shapes, and never hardcoded color classes or inline grid heights (AST-guarded). - Every route:
@admin_error_boundary(...)+require_auth*as the first statement. - A new shared UI shape gets a builder in
components/, not an inline page helper.
Read docs/ai/shared/skills/add-admin-page.md for detailed steps and code templates.
Refer to docs/ai/shared/admin-design-system.md for the component catalog + DO/DON'T,
and docs/ai/shared/project-dna.md §11 for the admin page DI pattern.