Harden

From Miosa-osa/canopy · View interactive version

Harden is an AI agent skill from the GitHub repository Miosa-osa/canopy. > Apply security hardening to a project -- headers, configs, dependencies, and best practices.

How to use this skill

Skill file

/harden

Apply security hardening to a project -- headers, configs, dependencies, and best practices.

Usage

/harden [path] [--focus <headers|deps|auth|all>] [--dry-run]

What It Does

Analyzes the project's current security posture and applies hardening measures: security headers, dependency updates, authentication improvements, input validation, and configuration tightening. Produces a before/after comparison.

Implementation

  1. Assess current state -- scan for security headers, dependency versions, auth config, input validation.
  2. Generate hardening plan -- prioritized list of improvements by impact.
  3. Apply changes (unless --dry-run):
  1. Verify -- run security scan to confirm improvements.
  2. Report -- before/after security posture comparison.

Examples

# Full hardening
/harden

# Dry run to see what would change
/harden --dry-run

# Focus on security headers only
/harden --focus headers

# Focus on dependency updates
/harden --focus deps
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.