AgentSkillsCN

ralph-fix

针对现有项目提供的快速修复模式。自动识别项目类型,执行诊断分析,并生成针对性的修复方案。当您需要在未完整搭建 PRD 的情况下,快速修复现有代码库中的漏洞或问题时,可选用此模式。

SKILL.md
--- frontmatter
name: ralph-fix
description: Quick-fix mode for existing projects. Auto-detects project type, runs diagnostics, and creates a targeted fix plan. Use when you need to fix bugs or issues in an existing codebase without full PRD setup.
allowed-tools: Read, Write, Edit, Bash, Grep, Glob

Ralph Ultra Quick Fix

Rapidly diagnose and fix issues in an existing project.

What this does

  1. Auto-detects project type and framework
  2. Runs diagnostics — environment-doctor, security-auditor, flaky-test-detector
  3. Creates minimal .ralph-ultra/ setup if not present
  4. Generates fix PRD — Targeted stories for identified issues
  5. Optionally runs the fix loop immediately

Usage

code
/ralph-ultra:ralph-fix [--dir path] [--analyze-only] [--auto-run]

Options

OptionDefaultDescription
--dir.Project directory to fix
--analyze-onlyfalseOnly analyze, don't create fix plan
--auto-runfalseImmediately run fix loop after analysis

Diagnostics Run

  1. Environment Doctor — Runtime versions, missing deps, stale caches
  2. Security Auditor — Vulnerabilities, hardcoded secrets, insecure patterns
  3. Flaky Test Detector — Intermittent test failures
  4. Dependency Updater — Outdated packages, known CVEs
  5. Log Analyzer — Recent error patterns

Example

Fix a Node.js project with security issues:

code
/ralph-ultra:ralph-fix --dir ./my-project