Rules and skills
Project instructions, setup skills and Oxlint checks.
Instruction files
| File | Role |
|---|---|
AGENTS.md | Project structure, stack, implementation order and validation commands |
CLAUDE.md | Claude Code entry point referencing AGENTS.md |
src/services/.ai.md | Service separation and import rules |
src/services/api.ai.md, state.ai.md, page.ai.md | File structure and implementation conventions for each layer |
src/app/.ai.md | Routing and layout rules |
src/server/repository/.ai.md | Data models and read/write conventions |
src/services/admin/.ai.md | Admin routes and account rules |
.storybook/stories/design-system/design.mdx | UI composition and style token guidance |
.storybook/stories/.ai.md | Page story structure and API mocking rules |
Use the base AGENTS.md Shop AGENTS.md and Course AGENTS.md to find the source instructions and each layer’s .ai.md.
Setup skills
Base setup skills live in main’s .agents/skills; .claude/skills/ references the same source. For the storefront, use shop-setup; for the course platform, use course-setup. Use them when the corresponding feature is needed.
| Skill | Setup |
|---|---|
app-setup | Bottom tabs, detail screens, page transitions and PWA install UI |
auth-setup | Per-service Better Auth and Drizzle tables after a database is connected |
seo-optimize | Metadata, JSON-LD, sitemap and robots |
refactoring handles mock-to-database migration; video-offload moves site videos to external storage.
Storybook
Base page states live in .storybook/stories; Shop and Course stories live in each branch’s src/stories (shop, course). Stories use real pages, layouts and state, replacing only the API through base mocks or each branch’s src/stories/mocks (shop, course). Update stories alongside screen changes and run pnpm validate:storybook separately.