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

python-quality-audit

Use when the user asks for a read-only, actionable audit of Python code quality, modernization, maintenance burden, ecosystem opportunities, or Pythonic design across a PR, git diff, staged/unstaged changes, files, or directories.

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

설치 방법 보기

포함된 파일(1)

  • SKILL.md7.3 KB

SKILL.md(원문)

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

Python Quality Audit

Audit Python without modifying the target. Fan out independent evidence gathering, then synthesize one deduplicated report whose findings can be verified and actioned.

Load python-engineering:standards-for-python-development first. Its shared rules define the preferred Python engineering defaults and repository-precedence rules.

Resolve scope

Interpret the argument as exactly one review surface:

  • PR: changed Python files plus affected callers/consumers, tests, docs, config, manifests, generated artifacts, and public contracts.
  • diff: the supplied/base diff plus the same affected surface.
  • staged: git diff --cached.
  • unstaged: git diff plus relevant untracked Python files.
  • file/directory: the selected Python target plus materially affected consumers/contracts.

Do not silently broaden into unrelated cleanup. Trace outward far enough to determine whether a finding is local or systemic.

Record the repository's actual Python floor. If the user explicitly supplies a target floor (for example Python 3.15), assess modernization against that target as PROPOSED unless repository configuration already establishes it. Do not recommend syntax or APIs unavailable at the authoritative floor.

Independent audit lanes

Run the applicable lanes in isolated agents. Give each the resolved scope and starting paths, not another lane's conclusions. Lanes report evidence and candidates; they do not edit.

1. Smell and standards lane — StinkySnake

Dispatch an isolated agent and have it load python-engineering:stinkysnake against the resolved scope. Its returned findings are evidence for synthesis, not instructions to edit.

The lane must cover:

Find demonstrated deviation from the shared standards and Pythonic design:

  • lint/type/test escapes and suppressions, especially exceptions that should be localized in a boundary file;
  • cargo-cult leading underscores without a concrete privacy/API reason;
  • files approaching/exceeding ~500 physical LOC and responsibility/cohesion problems;
  • duplicated logic, unnecessary wrappers/indirection, speculative abstractions, dead branches and compatibility scaffolding;
  • weak typing, unchecked external boundaries, misleading casts, exception misuse, sync/async mistakes;
  • violations of existing project architecture, public contracts, dependency policy, or configured tooling.

A smell is a signal to trace to its cause. Do not recommend cosmetic churn when the underlying design is sound.

2. Python modernization lane — SnakePolish

Dispatch a separate isolated agent and have it load python-engineering:snakepolish against the same resolved scope and any explicitly proposed Python floor. Do not give it the StinkySnake findings; independence is intentional.

The lane must cover:

Ask how the same capability could be smaller, clearer, more Pythonic, and lower-maintenance at the authoritative/target Python floor:

  • obsolete compatibility code or backports removable at the floor;
  • newer stdlib/language features that eliminate custom machinery;
  • modules/functions that can be combined or simplified without losing cohesion;
  • manual state, parsing, serialization, retry, concurrency, CLI, configuration, packaging, caching, traversal, or validation machinery that modern Python handles better;
  • opportunities to delete code rather than rewrite it.

Prefer reduced maintained code and simpler contracts over novelty.

3. Ecosystem substitution lane

Identify code/process maintained locally that a mature external Python library or tool could own.

For every candidate, verify current maintenance and capabilities from primary sources before recommending it. Compare:

  • maintained local code/process that would disappear;
  • dependency/API/compatibility cost introduced;
  • project Python floor and platform constraints;
  • migration/breaking-change risk;
  • whether the library actually owns the hard edge cases rather than merely moving wrappers around them.

Do not recommend a dependency merely because one exists.

4. Large-project practice lane

Research how actively maintained, substantial open-source Python projects solve the same demonstrated problems. Use current repository/official evidence.

Look for reusable practices in CI, release automation, dependency management, testing, typing, generated code, docs, repository automation, performance, security, and maintenance. Report a practice only when it addresses a problem observed in this target. Do not import process ceremony by analogy alone.

5. Removal and process-debt lane

Challenge what can disappear:

  • redundant validation already guaranteed elsewhere;
  • duplicate workflow/tool stages;
  • generated artifacts maintained by hand;
  • compatibility/process steps whose triggering condition no longer exists;
  • scripts superseded by project tooling;
  • tests coupled only to deleted implementation detail;
  • documentation describing obsolete behavior.

Require evidence before calling something dead or redundant.

Synthesis

Reconcile lane outputs against the actual repository and each other. Merge duplicates by root cause. Reject recommendations that violate repository constraints or merely exchange one maintenance burden for another.

Classify evidence as:

  • OBSERVED — directly present in code/config/history/tool output.
  • DERIVED — follows from traced repository relationships.
  • VERIFIED-EXTERNAL — supported by current primary-source ecosystem/project evidence.
  • HYPOTHESIS — plausible improvement requiring an experiment or benchmark.

For every material finding provide:

[P1|P2|P3] <title>
Evidence: <classification + file:line/config/external source>
Current burden: <what is maintained, risky, duplicated, or hard to understand>
Recommendation: <specific change>
Why better: <correctness / deletion / maintenance / clarity / performance>
Protected behavior: <contracts/invariants that must survive>
Verification: <specific command, test, comparison, benchmark, or inspection>
Affected surface: <implementation + consumers/tests/docs/config/generated artifacts>

Priority means consequence/opportunity, not certainty:

  • P1: correctness/security/release risk or large demonstrated maintenance reduction.
  • P2: meaningful design/maintenance improvement.
  • P3: worthwhile cleanup with bounded consequence.

Keep correctness/contract findings, qualitative design judgments, and efficiency telemetry separate. Do not compute an aggregate score.

Actionability gate

A recommendation is actionable only when its affected surface and verification path are known. If library replacement, deletion, Python-floor migration, or process removal lacks enough evidence, report the missing evidence and the smallest experiment needed instead of presenting it as ready work.

End with:

  1. findings ordered by consequence;
  2. deletion/replacement opportunities;
  3. hypotheses/experiments;
  4. a smallest sensible implementation sequence that preserves behavior.

Do not edit, stage, commit, or post review comments unless the user separately asks.

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Add automated documentation updater to any Claude skill. Creates a Python sync script that downloads upstream docs, processes markdown for AI consumption, and maintains local cache with configurable refresh. Collects template variables, then delegates implementation through 5-phase workflow. Use when adding auto-updating reference documentation to plugins or skills.

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

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

SAM-style feature initiation workflow — discovery through codebase analysis, architecture spec, task decomposition, validation, and context manifest. Use when a user asks to add a feature, plan a feature, or convert an idea into an executable SAM plan.

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

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

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

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Browser automation for AI agents using the agent-browser CLI and Playwright. Use when navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, logging into sites, or automating any browser task. Triggers on "open a website", "fill out a form", "click a button", "scrape data", "test this web app", "automate browser actions", or any programmatic web interaction request.

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

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Runs the description-drift experiment — spawns all Claude Code agents simultaneously to collect self-reported capabilities, then compares them against static frontmatter descriptions to reveal how reliable orchestrator routing based on descriptions actually is. Use when measuring description drift across the agent fleet, re-running the capability collection experiment, analyzing a specific agent's self-reported capabilities, or auditing whether frontmatter descriptions accurately reflect agent behavior.

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

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Create or adapt Claude Code agent definitions. Use when creating an agent, changing subagent configuration, selecting agent scope, or designing a specialized delegation role.

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

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Jamie-BitFlight의 스킬 모두 보기

이 스킬의 문제 신고