← 返回
未分类 中文

Easy CI/CD

Build lightweight, minimal CI/CD scaffolding around a small project. Use when asked to add or simplify GitHub Actions, create a fast CI pipeline, add a minim...
为小型项目构建轻量级、最小化的CI/CD脚手架。当被要求添加或简化GitHub Actions、创建快速CI流水线或添加最小化配置时使用。
hyharry
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 484
下载
💾 0
安装
1
版本
#latest

概述

Easy CI/CD

Keep CI/CD boring, fast, and proportionate to the size of the project.

Workflow

  1. Inspect the repo first.
    • Detect language, package manager, test command, and likely runtime command.
    • Read the existing README/config before adding automation.
    • Do not invent build steps the repo does not support.
  1. Choose the minimum useful pipeline.
    • Default to one OS and one runtime version.
    • Trigger on push and pull_request to the main branch unless the repo clearly uses another default branch.
    • Add concurrency with cancel-in-progress for redundant runs.
    • Prefer one job unless the user explicitly wants more.
  1. Add only high-value checks.
    • Run the smallest realistic install step.
    • Add a smoke check if it is cheap and meaningful.
    • Run the repo's existing tests if they are available.
    • Prefer fast feedback over exhaustive matrices.
  1. Add a tiny release/deploy feature only when it helps.
    • Good defaults: upload test results, upload a source archive on tags, or build a minimal container.
    • Do not add cloud deploy, secrets, registries, or production rollout logic unless the user explicitly asks.
  1. Add containerization only when requested or clearly useful.
    • Prefer a common slim base image for the language/runtime.
    • Install only common/lightweight system packages that are likely needed.
    • Keep the default command safe and easy to override.
    • Add a small .dockerignore.
  1. Verify locally when practical.
    • Run the same cheap checks you put into CI when the environment allows.
    • If full verification is not practical, say so plainly.
  1. Update docs minimally.
    • Add 1 short section or a few lines to README if needed.
    • Do not turn a small repo into a manual.

Guardrails

  • Keep YAML readable and short.
  • Prefer standard marketplace actions.
  • Avoid multi-OS and multi-version matrices unless the project really needs them.
  • Avoid long installs and unnecessary services.
  • Avoid secret-dependent steps unless the user explicitly provides that direction.
  • Match the repository's existing style and naming.

Good Defaults

GitHub Actions

For small repos, prefer:

  • actions/checkout
  • language setup action with dependency caching if cheap
  • install deps
  • smoke check
  • test command
  • artifact upload if useful

If you need examples, read references/templates.md.

Docker

For small Python repos, prefer:

  • python:-slim
  • PYTHONDONTWRITEBYTECODE=1
  • PYTHONUNBUFFERED=1
  • small apt install block only if likely needed
  • install from requirements.txt or project metadata
  • safe default CMD

Output Expectations

When reporting back:

  • say what was added
  • say where it lives
  • say how it was verified
  • mention anything intentionally left out to keep it minimal

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 20:06 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Learned from AI

hyharry
将AI对话或草稿转化为结构化、可靠且持久的学习笔记,包括定义、核心要点、示例、推导、问答与速查表。
★ 0 📥 309

Simple Code

hyharry
以三种可靠模式(启动、继续、审查)规划和构建小型、可读的编码项目。先思考,制定简短计划,然后委托实现。
★ 1 📥 603

Proactive-Do

hyharry
主动执行待办事项,基于心跳机制定期审查,并对Markdown待办系统进行结构化跟进。适用于代理需要审查`todo/todo.md`时使用。
★ 0 📥 526