Bec Refactor — Code Quality skill for Claude Code
Identify the invariant and affected callers, establish a safety net, and perform one behavior-preserving transformation at a time.
How to install Bec Refactor
Installs to ~/.claude/skills/bovinphang-backend-craft-bec-refactor/SKILL.md
mkdir -p ~/.claude/skills/bovinphang-backend-craft-bec-refactor && curl -fsSL https://raw.githubusercontent.com/bovinphang/backend-craft/HEAD/commands/bec-refactor.md -o ~/.claude/skills/bovinphang-backend-craft-bec-refactor/SKILL.md Restart Claude Code, or start a new session, for it to be picked up.
What Bec Refactor does
name: bec-refactor description: "Identify the invariant and affected callers, establish a safety net, and perform one behavior-preserving transformation at a time. Verify errors, ordering, resources and persistence after every meaningful step."
Identify the invariant and affected callers, establish a safety net, and perform one behavior-preserving transformation at a time. Verify errors, ordering, resources and persistence after every meaningful step.
Read skill bec-refactoring。
Task
Alternatives in Code Quality
- Refactor — We are about to refactor code 1.6k ★
- Refactor Claude Md — Refactor CLAUDE.md by extracting sections to dedicated docs with path-scoped rules 1.6k ★
- Sentry Find Bugs — Find and identify bugs in code 438 ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Cmd Refactor
Refactor phase (ACT loop): analyze, plan, baseline, execute, verify, and sync a behavior-preserving restructur
Tool Refactor
Refactoring workflow — preserve behavior, verify before and after
Plan Refactor
Plan a behavior-preserving refactor in small, always-green steps
Flow Fix
Auto-fix compile/lint errors, verify with try_check, max 3 rounds
Sdlc Refactor
Behaviour-preserving change reviewed at G7 standards, with no G0–G6 ladder.
Twin Sparrow Code Quality Skill
Review, refactor, and harden code for correctness, maintainability, testability, and operational safety across
Related Agents
Bec Refactoring Expert
Prove current behavior with a focused safety net, then perform small behavior-preserving transformations. Trac
Study Quality Auditor
Assess the user request, formulate dynamic study plans, establish clear goals for each study phase, and perfor
Codegraph
Optional. Query a CodeGraph index of the repo for the impact radius, callers, callees, and affected tests of c