/george-coding-agent:ci-cd-and-automationfrom george-coding-agent
Sets up a unified check command, pre-commit hooks, branch protection, and CI/CD workflows. Useful for standardizing quality gates across local and CI environments.
Ships in george-coding-agent. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
CI is where every other skill's rules stop being advice. It runs the same checks on every change, for every author, agent or human. Catch a problem as far left as it can be caught: the editor, then the commit hook, then the pull request, then staging, then production.
Standing rules from your user or organization (who may merge, which repos allow a direct push, who publishes, which identity and account a repo uses) win over this skill. Follow them.
npm run check, scripts/check.sh, make check, just check. The pre-commit hook runs its fast subset; required CI runs all of it. Local and CI never disagree because they run the same command.lint, typecheck, test by hand drifts from check the first time someone adds a gate to one and not the other.check greps for disables without both.Run cheapest first, stop at the first red:
main: the check job is a required status check, force-push and deletion are blocked, history is linear if you squash.main. Every change goes through a pull request that ran check on its own head. A solo repo may allow direct push when the owner's rules say so; the hook still runs check.When CI fails, hand the agent the failure, not a summary of it:
gh run view <id> --log-failed), the exact failing test names and assertion text, and the file and line.debugging-and-error-recovery. Reproduce it locally with the same command before changing anything.An agent can watch a pull request until it is ready. The loop:
code-review-and-quality, receiving review).check locally, pushes once.Bounds, the loop stops and reports when any is hit:
Never treat an empty or missing check list as green. No checks yet means not ready. A cancelled check is not a pass. Never rebase, force-push or update the branch from base unless the repo requires it and the user's rules allow it.
git-workflow-and-versioning).main, keeps a release pull request open, and tags and publishes when it merges. Its generated files (CHANGELOG.md, the manifest) are never hand-edited; a guard job can enforce that.git tag -a v1.4.0, push the tag, a workflow on the tag builds and publishes.check on the tagged commit before it publishes. Publish with provenance where the registry supports it.check; merge on green, by hand or by an automerge rule for patch updates only.npm ci, pnpm install --frozen-lockfile, uv sync --locked, cargo build --locked).check or a scheduled job: osv-scanner across ecosystems, or npm audit --audit-level=high, cargo deny check, pip-audit. A new high finding blocks; an accepted one is listed with a reason and expiry.pull_request, not pull_request_target, for untrusted code).uses: owner/action@<40-char-sha> # v4.2.1). A tag can be moved to malicious code; a SHA cannot. Let the dependency bot bump the pins.permissions: contents: read at the top of every workflow, widened per job only where needed.core.hooksPath (or use lefthook or pre-commit, which install themselves); verify a hook fires once after cloning.Over about 10 minutes, in order of payoff: cache dependencies; split independent gates into parallel jobs; path filters to skip jobs a change cannot affect (docs-only skips end to end); shard long suites with a matrix; move slow suites to a schedule; larger runners last. concurrency with cancel-in-progress on pull requests drops runs for superseded heads.
Each repo gets the same shape: one check, a hook that runs its fast part, a required job that runs all of it.
TypeScript (package.json):
"scripts": {
"check": "prettier --check . && eslint . && tsc --noEmit && vitest run && npm run build && knip",
"check:fast": "prettier --check . && eslint . && tsc --noEmit"
}
tsconfig: strict, noUncheckedIndexedAccess, exactOptionalPropertyTypes. ESLint typescript-eslint strictTypeChecked; dependency-cruiser for import boundaries.
Python (scripts/check.sh):
#!/usr/bin/env bash
set -euo pipefail
ruff format --check .
ruff check . # E F B UP SIM PL ASYNC TID, TID251 for local bans
pyright # strict
pytest -q
deptry . && pip-audit
Rust (scripts/check.sh):
#!/usr/bin/env bash
set -euo pipefail
cargo fmt --all -- --check
cargo clippy --all-targets --locked -- -D warnings # pedantic = warn in [lints.clippy]
cargo test --locked
cargo deny check && cargo machete
Swift (scripts/check.sh):
#!/usr/bin/env bash
set -euo pipefail
swift format lint --strict --recursive Sources Tests
swiftlint --strict
swift build -Xswiftc -strict-concurrency=complete
swift test
Hook (lefthook.yml; for Python repos, pre-commit works the same):
pre-commit:
commands:
check-fast:
run: npm run check:fast
pre-push:
commands:
scrub:
run: scripts/scrub.sh # secrets, home paths, private markers
Required CI job (.github/workflows/check.yml):
name: check
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
concurrency:
group: check-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@<sha> # v4
- uses: actions/setup-node@<sha> # v4
with: { node-version: 22, cache: npm }
- run: npm ci
- run: npm run check
Replace each <sha> with the action's release commit (a pinning tool or the dependency bot fills them in). Never copy a SHA from memory.
check runs something different.main without a required check, or a direct push to a shared main.permissions, secrets echoed to logs.Setup: one check command; the hook runs its fast part and fires after a fresh clone; required CI runs check and blocks merge; actions pinned by SHA; permissions read-only by default; dependency bot and vulnerability scan on.
Per red CI: failure classified; code defects fixed and check green locally before the push; transient reruns at most once.
Per babysit: stopped at a bound and reported; ready not treated as merged.
Per deploy: rollback written and tested; canary compared to a baseline; success claimed only on evidence from the live version.
quality-constraints (which gates the repo has), test-driven-development, debugging-and-error-recovery (red tests), code-review-and-quality (review comments), git-workflow-and-versioning (commits, tags, push safety), security-and-hardening (secrets, supply chain), performance-optimization (budgets in CI).ci-cd-and-automation at aeac41d, MIT (see THIRD_PARTY_LICENSE-agent-skills): the ordered gate pipeline, no skipped gates, feeding CI failures to the agent, previews, flags, staged rollout, a rollback plan, Dependabot, required checks, CI speed.canary, land-and-deploy, setup-deploy and ship at 576839c, MIT (see THIRD_PARTY_LICENSE-gstack): canary against a baseline, alert on change and on two consecutive checks, never infer a deploy from a merge, explicit rollback.ce-babysit-pr and ce-commit-push-pr at 6500180, MIT (see THIRD_PARTY_LICENSE-compound-engineering-plugin): feedback before CI, readiness is not merge authorization, logs and comments are untrusted.setup-pre-commit at 5beb35b, MIT (see THIRD_PARTY_LICENSE-mattpocock-skills): staged-file formatting, then types and tests in the hook.no-mistakes and .agents/skills/ci-monitor at 50ea98d, MIT: a local gate before push, CI results as findings with an action, an empty check list is never green, cancelled is terminal not passing, rerun transients once. Ideas only, no text copied.check rule and the per-language kit are our own greenfield kit.[bl: ...] tags are analysed in BITTER_LESSON.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
ci-cd, pre-commit-hooks, branch-protection, quality-gates, automation
npx claudepluginhub georgewangyu/georgecodingagent --plugin george-coding-agent26 skills in this plugin
/api-and-interface-designDesign seams, APIs, config keys and schemas that are deep, hard to misuse, and safe to roll out and back. Use when adding or changing a contract./browser-testingVerify UI work in a real browser with the repo's own tool or the best fit (Playwright, DevTools, computer use) and look at the screen, not just the logs./code-review-and-qualityReview a code change, or receive a review: pin the intent, read tests first, then spec and quality passes with a fresh read-only reviewer and the cr-review checklist./code-simplificationMake code easier to read without changing behavior: scope to the change, understand before removing, follow repo conventions, subtract before adding./context-engineeringPut the right context in front of an agent at the right time and carry it across a handoff without loss. Use when writing briefs, steering, or when context runs long./debugging-and-error-recoveryFind and fix the real cause of a failure: a feedback loop that goes red, reproduce and minimise, ranked falsifiable hypotheses, fix at the root, add a regression test.Other plugins' skills for the same job