360 Secure SkillHub
360 安全技能中心

repo

面向新项目或既有项目的初始化工具包,当前提供 contributing 主题:检测项目类型(monorepo、npm workspaces、单包),读取 package.json、.editorconfig、ESLint/Prettier、husky 等配置,汇总依赖、构建命令、提交规范与预提交钩子,据此生成 CONTRIBUTING.md,覆盖前先确认,只输出项目实际存在的章节。

drumrobot
drumrobot
热度 44.08
最近更新 2026-09-18 23:56:33
分类:开发依赖:读写文件 / 代码执行应用场景:模板 / 工作流 / 代码生成

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add repo
Metadata
name
repo
metadata
{"author":"es6kr","version":"0.1.0"}
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