360 Secure SkillHub
360 安全技能中心

repo

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

分类:开发
drumrobot
drumrobot
热度 47.84
最近更新 2026-09-18 23:56:33

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add drumrobot/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