Token导航 LogoToken导航

Agent Skill · 研究检索

github-actions-testing(GitHub actions 测试)

用于围绕 GitHub 仓库、Issue、Pull Request、分支、提交和代码协作流程提供辅助能力。它适合让 Agent 查询项目状态、整理变更、辅助创建或检查协作事项,并把仓库中的信息转成可执行的下一步。使用时需要区分只读查询和写入操作;涉及创建 PR、修改 Issue、推送分支或访问私有仓库时,应确认 token 权限、目标仓库范围和用户授权。

github-actions-testing 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 62,001。

总安装 343周安装 14GitHub Stars 106下载 111核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:github-actions-testing(GitHub actions 测试)
来源仓库:https://github.com/pr-pm/prpm
仓库路径:skills/github-actions-testing
安装命令:
npx skills add https://github.com/pr-pm/prpm --skill github-actions-testing
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/pr-pm/prpm --skill github-actions-testing

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

这项技能可以帮助您: ✅ 在推送之前捕获 90% 以上的工作流程失败 ✅ 了解为什么本地测试没有发现问题 ✅ 快速修复常见的 GitHub Actions 问题 ✅ 建立对 CI/CD 管道的信心 ✅ 减少迭代时间(不再有推送-失败-修复-推送循环) 每当您使用 GitHub Actions 时请联系我,以确保您的工作流程在进入 CI 之前是可靠的。

每周安装量 14 存储库 pr-pm/rpm GitHub 之星 106 第一次看到 2026 年 1 月 25 日 安全审计 Gen 代理信任中心失败 套接字通行证 斯尼克通行证

来源仓库内路径:skills/github-actions-testing

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/pr-pm/prpm --skill github-actions-testing;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

github-actions-testing 怎么安装?

在终端执行 npx skills add https://github.com/pr-pm/prpm --skill github-actions-testing。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

github-actions-testing 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

github-actions-testing 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

github-actions-testing 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

github-actions-testing 用的人多吗?

公开数据是累计安装 343 次,近一周安装 14 次,下载 111 次,GitHub 106 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

github-actions-testing 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
github-actions-testing

GitHub actions 测试 · 本页

343106需要联网未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

SKILL: GitHub Actions Testing & Validation Expert

Description

Interactive expert for testing and validating GitHub Actions workflows before deployment. Prevents common CI failures by catching cache configuration errors, path issues, monorepo dependency problems, and service container configuration mistakes.

Capabilities

This skill provides:

  1. Pre-Push Validation: Complete workflow validation before pushing to GitHub
  2. Cache Configuration: Ensure cache-dependency-path is correctly specified
  3. Monorepo Build Order: Validate workspace dependency build sequences
  4. Service Container Setup: Guide proper service container configuration
  5. Path Validation: Verify all paths exist and are accessible
  6. Local Testing: Run workflows locally with act (Docker-based simulation)
  7. Static Analysis: Lint workflows with actionlint and yamllint

When to Use This Skill

Invoke this skill when:

  • Creating or modifying GitHub Actions workflows
  • Debugging workflow failures in CI
  • Setting up new repositories with CI/CD
  • Migrating to monorepo architecture
  • Adding service containers to workflows
  • Experiencing cache-related failures
  • Getting "module not found" errors in CI but not locally

Usage

Quick Validation

"Validate my GitHub Actions workflows before I push"

I'll:

  1. Run actionlint on all workflow files
  2. Check for missing cache-dependency-path configurations
  3. Validate all working-directory paths exist
  4. Verify monorepo build order is correct
  5. Check service container configurations
  6. Provide a pre-push checklist

Debugging Workflow Failures

"My GitHub Actions workflow is failing with [error message]"

I'll:

  1. Analyze the error message
  2. Identify the root cause
  3. Explain why local testing didn't catch it
  4. Provide the correct configuration
  5. Show how to test the fix locally

Setup New Repository

"Set up GitHub Actions testing for my new project"

I'll:

  1. Install required tools (act, actionlint, yamllint)
  2. Create validation scripts
  3. Set up pre-push hooks
  4. Configure recommended workflows
  5. Provide testing procedures

