xiaohongshu
xiaohongshu
feature-scaffolding
BoxLogの新しいFeatureモジュールを作成。stores, hooks, components, types の統一構造を生成。
Full skill instructions
BoxLogプロジェクトの新しいFeatureモジュールを規約に沿って作成するスキルです。
以下のキーワードが含まれる場合に自動的に起動:
src/features/{feature-name}/
├── index.ts # Public API(バレルファイル)
├── types/
│ └── index.ts # 型定義
├── stores/
│ └── index.ts # Zustand stores
├── hooks/
│ └── index.ts # カスタムフック
├── components/
│ └── index.ts # UIコンポーネント
├── constants/ # (optional)
│ └── index.ts
└── contexts/ # (optional)
└── {Feature}Context.tsx
FEATURE_NAME="your-feature"
mkdir -p src/features/${FEATURE_NAME}/{types,stores,hooks,components}
// {Feature}の型定義
export interface {Entity} {
id: string
user_id: string
// entity fields
created_at: Date
updated_at: Date
}
export interface Create{Entity}Input {
// required fields for creation
}
export interface Update{Entity}Input {
// optional fields for update
}
export { use{Feature}Store } from './use{Feature}Store'
import { create } from 'zustand'
import { devtools, persist } from 'zustand/middleware'
interface {Feature}State {
// state
items: {Entity}[]
// actions
addItem: (item: Create{Entity}Input) => Promise<boolean>
updateItem: (id: string, updates: Update{Entity}Input) => Promise<boolean>
deleteItem: (id: string) => Promise<boolean>
getItemById: (id: string) => {Entity} | undefined
}
export const use{Feature}Store = create<{Feature}State>()(
devtools(
persist(
(set, get) => ({
items: [],
addItem: async (data) => {
// implementation
},
updateItem: async (id, updates) => {
// implementation
},
deleteItem: async (id) => {
// implementation
},
getItemById: (id) => {
return get().items.find((item) => item.id === id)
},
}),
{
name: '{feature}-storage',
partialize: (state) => ({ items: state.items }),
}
),
{ name: '{feature}-store' }
)
)
export { use{Feature}s } from './use-{feature}s'
export { use{Feature}Operations } from './use-{feature}-operations'
export { {Feature}List } from './{Feature}List'
export { {Feature}Item } from './{Feature}Item'
/**
* {Feature} Feature - Public API
*
* @example
* ```tsx
* // ✅ 推奨: バレルファイル経由
* import { {Feature}List, use{Feature}s, use{Feature}Store } from '@/features/{feature}'
*
* // ❌ 非推奨: 深いパス指定
* import { {Feature}List } from '@/features/{feature}/components/{Feature}List'
* ```
*/
// Components
export { } from './components'
// Hooks
export { } from './hooks'
// Stores
export { use{Feature}Store } from './stores'
// Types
export type { } from './types'
| 種類 | 命名規則 | 例 |
|---|---|---|
| ディレクトリ | kebab-case | user-settings |
| コンポーネント | PascalCase | UserSettingsList |
| フック | camelCase (use prefix) | useUserSettings |
| ストア | camelCase (use prefix) | useUserSettingsStore |
| 型 | PascalCase | UserSettings |
index.ts 経由types/index.ts に集約export function 形式(export default 禁止)bg-card, text-foreground 等)src/features/
├── tags/ # 参考実装(最も完成度が高い)
├── plans/ # 複雑なFeatureの例
├── calendar/ # 大規模Featureの例
├── settings/ # シンプルなFeatureの例
└── auth/ # 認証関連
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience