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

spark-code-review

Use when a Spark implementation needs an evidence-based review for correctness, ownership, compatibility, failure handling, maintainability, and unnecessary complexity.

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

설치 방법 보기

포함된 파일(1)

  • SKILL.md4.4 KB

SKILL.md(원문)

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

Spark code review

Review the actual diff and reachable behavior. Treat unnecessary complexity as an engineering defect when it creates permanent surface area, duplicated semantics, state, lifecycle, or failure modes without a corresponding invariant.

Use spark-change-scope first when the owner and acceptance boundary are not already explicit. Use spark-find-simplifications when a finding needs an equivalence-preserving removal plan.

Procedure

  1. Reconstruct the intended behavior, acceptance boundary, and authoritative owner from code, tests, and contracts.
  2. Read the complete changed functions plus callers and consumers that establish externally observable behavior.
  3. Check state ownership, dependency direction, protocol translation, compatibility reads/writes, authorization, cancellation, retries, recovery, persistence, and cleanup as applicable.
  4. Apply the deletion test to every new helper, type, interface, schema, config field, cache, queue, adapter, compatibility path, background loop, and test utility:
    • What semantic distinction or invariant does it add?
    • Is the same fact already represented or enforced elsewhere?
    • Could it be deleted or inlined without changing required behavior?
    • Does it create another state owner, synchronization point, failure mode, or compatibility burden?
    • Is it repairing stale state instead of fixing the authoritative mutation path?
    • Is it current required behavior or speculative scaffolding?
  5. Reconstruct cross-owner invariants. A locally correct component still fails review when its composition violates the claimed system property.
  6. Inspect tests as production engineering. Flag wrappers with no semantic payload, fixtures that outweigh the behavior under test, and assertions that fossilize invented semantics for unspecified inputs.
  7. Check bounded collection logic for limit before downstream filtering or skipping; prove that the limit is applied on the dimension whose fairness or completeness is claimed.
  8. Run focused diagnostics when static inspection cannot settle a claim.
  9. Report only actionable findings caused by the change. Prefer deletion, consolidation into the authoritative owner, or an existing primitive over another abstraction.

Complexity findings

Report these when the diff provides concrete evidence:

  • zero-semantic indirection: forwarding wrappers, re-exports, getters, or test helpers that add no policy, conversion, ownership boundary, or invariant;
  • duplicated semantics: the same schema, validator, predicate, authority rule, mapping, or state transition encoded in multiple places;
  • speculative scaffolding: public APIs, config, state, NOT_IMPLEMENTED methods, or compatibility machinery added only for possible future work;
  • parallel truth: another aggregate, queue, cache, projection, ledger, or lifecycle for facts already owned elsewhere;
  • reconciliation-as-design: polling, periodic scans, or unrelated mutations used to repair state the authoritative update path can keep consistent;
  • invented semantics: implementation and tests defining behavior for invalid or unspecified inputs without a product requirement;
  • governance instead of simplification: adding budgets, ratchets, exceptions, or facades to manage an avoidable abstraction;
  • security-shaped metadata: caller-constructible labels presented as authority or proof rather than provenance metadata;
  • local correctness with global inconsistency: a component satisfies its local contract while breaking a higher-level invariant.

Do not report formatting or personal style preferences. A small helper is useful when it owns a real invariant, and validation belongs at an untrusted boundary. Missing future functionality is not a defect; surface area added today solely for that future may be. Added state, lifecycle, synchronization, or public surface is not merely style.

Do not accept tests that assert prompt wording unless exact representation is the contract. Stop with needs-decision when correctness or ownership depends on an unresolved product choice.

Return findings, verifiedBehaviors, residualRisks, and verdict. Each finding includes severity, category, evidence, impact, deletionTest, and repairDirection. Category is correctness | security | ownership | compatibility | complexity.

리뷰

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

댓글

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

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

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

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Use when Spark engineering knowledge must be placed, deduplicated, migrated, or validated across AGENTS, Notes, Roles, Skills, and Workflows.

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

zendev-lab/cogfold22026년 10월 19일 업데이트

Use when adding or updating Spark AI provider models or their compact and preflight metrics, especially baidu-oneapi, Grok, Claude, GPT, DeepSeek, OneAPI, context windows, output budgets, prices, thinking maps, or transports.

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

zendev-lab/cogfold22026년 10월 19일 업데이트

Use when a Spark change needs its authoritative owner, affected boundaries, risks, acceptance criteria, and smallest verifiable slice established before implementation or review.

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

zendev-lab/cogfold22026년 10월 19일 업데이트

Use when designing a Spark feature or writing or materially revising a design proposal that needs repository-first research, user input on unresolved key choices, and an owner-aligned implementation plan before code changes.

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

zendev-lab/cogfold22026년 10월 19일 업데이트

Use when a working Spark implementation should be simplified without changing its observed behavior, ownership, compatibility, or public contract.

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

zendev-lab/cogfold22026년 10월 19일 업데이트

Use when a running Spark or DSH web service needs real-browser verification — page load, client-plugin boot errors, console errors, failed requests, or onboarding/dialog rendering — with the repository's own Playwright chromium.

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

zendev-lab/cogfold22026년 10월 19일 업데이트

zendev-lab의 스킬 모두 보기

이 스킬의 문제 신고