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

code-simplifier

Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. This skill should be used after implementing features or bug fixes to clean up code, when refactoring for readability, or when reducing unnecessary complexity. It launches the code-simplifier subagent provided by the code-simplifier@claude-plugins-official plugin.

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

설치 방법 보기

포함된 파일(1)

  • SKILL.md3.6 KB

SKILL.md(원문)

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

Code Simplifier

This skill launches the code-simplifier subagent (provided by the code-simplifier@claude-plugins-official plugin installed in user scope) to simplify and refine code while preserving all functionality.

When to Use

  • After implementing a feature or bug fix, to clean up the resulting code
  • When code has grown overly complex and needs simplification
  • When the user requests code cleanup, simplification, or readability improvements
  • To remove unnecessary abstractions, redundant logic, or dead code
  • To improve naming, reduce nesting, and streamline control flow

Workflow

Step 1: Identify Target Files

Determine which files to simplify. By default, focus on recently modified files in the current branch:

git diff --name-only HEAD~1  # Files changed in last commit
git diff --name-only         # Uncommitted changes

If the user specifies particular files or directories, use those instead.

Step 2: Launch the Subagent

Invoke the code-simplifier subagent via the Task tool with subagent_type: "code-simplifier":

Task tool call:
  subagent_type: "code-simplifier"
  description: "Simplify recently modified code"
  prompt: "Simplify and refine the following files: <file list>. Preserve all existing functionality."

The subagent is an Opus-powered specialist that:

  • Preserves exact functionality while improving how code is written
  • Applies project standards from CLAUDE.md (ES modules, naming conventions, etc.)
  • Reduces unnecessary complexity and nesting
  • Avoids nested ternary operators, preferring switch/if-else for clarity
  • Chooses clarity over brevity

Step 3: Prompt Construction

Include in the prompt:

  • The specific files or code areas to simplify
  • Any constraints (e.g., "preserve the public API", "do not change test files")
  • The type of simplification needed (e.g., "reduce nesting", "improve naming", "remove dead code")

Example Invocations

After a feature implementation:

Task tool:
  subagent_type: "code-simplifier"
  description: "Simplify header factory code"
  prompt: "Simplify the recently modified files in the current branch. Files: src/webview/factories/HeaderFactory.ts, src/webview/managers/UIManager.ts. Preserve all functionality. Focus on reducing complexity and improving readability."

Targeted cleanup:

Task tool:
  subagent_type: "code-simplifier"
  description: "Simplify TerminalManager dispose"
  prompt: "Simplify src/terminal/TerminalManager.ts. The dispose() method has grown too complex. Reduce nesting, extract helper functions if needed, and improve variable naming. Do not change the public API."

Branch-wide cleanup:

Task tool:
  subagent_type: "code-simplifier"
  description: "Simplify all changed files"
  prompt: "Review and simplify all TypeScript files changed in the current branch compared to main. Run: git diff --name-only main...HEAD -- '*.ts' to find changed files. Preserve all functionality and tests."

Step 4: Review Results

After the subagent completes:

  1. Review the changes for correctness
  2. Run tests to verify functionality is preserved: npm run test:unit
  3. Run the linter to verify code quality: npm run lint

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

Design, review, and improve Claude/Codex skills based on Anthropic's "The Complete Guide to Building Skills for Claude". Use when creating a new skill, rewriting SKILL.md frontmatter and workflows, fixing under-triggering or over-triggering, designing scripts/references/assets, building test cases, or preparing a skill for upload/distribution.

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

s-hiraoku/vscode-sidebar-terminal222026년 10월 17일 업데이트

This skill enables web searching using Brave Search API directly via curl. Use when searching for current information, news, articles, or web content. MCP server not required - calls API directly.

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

s-hiraoku/vscode-sidebar-terminal222026년 10월 17일 업데이트

Run code quality checks (ruff, mypy, pytest) and optionally simplify code. This skill should be used when the user wants to check code quality, run linters, run tests, or simplify recently modified code. Triggered by /lint, /check, or /code-quality commands.

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

s-hiraoku/vscode-sidebar-terminal222026년 10월 17일 업데이트

Perform structured code reviews focusing on correctness, readability, security, and maintainability. Use this skill when reviewing pull requests, evaluating code changes, or establishing review standards for a team.

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

s-hiraoku/vscode-sidebar-terminal222026년 10월 17일 업데이트

Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses on recently modified code unless instructed otherwise. This skill should be used when code-quality checks pass but the code would benefit from structural cleanup — deduplication, branching simplification, naming improvements, or dead-code removal. Invoked as a subagent from /code-quality or directly via the Task tool.

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

s-hiraoku/vscode-sidebar-terminal222026년 10월 17일 업데이트

commit

무료

Create a well-formed git commit from current changes using session history for rationale and summary; use when asked to commit, prepare a commit message, or finalize staged work.

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

s-hiraoku/vscode-sidebar-terminal222026년 10월 17일 업데이트

s-hiraoku의 스킬 모두 보기

이 스킬의 문제 신고