Critical Rules I Enforce

1. Cache Configuration

ALWAYS specify cache-dependency-path explicitly:

# ❌ WRONG
- uses: actions/setup-node@v4
  with:
    cache: 'npm'

# ✅ CORRECT
- uses: actions/setup-node@v4
  with:
    cache: 'npm'
    cache-dependency-path: package-lock.json

Why: GitHub Actions cache resolution fails silently in local testing but errors in CI with "Some specified paths were not resolved, unable to cache dependencies."

2. Monorepo Build Order

ALWAYS build workspace dependencies before type checking:

# ❌ WRONG
- run: npm ci
- run: npx tsc --noEmit

# ✅ CORRECT
- run: npm ci
- run: npm run build --workspace=@prpm/types
- run: npm run build --workspace=@prpm/registry-client
- run: npx tsc --noEmit

Why: TypeScript needs compiled output from workspace dependencies. Local development has pre-built artifacts, but CI starts clean.

3. npm ci in Monorepos

ALWAYS run npm ci from root, not workspace directories:

# ❌ WRONG
- working-directory: packages/infra
  run: npm ci

# ✅ CORRECT
- run: npm ci
- working-directory: packages/infra
  run: pulumi preview

Why: npm workspaces are managed from root. Workspace directories don't have their own package-lock.json.

4. Service Containers

Service containers can't override CMD via options:

# ❌ WRONG
services:
  minio:
    image: minio/minio:latest
    options: server /data  # Ignored!

# ✅ CORRECT
services:
  minio:
    image: minio/minio:latest

steps:
  - run: |
      docker exec $(docker ps -q --filter ancestor=minio/minio:latest) \
        sh -c "minio server /data &"

Why: GitHub Actions service containers ignore custom commands. They must be started manually in steps.

Validation Tools

Required Tools

# macOS
brew install act actionlint yamllint

# Linux
curl https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
pip install yamllint

Validation Script

I'll create .github/scripts/validate-workflows.sh:

#!/bin/bash
set -e

echo "🔍 Validating GitHub Actions workflows..."

