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

simplify-codebase

Audit a codebase for unnecessary complexity, including dead code, duplicated state, redundant interfaces, and obsolete compatibility paths. Receive evidence-backed simplification candidates, or authorize changes that remove justified targets and validate the behavior that must remain.

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

원문원문 설명 보기

Simplification audit or authorized codebase simplification whose stated objective is to remove accidental complexity. Use for evidence-backed deletion or consolidation of dead code, duplicate state, redundant APIs or layers, ownerless abstractions, obsolete compatibility or design records, and over-engineering in any language; also use for 代码简化 or 熵回收. Do not use for general code review, onboarding, style-only refactoring, or performance tuning.

설치 방법 보기

이럴 때 유용합니다

  • Finding code that can be safely removed
  • Consolidating duplicated state or APIs
  • Reviewing obsolete compatibility paths and design records
  • Implementing and validating authorized simplifications

포함된 파일(8)

  • SKILL.md6.8 KB
  • agents/openai.yaml301 B
  • LICENSE1.1 KB
  • references/boundaries-and-lifecycle.md3.6 KB
  • references/decision-records.md3.0 KB
  • references/execution-and-recovery.md4.6 KB
  • references/integrating-findings.md1.9 KB
  • references/investigation.md6.2 KB

SKILL.md(원문)

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

Simplify Codebase

Reduce the number of concepts and obligations a codebase must keep coherent. Line-count reduction is supporting evidence, not the objective. A successful run may conclude that the inspected surface is already justified.

Select mode and scope

First choose the authority mode:

  • Survey for simplification audit, investigation, or candidate-finding requests. Remain read-only and return ranked evidence.
  • Change for explicit simplify, remove, consolidate, refactor, or repository-documentation edit requests. Prove each cut, implement it within the authorized scope, and validate the surviving contract.

Then choose the coverage scope:

  • Focused when the user names a subsystem, symbol, state machine, dependency, or suspected duplication. Cover that boundary thoroughly before expanding outward.
  • Broad when the request spans the repository or asks for multiple candidates. Partition the system and account for every in-scope domain.

Deleting a reachable capability, supported interface, stored representation, or compatibility path is a product decision. Describe the consequence and obtain direction unless the user has already chosen it.

Establish the contract

  1. Read the repository's instructions, architecture and decision records, manifests, test guidance, and generated-file conventions.
  2. Inspect version-control state and preserve unrelated work. Identify vendored, generated, migration, fixture, and public-package surfaces before classifying them.
  3. Trace the runtime path from entrypoints through configuration, registration, dispatch, persistence, processes, and wire boundaries. Record public, dynamic, persisted, generated, and compatibility-sensitive contracts.
  4. In Change mode, discover the repository's real verification commands and capture a proportional baseline when feasible. A failing baseline narrows what the final checks can prove.

Preserve authorization, trust-boundary validation, security isolation, accessibility essentials, data-loss prevention, stored-format compatibility, and cleanup that establishes quiescence. Treat changes to these protections as their own explicitly authorized objective, not an incidental simplification.

The contract map is complete when all in-scope entrypoints and authority boundaries are enumerated, each is traced far enough to name its owner and observable contract, and every uninspected or externally unknowable surface is recorded as a blind spot.

Cover the relevant surface

For every Broad engagement, and for Focused work involving dynamic architecture or dependency substitution, read investigation.md. Build a coverage map before ranking findings; the first plausible deletion must not end the survey.

For concurrency, cancellation, readiness, cleanup, defensive copies, validation, authorization, security isolation, accessibility, data-loss prevention, or cross-process data, also read boundaries-and-lifecycle.md.

Use repository-native search, compiler and linter output, dependency metadata, and history as discovery instruments. Treat their findings as leads until runtime consumers and contracts have been examined.

Build a proof record

For every in-scope lead that reaches consumer-map evidence or could retire a meaningful contract, record:

