modernize-harden

Scan legacy code for security vulnerabilities and generate a reviewable remediation patch.

15|6|Updated May 7, 2026
One-click install
npx skills add https://github.com/MinhThang1009/dotclaude --skill modernize-harden
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: modernize-harden
Source: https://github.com/MinhThang1009/dotclaude/tree/main/plugins/code-modernization/skills/modernize-harden
Command: npx skills add https://github.com/MinhThang1009/dotclaude --skill modernize-harden

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps identify security vulnerabilities in legacy codebases and generate a reviewable remediation patch instead of directly editing code.

Core Features & Use Cases

  • Scan: Adversarially audit legacy code for security weaknesses across injection, auth, data exposure, and insecure deserialization.
  • Triage & Remediation: Produce structured security findings and a targeted patch plan for critical issues.
  • Present & Verify: Output artifacts to analysis/$1 and validate patches before review.

Quick Start

Run the modernize-harden workflow on a legacy directory to generate findings and a patch for review

Frequently Asked Questions about modernize-harden

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

FAQPage Schema
How do I find security vulnerabilities in legacy code without directly editing the source?

To find security vulnerabilities in legacy code without modifying source, you can run a scanning workflow that audits the directory and generates a reviewable remediation patch. This approach ensures the original codebase remains untouched during hardening.

What types of security weaknesses does a legacy code hardening scan look for?

A legacy code hardening scan looks for injection flaws, authentication bypasses, data exposure, and insecure deserialization. It triages these security vulnerabilities to produce a targeted patch plan for critical issues.

Can I use standard SAST tools like npm audit and pip-audit for scanning legacy directories?

Yes, you can use standard SAST tools like npm audit, pip-audit, and OWASP Dependency-Check for scanning legacy directories. The workflow relies on these tools alongside a security-auditor subagent to identify vulnerabilities.

How do I generate a reviewable patch for critical security issues in an old codebase?

You generate a reviewable patch for critical security issues by running an adversarial audit workflow on the old codebase. The process validates the patches and writes the security findings and remediation artifacts to an analysis directory for review.

What is the best way to present and verify security patches before applying them to production?

The best way to present and verify security patches before applying them is to output artifacts to a designated analysis folder. This workflow validates the generated remediation patches against the legacy codebase to ensure safety before human review.