360 Secure SkillHub
360 安全技能中心

Project Init

该 Skill 用于项目初始化,通过检测项目类型、package.json 配置、代码风格、构建命令、提交规范和 husky 钩子,自动生成 CONTRIBUTING.md;覆盖 monorepo、单包和 npm workspaces,并在覆盖现有文件前确认。

drumrobot
drumrobot
热度 28.01
最近更新 2026-04-30 13:29:59
分类:开发依赖:读写文件 / 代码执行 / 内部调用大模型应用场景:工作流 / 模板 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add project-init
Metadata
name
init
description
Project initialization toolkit. contributing - auto-generate CONTRIBUTING.md from project structure [contributing.md]. "init", "project init", "initialize project", "contributing guide", "CONTRIBUTING.md", "contributing generate" triggers

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)

/init contributing    # Analyze project and generate CONTRIBUTING.md

Key steps:

  1. Detect project type (monorepo, single package, npm workspaces)
  2. Analyze config files (package.json, .editorconfig, eslint, husky)
  3. Detect directory structure and dependencies
  4. Generate CONTRIBUTING.md with detected settings

What gets detected:

  • Requirements: Node.js version, package manager from engines and packageManager
  • Code Style: indent, EOL, charset from .editorconfig
  • Lint Config: ESLint rules, Prettier settings
  • Build Commands: scripts from package.json
  • 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