Init
Project initialization toolkit — scaffolding, boilerplate generation, and setup automation for new or existing projects.
Topics
| Topic | Description | Guide |
|---|
| contributing | Auto-generate CONTRIBUTING.md from project structure analysis | contributing.md |
Quick Reference
Contributing (Auto-generate CONTRIBUTING.md)
CODEBLOCK0
Key steps:
- 1. Detect project type (monorepo, single package, npm workspaces)
- Analyze config files (package.json, .editorconfig, eslint, husky)
- Detect directory structure and dependencies
- Generate CONTRIBUTING.md with detected settings
What gets detected:
- - Requirements: Node.js version, package manager from
engines and INLINECODE1 - Code Style: indent, EOL, charset from INLINECODE2
- Lint Config: ESLint rules, Prettier settings
- Build Commands: scripts from INLINECODE3
- Commit Convention: Conventional Commits format with detected scopes
- Pre-commit Hooks: husky configuration
- Monorepo Structure: package dependency graph and build order
Detailed guide
Design Philosophy
- - Detection over assumption: Only include sections for settings that actually exist in the project
- Language-aware: Match project language (English for open source, Korean for internal)
- Non-destructive: Always confirm before overwriting existing files
Init
项目初始化工具包——为新项目或现有项目提供脚手架、样板生成和设置自动化功能。
主题
快速参考
贡献指南(自动生成 CONTRIBUTING.md)
bash
/init contributing # 分析项目并生成 CONTRIBUTING.md
关键步骤:
- 1. 检测项目类型(monorepo、单包、npm workspaces)
- 分析配置文件(package.json、.editorconfig、eslint、husky)
- 检测目录结构和依赖关系
- 根据检测到的设置生成 CONTRIBUTING.md
检测内容:
- - 要求:从 engines 和 packageManager 中获取 Node.js 版本、包管理器
- 代码风格:从 .editorconfig 中获取缩进、行尾符、字符集
- Lint 配置:ESLint 规则、Prettier 设置
- 构建命令:从 package.json 中获取脚本
- 提交规范:使用检测到的范围采用 Conventional Commits 格式
- 预提交钩子:husky 配置
- Monorepo 结构:包依赖图和构建顺序
详细指南
设计理念
- - 检测而非假设:仅包含项目中实际存在的设置对应的章节
- 语言感知:匹配项目语言(开源项目用英文,内部项目用韩文)
- 非破坏性:覆盖现有文件前始终进行确认