Claude-skill-registry ci-automation
Run CI quality gates with optional auto-fix and PR creation.
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/ci-automation" ~/.claude/skills/majiayu000-claude-skill-registry-ci-automation && rm -rf "$T"
manifest:
skills/data/ci-automation/SKILL.mdsource content
CI Automation Skill
Coordinates pull → build → test → fix → PR. Keeps instructions lean; heavy details live in references and contracts file. Agent Runner is required for all agent calls (registry-enforced, audited).
Commands
(flags:/ci-automation
,--build
,--test
,--dest
,--src
,--allow-warnings
,--yolo
)--help
Agents (v0.1.0)
: pre-flight checks (clean repo, config present, auth available)ci-validate-agent
: pull target branch, handle simple conflictsci-pull-agent
: run build, classify failuresci-build-agent
: run tests, classify failures/warningsci-test-agent
: apply straightforward fixesci-fix-agent
: summarize unresolved issues, recommend actionsci-root-cause-agent
: commit/push/PR when gates passci-pr-agent
Flow
- Validate via Agent Runner →
ci-validate-agent - Pull via Agent Runner →
(dest inferred from tracking;ci-pull-agent
overrides)--dest - Build via Agent Runner →
ci-build-agent - On build fail: Agent Runner →
(only straightforward fixes), repeatci-fix-agent - Test via Agent Runner →
ci-test-agent - On test/warn fail: Agent Runner →
if straightforward, elseci-fix-agentci-root-cause-agent - If clean and confirmed (or
): Agent Runner →--yolo
to commit/push/PRci-pr-agent
Config
Preferred:
.claude/ci-automation.yaml (fallback: .claude/config.yaml) with upstream_branch, build_command, test_command, warn_patterns, allow_warnings, auto_fix_enabled, pr_template_path, repo_root. Detect stack (e.g., .NET/Python/Node) and prompt to save suggested commands.
Safety
- No force-push; respect protected branches.
- Default is conservative: auto-fix only; stop before commit/PR unless clean and confirmed.
: allow commit/push/PR after gates pass.--yolo- Warnings block PR unless
or config override.--allow-warnings - Explicit confirmation for PRs to main/master unless
provided.--dest main - Audit: Agent Runner logs to
..claude/state/logs/ci-automation/
References
.claude/references/ci-automation-commands.md.claude/references/ci-automation-checklists.md.claude/references/ci-automation-contracts.md
Size Guidance
- Keep SKILL.md under ~2KB: overview, flags, agent list, flow summary, contracts, config, safety, references.