project-config-generation
Generate or align project configuration files after the stack has been confirmed. Use when a new project or legacy repo needs package.json, tsconfig, framework config, env examples, or quality config aligned to the chosen stack.
- License 许可
- MIT
- 最近更新
- 2026-06-26
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- project-config-generation
- description
- Generate or align project configuration files after the stack has been confirmed. Use when a new project or legacy repo needs package.json, tsconfig, framework config, env examples, or quality config aligned to the chosen stack.
03 SKILL.md 正文
project-config-generation
這個 skill 用在「技術棧已確認,但工程設定檔還沒落地」的時候。
先讀
AGENTS.mddocs/tech_stack_guide.mddocs/project_config_generation.mddocs/biome_quality_loop.md(若是 JS / TS + Biome)
目標
- 讓 AI 不要臨場亂猜
package.json、tsconfig.json、vite.config.ts、next.config.ts、.env.example - 讓設定檔先落地,再進實作
- 盡量跟官方 scaffold / 官方安裝頁對齊
使用方式
先看計畫,不要直接覆寫:
node scripts/generate_project_configs.js --profile <profile> --name <projectName> --language <lang> --styling <style> --database <db> --quality-tool <tool>
確認後再寫入:
node scripts/generate_project_configs.js --profile <profile> --name <projectName> --language <lang> --styling <style> --database <db> --quality-tool <tool> --write
目前支援 profile
nextjs-app-routervite-reactnode-express-api
規則
- Greenfield 若還沒建骨架,優先採官方 scaffold,再用本腳本補治理層與設定對齊
package.json若已存在,預設只補缺漏,不亂蓋既有值supabase/config.toml不手寫;若要本地 Supabase,走官方supabase initnext-env.d.ts不手寫;讓next dev或next build自動生成- 產完後要看
docs/STACK_SETUP.md
驗證
- 確認目標檔已建立或合併
- 確認
.env.example已對應技術棧 - 若有 Biome,跑:
npx @biomejs/biome check --write .
04 同仓库更多 Skills
website-best-practices
Build websites with strong semantic HTML, accessibility, performance, content structure.
using-agent-skills
Meta skill entrypoint. Select the right workflow skill for the current project phase, initialize required docs, and keep execution aligned with the project lifecycle.
ui-ux-designer
Create interface designs, design systems, and UX improvements with accessibility-first guidance.
typescript-best-practices
Apply TypeScript best practices for strict mode, safe narrowing, tsconfig safety, robust error handling.
tool-discovery-and-installation
Detect missing skills, MCP servers, CLIs, and sandbox tools; choose safe install paths; install or guide tool setup with explicit authorization and verification.
text-to-lottie
Generate or refine production-ready Lottie animations for web and app UI work.