360 Secure SkillHub
360 安全技能中心

Project Bootstrap

根据项目类型、技术栈、名称和目标路径选择模板并生成项目结构,配置 Lint、测试与环境变量示例,生成 README,再执行安装、测试和构建校验;默认仅本地操作。

mzfshark
mzfshark
热度 34.90
最近更新 2026-05-11 17:45:41
分类:开发依赖:读写文件 / 代码执行应用场景:代码生成 / 工作流 / 模板 / DevOps

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add axodus-project-bootstrap
Metadata
name
project-bootstrap
description
Bootstrap new projects with predictable structure and validation commands.
metadata
{"author":"RedHat Dev","version":"1.0.0","owner":"RedHat Dev Agent","category":"execution"}

SKILL: project-bootstrap

Purpose

Initialize a new project with a predictable structure, quality gates (lint/test), and safe configuration defaults.

When to Use

  • Starting a new service/app/library.
  • Creating a new package inside a monorepo.
  • You need a repeatable baseline for contributors/CI.

Inputs

  • project_type (required, enum: backend|frontend|library|contract|cli).
  • stack (required, string): e.g., “node-ts”, “python-fastapi”, “nextjs”.
  • name (required, string): project/package name.
  • path (required, string): target directory.
  • constraints (optional, string[]): repo rules, linting, deployment constraints.

Steps

  1. Confirm target directory and ensure it is safe to create/modify.
  2. Select a template that matches repo conventions; prefer minimal dependencies.
  3. Scaffold project structure (src/tests/config/docs).
  4. Configure:
    • lint/format (if repo uses them)
    • unit test runner
    • env/config examples (.env.example), never real secrets
  5. Add a README with:
    • how to run locally
    • how to test
    • key design decisions
  6. Run deterministic validation commands (install + test + build).

Validation

  • Project builds/runs locally (basic smoke check).
  • Tests execute and pass (even if minimal).
  • No secrets or machine-specific paths are committed.

Output

  • Created file tree
  • Commands to run (install, dev, test, build)
  • Configuration contract (env vars and defaults)

Safety Rules

  • Never modify global tooling on the machine unless explicitly requested.
  • Pin versions where the repo requires it.
  • Do not auto-deploy; bootstrap is local by default.

Example

Bootstrap a TS backend:

  • project_type: backend
  • stack: node-ts
  • Output: apps/api/ with pnpm test and pnpm dev working.