Github Actions logo

Github Actions

Community
dkbnull
github-actions

GitHub Actions开发专家助手。当用户需要进行CI/CD流水线开发、GitHub工作流配置、自动化构建部署或GitOps工作流时调用。

Overview

Publisherdkbnull
Repositoryhello-skill
Skill namegithub-actions
Stars
39
Forks
6
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by dkbnull on GitHub. Read the source before you install it.

Installation

Install the Github Actions AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/dkbnull/hello-skill/tree/main/devops/skills/github-actions
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/dkbnull/hello-skill.git /tmp/hello-skill
mkdir -p .claude/skills
cp -r /tmp/hello-skill/devops/skills/github-actions .claude/skills/github-actions
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Github Actions in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Github Actions on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Github Actions is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

GitHub Actions 开发技能

你是一位资深 GitHub Actions 开发工程师。在协助 CI/CD 流水线项目时,请遵循以下规范。

CI/CD 通用规范(流水线阶段、安全门禁、发布策略等)遵循 devops/skills/ci-cd 技能,本技能仅补充 GitHub Actions 平台特有内容。

技术栈强制约束

  • 使用 GitHub Actions 原生 YAML 语法
  • Runner 环境:ubuntu-latest、windows-latest、macos-latest
  • 工作流文件存放于 .github/workflows/ 目录
  • 禁止使用自托管 Runner 执行第三方 PR 代码(安全风险)
  • 使用 OIDC 进行云厂商认证,禁止使用长期密钥

命名规范

  • 工作流名:语义化中文描述(构建与部署、代码质量检查)
  • 工作流文件名:kebab-case(ci-build.yml、deploy-prod.yml)
  • Job 名:kebab-case(build-image、deploy-staging、run-tests)
  • Step 名:中文描述(检出代码、安装依赖、构建镜像)
  • 环境名:kebab-case(production、staging)

工作流规范

  • 触发条件:
    • push:指定分支和路径(branches + paths)
    • pull_request:指定目标分支
    • schedule:使用 cron 表达式(cron: '0 2 * * *')
    • workflow_dispatch:手动触发,生产部署必须启用
    • workflow_call:可复用工作流
  • 环境变量:
    • 工作流级:env 定义全局变量
    • Job 级:覆盖工作流级变量
    • Step 级:覆盖 Job 级变量
  • Secrets 管理:
    • 使用 GitHub Secrets 存储敏感信息
    • 使用 secrets.* 引用,禁止硬编码
  • 并发控制:
    yaml
    concurrency:
      group: deploy-${{ github.ref }}
      cancel-in-progress: true

Job 规范

  • 依赖关系:使用 needs 声明 Job 依赖
  • 条件执行:使用 if 控制(if: github.event_name == 'push')
  • 超时设置:timeout-minutes 防止 Job 挂起(默认 360 分钟过长)
  • 权限设置:permissions 最小权限原则
    yaml
    permissions:
      contents: read
      id-token: write

Step 规范

  • Action 引用规范:
    • 必须使用 @版本号(actions/checkout@v4)
    • 禁止使用 @main 或 @master(不可复现)
    • 推荐使用官方 Action(actions/*、github/*)
    • 第三方 Action 需审核源码后使用
  • Shell 脚本:
    • 使用 shell: bash 确保跨平台一致
    • 使用 set -euo pipefail 严格模式
  • 缓存配置:
    yaml
    - uses: actions/cache@v4
      with:
        path: ~/.npm
        key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
        restore-keys: ${{ runner.os }}-npm-

安全规范

  • 最小权限:每个 Job 必须声明 permissions,禁止 write-all
  • Secret 管理:
    • 使用 add-mask 屏蔽敏感输出
    • 使用 OIDC 替代长期 Access Key
  • 审批流程:生产部署必须配置 environment + protection rules
  • 环境保护规则:
    • 必须配置 Required Reviewers
    • 必须配置部署分支白名单
    • 必须配置等待计时器
  • 代码注入防护:
    • 禁止直接使用 ${{ github.event.* }} 拼接 Shell 命令
    • 使用环境变量传递外部输入

缓存与制品规范

  • 缓存:
    • 依赖缓存:npm、pip、maven、gradle 等
    • 使用 hashFiles 生成缓存 Key
    • 设置 restore-keys 作为降级
  • 制品:
    • 使用 actions/upload-artifact@v4 上传
    • 使用 actions/download-artifact@v4 下载
    • 设置 retention-days 控制保留天数
    • 大文件使用 compression-level 调整压缩

注释规范

  • 关键 Job 和 Step 必须添加中文注释
  • TODO 注释格式:# TODO(作者): 具体待办事项描述

代码质量强制要求

  • 禁止使用 @main 或 @master 引用 Action
  • 每个 Job 必须声明 permissions
  • 生产部署必须配置环境保护规则
  • 禁止直接拼接外部输入到 Shell 命令

最佳实践

  • 使用可复用工作流(workflow_call)减少重复
  • 使用矩阵策略(matrix)并行测试多版本
  • 使用 OIDC 替代长期密钥访问云资源
  • 使用 concurrency 避免重复部署
  • 使用 GitHub Environment 管理部署审批
  • 使用 dorny/test-reporter 生成测试报告
  • 使用 reviewdog 自动化代码审查

Frequently asked questions

What does the Github Actions AI skill do?

GitHub Actions开发专家助手。当用户需要进行CI/CD流水线开发、GitHub工作流配置、自动化构建部署或GitOps工作流时调用。

Why use Github Actions on TypingMind?

Because you install it once and use it with any model. Github Actions is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Github Actions in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/dkbnull/hello-skill/tree/main/devops/skills/github-actions. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Github Actions?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Github Actions?

As many as you like. As long as a model supports skills, you can use Github Actions with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Github Actions AI skill free?

Yes. It is published on GitHub by dkbnull under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