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

gz-complexity-guide

Use when the operator asks for an authoring-time complexity hint or a complexity guide preview before commit.

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

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.3 KB

SKILL.md(원문)

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

gz-complexity-guide

Run gz complexity guide, the authoring-time hint surface of the complexity-doctrine cluster (ADR-0.0.27 corpus, 0.0.28 thresholds, 0.0.29 advisor, 0.0.30 authoring guidance). It measures per-function radon_cc and reports only the functions in the advise band of .gzkit/rules/complexity-thresholds.json, the band below warn, so a refactor decision lands while the code is being written. It never blocks: it exits 0 whatever it finds, and exits 1 only on a user error such as a missing path.

This skill ends at the hints. It does not refactor.

When to Use

The guide is the first-stop authoring surface for complexity hints:

  1. Authoring-time review — preview hints for a file or directory while editing it.
  2. Before a commit — catch functions growing toward warn.

A function already at warn or block produces no hint here; use gz-complexity-advisor for it.

uv run gz complexity guide src/gzkit/commands/validate_cmd.py
uv run gz complexity guide src/gzkit/ --json

A path is required unless --server is given. --server starts a JSON-over-stdio server for editors (Content-Length framing; initialize, analyze with a file_path, shutdown), whose envelope is src/gzkit/schemas/authoring_guide_protocol.json.

Output Contract

Declared form: in-line hint prose (default human-readable). Each hint is a block headed ── <file>:<start>-<end> ── with four lines:

  • Archetype — the refactor archetype name
  • Band — approaching, or approaching_warn in the upper half of the advise band
  • Guidance — the doctrinal-frame headline
  • Move — the recommended-move excerpt

The line range is the diagnosed function's full span. No archetype rule in data/advisor_archetype_rules.json covers the advise band, so every hint's archetype is unclassified, and its guidance and move are the metric's general ones.

Machine-readable mode: --json emits an array of AuthoringHint objects with metric, precedence_band, crossing_value, archetype, doctrinal_frame_headline, recommended_move, file_path, start_line and end_line.

Trigger-Time vs. Authoring-Time

SurfaceSkillBands reportedBlocks?
Authoring-time hintsgz-complexity-guide (this skill)adviseNever
Trigger-time diagnosisgz-complexity-advisoradvise, warn, blockExits 3 on block

Both are run by hand in this repository; the advisor's auto-chain pre-commit hook is not installed.

Related

  • Sister skill: .gzkit/skills/gz-complexity-advisor/SKILL.md (ADR-0.0.29)
  • Manpage: docs/user/manpages/complexity-guide.md
  • Runbook: docs/user/runbook.md § Governance Doctrine Surfaces
  • Parent ADR: docs/design/adr/foundation/ADR-0.0.30-complexity-authoring-guidance/
  • Threshold table: .gzkit/rules/complexity-thresholds.json (ADR-0.0.28)

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Use to mine ../airlineops for governance habits gzkit lacks; produces a parity scan report (gzkit leads, AirlineOps adopts).

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

tvproductions/gzkit92026년 10월 19일 업데이트

Use to file a GitHub issue when a finding needs its own work order or the operator asks; OBPI corrections stay in its change log.

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

tvproductions/gzkit92026년 10월 19일 업데이트

ghi-close

무료

Use to do the work a GHI describes, verify it and close the issue with evidence in one sweep.

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

tvproductions/gzkit92026년 10월 19일 업데이트

Use to triage the open GHI queue before planning or choosing what to pull; produces a ranked deliverable.

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

tvproductions/gzkit92026년 10월 19일 업데이트

git-sync

무료

Run the guarded repository sync ritual; the hooks your pre-commit config declares enforce the quality gates.

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

tvproductions/gzkit92026년 10월 19일 업데이트

git-sync

무료

Run the guarded repository sync ritual; commit-time hooks enforce the cheap gates and the pre-push hook runs gz check.

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

tvproductions/gzkit92026년 10월 19일 업데이트

tvproductions의 스킬 모두 보기

이 스킬의 문제 신고