verify-rsn-fix

Verify and fix broken RSN mappings between vuln-code-snippet blocks and codefix files.

13.6k|19.0k|Updated Sep 19, 2014
One-click install
npx skills add https://github.com/juice-shop/juice-shop --skill verify-rsn-fix-juice-shop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: verify-rsn-fix
Source: https://github.com/juice-shop/juice-shop/tree/main/.ai/skills/verify-rsn-fix
Command: npx skills add https://github.com/juice-shop/juice-shop --skill verify-rsn-fix-juice-shop

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It helps you detect and repair Broken Refactoring Safety Net (RSN) failures that happen when you change code inside a vuln-code-snippet block, preventing the application’s “Fix It” challenge codefix files from drifting out of sync.

Core Features & Use Cases

  • RSN Detection: Runs the RSN check to reveal exactly which codefix files no longer match the locked snippet state.
  • Targeted Repair: Guides you to update the affected codefix files in data/static/codefixes to mirror your snippet changes correctly.
  • Safe Verification Loop: Ensures you re-run the RSN check until it reports that all codefix files match the locked state.

Quick Start

Run the rsn check to see which challenge codefix files are out of sync, then update those codefix files to reflect your modified vuln-code-snippet source.

Frequently Asked Questions about verify-rsn-fix

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix broken RSN mappings in OWASP Juice Shop after editing a snippet?

To fix broken RSN mappings, run npm run rsn to identify affected challengeName_*_correct files, update the corresponding codefix files in data/static/codefixes to match the locked snippet state, and re-run the check until all files pass.

What is a Refactoring Safety Net failure in code synchronization?

A Refactoring Safety Net failure occurs when edits to vuln-code-snippet blocks cause the application's codefix files in data/static/codefixes to drift out of sync with the locked snippet state, breaking the Fix It challenge functionality.

How do I keep codefix files synchronized with vuln-code-snippet edits?

You keep codefix files synchronized by updating the affected files in data/static/codefixes to mirror your modified vuln-code-snippet source, then running npm run rsn repeatedly to verify that all codefix files match the locked state.

Does the RSN verification loop apply to frontend and server code changes?

Yes, the RSN verification loop applies to security challenge snippet edits across server, routes, and frontend code, ensuring all locked snippet variations remain consistent throughout the OWASP Juice Shop application.

Why does npm run rsn report affected challengeName_*_correct files?

The npm run rsn command reports affected challengeName_*_correct files because it detects that the codefix files in data/static/codefixes no longer match the locked snippet state after you changed code inside a vuln-code-snippet block.

What are the limitations of using RSN checks for refactoring safety?

The RSN check is limited to verifying that codefix files match the locked snippet state, requiring manual updates to the data/static/codefixes files and repeated npm run rsn executions until all discrepancies are fully resolved.