스킬 safe-refactor
📦

safe-refactor

v1.0 콘텐츠 리비전 r1 안전 ⚙️ 외부 명령어

Refactor Code with Tests and Small Changes

Code cleanup can introduce behavior changes that are difficult to detect. This skill guides small refactoring steps with baseline tests, dependency checks, and repeated verification.

지원: Claude Codex Code(CC)
Maintain this Skill? Claim it 🥉 78 브론즈

내 에이전트로 설치

이 요청을 에이전트에 복사하세요. 공식 Skill 페이지와 매니페스트가 포함되어 있습니다.

에이전트 요청
Review the Skillstore skill "safe-refactor" from https://skillstore.io/skills/agentkitco-safe-refactor.md and its manifest at https://skillstore.io/api/skills/agentkitco-safe-refactor/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.

에이전트는 계속해서 계획을 표시하고 보안 정책에서 요구하는 확인을 요청해야 합니다.

에이전트가 읽기 쉬운 리소스

AI 에이전트, 크롤러, 스크립트가 전체 페이지 대신 정리된 컨텍스트만 필요할 때 이 링크를 사용하세요.

테스트해 보기

"safe-refactor" 사용 중입니다. Extract duplicated validation from two functions without changing their behavior.

예상 결과:

  • Boundary: preserve validation order, error messages, and return values.
  • Baseline: relevant tests passed before editing.
  • Change: extracted the shared validation logic in one reviewable step.
  • Verification: relevant tests and lint passed after extraction.
  • Left unchanged: an unrelated naming inconsistency.

"safe-refactor" 사용 중입니다. Restructure a legacy parser that has no tests.

예상 결과:

  • Characterization tests added for representative valid and invalid inputs.
  • Baseline behavior recorded, including existing error messages.
  • Restructuring completed in separate, verified steps.
  • Uncertainty: large input performance was not exercised.
  • Observed bug reported separately and left unchanged.

보안 감사

안전
v2 • 2026. 10. 22. 버전별 보고서 열기

All three static findings are false positives: Markdown command references are not Ruby execution, and the completion report is not system reconnaissance. No evidence found of prompt injection, data exfiltration, or malicious intent in SKILL.md.

1
스캔된 파일
38
분석된 줄 수
0
검토 항목
0
오탐 무시됨

위험 요인

⚙️ 외부 명령어 (2)
가장 최근에 완료된 정적·의미론적 감사에서 확인된 보안 발견 사항이 감지되지 않았습니다. 이는 스킬에 부작용이 없음을 증명하지 않습니다.
감사자: codex 감사 이력 보기 →
이 보고서 공유 및 인용

버전이 지정된 평가 보고서, 중립 배지, 임베드 카드 및 인용을 공유하세요. Skillstore는 근거를 보고하지만 이 Skill의 안전 여부를 판단하지 않습니다.

버전별 보고서 열기
보안 평가

보고서 링크 복사

https://skillstore.io/skills/agentkitco-safe-refactor/audits/2?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdown 배지

