Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计通过

ralph-prompt-builder拉尔夫提示生成器

Agent Skill

用于辅助提示词、系统指令、Agent 行为约束和工作流模板的整理。它适合让 Agent 规范任务边界、统一输出格式、拆分操作步骤或优化提示词可复用性。使用时需要保留真实业务约束,不要把示例当硬规则;涉及自动执行、外部工具或高风险操作时,应在提示词中明确确认步骤、权限边界和失败处理方式。

总安装

442

周安装

19

GitHub Stars

9

下载量

155
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:ralph-prompt-builder(拉尔夫提示生成器)
来源仓库:https://github.com/adaptationio/skrillz
仓库路径:skills/ralph-prompt-builder
安装命令:
npx skills add https://github.com/adaptationio/skrillz --skill ralph-prompt-builder
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/adaptationio/skrillz --skill ralph-prompt-builder

简介

用于辅助提示词、系统指令和工作流模板的整理。

  • 适合规范任务边界、统一输出格式和优化可复用性。
  • 使用时需保留真实业务约束,不要把示例当硬规则。
  • 涉及自动执行时应明确确认步骤和权限边界。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • ralph-prompt-builder 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Ralph Prompt Builder (Master Orchestrator)

Overview

Master skill for generating prompts optimized for the Ralph Wiggum autonomous loop technique. This orchestrator analyzes your task description and routes to the appropriate specialized generator:

Task TypeGeneratorBest For
Single focused taskralph-prompt-single-taskBug fixes, single features, refactoring
Multiple related tasksralph-prompt-multi-taskCRUD, multi-step features, migrations
Complete projectralph-prompt-projectGreenfield apps, libraries, tools
Research/Analysisralph-prompt-researchAudits, planning, investigations

Quick Start

Generate any Ralph prompt:

Use ralph-prompt-builder to create a prompt for: [describe your task]

Example:

Use ralph-prompt-builder to create a prompt for: Implementing user authentication with JWT for our Express API

The skill will:

  1. Classify your task
  2. Route to the appropriate generator
  3. Guide you through required inputs
  4. Output a ready-to-use Ralph prompt

Task Classification

How Tasks Are Classified

IndicatorsClassificationGenerator
Fix, repair, single change, one moduleSingle Taskralph-prompt-single-task
Multiple features, CRUD, several endpointsMulti-Taskralph-prompt-multi-task
Build from scratch, new app, create toolProjectralph-prompt-project
Analyze, audit, compare, plan, investigateResearchralph-prompt-research

Classification Questions

To classify your task, consider:

  1. Is this creating something new from scratch or modifying existing code?

- New from scratch → Project or Multi-Task - Modifying existing → Single Task or Multi-Task

  1. How many distinct deliverables?

- One deliverable → Single Task - 2-5 related deliverables → Multi-Task - Complete application/tool → Project - Analysis document → Research

  1. Does it involve investigation before action?

- Yes, research required → Research - No, implementation focus → Single/Multi/Project

  1. What's the completion criteria?

- Tests pass → Single Task - Multiple features working → Multi-Task - Complete app running → Project - Document produced → Research

Classification Examples

Single Task Examples

  • "Fix the race condition in token refresh"
  • "Add pagination to the users endpoint"
  • "Refactor database queries to use async/await"
  • "Write tests for the auth module"
  • "Optimize the image upload function"

Multi-Task Examples

  • "Implement CRUD for Products resource"
  • "Add login, signup, logout, and password reset"
  • "Set up CI/CD pipeline with lint, test, build, deploy"
  • "Add validation, error handling, and logging to API"
  • "Create user, profile, and settings endpoints"

Project Examples

  • "Build a REST API for a todo list application"
  • "Create a CLI tool for database migrations"
  • "Build a URL shortener service"
  • "Create a markdown documentation generator"
  • "Build an authentication microservice"

Research Examples

  • "Analyze the codebase for security vulnerabilities"
  • "Compare React vs Vue vs Svelte for our needs"
  • "Create a migration plan from MongoDB to PostgreSQL"
  • "Audit dependencies for outdated packages"
  • "Document the current API architecture"

