一键导入
create-example
Instructions and guidelines for creating or adding new integration examples in the monorepo.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Instructions and guidelines for creating or adding new integration examples in the monorepo.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Instructions and guidelines on how package versioning, changelog generation, and NPM releases are managed using semantic-release in the tanstack-i18n monorepo.
Read and author Fumadocs for @wadiou/tanstack-i18n. Use when editing MDX, meta.json, or the docs app.
Write scoped Conventional Commits and run git commit in this repo. Use when the user asks to commit, amend, or draft a message.
Create and structure feature plans in the local documentation sandbox. Use when asked to plan a feature or create an implementation route.
Standardize coordination between agent sessions by creating and maintaining handoff documents in tmp/handoffs/
| name | Create Example |
| description | Instructions and guidelines for creating or adding new integration examples in the monorepo. |
Follow these instructions whenever you need to create a new integration example project in this repository.
To maintain symmetry and avoid configuration mistakes, never write a new example from scratch. Always start by identifying a similar example (e.g., matching the target framework react or solid, and router architecture router or start) and duplicate it.
# Example: Copying react/start/paraglide to create a react/start/use-intl example
cp -r examples/react/start/paraglide examples/react/start/use-intl
Ensure you immediately clean up, rename, and update all configurations in the duplicated directory to match the new stack and location:
name: Set to the unscoped pattern example-<framework>-<type>-<library> (e.g., example-solid-start-use-intl).private: Must be set to true.@inlang/paraglide-js for use-intl). Ensure @wadiou/tanstack-i18n is defined as a workspace dependency."extends" property to match the root biome.jsonc file:
"extends": [
"../../../../biome.jsonc",
"ultracite/biome/react" // or solid
]
pnpm --dir examples/<framework>/<type>/<integration> dev
../../../../apps/docs/...).vite.config.ts, src/locale-config.ts, src/locale.ts, src/i18n/provider.tsx, and src/routes/__root.tsx are updated to match the target library's conventions.EXAMPLE_NAME in src/routes/__root.tsx) to match the new package folder name.use-translation.ts and export useTranslations (do not use custom abbreviations like use-t.ts or useT).project.inlang or src/paraglide when moving away from Paraglide).apps/docs/content/integrations/) unless explicitly requested by the user.pnpm install in the workspace root to regenerate node_modules and setup symlinks.pnpm check, pnpm typecheck, and pnpm build to verify the new example integrates cleanly into the monorepo check-suite.