scaffolding-ui-and-pages
Skill378 starsChanged 4 months agoApache-2.0View on GitHub
Translates a UI_Component_Inventory.md artifact into modern ShadCN + Tailwind components AND fully scaffolded Next.js pages. Use when building the frontend design system and routing infrastructure.
In this repository59 other files it gives its agents.
- codelabs/ai-toolkit-lab-2/hackathon-judge/frontend/.agents/skills/vercel-composition-patterns/AGENTS.mdAGENTS.md
- codelabs/ai-toolkit-lab-2/hackathon-judge/frontend/.agents/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- batch-executing-test-suitesSkill
- circuit-breaker-reporterSkill
- generating-mock-imagesSkill
- making-forms-demoSkill
- multi-step-workflow-reporterSkill
- go-project-setupSkill
- latest-software-versionSkill
- video-descriptionSkill
- adk-memory-bank-initializerSkill
- agent-containerizerSkill
- cloud-run-agent-architectSkill
- gcp-agent-eval-engine-runnerSkill
- gcp-agent-eval-metric-configuratorSkill
- gcp-agent-golden-dataset-builderSkill
- gcp-agent-model-armor-shieldSkill
- gcp-agent-safety-gatekeeperSkill
- gcp-agent-sdp-template-factorySkill
- gcp-agent-shadow-deployerSkill
- gcp-agent-tool-trajectory-evaluatorSkill
- gcp-production-secret-handlerSkill
- mcp-connector-generatorSkill
- go-architectSkill
- go-backend-devSkill
- go-reviewerSkill
- go-test-expertSkill
- vercel-composition-patternsSkill
- vercel-react-best-practicesSkill
- brand-guidelinesSkill
- knowledge_catalog_governanceSkill
- banana-breadSkill
- cheese-breadSkill
- drawingsSkill
- paintingsSkill
- photographySkill
- adding-easter-eggSkill
- building-platformer-gamesSkill
- creating-a-gameSkill
- ensuring-arcade-visualsSkill
- handling-user-inputSkill
- helping-the-userSkill
- improving-game-qualitySkill
- messaging-game-overSkill
- playing-the-gameSkill
- adversarial-verificationSkill
- auditing-api-contractsSkill
- auditing-business-logicSkill
- auditing-data-modelsSkill
- auditing-paritySkill
- auditing-ui-archeologySkill
- generating-api-testsSkill
- generating-database-seederSkill
- orchestrating-greenfield-migrationSkill
- scaffolding-api-routesSkill
- scaffolding-data-layerSkill
- scaffolding-nextjs-foundationSkill
- scaffolding-test-foundationSkill
- ping_pong_pairingSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 1 is distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 26
Build Shared Layouts: Create the Navbar, Footer, and MobileMenu.
- Very specific: line 28
Modernize Features: Use premium ShadCN primitives (e.g., NavigationMenu, Avatar, Button, Card) instead of raw Bootstrap/CSS classes.
- Distinctive: line 32
Verification (Visual smoke-test): Verify that the UI is visually appealing and functional.
- Very specific: line 35
Output Result: Ensure all components are exported from src/components/ and all pages are functionally implemented in src/app/.
- Very specific: line 38
If the design system uses @base-ui/react primitives (standard in ShadCN v4+), you MUST follow these patterns for asChild support:
- Very specific: line 40
Implicit Slot Pattern: Use the render prop on Base UI primitives to implement asChild.
- Very specific: line 41
Button Semantics: When a Button or MenuItem acts as a Link (via asChild), you MUST set nativeButton={false} on the primitive to suppress …
- Very specific: line 43
Prop Merging: Use React.cloneElement or direct Prop spreading into the render callback to ensure ref, className, and event handlers are …
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
UI & Pages Scaffolding Specialist
Locate and read all artifacts in docs/legacy-audit/ directory.
Objective
Implement high-fidelity, modern React components using ShadCN and Tailwind, AND wire them together into fully functional Next.js pages (src/app/**/page.tsx) based on the requirements and Route Topology extracted from legacy Pug templates.
Instructions for the Scaffold Subagent
Copy this checklist and track your progress:
Task Progress:
- [ ] Step 1: Initialize ShadCN
- [ ] Step 2: Build Shared Layout Components (src/components/layout/)
- [ ] Step 3: Scaffold Domain Components (src/components/articles/, etc.)
- [ ] Step 4: Extract Route & Page Topology
- [ ] Step 5: Scaffold Pages (src/app/**/page.tsx)
- [ ] Step 6: Verification (Visual smoke-test)- Initialize Design System: Install the core ShadCN CLI using
npx shadcn@latest initand configure the Tailwind theme (colors, fonts). - Build Shared Layouts: Create the
Navbar,Footer, andMobileMenu.- Logic: Replicate the conditional logic (e.g., Auth-links) from the legacy metadata using Next.js
getServerSession. - Modernize Features: Use premium ShadCN primitives (e.g.,
NavigationMenu,Avatar,Button,Card) instead of raw Bootstrap/CSS classes.
- Logic: Replicate the conditional logic (e.g., Auth-links) from the legacy metadata using Next.js
- Component Scaffolding: Build specific logic-heavy components like
CommentListandArticleCardusing the legacy field mapping. - Route & Page Topology Check: Go to the
docs/legacy-audit/UI_Component_Inventory.mdand explicitly extract the list of intended pages and URLs. - Page Scaffolding: For every single mapped route, create its routing wrapper in
src/app/[path]/page.tsx(e.g./articlesneedssrc/app/articles/page.tsx). Hook up all business logic, server actions, UX intent, and data fetching components required. - Verification (Visual smoke-test): Verify that the UI is visually appealing and functional.
Output Result: Ensure all components are exported from src/components/ and all pages are functionally implemented in src/app/.
Base UI & asChild Best Practices
If the design system uses @base-ui/react primitives (standard in ShadCN v4+), you MUST follow these patterns for asChild support:
- Implicit Slot Pattern: Use the
renderprop on Base UI primitives to implementasChild. - Button Semantics: When a
ButtonorMenuItemacts as aLink(viaasChild), you MUST setnativeButton={false}on the primitive to suppress semantics warnings and avoid invalid nested interactive elements.- Example:
<ButtonPrimitive nativeButton={false} render={(props) => <Link {...props} />}>
- Example:
- Prop Merging: Use
React.cloneElementor direct Prop spreading into therendercallback to ensureref,className, and event handlers are correctly merged onto the child.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

