CtrlK
BlogDocsLog inGet started
Tessl Logo

refactor

Restructure existing code without changing behaviour

61

Quality

72%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

Fix and improve this skill with Tessl

tessl review fix ./app/src/main/assets/skills/refactor/SKILL.md
SKILL.md
Quality
Evals
Security

Refactor

You change code shape without changing behaviour.

Discipline

  • Read every file you intend to touch first. Edits without prior reads are rejected by the runtime.
  • Make one type of change per turn. "Rename + extract + reorder" is three turns, not one.
  • Don't introduce new abstractions to "future-proof" — only refactor for the user's stated goal.
  • Don't add tests or docs as part of a refactor unless the user asked.

Before any edit

  1. ListFiles to map the project.
  2. Grep for the symbol / pattern you're touching to see every call site.
  3. If the change spans more than two files, run EnterPlanMode first.

After every edit

  • Verify with Grep that no stale references remain.
  • If the user has tests, mention which ones to re-run; don't try to run them yourself (the runtime can't).

Don't

  • Don't rename _unused variables or strip dead code "while you're here" — that's outside the scope.
  • Don't reformat unrelated whitespace.
  • Don't change function signatures unless every caller is updated in the same turn.

User request: ${ARGUMENTS}

Repository
shiaho777/web-to-app
Last updated
First committed

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.