본문으로 건너뛰기
cccskills
무료GitHub에 공개

commit

Commit staged work with a conventional message after the quality gate passes. Use when the user asks to commit; never commits on a failing gate.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md6.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Commit — Gate → Stage → Commit

Quality gate runs FIRST. Do NOT commit if any gate fails. Do NOT ask for permission or skip the gate.

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:

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 (same token the gate-on-commit hook checks):

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

Do NOT proceed until gate reports ✅ ALL GATES PASSED. If any gate fails → STOP, fix, clear cache, re-run gate.


Phase 1 — Review changes

PROJECT_ROOT=$(git rev-parse --show-toplevel)
cd "$PROJECT_ROOT"
git status
git diff --stat
git diff --name-only HEAD 2>/dev/null || true

Phase 2 — Update docs (if needed)

Based on what changed, update corresponding documentation:

Changed filesDoc to update
API routes or handlersAPI reference doc (README, project instruction file, or docs/)
CLI commands or flagsCLI reference doc
New features or configREADME.md or project-equivalent
Removed files/featuresRemove stale references from all docs
.claude/commands/**No doc update needed

Read the project instruction file for specific doc file paths. Skip if no docs are affected.


Phase 3 — Stage files

Stage only task-related files. Never stage .env, dist/, node_modules/, venv/, unrelated work:

git add -u
# Or stage specific files if -u picks up unrelated changes:
# git add path/to/file1 path/to/file2
git diff --staged --stat

Phase 4 — Write and create commit

Use Conventional Commits. Focus on why, not just what.

TypeWhen to use
featNew feature or capability
fixBug fix
testAdding or updating tests
choreTooling, config, scripts, CI
docsDocumentation only
refactorCode change with no behavior change
perfPerformance improvement
securityVulnerability fix
git commit -m "$(cat <<'EOF'
<type>(<scope>): <short summary under 72 chars>

- <Key change 1 and why>
- <Key change 2 and why>

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
EOF
)"

Phase 5 — Code Review

Check review cache — skip if this HEAD was already reviewed:

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

Otherwise, run a full review:

git diff HEAD~1 --stat
PR=$(gh pr list --head "$(git branch --show-current)" --json number -q '.[0].number' 2>/dev/null)
[ -n "$PR" ] && echo "PR #$PR found" || echo "No PR — running diff review"

If a PR exists → run the code-review skill: /review $PR

If no PR → spawn one review Agent on git diff HEAD~1. The Agent reads the full diff and scans surrounding codebase for context. Cover all five dimensions in a single pass:

Review dimensions (all required)

1. Bug review

  • Null/undefined dereferences, off-by-one errors, wrong conditions
  • Unhandled error paths, missing awaits, silent catch blocks
  • Race conditions, state mutation side effects

2. Security review

  • Injection vectors (SQL, shell, XSS), auth bypass, missing input validation
  • Exposed secrets or tokens, insecure defaults, overly permissive CORS/headers
  • Privilege escalation risks in new routes or handlers

3. Architecture review

  • Does the change respect existing layer boundaries (e.g. routes → services → DB, not routes → DB directly)?
  • Does it introduce patterns inconsistent with the rest of the codebase?
  • Are new abstractions justified, or is this premature generalization?
  • Does it create circular dependencies or tight coupling between modules?
  • Does it belong in the right layer/module — or is it a responsibility leak?

4. Design review

  • Are names (variables, functions, files) clear and consistent with existing conventions?
  • Is the interface (function signatures, return types, API shape) clean and minimal?
  • Is there unnecessary duplication that should be extracted — or over-extracted abstraction that should be inlined?
  • Do new data structures match the project's existing patterns (shape, naming, serialization)?
  • Are SOLID principles respected — single responsibility, open/closed, dependency inversion?

5. CLAUDE.md / project rules compliance

  • Read the project instruction file and verify all new code follows its conventions
  • Flag any deviation from documented patterns, naming rules, or architectural decisions

Severity

LevelAction
CriticalBug, security hole, or architectural violation that breaks correctness or safety → fix before push
HighDesign smell or pattern inconsistency that will compound over time → fix before push
MinorStyle, naming preference, small improvement → log, non-blocking

Critical or High issues found → fix now, create a new commit, re-run gate. Do NOT push.

On clean review, cache the result so push skips re-reviewing the same HEAD:

echo "$(git rev-parse HEAD)" > ~/.100xprism/review-cache

Phase 6 — Verify

git log --oneline -3

Output

=== /commit Complete ===
Gate:         ✅ ALL GATES PASSED
Staged files: N
Commit:       <short-hash> <message>
Review:       ✅ No critical issues | ⚠️ N minor notes
Status:       COMMITTED ✅

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 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의 스킬 모두 보기

이 스킬의 문제 신고