skill-refactor — community skill-refactor, agentic-ai, community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for Code Review Agents needing automated refactor review and critique capabilities. Agentic AI related

OttawaCloudConsulting OttawaCloudConsulting
[1]
[0]
Updated: 2/28/2026

Agent Capability Analysis

The skill-refactor skill by OttawaCloudConsulting is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for Code Review Agents needing automated refactor review and critique capabilities.

Core Value

Empowers agents to run parallel critique and red-team reviews, compiling summaries and gating changes behind explicit user approval, utilizing project-bound paths and template paths for comprehensive analysis.

Capabilities Granted for skill-refactor

Automating code refactor reviews
Generating summary reports for user approval
Debugging existing skills with parallel critique agents

! Prerequisites & Limits

  • Requires directory to contain SKILL.md
  • Needs explicit user approval for changes
  • Project-relative paths only
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

skill-refactor

Install skill-refactor, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

Skill Refactor

Standalone refactor review for existing skills. Runs critique and red-team agents in parallel, compiles a review summary, and gates all changes behind explicit user approval.

Input

Accept one of:

  • Project-bound path: .claude/skills/<skill-name>/
  • Template path: skills/<skill-name>/ (or any other project-relative path)

If the user does not provide a path, ask which skill to refactor before proceeding.

Confirm the directory exists and contains SKILL.md before launching sub-agents.

Workflow

See references/refactor-protocol.md for full sub-agent prompt templates, output formats, and AskUserQuestion schemas.

1. Locate skill

Resolve the skill path. Read all files in the directory. If SKILL.md is missing, stop and report.

2. Launch parallel sub-agents

Launch both simultaneously:

  • Critique agent — evaluates against internal quality standards (conciseness, degrees of freedom, progressive disclosure, structure, forbidden files). Read references/refactor-protocol.md for the prompt template.
  • Red-team agent — evaluates against references/anthropic-best-practices.md (naming, frontmatter, trigger quality, instruction quality, error handling, file conventions). Read references/refactor-protocol.md for the prompt template.

Write outputs to:

  • temp/<skill-name>/critique/feedback.md
  • temp/<skill-name>/red-team/feedback.md

3. Compile review summary

Merge both feedback files into temp/<skill-name>/refactor/review-summary.md. Present the path to the user and ask them to review it before proceeding.

4. Approval gate

Use AskUserQuestion. Options: proceed with refactor, keep as-is, defer. If declined or deferred, log to decisions.md and stop.

5. Requirements gathering

Use AskUserQuestion (up to 3 questions): which change categories to apply, any new requirements, refactor depth (targeted vs full rewrite). Log all answers to temp/<skill-name>/refactor/decisions.md.

6. Refactor agent

Apply approved changes in-place to the skill files. Preserve sections not flagged for change in targeted refactors. Log implementation notes to decisions.md. Read references/refactor-protocol.md for the prompt template.

Constraints

  • Never modify skill files without explicit user approval
  • Write all intermediate artifacts to temp/<skill-name>/ before any approval gate
  • Log all user decisions and implementation choices to decisions.md

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is skill-refactor?

Perfect for Code Review Agents needing automated refactor review and critique capabilities. Agentic AI related

How do I install skill-refactor?

Run the command: npx killer-skills add OttawaCloudConsulting/agentic-ai. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for skill-refactor?

Key use cases include: Automating code refactor reviews, Generating summary reports for user approval, Debugging existing skills with parallel critique agents.

Which IDEs are compatible with skill-refactor?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for skill-refactor?

Requires directory to contain SKILL.md. Needs explicit user approval for changes. Project-relative paths only.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add OttawaCloudConsulting/agentic-ai. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use skill-refactor immediately in the current project.

Related Skills

Looking for an alternative to skill-refactor or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI