Agent skill
feature-scaffolding
Scaffolds new feature pages following project patterns. Use when creating new pages, features, routes, or when user asks to set up a new section. Works with component-organization skill for structure.
Install this agent skill to your Project
npx add-skill https://github.com/dinogit/motocho/tree/main/.claude/skills-disabled/feature-scaffolding
SKILL.md
Feature Scaffolding
Create new feature pages following the established project patterns.
Standard Structure
src/features/{feature-name}/
page.tsx # Main page, imports and composes components
components/ # Feature-specific components (one per file)
component-name.tsx
types.ts # (if needed) Feature-specific types
page.tsx Template
import { ComponentName } from './components/component-name'
export function Page() {
return (
<div>
<ComponentName />
</div>
)
}
Component Template
// components/component-name.tsx
interface ComponentNameProps {
// props here
}
export function ComponentName({ ...props }: ComponentNameProps) {
return (
// JSX here
)
}
Rules
- One component per file - See component-organization skill
- Kebab-case filenames -
summary-card.tsx, notSummaryCard.tsx - Named exports -
export function X, notexport default - No barrel files - Import directly from component files
- Avoid useEffect - Prefer event handlers, props, and state
When to Apply
- Creating a new feature/page from scratch
- User asks to "scaffold", "set up", or "create" a new section
- Adding a new route that needs standard structure
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
react-hook-form
Build forms in React using React Hook Form and Zod validation. Use when creating forms with useForm, Controller, or useFieldArray.
component-organization
Enforces single-component-per-file pattern for React feature pages. Use when creating new pages, refactoring page.tsx files, or when components are mixed in a single file.
tanstack-form
Build forms in React using TanStack Form and Zod validation. Use when creating forms, handling form validation, or working with form fields.
task-estimation
Provides task estimation before starting work. Use when planning new features, refactoring, bug fixes, or any non-trivial changes. Triggered by keywords like estimate, plan, complexity, tokens, approach.
obsidian-vault
Search, create, and manage notes in the Obsidian vault with wikilinks and index notes. Use when user wants to find, create, or organize notes in Obsidian.
edit-article
Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.
Didn't find tool you were looking for?