verify-rsn-fix

Align codefix TypeScript files with locked vuln-code-snippet variants after RSN failures.

Updated May 13, 2026
One-click install
npx skills add https://github.com/tolonlo/FinalCiber --skill verify-rsn-fix
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: verify-rsn-fix
Source: https://github.com/tolonlo/FinalCiber/tree/main/.ai/skills/verify-rsn-fix
Command: npx skills add https://github.com/tolonlo/FinalCiber --skill verify-rsn-fix

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps you recover when Refactoring Safety Net (RSN) checks fail after you change code inside a vuln-code-snippet block, preventing snippet and “Fix It” variations from drifting out of sync.

Core Features & Use Cases

  • Detect RSN breaks with a single check: Run the project RSN validator to identify exactly which challenge codefix files no longer match the locked snippet state.
  • Map source snippets to codefix outputs: Determine the affected challengeName snippets by finding the corresponding vuln-code-snippet blocks and the matching codefix files.
  • Apply consistent, intent-preserving repairs: Update all related codefix files so non-vulnerable lines stay identical while corrected vulnerable lines reflect the intended fix in the _correct variant.

Quick Start

Run the RSN check with npm run rsn, then update the listed data/static/codefixes challengeName_*.ts files to match the modified snippet block and re-run npm run rsn to confirm it passes.

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 Refactoring Safety Net failures after editing a vuln-code-snippet block?

A Refactoring Safety Net check is a validation step that ensures code edits inside vuln-code-snippet regions do not cause the original snippets and their associated codefix variations to drift out of sync.

How do I map edited source snippets to their corresponding codefix files?

To map edited source snippets, identify the affected challengeName from the RSN diff output, then locate the matching vuln-code-snippet blocks and update the corresponding data/static/codefixes challengeName_*.ts files.

Can I use this refactoring verification process for OWASP Juice Shop challenge maintenance?

Yes, this refactoring verification process applies directly to OWASP Juice Shop challenge maintenance by ensuring Fix It files mirror the expected snippet structure after applying intent-preserving codefixes.

What is the best way to keep codefix variants aligned with locked snippet states?

The best way to keep codefix variants aligned is to update all related data/static/codefixes files so non-vulnerable lines stay identical while corrected vulnerable lines reflect the intended fix in the _correct variant, then validate with npm run rsn.

Why does npm run rsn keep failing after I update a codefix file?

The npm run rsn check keeps failing when updated codefix files still do not match the locked snippet state, requiring you to review the vuln-code-snippet diff and apply consistent repairs until all codefix files pass validation.