admin-ui
Rules for working inside packages/admin-ui. Apply when editing or creating admin UI components, pages, or styles.
Install / Use
npx skills add eskobar95/mercflowInstalls into whichever agent you are using.
Cursor Rules
Cursor IDE rules (v2)
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of admin-ui
admin-ui scores 63/100 on our quality scale, 3989th of 4,617 Development & Engineering skills we index.
Its Cursor Rules is 5.4 KB long, well organised into 14 sections with 5 code examples: a solid amount of guidance for an agent.
It has no GitHub stars yet, so there is no community track record; judge it on its content.
Maintenance, license and trust
- We could not determine when the repository was last updated.
- Our last check on 2026-10-18 found the source still online.
- No license is declared. By default that means all rights are reserved: you can read it, but reusing or redistributing it is not clearly permitted. Ask the author before building on it commercially.
- Its trust signals score 68/100, with 3 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.
AI review by kimi-k2.7-code on 2026-09-24. Automated pattern scan on 2026-09-24. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
admin-ui compared with similar skills
All 4 of these similar skills score higher than admin-ui; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| admin-ui (this skill)by eskobar95 | 63 | 0 | — | Cursor Rules |
| taste-skillby Leonxlnx | 100 | 110.6k | today | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 69.8k | today | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 46.6k | 2d ago | CLAUDE.md |
| algorithmic-artby anthropics | 100 | 177.9k | 44d ago | SKILL.md |
Frequently asked questions
- How do I install admin-ui?
- Run
npx skills add eskobar95/mercflow. The install tabs above show the steps for each supported agent. - Which AI agents does admin-ui work with?
- It is written for Cursor, as a Cursor Rules file. Other agents that read the same format can often use it too.
- Is admin-ui safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It declares no license and scores 68/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is admin-ui still maintained?
- We could not determine when the repository was last updated.
Skill content
View source on GitHubdescription: Rules for working inside packages/admin-ui. Apply when editing or creating admin UI components, pages, or styles. globs: ["packages/admin-ui/**/*"] alwaysApply: false
Admin UI Rules
Design Philosophy
The MercFlow admin UI is inspired by Shopify Admin: light, clean, and spacious. Every design decision should reduce cognitive load and increase clarity. When in doubt, add more whitespace — not less.
Reference: Shopify Polaris design system (for inspiration only — do not import it).
Design Tokens
All visual values come from packages/design-tokens. Never hardcode values.
// ❌ Wrong
className="bg-[#f4f6f8] text-[#1a1a1a] rounded-[6px]"
// ✅ Correct
className="bg-surface text-content-primary rounded-md"
The token system exposes:
| Category | CSS variable prefix | Tailwind class prefix |
|---|---|---|
| Backgrounds | --color-surface-* | bg-surface-* |
| Text | --color-content-* | text-content-* |
| Borders | --color-border-* | border-border-* |
| Interactive | --color-interactive-* | varies |
| Spacing | --spacing-* | standard Tailwind scale |
| Radius | --radius-* | rounded-* |
If a token you need does not exist, add it to packages/design-tokens first — do not work around it.
Component Architecture
Hierarchy
Radix UI primitives
↓
MercFlow base components (packages/admin-ui/src/components/ui/)
↓
MercFlow feature components (packages/admin-ui/src/components/*)
↓
Pages (packages/admin-ui/src/pages/*)
- Base components (
/components/ui/): Thin wrappers around Radix primitives with MercFlow token-based styling. Examples:Button,Input,Badge,Card,Dialog. - Feature components (
/components/): Domain-specific components composed from base components. Examples:ProductContentTab,SEOPreview,MediaGallery. - Pages (
/pages/): Route-level components. Compose feature components. Contain no business logic — delegate to hooks.
Naming conventions
| Type | Convention | Example |
|---|---|---|
| Components | PascalCase | ProductContentTab.tsx |
| Hooks | camelCase with use prefix | useProductContent.ts |
| Utilities | camelCase | formatSeoTitle.ts |
| Types/interfaces | PascalCase with descriptive name | ProductContentFields.ts |
File structure within a feature
components/product-content/
├── ProductContentTab.tsx ← Main export
├── SEOPreview.tsx ← Sub-component
├── MediaGalleryManager.tsx ← Sub-component
├── hooks/
│ └── useProductContent.ts
├── types.ts
└── index.ts ← Re-exports public API only
Navigation Rules
MercFlow replaces Medusa's modal-heavy navigation with page-based routing.
When to use a PAGE (not a modal)
Use a dedicated page with URL routing when:
- The user is navigating to a primary entity (product, category, order, customer)
- The form has more than 4 fields
- The user might need to deep-link or share the URL
- The action is the primary purpose of the interaction
When to use a MODAL (dialog)
Use a modal only for:
- Destructive action confirmation ("Are you sure you want to delete?")
- Short, focused forms with 1–3 fields (e.g., rename, add tag)
- Contextual actions that don't deserve their own URL (e.g., quick status change)
Page transitions
All page navigations use a shared transition. AdminShell wraps the router <Outlet /> with PageTransition, keyed by the active location so the enter animation runs on every route change. Page components under src/pages/ should export content only — do not wrap them in PageTransition (avoids double application). Do not implement custom per-page transition effects; extend the shared PageTransition / shell integration instead.
List Views
All list views (products, orders, customers, categories) follow this structure:
ListPage
├── ListHeader (title, primary action button)
├── ListFilters (search, filter chips)
├── DataTable
│ ├── Column definitions (typed)
│ ├── Sortable columns
│ └── Row actions (dropdown, not inline buttons)
└── Pagination
Rules:
- Every list view must support keyboard navigation
- Row actions go in a
...dropdown — never render more than one inline action button per row - Empty states must have a helpful message and a primary action (not just "No results")
- Loading states use skeleton loaders — never spinners on full-page loads
Accessibility
- All interactive elements must be keyboard accessible
- Use semantic HTML —
<button>for actions,<a>for navigation,<nav>for navigation regions - Every form input must have an associated
<label>(not placeholder-only) - Color must never be the sole means of conveying information
- All images and icons used as content must have descriptive
alttext oraria-label
TipTap Rich Text Editor
MercFlow uses TipTap v2 as the rich text editor for content fields.
Standard extension set (do not add extensions without explicit instruction):
StarterKit(bold, italic, headings H2–H4, lists, blockquote, code)Link(withopenOnClick: false)Image(via media upload, not URL input)CharacterCount
Output format: JSON (stored as jsonb in PostgreSQL). Never store HTML directly.
Rendering: A separate RichTextRenderer utility converts stored JSON to HTML for storefront use.
// ❌ Wrong — do not store HTML
content: "<p>Hello</p>"
// ✅ Correct — store TipTap JSON
content: { type: "doc", content: [...] }
Related Skills
taste-skill
110.6kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
ai-job-search
69.8kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
46.6kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
algorithmic-art
177.9kCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems.
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
