GV

gcwing/vibecoding-refactor-skill

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

222 stars 质量 44 趋势 0

gcwing/vibecoding-refactor-skill 是从 https://github.com/gcwing/vibecoding-refactor-skill. 导入的代理技能候选

概览

gcwing/vibecoding-refactor-skill 是从 https://github.com/gcwing/vibecoding-refactor-skill. 导入的代理技能候选

概述(AI 翻译)

英文 |中文

一种系统化的AI生成代码重构方法(Vibe Coding)。帮助你发现重复实现、未使用的资源和不一致的模式。

特色

  • 六阶段工作流程 - 从分析到验证的结构化方法
  • 深度分析方法 - 架构层和模块层问题检测
  • 资源清单 - 全面发现可重复使用的组件和基础设施
  • 任务持久性 - 所有分析结果和进度都保存到 .refactor/ 目录
  • 会话恢复 - 支持跨会话的增量执行;新代理可以从中断处完全恢复

问题

在Vibe编码模式下,AI受限于上下文窗口,难以看到大型项目的全貌。跨会话开发导致上下文碎片化,代码通过增量补丁不断演进。随着时间推移,项目不断积累问题:重复实现、未使用的组件库、模式混乱以及飞涨的维护成本。

如何使用

在光标中

方法1:作为技能(推荐)

  1. 将此文件夹复制到 ~/.cursor/skills/vibecoding-refactor/

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Vibe Coding Refactor

English | 中文

A systematic methodology for refactoring AI-generated code (Vibe Coding). Helps you discover duplicate implementations, unused resources, and inconsistent patterns.

Features

  • Six-Phase Workflow - Structured approach from analysis to verification
  • Deep Analysis Methods - Architecture-layer and module-layer problem detection
  • Resource Inventory - Comprehensive discovery of reusable components and infrastructure
  • Task Persistence - All analysis results and progress saved to .refactor/ directory
  • Session Recovery - Supports incremental execution across sessions; new agents can resume exactly where left off

The Problem

In Vibe Coding mode, AI is limited by context windows and struggles to see the big picture of large projects. Cross-session development leads to fragmented context, and code evolves through incremental patches. Over time, projects accumulate problems: duplicate implementations, unused component libraries, pattern chaos, and skyrocketing maintenance costs.

How to Use

In Cursor

Method 1: As a Skill (Recommended)

  1. Copy this folder to ~/.cursor/skills/vibecoding-refactor/
  2. Cursor will automatically detect and use the skill when you ask to:
    • “Refactor this codebase”
    • “Clean up the code”
    • “Analyze the architecture”
    • “Improve code quality”

Method 2: Reference Directly

Simply reference SKILL.md in your prompt:

@SKILL.md Please analyze and refactor this project

In Claude Code (claude-code CLI)

Method 1: As AGENTS.md

  1. Copy the content from SKILL.md to your project’s AGENTS.md file
  2. Claude Code will automatically follow the methodology

Method 2: Reference in Prompt

# Reference the skill file directly
claude "Read @SKILL.md and refactor this project following the methodology"

Method 3: Using /read Command

claude
> /read /path/to/vibecoding-refactor/SKILL.md
> Please refactor this codebase following the methodology

Quick Commands

Goal Prompt
Full refactor “Refactor this codebase following the Vibe Coding methodology”
Continue work “Continue refactoring” (if .refactor/ exists)
Architecture only “Analyze the architecture layer only”
Specific module “Analyze the [module-name] module”

Core Workflow

Phase 0         Phase 1          Phase 2            Phase 3            Phase 4          Phase 5
Partition   →   Key Identify  →  Architecture   →   Module Layer   →   Execute      →   Finalize
                                  Analysis            Analysis          Refactor         Verify
  1. Phase 0: Project Partition - Inventory all reusable resources
  2. Phase 1: Key Identification - Identify core features to analyze
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add gcwing/vibecoding-refactor-skill
新手?先看 mcpskill.org 教程 →