Candidate: the exact contract, representation, or layer to remove or merge
Burden: the concepts, synchronization, publication, or testing cost it creates
Reachability: production, non-production, dynamic, external, and persisted consumers
Rationale: why it exists and whether that reason remains current
Cut: declarations, implementations, branches, artifacts, docs, and dependencies affected
Consequence: observable capability or compatibility behavior surrendered
Confidence / risk: evidence strength, uncertainty, blast radius, and reversibility
Proof: the smallest check that would expose an incorrect cut
Net effect: maintenance concepts removed minus replacement or migration machinery added

Prove cut boundaries below file granularity when the candidate shares an artifact with surviving consumers. Account for candidate-exclusive selectors, members, fields, keys, registry entries, generated fragments, and fixtures without disturbing the surviving owners.

Keep or downgrade the candidate when a real consumer exists, dynamic reachability remains unresolved, a current decision still owns the design, the change merely relocates complexity, the result is outside scope or retires no meaningful obligation, or the available check cannot distinguish success from accidental breakage.

Rank confidence separately from benefit. A high-value guess does not outrank a smaller proved cut.

Candidate proof is complete when every qualifying lead is classified as ranked, rejected, or unresolved, and every unresolved lead names the fact required to decide it.

Decide and act

In Survey mode, stop after reporting the ranked evidence. Include important rejected candidates when the rejection teaches something or identifies a concrete missing fact.

In Change mode, read execution-and-recovery.md and select the strongest authorized cut. One ownership boundary is the default batch size, not a run limit: for an explicitly requested set of cuts, finish and validate each boundary before starting the next.

If the user requests a simplification proposal, local cleanup annotation, or design-record consolidation, or if a selected change invalidates an ADR, RFC, design note, or architectural inventory, read decision-records.md. Do not turn an ordinary code audit into a repository-wide documentation purge.

If the user asks to combine findings from another branch, pull request, task, or agent run, read integrating-findings.md. Preserve evidence, not finding counts.

Deliver the result

For a survey, report coverage, ranked proof records, rejected or unresolved high-value leads, and the next fact needed for each uncertainty.

For a change, complete the validation and operation receipt defined in execution-and-recovery.md. Report each validation layer separately; a narrow green check does not establish broader runtime, deployment, or user acceptance.

리뷰

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

댓글

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

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

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

0 / 1,000자

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

같은 저장소의 스킬

archify

무료

Turn plain-language descriptions, Mermaid diagrams, or repository evidence into interactive standalone HTML diagrams. Create system maps, workflows, timelines, database relationships, and everyday process diagrams, with automated validation, light and dark themes, and image, SVG, or WebM export.

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

  • Mapping a system from repository evidence
  • Explaining approval steps or travel plans
  • Visualizing database tables and relationships
tt-a1i/archify8.6만2026년 10월 19일 업데이트

Review Archify issues, pull requests, and code by weighing user value, implementation and maintenance costs, and wider impact. Use evidence to decide whether work is worthwhile, compare alternatives, and identify questions that still affect the decision.

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

  • Prioritizing reported issues
  • Reviewing the cost and impact of a pull request
  • Assessing code maintainability
tt-a1i/archify8.6만2026년 10월 19일 업데이트

Evaluate improvements to Archify diagrams using actual outputs and agent work records. Compare accuracy, readability, and total delivery time to investigate layout, connection routing, diagnostics, and authoring guidance, then document what the evidence supports.

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

  • Comparing diagram layouts and connection routes
  • Investigating repeated diagram repair attempts
  • Testing changes to authoring guidance
tt-a1i/archify8.6만2026년 10월 19일 업데이트

Evaluate slow, unreliable, duplicated, or brittle tests by the behavior they protect and their maintenance cost. Use it to choose focused checks, justify additions or removals, and distinguish product bugs from outdated expectations or environment failures.

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

  • Reviewing slow or unreliable tests
  • Choosing tests for a code change
  • Reviewing test changes before a commit or PR
tt-a1i/archify8.6만2026년 10월 19일 업데이트

tt-a1i의 스킬 모두 보기

이 스킬의 문제 신고