本文へ移動
cccskills
無料GitHub で公開

push

Push the current branch after re-running the quality gate. Use when the user asks to push; never pushes on a failing gate.

日本語の概要は準備中です。原文の説明を表示しています。

連携ツールGitHub
インストール方法を見る

含まれるファイル(1)

  • SKILL.md6.1 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Push — Gate → Push → Monitor CI/CD

Quality gate re-runs before pushing. Do NOT push if any gate fails. Do NOT ask for permission; never use --no-verify or --force.

Phase 0 — Quality Gate (MANDATORY)

Check gate cache first — skip if it already passed for this exact tree state. The cache is keyed on a tree token (HEAD + tracked diff + untracked files), not a bare HEAD, so a dirty or rebased tree never reuses a stale pass — the same token /commit writes and the gate-on-commit hook checks:

TOKEN=$(python3 ~/100xprism/hooks/gate-pass.py --print 2>/dev/null)
CACHED=$(cat ~/.100xprism/gate-cache 2>/dev/null)
[ -n "$TOKEN" ] && [ "$CACHED" = "$TOKEN" ] && echo "Gate: skipped (already passed for this tree)" && GATE_DONE=true || GATE_DONE=false

If GATE_DONE=false: run the gate workflow. On pass, record it:

python3 ~/100xprism/hooks/gate-pass.py

Do NOT push until gate passes. If gate fails → STOP, fix, clear cache, new commit, re-run.


Phase 0b — Code Review (pre-push)

Check review cache — skip if HEAD already reviewed by a prior /commit run:

HEAD=$(git rev-parse HEAD)
REVIEWED=$(cat ~/.100xprism/review-cache 2>/dev/null)
[ "$REVIEWED" = "$HEAD" ] && echo "Review: skipped (already done for $HEAD)" && REVIEW_DONE=true || REVIEW_DONE=false

If REVIEW_DONE=false, review unpushed commits now:

PR=$(gh pr list --head "$(git branch --show-current)" --json number -q '.[0].number' 2>/dev/null)
  • PR exists → run the code-review skill: /review $PR
  • No PR → spawn one review Agent on git diff origin/main..HEAD covering the five dimensions defined in the commit skill Phase 5 (bugs, security, architecture, design, CLAUDE.md). Single-pass — no separate agents per dimension.

On clean review:

echo "$HEAD" > ~/.100xprism/review-cache

Critical or High issues → fix, new commit, clear cache, re-run gate. Do NOT push. Minor issues → logged, non-blocking.


Phase 1 — Push

PROJECT_ROOT=$(git rev-parse --show-toplevel)
cd "$PROJECT_ROOT"
git push origin main

Let any pre-push hooks run. Never bypass with --no-verify.


Phase 2 — Handle pre-push hook failures

If the hook fails:

  1. Read the failure output carefully
  2. Fix the root cause — never bypass
  3. Create a NEW commit with the fix (never --amend over a pushed commit)
  4. Re-run the gate workflow to confirm fixes pass
  5. Push again

If push is rejected (non-fast-forward):

git pull --rebase origin main
git push origin main

Phase 3 — Monitor GitHub Actions & Auto-Fix

gh run list --limit 3
RUN_ID=$(gh run list --limit 1 --json databaseId -q '.[0].databaseId')
gh run watch "$RUN_ID"

No timeout — watch until CI completes or fails.

If CI passes → continue to Phase 4.

If CI fails → Auto-fix loop (max 3 attempts)

gh run view "$RUN_ID" --log | tail -100

Read the failure logs and classify the error:

Auto-fixable failures (language-agnostic):

Failure typeDetection signalsFix strategy
Lint/formatESLint, Prettier, ruff, black, gofmt, rustfmt, checkstyle, rubocop, swiftlint, ktlintRun the lint workflow, commit fixes
Type errorsTypeScript (tsc), mypy, pyright, Go compiler, Rust compiler (rustc), Java (javac), KotlinRead errors, fix types, commit
Test failuresJest, Vitest, pytest, Go test, cargo test, JUnit, RSpec, PHPUnit, XCTest, ExUnitRead failing test, fix test or code, commit
Dependency issuesnpm/yarn/pnpm lockfile, pip requirements, go.mod, Cargo.lock, Maven/Gradle, Bundler, ComposerInstall/update deps, commit lockfile
Build failureswebpack, vite, esbuild, Go build, cargo build, Maven/Gradle build, make, CMake, Swift buildRead build errors, fix, commit

Detection logic:

  1. Read CI log output
  2. Identify the tool/framework from error signatures
  3. Match to the fix strategy above
  4. If no match → classify as unfamiliar → escalate

For each auto-fix attempt:

  1. Apply the fix
  2. Create a new commit (never amend)
  3. Re-run the gate workflow
  4. Push again
  5. Monitor CI again
CI FAILED — Attempt N/3
Failure:  [tool/framework] [error type]
Fix:      [what was done]
Action:   Committing fix, re-running gate, re-pushing...