Workflow

Step 1: Describe Your Task

Provide a description including:

  • What needs to be done
  • What technology/context
  • Any specific requirements
  • Desired outcome

Template:

Task: [What you want to accomplish]
Context: [Relevant background - tech stack, existing code, etc.]
Requirements: [Specific requirements or constraints]
Outcome: [What success looks like]

Step 2: Review Classification

The orchestrator will classify your task and explain why:

CLASSIFICATION: [Task Type]
REASONING: [Why this classification]
GENERATOR: ralph-prompt-[type]

Does this classification look correct? If not, specify your preferred type.

Step 3: Provide Generator Inputs

Each generator requires specific inputs:

Single Task:

  • Task description
  • Success criteria (how to verify)
  • Completion promise text

Multi-Task:

  • List of tasks
  • Dependencies between tasks
  • Final completion promise

Project:

  • Project description
  • Tech stack
  • Feature list
  • Completion promise

Research:

  • Research objective
  • Scope (in/out)
  • Deliverable format
  • Completion promise

Step 4: Generate & Review

The appropriate generator creates the prompt. Review and customize:

  1. Verify requirements are complete
  2. Check verification commands are correct
  3. Confirm completion criteria match your needs
  4. Adjust max-iterations recommendation

Step 5: Execute with Ralph

/ralph-wiggum:ralph-loop "[generated prompt]" --completion-promise "[YOUR_PROMISE]" --max-iterations [recommended]

Generator Summaries

ralph-prompt-single-task

Purpose: Focused tasks with clear success criteria

Structure:

  1. Task title and objective
  2. Context
  3. Requirements
  4. Success criteria (checkboxes)
  5. Verification steps with commands
  6. TDD approach
  7. Completion conditions
  8. If stuck guidance

Best practices:

  • Include actual test commands
  • Make criteria binary (pass/fail)
  • Include TDD loop

Recommended iterations: 15-35


ralph-prompt-multi-task

Purpose: Multiple related tasks organized in phases

Structure:

  1. Task inventory table
  2. Phase breakdown (Foundation → Core → Enhancement → Validation)
  3. Per-phase tasks with deliverables
  4. Phase checkpoints
  5. Progress tracking
  6. Final verification

Best practices:

  • Group tasks into logical phases
  • Clear dependencies
  • Document checkpoints

Recommended iterations: 35-100


ralph-prompt-project

Purpose: Complete projects from scratch

Structure:

  1. Project vision and specs
  2. Six phases:

- Phase 0: Setup - Phase 1: Architecture - Phase 2: Core - Phase 3: Features - Phase 4: Testing - Phase 5: Documentation

  1. Per-phase tasks and deliverables
  2. Final verification
  3. Progress tracking

Best practices:

  • Define non-goals explicitly
  • Complete all phases in order
  • Don't skip testing/documentation

Recommended iterations: 60-200


ralph-prompt-research

Purpose: Analysis, audits, planning, investigations

Structure:

  1. Research objective and scope
  2. Five phases:

- Phase 1: Discovery - Phase 2: Analysis - Phase 3: Synthesis - Phase 4: Recommendations - Phase 5: Documentation

  1. Deliverables at each phase
  2. Evidence-based conclusions

Best practices:

  • Define scope boundaries clearly
  • Create artifacts as you go
  • Support conclusions with evidence

Recommended iterations: 30-100

Common Patterns

Choosing a Completion Promise

