Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

gha-pipelines全球天然气管道

Agent Skill

gha-pipelines 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

642

周安装

27

GitHub Stars

22

下载量

225
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:gha-pipelines(全球天然气管道)
来源仓库:https://github.com/ionfury/homelab
仓库路径:skills/gha-pipelines
安装命令:
npx skills add https://github.com/ionfury/homelab --skill gha-pipelines
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/ionfury/homelab --skill gha-pipelines

简介

用于查找、检索和筛选相关信息。

  • 适合根据关键词、任务场景或来源线索快速定位候选结果。
  • 安装命令:npx skills add https://github.com/ionfury/homelab --skill gha-pipelines
  • 建议确认权限范围、维护状态及是否会触发联网、命令执行或文件读写。
  • 可结合原始 README 继续核验具体用法。

SKILL.md

GitHub Actions Pipelines

Established Patterns

This repository uses a small set of consistent patterns across all workflows. Follow these when creating or modifying workflows.

Tool Setup

All workflows use mise for tool version management, ensuring CI and local dev use identical versions:

steps:
  - uses: actions/checkout@v6
  - uses: jdx/mise-action@v3    # Installs tools at versions from .mise.toml
  - run: task k8s:validate       # Use Taskfile commands, not raw CLI

Prefer Off-the-Shelf Actions

Use established actions over custom scripts:

NeedActionNotes
Checkoutactions/checkout@v6Always pin major version
Tool setupjdx/mise-action@v3Reads .mise.toml
GHCR logindocker/login-action@v3Use GITHUB_TOKEN
Complex logicactions/github-script@v7Prefer over raw bash for GitHub API
Flux CLIfluxcd/flux2/action@v2For OCI artifact operations

Use github-script Over Raw Bash

For anything involving GitHub API calls, JSON parsing, or conditional logic, prefer actions/github-script over shell scripts:

- name: Discover clusters
  id: discover
  uses: actions/github-script@v7
  with:
    script: |
      // Use the GitHub API client directly
      const versions = await github.rest.packages.getAllPackageVersionsForPackageOwnedByUser({
        package_type: 'container',
        package_name: packageName,
        username: context.repo.owner,
      });
      core.setOutput('result', JSON.stringify(data));

Dynamic Matrix Builds

For per-cluster or per-module validation, use a discovery job followed by matrix expansion:

jobs:
  discover:
    outputs:
      items: ${{ steps.find.outputs.items }}
    steps:
      - id: find
        uses: actions/github-script@v7
        with:
          script: |
            // Discover items dynamically
            core.setOutput('items', JSON.stringify(items));

  validate:
    needs: discover
    strategy:
      fail-fast: false
      matrix:
        item: ${{ fromJson(needs.discover.outputs.items) }}
    steps:
      - run: task validate-${{ matrix.item }}

Path-Based Triggers

Workflows only run when relevant files change:

on:
  pull_request:
    paths:
      - "kubernetes/**"                              # Domain files
      - ".github/workflows/kubernetes-validate.yaml" # The workflow itself
      - ".mise.toml"                                  # Tool versions
      - ".taskfiles/kubernetes/**"                   # Task definitions
  workflow_dispatch:                                   # Manual trigger

Always include workflow_dispatch for manual runs.

YAML Schema Validation

All workflow files should include the schema comment for IDE validation:

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: My Workflow

Workflow Inventory

WorkflowTriggerPurpose
kubernetes-validate.yamlPR (kubernetes/)Lint, expand ResourceSets, build, template, kubeconform, pluto
infrastructure-validate.yamlPR (infrastructure/)Format checks, module tests (matrix per module)
renovate-validate.yamlPR (renovate config)Validate Renovate configuration
build-platform-artifact.yamlPush to main (kubernetes/)Build OCI artifact, tag for integration
tag-validated-artifact.yamlStatus event / manualPromote validated artifact to stable semver
renovate.yamlScheduled (hourly)Dependency update automation
label-sync.yamlScheduled / manualSync GitHub labels

OCI Promotion Pipeline

The promotion pipeline is the most complex workflow chain. Understand the full flow before modifying any part:

PR merged to main (kubernetes/ changes)
  -> build-platform-artifact.yaml
     -> flux push artifact :X.Y.Z-rc.N
     -> flux tag :sha-<short> and :integration-<short>
  -> Integration cluster polls OCIRepository (semver >= 0.0.0-0, accepts RCs)
  -> Flux reconciles, posts commit status on success
  -> tag-validated-artifact.yaml (triggered by status event)
     -> Idempotency check (skip if already validated)
     -> flux tag :validated-<short> and :X.Y.Z (stable)
  -> Live cluster polls OCIRepository (semver >= 0.0.0, stable only)

Key Design Decisions

  • Semver-based polling: Integration accepts pre-releases (-rc.N), live accepts stable only
  • Idempotency guard: tag-validated-artifact checks for existing validated-* tag before re-tagging (Flux Alerts fire on every reconciliation cycle)
  • Version resolution via GHCR API: Build workflow queries GHCR for latest stable tag, bumps patch, creates next RC

Permissions

permissions:
  contents: read    # For checkout
  packages: write   # For GHCR push/tag
  statuses: read    # For reading commit status events

Always use minimal permissions. Never use permissions: write-all.


Creating a New Validation Workflow

Step-by-Step

  1. Create .github/workflows/<domain>-validate.yaml
  2. Add YAML schema comment
  3. Set path-based triggers including the workflow file itself
  4. Use jdx/mise-action@v3 for tool setup
  5. Delegate to Taskfile commands (not raw CLI)
  6. Add matrix builds for per-item validation if applicable
  7. Run task k8s:validate locally to verify the validation commands work

Template

---
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: <Domain> Validate

on:
  pull_request:
    paths:
      - "<domain>/**"
      - ".github/workflows/<domain>-validate.yaml"
      - ".mise.toml"
  workflow_dispatch:

jobs:
  validate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: jdx/mise-action@v3
      - run: task <domain>:validate

Anti-Patterns

  • NEVER install tools with apt-get or brew in CI — use mise
  • NEVER use raw curl / jq for GitHub API — use actions/github-script
  • NEVER hardcode versions in workflow files — versions come from .mise.toml or versions.env
  • NEVER use permissions: write-all — specify exact permissions needed
  • NEVER skip workflow_dispatch — all workflows should support manual runs

Cross-References

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.17%
按下载量换算84

Claude

29.91%
按下载量换算67

Cursor

18.32%
按下载量换算41

Gemini CLI

8.87%
按下载量换算20

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills