一键导入
frontend-project-init
用于在 intent-flow 仓库内初始化前端项目,基于内置模板(首个为 Vite + Logix Sandbox 空壳)快速生成可运行的前端工程骨架。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
用于在 intent-flow 仓库内初始化前端项目,基于内置模板(首个为 Vite + Logix Sandbox 空壳)快速生成可运行的前端工程骨架。
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use when planning Logix API shape from scenarios or capability atoms, managing proposal portfolios, running capability projection reviews, coordinating sub-agent planning packets, promoting repeated collisions into principles, or preparing implementation-ready plans from Logix capability SSoT documents.
在 logix 仓库规划、实施、评审或收敛任何可能影响运行时性能的需求时使用。只要用户提到性能、CI artifacts、knob snapshot、trend analyze、before/after、soak、default、231-235、pressure knob、性能旋钮、counter、counter census、kernel/runtime hot path、性能证据、性能回归、下一步优化、是否需要改 API 换性能,必须优先使用本 skill。本 skill负责指导 agent 把需求拆成小步可观测实施,获取和解读 CI 性能产物,把压力旋钮映射到内核 owner、运行时配置/逻辑路径和 counters,再决定下一步是补证据、修采集、看同分支趋势、跑显式 convergence、优化内核、还是调整 API/设计。
在 intent-flow 仓库做架构/规划/Runtime/示例/日常开发时,用最短导航定位新 docs 根骨架、archive 历史基线、代码落点与质量门
在采用 `.specify/` + `specs/` 的 Spec-Driven Development(Spec Kit)仓库中,作为“统一路由器”执行 `$speckit <stage>`,把对话里的关键裁决回写到 spec-kit 产物(`spec.md`、`plan.md`、`tasks.md`、`checklists/*`、`.specify/memory/constitution.md`);仅在用户明确改变需求/架构/原则/澄清时触发,纯闲聊/头脑风暴保持沉默。
Use when generating, reviewing, or refactoring Logix code and you need self-contained Agent-first API rules, owner-lane decisions, React host usage, Form domain boundaries, verification control-plane boundaries, and runtime-core constraints.
Use when an Agent needs to run Logix verification from shell or CI, consume DVTools or live-derived evidence, validate a Program entry, compare before/after reports, use logix live runtime debugging tasks, or test the Agent First CLI loop.
| name | frontend-project-init |
| description | 用于在 intent-flow 仓库内初始化前端项目,基于内置模板(首个为 Vite + Logix Sandbox 空壳)快速生成可运行的前端工程骨架。 |
当前内置模板列表:
vite-logix-empty
assets/vite-logix-empty/vite + @vitejs/plugin-react-swc + @tailwindcss/vite。@logixjs/sandbox/vite 的 logixSandboxKernelPlugin(),预置 Sandbox 运行时内核配置。@logixjs/core / @logixjs/react / @logixjs/sandbox 包,适合作为 Logix Sandbox / Playground 类项目的起点。若需要新增模板(如纯 Vite + React、Studio 子应用空壳),应在本节追加模板 ID 与说明,并将对应代码放入
assets/<template-id>/。
在收到“初始化前端项目”的需求时,按以下步骤执行。
vite-logix-empty):
node .codex/skills/frontend-project-init/scripts/init-frontend-project.cjs <target-dir>node .codex/skills/frontend-project-init/scripts/init-frontend-project.cjs examples/my-sandboxnode .codex/skills/frontend-project-init/scripts/init-frontend-project.cjs <target-dir> <template-id>node ... init-frontend-project.cjs examples/my-sandbox vite-logix-emptyvite-logix-empty:
examples/<project-name> 或 apps/<project-name>)。examples/logix-sandbox-new-demo默认推荐使用脚本进行复制:
vite-logix-empty 为例):
node .codex/skills/frontend-project-init/scripts/init-frontend-project.cjs <target-dir>assets/<template-id>/ 递归复制所有文件到 <target-dir>。node_modules/、dist/、.git/、.turbo/。tsc_output.txt 等构建产物。assets/vite-logix-empty/ 下所有文件复制到目标目录。dist/、node_modules/)。package.json.name 与页面标题文案。在目标目录下:
pnpm 工作区时:在仓库根目录执行 pnpm install 确保 workspace 依赖齐全。pnpm install(依项目管理策略而定)。pnpm run typecheck(或 pnpm run build)验证 TypeScript 配置与依赖是否完整。pnpm run dev 启动 Vite 开发服务器(需由使用者在本地终端手动运行,避免在交互式环境中长时间驻留)。若类型检查或构建失败:
package.json 中 workspace 依赖(@logixjs/core / @logixjs/react / @logixjs/sandbox / effect / vite 等)是否满足当前仓库版本。project-guide(含 Logix v3 速查与入口)或 docs/ssot/runtime 中的契约进行修正。当模板功能过重而用户只需要最小壳时:
RuntimeProvider 和最小的 App 入口,移除不需要的页面/组件。vite-logix-playground),并:
assets/vite-logix-playground/ 中维护一份整理后的代码。workspace:* 形式的 @logixjs/* 包。docs/ssot/runtime 中更新对应规范。