360 Secure SkillHub
360 安全技能中心

Project Bootstrap

核心功能:按指定参数初始化新项目,生成规范结构,配置lint、测试等质检门及安全默认配置并完成验证。典型场景:启动新服务/应用/库、在单体仓创建新包、为贡献者/CI提供可重复基线。输入需指定项目类型、技术栈、名称、路径,可添加约束;输出含文件树、运行命令、配置契约,确保项目可本地运行且无敏感信息。

mzfshark
mzfshark
热度 34.88
最近更新 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.