Skip to content
Back to skills

Devkb Refactor

ASecurity

Use before refactoring, renaming or moving code in a repository that has the devkb-sdlc tools. One call gives every caller by file, the tests to run, the endpoints reached and which files your role may not touch.

  • 9 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 16, 2026
ai-agentsrefactoring

Security analysis

A100/100

Scanned November 16, 2026

npx -y skills add namiq-ai/devkb --skill devkb-refactor --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Devkb Refactor?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Devkb Refactor
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/namiq-ai-devkb-refactor/badge)](https://www.skillsdirectory.com/skills/namiq-ai-devkb-refactor)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: devkb-refactor
description: Use before refactoring, renaming or moving code in a repository that has the devkb-sdlc tools. One call gives every caller by file, the tests to run, the endpoints reached and which files your role may not touch.
---

# Refactor safely

1. Call `refactor_scope` on the function or file, with your role code if you know it. It returns callers grouped by file, whether the symbol is public, its complexity, the endpoints and flows it reaches, the tests to run before and after, and `blocked_files`: callers in paths your role must not edit.
2. If `blocked_files` is not empty, the refactor needs another role. Say so before editing anything.
3. Run the listed tests first, change in small steps, run them after each step.
4. Update every caller the scope lists, then confirm with one text search for the old name.

Limits: calls through variables, reflection or string names are not in the graph. The caller list is a floor, not a proof.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.