Borrowing it
Nothing to install: this file belongs to CiscoDevNet/essentials. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/CiscoDevNet/essentials/main/.cursor/commands/refactor-file-module.mdgit clone --depth 1 https://github.com/CiscoDevNet/essentialsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/commands/ciscodevnet/essentials/refactor-file-module)<a href="https://agentmods.dev/commands/ciscodevnet/essentials/refactor-file-module"><img src="https://agentmods.dev/badge/commands/ciscodevnet/essentials/refactor-file-module/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/commands/ciscodevnet/essentials/refactor-file-module"><img src="https://agentmods.dev/badge/commands/ciscodevnet/essentials/refactor-file-module.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00000 | $0.00380 |
| Opus 5.5 | $0.00000 | $0.00152 |
| Sonnet 5.5 | $0.00000 | $0.00076 |
| Haiku 4.5 | $0.00000 | $0.00038 |
Grade A, and why
refactor-file-module scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Refactor the given file into a module of the same name.
Example
Take the following commands.py file as an example.
CONSTANT_1 = "Constant 1"
CONSTANT_2 = "Constant 2"
class MyCommand:
pass
class MyOtherCommand:
pass
class YetAnotherCommand:
pass
Classes
- Create a
commandsdirectory. - For each class in the original
commands.pyfile, create a file and place the corresponding class there.
Constants
- Create a
commands/config.pyfile. - Move all constants into the
config.pyfile. Update each file to import the constants from theconfig.pyfile.
init.py
- Create a
commands/__init__.pyfile. - Export the items in this module using
__all__.
The __init__.py file should look like this:
from .config import CONSTANT_1, CONSTANT_2
from .my-command import MyCommand
from .my-other-command import MyOtherCommand
from .yet-another-command import YetAnotherCommand
__all__ = [
"CONSTANT_1",
"CONSTANT_2",
"MyCommand",
"MyOtherCommand",
"YetAnotherCommand",
]
Final file structure
The final file structure should look like this:
commands/ # `commands` module directory, same name as given file
- __init__.py # Init file to expose other items within this module
- config.py # Config file for constants
- my-command.py # For MyCommand
- my-other-command.py # For MyOtherCommand
- yet-another-command.py # For YetAnotherCommand
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 65 lines · 0 tokens per session scan A 1ffaa8860033
refactor-file-module is a command published in the GitHub repository CiscoDevNet/essentials (7 stars, last pushed 16d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 380 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-04.
Other commands, from other repositories
list
List available Piper TTS TTS voices with optional filtering.
version
Show the installed AgentVibes version.
audit-code
When /audit-code [target] is invoked, immediately execute the following steps to analyze code quality, security, and adherence to project standards.
lfe-plan-critique
Run a 5-lens pre-build critique of the approved active plan before the Builder starts. Acts as the Architect persona, read-only on src/. Writes .plans/plancritique.md. Use immediately after Brain approves activeplan.md.
implement-fix
Minimal pipeline for test-fixing tasks.
scaffold
Analyze repository and generate CLAUDE.md, AGENTS.md, and project-specific skills.