# 1. Static analysis
actionlint .github/workflows/*.yml
yamllint .github/workflows/*.yml

# 2. Cache configuration check
for file in .github/workflows/*.yml; do
    if grep -q "cache: 'npm'" "$file"; then
        if ! grep -A 2 "cache: 'npm'" "$file" | grep -q "cache-dependency-path"; then
            echo "❌ $file: Missing explicit cache-dependency-path"
            exit 1
        fi
    fi
done

# 3. Path validation
grep -r "working-directory:" .github/workflows/*.yml | while read -r line; do
    dir=$(echo "$line" | sed 's/.*working-directory: //' | tr -d '"')
    if [ ! -d "$dir" ]; then
        echo "❌ Directory does not exist: $dir"
        exit 1
    fi
done

# 4. Check for explicit cache paths
grep -r "cache-dependency-path:" .github/workflows/*.yml | while read -r line; do
    path=$(echo "$line" | sed 's/.*cache-dependency-path: //' | tr -d '"')
    if [ ! -f "$path" ]; then
        echo "❌ Cache dependency path does not exist: $path"
        exit 1
    fi
done

echo "✅ All workflow validations passed"

Pre-Push Checklist

Before pushing workflow changes:

  1. Lint: actionlint.github/workflows/*.yml
  2. Validate: .github/scripts/validate-workflows.sh
  3. Dry Run: act pull_request -W.github/workflows/[workflow].yml -n
  4. Check Cache Paths: Verify all cache-dependency-path values exist
  5. Check Build Order: Ensure workspace dependencies built before type checks
  6. Service Containers: Confirm manual startup if custom commands needed

Common Failure Patterns

"Cannot find module '@prpm/types'"

Root Cause: Workspace dependency not built before type checking

Why Local Works: Previous builds exist in node_modules/

Fix:

- name: Build @prpm/types
  run: npm run build --workspace=@prpm/types
- name: Type check
  run: npx tsc --noEmit

"Cache resolution error"

Root Cause: Missing or incorrect cache-dependency-path

Why act Doesn't Catch: act skips caching entirely

Fix:

- uses: actions/setup-node@v4
  with:
    cache: 'npm'
    cache-dependency-path: package-lock.json  # Explicit!

"npm ci requires package-lock.json"

Root Cause: Running npm ci from workspace directory

Why Local Works: May have workspace-specific package-lock.json

Fix:

# Run from root
- run: npm ci
# Then use working-directory for commands
- working-directory: packages/infra
  run: pulumi preview

"Service container not starting"

Root Cause: Custom command in options is ignored

Why Local Works: docker-compose uses different container runtime

Fix:

steps:
  - run: docker exec [container] sh -c "command &"

Why act Alone Isn't Enough

Local testing with act doesn't catch:

  1. Cache Validation: act skips GitHub's cache system entirely
  2. Service Commands: Different container runtime, different behavior
  3. Build Artifacts: Local has pre-built workspace dependencies
  4. Clean Environment: CI starts completely fresh every time
  5. GitHub-Specific Features: Some actions only work on GitHub's runners

Solution: Use the complete validation suite (actionlint + custom validators + act dry run)

Interactive Debugging

When you encounter a workflow failure:

  1. Share the error: Paste the exact GitHub Actions error message
  2. I'll analyze: Identify the root cause and why local testing didn't catch it
  3. I'll fix: Provide corrected workflow configuration
  4. I'll validate: Show how to test the fix locally
  5. I'll explain: Clarify why the issue occurred and how to prevent it

Example Interactions

User: "My workflow is failing with 'Some specified paths were not resolved, unable to cache dependencies'"

Me: This is a cache resolution error. You're using cache: 'npm' without specifying cache-dependency-path. GitHub Actions is trying to find package-lock.json but can't locate it.

Here's the fix:

- uses: actions/setup-node@v4
  with:
    node-version: '20'
    cache: 'npm'
    cache-dependency-path: package-lock.json  # Add this

This wasn't caught by act because it skips caching entirely. To prevent this in the future, run:

.github/scripts/validate-workflows.sh

This script checks for missing cache-dependency-path configurations.


User: "TypeScript can't find '@prpm/types' in CI but works locally"

Me: This is a monorepo build order issue. Your local environment has previously built @prpm/types, but CI starts clean.

Add this before your type check:

- name: Build @prpm/types
  run: npm run build --workspace=@prpm/types

Why local worked: You've previously run npm run build which compiled @prpm/types to dist/. That compiled output exists in your node_modules. CI doesn't have this.

To test this scenario locally, delete your dist/ folders and try again:

rm -rf packages/*/dist
npx tsc --noEmit  # Should fail
npm run build --workspace=@prpm/types
npx tsc --noEmit  # Should pass

Continuous Improvement

After each workflow failure in CI:

  1. Analyze: Why didn't local testing catch this?
  2. Document: Add to the common failure patterns
  3. Validate: Update validation scripts to catch it next time
  4. Test: Ensure the validator actually catches the issue

Best Practices

  1. Always validate before pushing: Run the complete validation suite
  2. Keep tools updated: brew upgrade act actionlint yamllint
  3. Test in clean environment occasionally: Use Docker to simulate fresh CI
  4. Document failures: Add new patterns to validation scripts
  5. Use explicit configurations: Never rely on defaults for cache, paths, or commands

Summary

This skill helps you:

  • ✅ Catch 90%+ of workflow failures before pushing
  • ✅ Understand why local testing didn't catch issues
  • ✅ Fix common GitHub Actions problems quickly
  • ✅ Build confidence in your CI/CD pipeline
  • ✅ Reduce iteration time (no more push-fail-fix-push cycles)

Invoke me whenever you're working with GitHub Actions to ensure your workflows are solid before they hit CI.

平台分布

Codex

36.14%
按下载量换算40

Claude

27.39%
按下载量换算30

Cursor

18.38%
按下载量换算20

Gemini CLI

8.63%
按下载量换算10

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills