Borrowing it
Nothing to install: this file belongs to s-hiraoku/vscode-sidebar-terminal. 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/s-hiraoku/vscode-sidebar-terminal/main/.claude/skills/vscode-extension-refactorer/SKILL.mdgit clone --depth 1 https://github.com/s-hiraoku/vscode-sidebar-terminalWrote 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/skills/s-hiraoku/vscode-sidebar-terminal/vscode-extension-refactorer)<a href="https://agentmods.dev/skills/s-hiraoku/vscode-sidebar-terminal/vscode-extension-refactorer"><img src="https://agentmods.dev/badge/skills/s-hiraoku/vscode-sidebar-terminal/vscode-extension-refactorer/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/skills/s-hiraoku/vscode-sidebar-terminal/vscode-extension-refactorer"><img src="https://agentmods.dev/badge/skills/s-hiraoku/vscode-sidebar-terminal/vscode-extension-refactorer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00069 | $0.04036 |
| Opus 5 | $0.00034 | $0.02018 |
| Sonnet 5 | $0.00014 | $0.00807 |
| Haiku 4.5 | $0.00007 | $0.00404 |
Grade A, and why
vscode-extension-refactorer 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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 726 lines — stays where its author put it; the contents beside it link to each section on GitHub.
VS Code Extension Refactorer
Overview
This skill enables systematic and safe refactoring of VS Code extension code. It provides structured workflows for identifying improvement opportunities, applying proven refactoring techniques, and ensuring code quality while maintaining functionality.
When to Use This Skill
- Extracting classes, methods, or modules from large files
- Reducing code duplication across the codebase
- Improving TypeScript type safety and interfaces
- Reorganizing module structure and dependencies
- Applying design patterns (Manager, Coordinator, Factory, etc.)
- Optimizing performance-critical code paths
- Preparing code for new feature development
- Cleaning up after rapid prototyping
Refactoring Workflow
Phase 1: Analysis and Planning
Code Smell Detection
| Smell | Indicators | Refactoring |
|---|---|---|
| Long Method | >50 lines, multiple responsibilities | Extract Method |
| Large Class | >500 lines, >10 public methods | Extract Class |
| Duplicate Code | Similar blocks in 2+ places | Extract Function/Class |
| Feature Envy | Method uses other class data extensively | Move Method |
| Data Clumps | Same parameters passed together | Introduce Parameter Object |
| Primitive Obsession | Overuse of primitives for domain concepts | Replace with Value Object |
| Long Parameter List | >4 parameters | Introduce Parameter Object |
| Divergent Change | Class changes for multiple reasons | Extract Class (SRP) |
| Shotgun Surgery | One change requires many file edits | Move Method, Inline Class |
| God Class | Class knows/does too much | Extract Class, Delegate |
Impact Assessment
// Before refactoring, assess:
interface RefactoringAssessment {
// Scope
filesAffected: string[];
publicApiChanges: boolean;
breakingChanges: boolean;
// Risk
testCoverage: 'high' | 'medium' | 'low';
complexity: 'high' | 'medium' | 'low';
// Dependencies
internalDependents: string[];
externalDependents: string[]; // Other extensions, APIs
}
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 8d ago First seen · 726 lines · 69 tokens per session scan A f5ead2928f84
vscode-extension-refactorer is a skill published in the GitHub repository s-hiraoku/vscode-sidebar-terminal (21 stars, last pushed 2d ago), licensed MIT. It adds 69 tokens to every session and 4,036 once invoked, about $0.0003 per session on Opus 5. 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-03.
Other skills, from other repositories
review-animations
Reviews animation and motion code against a high craft bar derived from Emil Kowalski's design engineering philosophy. Default to flagging; approval is earned.
beautify-with-pingfusi
Beautify or redesign an existing website through iterative pingfusi review rounds with a real human reviewer. Use when asked to "beautify this website," "make this page look professional," "polish this UI/design," "improve the visual design," or finish an AI-built page when there is no reference site to match. Do not…
generic-static-code-reviewer
Review static site code for bugs, security issues, performance problems, accessibility gaps, and CLAUDE.md compliance. Enforces pure HTML/CSS/JS standards, minimal page weight, mobile-first design. Use when completing features, before commits, or reviewing changes.
code-review-web
Use when reviewing web frontend code — HTML, CSS, JSX, or browser-targeted JavaScript. Enforces accessibility (WCAG AA, aria labels, focus management), XSS prevention (innerHTML, dangerouslySetInnerHTML), performance (layout thrash, CLS, lazy loading), CSS design tokens, form labeling, and event listener cleanup.…
tailwind-css
Tailwind CSS v4 patterns: CSS-first config, utility classes, component variants, v3 migration. Use when styling with Tailwind, configuring @theme tokens, using tailwind-variants/CVA, migrating v3 to v4, or fixing Tailwind styles and dark mode.
writing-web
Simple web development with HTML, CSS, JS, and HTMX. Use when working with .html, .css, or .htmx files, web templates, stylesheets, or vanilla JS scripts. NOT for React/Vue/Angular (use writing-typescript) or Node.js backends.