本文へ移動
cccskills
無料GitHub で公開

refactoring-patterns

Measurement-driven code refactoring — profile before changing, measure after, keep only if metrics improve. Covers complexity reduction, extraction patterns, and bulk refactoring for mechanical changes across many files.

インストール方法を見る

含まれるファイル(3)

  • SKILL.md898 B
  • guidelines.md1.2 KB
  • skills/refactoring-process.md4.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Refactoring Patterns

Measure before. Refactor. Measure after. Keep only if it improved.

When to Activate

  • When the user says "refactor", "clean up", "simplify", "this code is messy"
  • When code has high complexity, deep nesting, or large functions
  • When extracting, renaming, or restructuring across multiple files
  • When consolidating duplicated code

Process

Read skills/refactoring-process.md for the measure-refactor-measure workflow, extraction patterns, and bulk refactoring mode.

Behavioral Rules

Read guidelines.md for measurement requirements, revert criteria, and scope limits.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

User asks for design, planning, or approach exploration before implementation. Covers new features, components, refactors, or architecture decisions. Creates design docs and proposes approaches with trade-offs.

日本語の概要は準備中です。原文の説明を表示しています。

Benkapner/claude-code-basecamp172026年10月1日 更新

ci-guard

無料

Use when starting work in a repository under repositories/ that may lack CI configuration. Detects missing CI workflows (GitHub Actions, GitLab CI, CircleCI) and alerts the user to add one. Skips repos marked as research-only.

日本語の概要は準備中です。原文の説明を表示しています。

Benkapner/claude-code-basecamp172026年10月1日 更新

Use when the user asks to measure command execution time or optimize a feedback loop. Records explicit measurements and recommends faster alternatives such as unit tests versus integration tests. It is opt-in; it does not run on every command.

日本語の概要は準備中です。原文の説明を表示しています。

Benkapner/claude-code-basecamp172026年10月1日 更新

Team conventions for Python development — credentials, API clients, LLM response parsing, testing patterns, and data pipeline structure. Covers dotenv loading, retry logic, secret validation, and pipeline anti-patterns.

日本語の概要は準備中です。原文の説明を表示しています。

Benkapner/claude-code-basecamp172026年10月1日 更新

Scan projects for credential leaks, secrets in code, insecure patterns, LLM API key exposure, PII leakage to external AI services, and .env/.gitignore misconfigurations. Especially useful for data and API integrations, regardless of implementation language.

日本語の概要は準備中です。原文の説明を表示しています。

Benkapner/claude-code-basecamp172026年10月1日 更新

Use when committing or pushing changes and the repository needs a version bump. Analyzes commits using conventional commit prefixes to determine whether the next release is a major, minor, or patch increment. Also use when the user asks about versioning, release planning, or changelog generation.

日本語の概要は準備中です。原文の説明を表示しています。

Benkapner/claude-code-basecamp172026年10月1日 更新

Benkapner のスキルをすべて見る

このスキルの問題を報告する