跳到正文
cccskills
免费在 GitHub 公开

push

Quality gate re-runs before pushing. **Do NOT push if any gate fails.**

中文简介正在准备中。当前显示原文说明。

集成工具GitHub
查看安装方法

包含的文件(2)

  • SKILL.md6.0 KB
  • .100xprism-generated89 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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 的全部技能

报告此技能的问题