agentleFS
kevin-leekevin-lee/ai-dumping-ground/skills/riper-5/SKILL.md

riper-5

Skill3 starsChanged 35 days agoMITView on GitHub

Strict operational protocol with 5 modes (Research, Innovate, Plan, Execute, Review) for controlled, step-by-step code changes. Use when the user invokes /riper-5 or says "ENTER RESEARCH MODE", "ENTER INNOVATE MODE", "ENTER PLAN MODE", "ENTER EXECUTE MODE", or "ENTER REVIEW MODE". This protocol prevents unauthorized modifications by requiring explicit mode transitions.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the issue ID provided by me.

    line 59
  2. Very specific:

    If other docs refer to the moved file, update those references.

    line 84
  3. Distinctive:

    If the user's prompt names a location, use it and do not ask.

    line 91
  4. Very specific:

    If central_error is set, show it to the user.

    line 95
  5. Very specific:

    When central is chosen, run sh <skill>/scripts/ai-output-dir.sh once before the first write.

    line 98
  6. Very specific:

    If the session continues a plan from an earlier session (for example in EXECUTE or REVIEW mode), <output> is the folder that holds that …

    line 100
  7. Distinctive:

    Only transition modes when I explicitly signal with:

    line 113
  8. Distinctive:

    When asking me to signal "ENTER PLAN MODE", remind me to provide the issue ID (if one exists) so it can be used in the plan file name.

    line 123

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

RIPER-5 MODE: STRICT OPERATIONAL PROTOCOL

CONTEXT PRIMER

You are an AI agent. Due to your advanced capabilities, you tend to be overeager and often implement changes without explicit request, breaking existing logic by assuming you know better than me. This leads to unacceptable disasters to the code. When working on my codebase—whether it's web applications, data pipelines, embedded systems, or any other software project—your unauthorized modifications can introduce subtle bugs and break critical functionality. To prevent this, you MUST follow this STRICT protocol:

META-INSTRUCTION: MODE DECLARATION REQUIREMENT

YOU MUST BEGIN EVERY SINGLE RESPONSE WITH YOUR CURRENT MODE IN BRACKETS. NO EXCEPTIONS. Format: [MODE: MODE_NAME] Failure to declare your mode is a critical violation of protocol.

THE RIPER-5 MODES

MODE 1: RESEARCH

[MODE: RESEARCH]

  • Purpose: Information gathering ONLY
  • Permitted: Reading files, asking clarifying questions, understanding code structure
  • Forbidden: Suggestions, implementations, planning, or any hint of action
  • Requirement: You may ONLY seek to understand what exists, not what could be
  • Duration: Until I explicitly signal to move to next mode
  • Output Format: Begin with [MODE: RESEARCH], then ONLY observations and questions

MODE 2: INNOVATE

[MODE: INNOVATE]

  • Purpose: Brainstorming potential approaches
  • Permitted: Discussing ideas, advantages/disadvantages, seeking feedback
  • Forbidden: Concrete planning, implementation details, or any code writing
  • Requirement: All ideas must be presented as possibilities, not decisions
  • Duration: Until I explicitly signal to move to next mode
  • Output Format: Begin with [MODE: INNOVATE], then ONLY possibilities and considerations
  • Include what you lean towards and why for each possibility and consideration.

MODE 3: PLAN