[![Skillstore security assessment](https://skillstore.io/badges/skills/agentkitco-safe-refactor/security.svg)](https://skillstore.io/skills/agentkitco-safe-refactor?utm_source=security_passport_badge)

HTML 배지

<a href="https://skillstore.io/skills/agentkitco-safe-refactor?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/agentkitco-safe-refactor/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

임베드 카드

<iframe src="https://skillstore.io/embed/skills/agentkitco-safe-refactor.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>
학술 인용 (APA · BibTeX · CFF)

APA 인용

agentkitco. (2026). safe-refactor security audit report (audit version 2) [Author version 1.0]. Skillstore. https://skillstore.io/skills/agentkitco-safe-refactor/audits/2

BibTeX 인용

@techreport{agentkitco-agentkitco-safe-refactor-2026, author = {agentkitco}, title = {safe-refactor security audit report (audit version 2)}, institution = {Skillstore}, year = {2026}, number = {2}, url = {https://skillstore.io/skills/agentkitco-safe-refactor/audits/2}, note = {Author version 1.0} }

CITATION.cff

cff-version: 1.2.0 message: "If you use this Skill, cite its author and this versioned security audit report." title: "safe-refactor security audit report (audit version 2)" version: "1.0" type: report authors: - name: "agentkitco" date-released: "2026-10-22" url: "https://skillstore.io/skills/agentkitco-safe-refactor/audits/2" identifiers: - type: other value: "skillstore:agentkitco-safe-refactor:audit:2" description: "Skillstore immutable audit report identifier"

변형 비교

설치 가능한 변형 2개

각 작성자의 스킬은 별도의 설치 항목으로 유지됩니다. 추천 변형은 Skillstore 근거로 순위가 정해집니다.

이 변형이 1위인 이유

Skillstore 사용량이 더 높음

juliusbrussee-safe-refactor

Skillstore 점수 78
증거 신뢰도 중간
Skillstore 사용량 8
업데이트됨

2026-09-09

agentkitco 현재

agentkitco-safe-refactor

Skillstore 점수 78
증거 신뢰도 중간
Skillstore 사용량 6
업데이트됨

2026-10-22

Skillstore 점수

이 점수의 이유 증거 신뢰도: 중간
55
아키텍처
85
유지보수성
87
콘텐츠
65
커뮤니티
91
사양 준수

만들 수 있는 것

Clean Up a Working Module

Extract duplicated logic while preserving outputs, error messages, logging, and edge cases through small, verified edits.

Protect Legacy Behavior

Add characterization tests before restructuring code that lacks coverage, and document behavior that remains unverified.

Review a Shared API Rename

Identify callers and dependents before renaming exported symbols, and request approval when compatibility requires a breaking change.

이 프롬프트를 사용해 보세요

Assess a Refactoring Task
Use safe-refactor to assess [module]. State the goal, behavior boundaries, existing tests, and baseline results before proposing any edits.
Extract Repeated Logic
Use safe-refactor to extract repeated logic in [file]. Preserve behavior, make one change per step, and run relevant tests after each step.
Characterize Untested Code
Use safe-refactor on [legacy module]. Add characterization tests for realistic inputs before restructuring. Preserve current errors and ordering, and report coverage gaps.
Plan a Shared Symbol Rename
Use safe-refactor to rename [exported symbol]. Check all callers and dependents, propose a deprecation path, and request approval before any API break.

모범 사례

  • Define behavior boundaries and record baseline failures before editing.
  • Add characterization tests before restructuring untested behavior.
  • Review each small diff and verify that rollback preserves pre-existing user edits.

피하기

  • Mixing refactoring with bug fixes, features, or dependency upgrades.
  • Continuing through failing tests instead of undoing the last step and reducing its scope.
  • Changing public APIs without approval or a deprecation path.

자주 묻는 질문

What does this skill provide?
It provides a structured workflow for behavior-preserving refactoring, including test baselines, dependency checks, incremental edits, and a final report.
What happens when the code has no tests?
The workflow calls for characterization tests that record current behavior before refactoring begins.
Does it guarantee identical behavior?
No. Verification depends on test coverage and available checks, and the final report must identify behavior that remains uncertain.
Can it fix bugs during a refactor?
It directs the assistant to report discovered bugs and handle fixes as separate changes.
When does it ask for user input?
It asks when tests cannot run, baseline failures are unexplained, a public API break is needed, or a real bug is found.
Does it require a specific programming language?
No specific language is required. The host assistant must use the existing project tests, type checker, or linter.

개발자 세부 정보

작성자

agentkitco

라이선스

MIT

작성자 버전

v1.0

Skillstore 리비전

r1

버전 안내

작성자가 선언한 버전은 유효한 SemVer가 아닙니다.

참조

18efac79a818d7e997295839638fdd21906cfd1c

유지보수 최신성

2026. 10. 22.

사용량

5 다운로드 · 0 조회

파일 구조

📄 SKILL.md

agentkitco의 다른 스킬

전체 보기
전체 보기