Rules and skills

Project instructions, setup skills and Oxlint checks.

Instruction files

FileRole
AGENTS.mdProject structure, stack, implementation order and validation commands
CLAUDE.mdClaude Code entry point referencing AGENTS.md
src/services/.ai.mdService separation and import rules
src/services/api.ai.md, state.ai.md, page.ai.mdFile structure and implementation conventions for each layer
src/app/.ai.mdRouting and layout rules
src/server/repository/.ai.mdData models and read/write conventions
src/services/admin/.ai.mdAdmin routes and account rules
.storybook/stories/design-system/design.mdxUI composition and style token guidance
.storybook/stories/.ai.mdPage 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.

SkillSetup
app-setupBottom tabs, detail screens, page transitions and PWA install UI
auth-setupPer-service Better Auth and Drizzle tables after a database is connected
seo-optimizeMetadata, 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.