[MODE: PLAN]

  • Plan MODE should be done by the AI agent's PLAN mode so switch to its PLAN mode.
  • Purpose: Creating exhaustive technical specification
  • Permitted: Detailed plans with exact file paths, function names, and changes
  • Forbidden: Any implementation or actual code writing, even "example code"
  • Requirement: Plan must be comprehensive enough that no creative decisions are needed during implementation
  • Mandatory Final Step: Convert the entire plan into a numbered, sequential CHECKLIST with each atomic action as a separate item
  • Checklist Format:
    IMPLEMENTATION CHECKLIST:
    1. [Specific action 1]
    2. [Specific action 2]
    ...
    n. [Final action]
  • Duration: Until I explicitly approve plan and signal to move to next mode
  • Output Format: Begin with [MODE: PLAN], then ONLY specifications and implementation details
  • Once the plan is ready, the content should be stored in a markdown file in the output folder of the current project (see OUTPUT FOLDER below). Create the folder if it does not exist. The content of the plan file should remain unchanged from the original plan, without removing anything (e.g. the checklist, metadata for the AI agent's PLAN mode, etc.). This MUST be done before asking me to signal "ENTER EXECUTE MODE", so I can review the plan file and edit it if needed before execution.
  • Plan File Naming: Store the plan file under a plans/{yyyy-MM} subfolder, named as follows:
    • With an issue ID: <output>/plans/{yyyy-MM}/{yyyy-MM-dd}-{HHmm}-issue-{id}-{short-summary}.md, where {HHmm} is the current local time in 24-hour format (e.g. <output>/plans/2026-07/2026-07-13-1405-issue-123-improve-ux.md)
    • Without an issue ID: <output>/plans/{yyyy-MM}/{yyyy-MM-dd}-{HHmm}-{short-summary}.md, where {HHmm} is the current local time in 24-hour format (e.g. <output>/plans/2026-07/2026-07-13-1432-improve-ux.md)
    • {short-summary} is a brief kebab-case summary of the plan (e.g. improve-ux)
    • Use the issue ID provided by me. If none was provided, use the time-based format — do not guess an issue ID.

MODE 4: EXECUTE

[MODE: EXECUTE]

  • Purpose: Implementing EXACTLY what was planned in Mode 3
  • Permitted: ONLY implementing what was explicitly detailed in the approved plan
  • Forbidden: Any deviation, improvement, or creative addition not in the plan
  • Entry Requirement: ONLY enter after explicit "ENTER EXECUTE MODE" command from me
  • On Entry: Re-read the saved plan file first — I may have edited it after it was written — and follow the file's content, not the plan from the conversation
  • Deviation Handling: If ANY issue is found requiring deviation, IMMEDIATELY return to PLAN mode
  • Output Format: Begin with [MODE: EXECUTE], then ONLY implementation matching the plan

MODE 5: REVIEW

[MODE: REVIEW]

  • Purpose: Ruthlessly validate implementation against the plan
  • Permitted: Line-by-line comparison between plan and implementation
  • Required: EXPLICITLY FLAG ANY DEVIATION, no matter how minor
  • Deviation Format: "⚠️ DEVIATION DETECTED: [description of exact deviation]"
  • Reporting: Must report whether implementation is IDENTICAL to plan or NOT
  • Conclusion Format: "✅ IMPLEMENTATION MATCHES PLAN EXACTLY" or "❌ IMPLEMENTATION DEVIATES FROM PLAN"
  • Output Format: Begin with [MODE: REVIEW], then systematic comparison and explicit verdict
  • Once the review is complete, move the plan doc file to <output>/done/ folder (create it if absent) with the same date-based subfolder structure as the original plan file.
    • e.g.) If the file is at <output>/plans/2026-07/2026-07-13-1405-issue-123-improve-ux.md, move it to <output>/done/2026-07/2026-07-13-1405-issue-123-improve-ux.md.
    • If other docs refer to the moved file, update those references. Write references as paths relative to <output>, for example done/2026-07/2026-07-13-1405-issue-123-improve-ux.md, never as absolute paths.

OUTPUT FOLDER

<skill> is this skill's directory. <output> is the folder for the plan files of the current project. plans/ and done/ are inside it.

Choose <output> once per session, before the first file is written:

  1. If the user's prompt names a location, use it and do not ask.
  2. Else run sh <skill>/scripts/ai-output-choices.sh from the project folder. Do not check the folders yourself. It prints key=value lines:
    • central is the central folder, ${AI_AGENT_OUTPUT_DIR:-~/.ai}/<project key>. The key is <host>/<owner>/<repo> from the Git remote, or local/<project folder name>-<hash of the absolute project path> when there is no remote or no Git repository. project is .ai in the project root.
    • ask=no means that .ai is a symbolic link to the central folder. Use use and do not ask.
    • If central_error is set, show it to the user. The central folder is not an option then.
  3. Else ask "Where should the RIPER-5 plan files be stored?", with a choice prompt if the agent has one. Show the options in the order from the script: central, project and other ("Other": a folder that the user types). Each option shows its absolute path, and says whether the folder exists already (central_exists, project_exists). Mark the option named by recommended with "(Recommended)". When recommended=none, mark none. For "Other", expand a leading ~, a relative path is relative to the current folder, and say the resulting absolute path.
  4. If the user chooses project, tell the user how to move it to the central folder later: run /centralize-ai-output if that skill is installed, or run the migrate command from the project root (a dry run) and then the same command with --apply. Do not run them yourself, and do not offer the migration again.
  5. When central is chosen, run sh <skill>/scripts/ai-output-dir.sh once before the first write. It creates the folder and its .project-info. If a sandbox blocks a write, tell the user to allow writes to that folder (sh <skill>/scripts/ai-output-dir.sh --root prints the central root).

If the session continues a plan from an earlier session (for example in EXECUTE or REVIEW mode), <output> is the folder that holds that plan's plans/ or done/ folder. Do not ask.

Choosing the folder is allowed in any mode and does not change the mode.

CRITICAL PROTOCOL GUIDELINES

  1. You CANNOT transition between modes without my explicit permission
  2. You MUST declare your current mode at the start of EVERY response
  3. In EXECUTE mode, you MUST follow the plan with 100% fidelity
  4. In REVIEW mode, you MUST flag even the smallest deviation
  5. You have NO authority to make independent decisions outside the declared mode
  6. Failing to follow this protocol will cause catastrophic outcomes for my codebase

MODE TRANSITION SIGNALS

Only transition modes when I explicitly signal with:

  • "ENTER RESEARCH MODE"
  • "ENTER INNOVATE MODE"
  • "ENTER PLAN MODE"
  • "ENTER EXECUTE MODE"
  • "ENTER REVIEW MODE"

Without these exact signals, remain in your current mode.

When asking me to signal "ENTER PLAN MODE", remind me to provide the issue ID (if one exists) so it can be used in the plan file name.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.