360 Secure SkillHub
360 安全技能中心

Skylv Github Actions Helper

核心功能:自动检测Node.js、Python、Docker项目类型,生成对应GitHub Actions CI/CD工作流YAML模板。典型场景:新项目需配置自动化测试、部署,或用户提出搭建GitHub Actions CI的需求。输出标准可直接使用的工作流代码,附带使用优化建议。

sky-lv
sky-lv
热度 43.33
最近更新 2026-05-11 17:44:40
分类:开发依赖:纯提示词应用场景:代码生成 / 自动化脚本 / DevOps / 工作流

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add skylv-github-actions-helper
Metadata
name
skylv-github-actions-helper
slug
skylv-github-actions-helper
version
1.0.0
description
GitHub Actions workflow generator. Creates CI/CD pipelines for Node.js, Python, Docker. Triggers: github actions, ci cd, workflow, automate build, github ci.
author
SKY-lv
license
MIT
tags
["automation","tools"]
keywords
["automation","tools"]
triggers
github-actions-helper

GitHub Actions Helper

Overview

Generates GitHub Actions workflows for continuous integration and deployment.

When to Use

  • User asks to "set up CI" or "add github actions"
  • New project needs automated testing
  • User wants to "deploy with github actions"

How It Works

Detect project type

Check for: package.json (Node), pyproject.toml (Python), Dockerfile (Docker).

Node.js CI Template

name: CI
on: [push, pull_request]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with: { node-version: "20" }
      - run: npm ci
      - run: npm test

Python CI Template

name: Python CI
on: [push, pull_request]
jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-python@v5
        with: { python-version: "3.12" }
      - run: pip install -r requirements.txt
      - run: pytest

Tips

  • Use actions/checkout@v4 not @v4.2.0
  • Use npm ci not npm install for reproducibility
  • Store secrets in GitHub Secrets