Unfamiliar failures (escalate to human after any attempt):

  • Infrastructure errors (Docker build fails in CI but not locally)
  • Permission / secrets / environment variable errors
  • Timeout / flaky test patterns (same test passes locally)
  • Network connectivity issues
  • Unknown error codes or tools
CI FAILED — ESCALATING TO HUMAN
Attempts:   N/3 exhausted (or unfamiliar failure)
Last error: [error summary]
Diagnosis:  [root cause analysis]
Suggestion: [recommended fix]

After 3 failed auto-fix attempts → STOP. Report all attempted fixes and escalate.


Phase 4 — Production verification

After all CI/CD workflows succeed:

# Detect project instruction file
INSTRUCTION_FILE=$(for f in CLAUDE.md AGENTS.md .cursorrules; do [ -f "$PROJECT_ROOT/$f" ] && echo "$PROJECT_ROOT/$f" && break; done)
  1. Health checks — read health endpoint URLs from the project instruction file or README. Hit each and confirm HTTP 200:
[ -n "$INSTRUCTION_FILE" ] && grep -E "https?://[^ ]*/health" "$INSTRUCTION_FILE" 2>/dev/null | head -3
# Also try common defaults:
# /health, /healthz, /api/health, /status

Retry up to 5 times with 10-second intervals (deployment may still be rolling out).

  1. Confirm deployment — verify the deployed version matches the pushed commit if a version endpoint exists.

Output

=== Push Complete ===
Gate:     ✅ ALL GATES PASSED
Push:     <branch> → origin/<branch> ✅
CI/CD:    ✅ All workflows passed (N auto-fixes applied)
Health:   ✅ All endpoints responding
Status:   SHIPPED ✅

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

コメント

ログインなしで書き込めます。使ってみた感想、質問、動かなかった環境などを気軽にどうぞ。

まだコメントはありません。最初のコメントを書いてみませんか。

送信するとすぐに公開されます。メールアドレスや電話番号などの個人情報は書かないでください。URL は 2 つまでです。

0 / 1000 文字

このフォームは reCAPTCHA で保護されており、Google のプライバシーポリシーと利用規約が適用されます。

同じリポジトリのスキル

Act as a Senior Accessibility Engineer to audit a page, component, or design against WCAG 2.2 AA. Produces a triaged finding list (critical/serious/moderate), focus-order map, contrast report, ARIA decision tree, and a screen-reader test plan. Use when shipping new UI, hardening an existing flow, or preparing for VPAT/accessibility conformance.

日本語の概要は準備中です。原文の説明を表示しています。

rajitsaha/100xprism102026年10月14日 更新

When the user wants to plan, design, or implement an A/B test or experiment — "split test," "variant copy," "multivariate test," "hypothesis," "statistical significance," "how long should I run this test," or comparing two versions. For tracking implementation, see analytics-tracking. For page-level conversion optimization, see page-cro.

日本語の概要は準備中です。原文の説明を表示しています。

rajitsaha/100xprism102026年10月14日 更新

When the user wants to generate, iterate, or scale ad creative — headlines, descriptions, primary text, full variations — for any paid platform; 'ad copy variations,' 'RSA headlines,' 'bulk ad copy,' 'creative testing,' 'write me some ads.' For campaign strategy and targeting, see paid-ads. For landing page copy, see copywriting.

日本語の概要は準備中です。原文の説明を表示しています。

rajitsaha/100xprism102026年10月14日 更新

ai-seo

無料

When the user wants content cited by LLMs or surfaced in AI-generated answers — 'AI SEO,' 'AEO,' 'GEO,' 'LLMO,' 'answer engine optimization,' 'AI Overviews,' 'optimize for ChatGPT/Perplexity/Claude,' 'AI citations,' 'zero-click search.' For traditional technical/on-page audits, see seo-audit. For structured data, see schema-markup.

日本語の概要は準備中です。原文の説明を表示しています。

rajitsaha/100xprism102026年10月14日 更新

When the user wants to set up, improve, or audit analytics tracking and measurement — "GA4," "conversion tracking," "event tracking," "UTM parameters," "tag manager," "GTM," "tracking plan," "attribution," "Mixpanel," "Segment," "are my events firing," or how to measure marketing results. For A/B test measurement, see ab-test-setup.

日本語の概要は準備中です。原文の説明を表示しています。

rajitsaha/100xprism102026年10月14日 更新

architect

無料

Architectural decision advisor for cloud, data, and SaaS distributed systems. Use when the user asks "should we use X or Y", weighs a tradeoff, or needs a decision matrix, scaling analysis, cost-at-scale review, data-tier design, multi-tenancy model, or API/resilience guidance. For full technical blueprints, use enterprise-design.

日本語の概要は準備中です。原文の説明を表示しています。

rajitsaha/100xprism102026年10月14日 更新

rajitsaha のスキルをすべて見る

このスキルの問題を報告する