Good promises are:

  • Specific to the task
  • Verifiable (you can check if it's true)
  • Action-oriented

Examples:

Task TypeGood PromiseWhy
Bug fixAUTH_FIX_COMPLETESpecific to what was fixed
CRUDPRODUCT_CRUD_DONENames the resource
ProjectTODO_API_V1_COMPLETEIdentifies the project
ResearchSECURITY_AUDIT_DELIVEREDReferences deliverable

The Ralph Philosophy

The Ralph Wiggum technique is built on a key insight: failures are deterministic and fixable.

  • Deterministically bad: When prompts fail, they fail in predictable ways
  • Fixable through iteration: Each failure provides data to improve
  • Prompt tuning > tool changing: Fix failures by improving the prompt, not switching approaches

This means: Don't fear failures. They're expected and correctable. The loop will iterate until success.

Setting Max Iterations

Base recommendations by complexity:

ComplexitySingle TaskMulti-TaskProjectResearch
Simple15356030
Medium255010050
Complex357015080
Very Complex-100200100

Adjust based on:

  • Familiarity with codebase (-20%)
  • External dependencies (+30%)
  • Unclear requirements (+50%)
  • Comprehensive testing needed (+25%)

Splitting Large Tasks

If task feels too large, consider splitting:

Project → Multiple Projects:

Instead of: "Build complete e-commerce platform"
Split into:
1. Project: User authentication service
2. Project: Product catalog API
3. Project: Shopping cart service
4. Project: Order processing service

Multi-Task → Separate Multi-Tasks:

Instead of: "Build full admin dashboard"
Split into:
1. Multi-Task: User management (CRUD + roles)
2. Multi-Task: Analytics dashboard
3. Multi-Task: Settings panel

Troubleshooting

Task Won't Complete

Symptoms: Hitting max iterations without completion

Causes and fixes:

  1. Scope too large → Split into smaller tasks
  2. Unclear criteria → Make success criteria more specific
  3. External dependencies → Document or mock dependencies
  4. Infinite tests → Check for flaky tests

Wrong Generator Selected

Fix: Specify the generator explicitly:

Use ralph-prompt-single-task (not multi-task) for: [task]

Prompt Too Vague

Fix: Ensure your input includes:

  • Specific files/modules affected
  • Actual test commands
  • Concrete success criteria
  • Technology context

Integration with Ralph Loop

After generating a prompt:

# Copy the generated prompt to a file or use directly
/ralph-wiggum:ralph-loop "[YOUR_GENERATED_PROMPT]" \
  --completion-promise "YOUR_PROMISE" \
  --max-iterations 50

# Monitor progress
head -10 .claude/ralph-loop.local.md

# Cancel if needed
/ralph-wiggum:cancel-ralph

Best Practices

DO:

  • Start with the right generator for your task type
  • Provide complete context and requirements
  • Include specific verification commands
  • Set appropriate max-iterations for complexity
  • Review generated prompts before running

DON'T:

  • Use vague task descriptions
  • Skip the classification step
  • Ignore the "If Stuck" guidance in generated prompts
  • Set max-iterations too low (iterations are normal)
  • Expect first-try perfection—Ralph embraces iteration

Quick Reference

Task Type Decision Tree

Is this research/analysis/planning?
├─ YES → ralph-prompt-research
└─ NO → Is this building a complete app from scratch?
         ├─ YES → ralph-prompt-project
         └─ NO → Are there multiple related deliverables?
                  ├─ YES → ralph-prompt-multi-task
                  └─ NO → ralph-prompt-single-task

Input Checklist

Before generating, have ready:

  • Clear task description
  • Technology context (language, framework)
  • Success criteria (how to verify done)
  • Completion promise text
  • Any specific requirements

Output Checklist

Before running the prompt:

  • All requirements captured
  • Verification commands are correct
  • Success criteria are binary (pass/fail)
  • TDD/iteration approach included
  • "If Stuck" guidance provided
  • Max iterations set appropriately

Specialized Generators:

  • ralph-prompt-single-task - Single focused implementations
  • ralph-prompt-multi-task - Multiple related tasks
  • ralph-prompt-project - Complete projects
  • ralph-prompt-research - Analysis and planning

Ralph Loop Commands:

  • /ralph-wiggum:ralph-loop - Start a loop
  • /ralph-wiggum:cancel-ralph - Cancel active loop
  • /ralph-wiggum:help - Get help

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

32.21%
按下载量换算50

github-copilot

21.44%
按下载量换算33

neovate

18.16%
按下载量换算28

Antigravity

12.55%
按下载量换算19

kilo

7.36%
按下载量换算11

command-code

3.75%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills