Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

buildgitbuildgit 搜索

Agent Skill

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

总安装

475

周安装

20

GitHub Stars

公开资料未说明

下载量

166
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/gclayburg/skills --skill buildgit

简介

buildgit 提供 Git 操作与 Jenkins CI/CD 构建管道的集成管理能力。

  • 适合在自动化部署流程中替代 git push,自动触发构建并监控执行状态。
  • 支持分析构建耗时、资源利用和排队情况,用于优化流水线性能。
  • 所有未知命令会委托给原生 git 处理,需确保 Jenkins REST API 可访问。
  • buildgit 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

buildgit

A CLI for git operations and monitoring Jenkins CI/CD build pipelines.

What this skill does

  • replacement for git push command. Instead of git push use buildgit push
  • uses git to push changes then expects a Jenkins build to automatically start, then monitors it
  • shows Jenkins build status in many different ways
  • analyzes build timing, executor capacity, pipeline structure, and queue contention to enable build optimization
  • uses Jenkins REST api to monitor and track a Jenkins pipeline build job
  • any command unknown to buildgit is delegated to git, e.g. buildgit log would run git log

All paths in this document are relative to this SKILL.md file's directory, not the project root.

How to use

what is the build status
push the staged changes and monitor the build.  fix any errors you find.

Commands

CommandPurpose
scripts/buildgit statusJenkins build status snapshot
scripts/buildgit status <build#>Status of one build (31, 0, -1, -2)
scripts/buildgit status --lineOne-line status for latest build
scripts/buildgit status -n <N> --lineOne-line status for latest N builds (oldest first)
scripts/buildgit status --prior-jobs <N>Snapshot with N prior one-line builds before target build
scripts/buildgit status -n <N>Full snapshot output for latest N builds (oldest first)
scripts/buildgit status -n <N> --jsonJSONL snapshot output for latest N builds
scripts/buildgit status -n <N> --no-testsOne-line status while skipping test-report API calls
scripts/buildgit status --format '<fmt>'One-line status with custom format string (implies --line)
scripts/buildgit status --allForce full snapshot output
scripts/buildgit -v status --allFull snapshot with untruncated failed-test details and stdout
scripts/buildgit status --console-text [stage]Raw build console or one stage's console text; empty parent stages recurse into descendant substages
scripts/buildgit status --list-stages [--json]List stage names or emit the raw stage array
scripts/buildgit status -f --onceFollow current/next build to completion, then exit (10s timeout)
scripts/buildgit status -f --once=NSame, but wait up to N seconds for a build to start
scripts/buildgit status -f --probe-allFollow the next build that starts on any multibranch branch
scripts/buildgit status -f --probe-all --onceFollow one multibranch branch build, then exit
scripts/buildgit status -n <N> -f --onceShow N prior builds then follow once with timeout
scripts/buildgit status -f --line --onceFollow builds with compact one-line output (TTY shows progress bar)
scripts/buildgit status -f --prior-jobs <N>Follow with N prior one-line builds + estimate preamble
scripts/buildgit status -n <N> -f --line --onceShow N prior one-line rows then follow in one-line mode
scripts/buildgit --threads '[%a] %S %p' status -f --lineFollow with custom live per-stage row formatting on TTY
scripts/buildgit status --jsonMachine-readable Jenkins build status
scripts/buildgit pushgit push + monitor Jenkins build until complete
scripts/buildgit push --prior-jobs <N>git push + preamble with N prior builds + estimate
scripts/buildgit push --no-followgit push only, no build monitoring
scripts/buildgit push --linegit push + compact one-line monitoring (TTY shows progress bar)
scripts/buildgit push --format '<fmt>'git push + compact one-line monitoring with custom format
scripts/buildgit buildTrigger a new build + monitor until complete
scripts/buildgit build --prior-jobs <N>Trigger + preamble with N prior builds + estimate
scripts/buildgit build --no-followTrigger only, no monitoring
scripts/buildgit build --lineTrigger + compact one-line monitoring (TTY shows progress bar)
scripts/buildgit build --format '<fmt>'Trigger + compact one-line monitoring with custom format
scripts/buildgit agentsShow Jenkins executor capacity by label
scripts/buildgit agents --jsonEmit executor capacity and node details as JSON
scripts/buildgit agents --label <name>Show executor capacity for one Jenkins label
scripts/buildgit agents --nodesPivot to one row per Jenkins node with all labels and busy/idle counts
scripts/buildgit timingShow per-stage timing for the latest successful build
scripts/buildgit timing --testsInclude slowest test suites and test counts in timing output
scripts/buildgit timing --tests --by-stageGroup test suites under the pipeline stages that published them
scripts/buildgit timing --compare <a> <b>Compare two builds side by side with signed per-stage deltas
scripts/buildgit timing -n <N>Show a compact stage timing table across the latest N builds
scripts/buildgit timing --tests --jsonEmit timing, parallel bottlenecks, and test suite timing as JSON
scripts/buildgit timing -n <N> --jsonEmit timing JSON for the latest N builds
scripts/buildgit pipelineShow pipeline structure, stage hierarchy, and parallel branches
scripts/buildgit pipeline --jsonEmit pipeline graph, stage types, agent labels, and per-stage testSuites as JSON
scripts/buildgit queueShow the current Jenkins queue and wait reasons
scripts/buildgit queue --jsonEmit queued items, wait reasons, and queue duration as JSON
scripts/buildgit --console auto statusShow default console log on failure
scripts/buildgit --console <N> statusShow last N raw console lines on failure
`scripts/buildgit --job <namename/branch> `
scripts/buildgit --versionShow version number and exit

Default one-line format (status --line, push --line, build --line) is: %s #%n id=%c Tests=%t Took %d on %I (%r)

Default threads format (--threads on TTY monitoring) is: [%-14a] %S %g %p %e / %E

Threads placeholders are separate from --format placeholders: %a=agent %S=stage %g=progress-bar %p=percent %e=elapsed %E=estimate %%=literal% Use width/alignment like %14a or %-14a. BUILDGIT_THREADS_FORMAT sets the default when --threads has no explicit format argument.

Interpreting Output

Exit codes:

CodeMeaning
0Success (build passed, or git command succeeded)
1Build failed, or an error occurred
2Build is currently in progress

Build states: as reported by Jenkins

  • SUCCESS — build passed, all tests green
  • FAILURE — build failed; output includes failed stage and error details
  • BUILDING — build is still running
  • ABORTED — build was manually cancelled
  • UNSTABLE — build completed with test failures or marked warnings (common for flaky tests)
  • NOT_BUILT — build was skipped or not executed (e.g., due to upstream failure or explicit skip)
  • UNKNOWN — the state could not be determined (e.g., API error, incomplete data)
  • QUEUED — build is waiting in the Jenkins queue and hasn't started running yet
  • Tests=!err! in line output means Jenkins test-report data could not be retrieved due to a communication failure (network/sandbox/API connectivity), not a test result.

For failures, summarize the failed stage name, error logs, and test failure details for the user. When a failure needs more detail, prefer scripts/buildgit -v status --json for structured failed-test stdout and scripts/buildgit status --console-text <stage> after scripts/buildgit status --list-stages. --console-text <stage> accepts exact, case-insensitive, and unique partial stage matches. If the requested parent stage has no direct log text, it walks descendant substages and emits their logs in pipeline order. Normal build/status output goes to stdout, including queue updates, stage progress, completion summaries, and verbose diagnostics. stderr is reserved for invalid input, Jenkins communication failures, and transient TTY redraw sequences. Full header output is condensed: Trigger: merges cause plus user (Manual by …, SCM change, Timer, Upstream), Commit: includes the subject line when available, and Agent: is a top-level field instead of a boxed Build Info section. For jobs that trigger downstream builds, full output now shows a hierarchical === Test Results === tree with parent and child rows, while one-line output aggregates the Tests= counts across the whole tree. In --json, the top-level test_results totals match the line output and multi-job builds add a breakdown array with one entry per parent/downstream build; missing reports are represented as null counts.

For snapshot mode defaults, scripts/buildgit status prints one-line output by default on both TTY and non-TTY stdout (TTY adds color).

  • Monitoring commands (push, build, status -f) print prior-jobs + estimated build time before monitoring starts
  • scripts/buildgit status -f --probe-all only applies to multibranch jobs, waits on the top-level job, then switches to the detected job/branch build once Jenkins starts it
  • Parallel branches with local stages {} blocks print as Branch->Substage rows under the branch, reuse the branch marker and agent, expose parallel_path plus parent_branch_stage in --json, and --threads now shows the active Branch->Substage row live while follow-mode monitoring is running.

Build reference rules:

  • 0 and -0 mean latest/current build
  • Negative values (-1, -2) are relative offsets from latest build
  • Build reference and -n are mutually exclusive

Console log (--console): On failed builds, buildgit shows a curated error summary by default.

  • --console auto — force the default error log display even when test failures are present
  • --console N — show last N raw console lines instead of curated summary (useful for troubleshooting)

For agent-safe follow mode, prefer:

  • scripts/buildgit status -f --once to follow exactly one build and exit
  • scripts/buildgit status -f --probe-all --once when the next multibranch build may start on a different branch than the current checkout

Build Optimization

Use this workflow when the user wants to reduce build time or understand Jenkins contention:

  1. Run scripts/buildgit queue to see whether builds are waiting on capacity or blocked by quiet periods.
  2. Run scripts/buildgit agents to identify which executor labels are saturated or offline, then scripts/buildgit agents --nodes to see which physical nodes overlap those labels.
  3. Run scripts/buildgit timing --tests on a recent successful build to find slow stages, parallel bottlenecks, and expensive test suites.
  4. Run scripts/buildgit timing --tests --by-stage to map those suites back to the stages that published them, or scripts/buildgit timing --compare <a> <b> / scripts/buildgit timing -n <N> to measure whether a rebalance actually helped.
  5. Run scripts/buildgit pipeline to understand stage ordering, parallel branches, agent-label placement, and per-stage test suite summaries, then use references/build-optimization.md for the full workflow and constraints.

Dynamic Context

To inject live build state into context before reasoning about build issues:

`scripts/buildgit status --json 2>/dev/null`

References

See references/buildgit-setup.md for setup instructions (required tools, fixing permission errors,project setup, needed network access, docker sandbox instructions) See references/reference.md for real-world output examples (push failures, parallel pipelines, progress bars, live follow mode).

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.55%
按下载量换算62

Claude

29.39%
按下载量换算49

Cursor

20.71%
按下载量换算34

Gemini CLI

8.61%
按下载量换算14

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills