Token导航 LogoToken导航TokenDH.com
开发需要联网github未标认证来源可访问许可证需确认审计提醒

ci-integrationCI 集成

Agent Skill

ci-integration 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,806

周安装

76

GitHub Stars

2

下载量

632
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/jwilger/agent-skills --skill ci-integration

简介

ci-integration 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合围绕仓库状态、代码变更或协作事项进行整理。
  • 可结合来源仓库和原始 README 继续核验具体用法。
  • 安装命令:npx skills add https://github.com/jwilger/agent-skills --skill ci-integration
  • 安装前建议确认权限范围、维护状态及是否会触发联网或命令执行。

SKILL.md

CI Integration

Value: Feedback -- CI pipelines produce signals. Deterministic interaction patterns ensure those signals are received, classified, and acted on correctly. Undisciplined CI interaction (pushing over failing runs, ignoring flaky tests) degrades the signal until the pipeline is noise.

Purpose

Teaches disciplined CI/CD interaction: one pending run at a time, structured failure triage, automated self-healing for mechanical failures, and structured evidence output for pipeline consumption. Prevents the most common CI failure mode: pushing again before understanding why the last run failed.

Practices

Push-and-Wait Discipline

One pending CI run at a time. Never push while a run is in progress.

  1. Push the commit
  2. Poll or wait for the CI run to complete
  3. Read the full result before taking any action
  4. Only after the run completes (pass or fail) may you push again

Do:

  • Wait for CI completion before starting new work that would require a push
  • Read the complete CI output, not just the status badge

Do not:

  • Push a "fix" while the previous run is still pending
  • Assume a run will pass and push follow-up commits
  • Cancel a run to push a new one (unless the run is clearly stale)

Failure Triage

Classify every CI failure before attempting a fix. The classification determines the fix strategy.

ClassificationSignalFix Strategy
test-failureTest assertions failRoute to debugging-protocol
lint-failureLinter or formatter errorsAuto-fix: run formatter, commit, re-push
build-failureCompilation or dependency errorsDependency analysis, check lockfiles
flaky-testTest fails then passes on retry without code changesFlag and track (see below)
infra-failureNetwork, runner, or service errorsRetry (max 2), then escalate

Read the full CI log to classify. Do not guess from the status alone.

Self-Healing

Mechanical failures that have deterministic fixes should be resolved automatically:

  1. Lint/format failures: Run the project's formatter or linter with auto-fix, commit the result, re-push. This is a single retry -- if the formatter does not resolve the issue, classify as build-failure.
  2. Infra failures: Retry the CI run (max 2 retries). If all retries fail, escalate to the user with the infra error details.
  3. Test failures: Never auto-retry. Route to debugging-protocol for investigation. A test failure is a signal, not noise.
  4. Build failures: Check dependency lockfiles, build configuration, and environment differences. Do not blindly retry.

Flaky Test Detection

A test is flaky if it passes on retry without any code changes.

When detected:

  1. Flag the test with its name, file, and the failure output from the flaky run
  2. Record in project memory (.factory/audit-trail/flaky-tests.json if factory mode is active, or project notes otherwise)
  3. Report to the user -- flaky tests erode CI trust and must be addressed
  4. Do not treat a flaky pass as a real pass for quality gate purposes until the flakiness is resolved

Structured Output

Every CI interaction produces a CI_RESULT evidence packet:

{
  "run_id": "string (CI run identifier)",
  "status": "string (passed | failed | cancelled)",
  "duration": "number (seconds)",
  "failure_type": "string (test-failure | lint-failure | build-failure | flaky-test | infra-failure) -- omit if passed",
  "failure_details": "string (summary of failure) -- omit if passed",
  "fixes_applied": ["string (description of each auto-fix applied)"],
  "retry_count": "number (0 if no retries)"
}

This packet is consumed by pipeline orchestrators and audit trails. Always produce it, even for passing runs.

Enforcement Note

  • Pipeline mode: Gating. CI pass/fail mechanically gates merge.
  • Standalone mode: Advisory. The agent self-enforces push-and-wait discipline.

Hard constraints:

  • Push-and-wait: [H] in pipeline mode, [RP] in standalone
  • Flaky pass not counted as real pass: [H]

Constraints

  • Push-and-wait: One pending run means one. Not "one per branch" or "one per type of change." If a CI run is in progress, do not push regardless of how unrelated the change seems. The discipline exists because CI resource contention and merge ordering matter.
  • Failure classification: Classify BEFORE attempting any fix. Not "I tried a fix and it worked, so it must have been a lint failure." The classification determines the fix strategy, not the other way around. If you can't confidently classify, investigate further -- don't guess and fix.
  • Flaky test: A flaky test is one that produces different results on the same code. "Passes on retry without code changes" is the definition. If you changed the environment, the retry is not evidence of flakiness -- it's evidence of an environment-dependent test. Those are different problems with different fixes.

Verification

After each CI interaction, verify:

  • Waited for the previous CI run to complete before pushing
  • Read the complete CI output (not just status)
  • Classified the failure type before attempting a fix
  • Applied the correct fix strategy for the classification
  • Did not retry a test failure (routed to debugging-protocol instead)
  • Lint/format auto-fixes were limited to one attempt
  • Infra retries did not exceed 2
  • Flaky tests were flagged and recorded
  • Produced a CI_RESULT evidence packet

If any criterion is not met, revisit the relevant practice before proceeding.

Dependencies

This skill works standalone for any project with a CI/CD pipeline. It integrates with:

  • debugging-protocol: Test failures route to the debugging protocol for systematic investigation rather than blind fix attempts
  • tdd: CI failures during TDD cycles feed back into the RED-GREEN loop; a CI test failure means the cycle is not complete
  • pipeline: When used within factory mode, the pipeline orchestrator consumes CI_RESULT packets to evaluate quality gates

Missing a dependency? Install with:

npx skills add jwilger/agent-skills --skill debugging-protocol

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

31.35%
按下载量换算198

Claude

29.34%
按下载量换算185

Cursor

19.63%
按下载量换算124

Gemini CLI

10.12%
按下载量换算64

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills