AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Github Actions Gen

skill-laolaoshiren-claude-code-skills-zh-github-actions-gen · by laolaoshiren

GitHub Actions CI/CD 流水线生成器:根据项目技术栈自动创建 workflows

No reviews yet
0 installs
6 views
0.0% view→install

Install

$ agentstack add skill-laolaoshiren-claude-code-skills-zh-github-actions-gen

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-laolaoshiren-claude-code-skills-zh-github-actions-gen)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Github Actions Gen? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

GitHub Actions CI/CD 生成器

触发条件

当用户要求创建 CI/CD 流水线、GitHub Actions workflow、自动化部署配置时激活。

工作流程

1. 项目分析

  • 检测项目语言和框架(package.json / requirements.txt / go.mod / Cargo.toml 等)
  • 识别现有 CI 配置(.github/workflows/)
  • 分析项目结构:单体仓库 or 单项目、monorepo 工具(nx / turborepo / lerna)
  • 检测测试框架(jest / pytest / go test / cargo test)

2. 流水线设计

根据项目类型生成对应 workflow:

通用流水线模板:

  • ci.yml — 代码检查 + 测试(push/PR 触发)
  • release.yml — 版本发布(tag 触发)
  • deploy.yml — 部署流水线(按需)

前端项目额外:

  • Node.js 版本矩阵测试
  • Lighthouse 性能检测
  • 静态资源 CDN 缓存失效

后端项目额外:

  • Docker 镜像构建 + 推送
  • 数据库 migration 检查
  • API 契约测试

3. 生成配置

  • 使用 GitHub Actions 最佳实践
  • 合理利用 cache(actions/cache)加速构建
  • 矩阵策略覆盖多版本
  • Secrets 引用安全规范(不硬编码)
  • 中文注释说明每个 step 的作用

4. 输出文件

.github/workflows/ 目录生成:

  • ci.yml — 主 CI 流水线
  • release.yml — 发布流水线(如需要)
  • README-CICD.md — 流水线使用说明

输出格式

# .github/workflows/ci.yml
name: CI

on:
  push:
    branches: [main, develop]
  pull_request:
    branches: [main]

jobs:
  test:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        node-version: [18, 20, 22]  # 按项目调整
    steps:
      - uses: actions/checkout@v4
      - name: Setup Node.js
        uses: actions/setup-node@v4
        with:
          node-version: ${{ matrix.node-version }}
          cache: 'npm'
      - run: npm ci
      - run: npm test
      - run: npm run lint

质量检查清单

  • [ ] workflow 文件语法正确(可用 actionlint 验证)
  • [ ] 使用固定版本 tag(避免 @main
  • [ ] Secrets 通过 ${{ secrets.XXX }} 引用
  • [ ] 设置适当的权限(permissions
  • [ ] 超时时间合理(timeout-minutes
  • [ ] 失败通知机制(Slack / 邮件 / 微信 webhook)

常见陷阱

  • Node.js 项目:确保 lockfile(package-lock.json / pnpm-lock.yaml)存在,否则 npm ci 会失败
  • Python 项目:注意 requirements.txt 和 pyproject.toml 的优先级
  • Docker 构建:使用 multi-stage build 减小镜像体积
  • 缓存策略:key 要包含 lockfile hash,否则缓存可能过期
  • 矩阵测试:不要过度配置,3-5 个版本足够

示例

用户输入:「帮我给这个 Next.js 项目创建 CI/CD 流水线」

输出:

  1. 分析 package.json 检测 Next.js 版本、测试框架、部署目标
  2. 生成 ci.yml(lint + test + build)
  3. 生成 deploy.yml(Vercel / Docker 部署)
  4. 生成使用说明 README-CICD.md

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.