360 Secure SkillHub
360 安全技能中心

Skylv Gh Actions Automation

核心功能为自动识别Node.js、Python、Docker项目类型,生成对应CI/CD工作流模板。典型场景包括新项目需自动化测试、用户请求搭建CI或用GitHub Actions部署。输入为相关需求指令,输出YAML格式工作流代码,附带配置提示。

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

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add skylv-gh-actions-automation
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