guardian

Scan changed files for secrets, injection flaws, and destructive commands.

1|Updated May 18, 2026
One-click install
npx skills add https://github.com/linenoize/topia --skill guardian-linenoize
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: guardian
Source: https://github.com/linenoize/topia/tree/main/skills/guardian
Command: npx skills add https://github.com/linenoize/topia --skill guardian-linenoize

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guardian prevents unsafe code from reaching commit or deployment by acting as a hard security gate. It catches issues that are easy to miss in review, such as leaked secrets, injection flaws, destructive commands, and weakened security controls.

Core Features & Use Cases

  • Secret and credential scanning: Detects API keys, tokens, private keys, and committed environment data before they can leak.
  • Application security checks: Flags SQL injection, XSS, CSRF, missing input validation, and auth or crypto anti-patterns.
  • Supply chain and configuration defense: Audits dependencies, watches for security middleware removal, and spots fail-open defaults or risky config drift.
  • Operational safety gates: Blocks destructive shell commands, validates project contracts and org policies, and enforces readiness before build or deploy.
  • Use case: A developer prepares a feature branch that touches auth, config, and deployment scripts, and Guardian reviews the full change set to stop critical risks while surfacing warnings that need explicit acknowledgment.

Quick Start

Ask Guardian to scan the current changes for secrets, injection risks, destructive commands, and config regressions before commit.

Frequently Asked Questions about guardian

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

FAQPage Schema
How do I scan code changes for leaked secrets before commit?

Scanning code changes for leaked secrets before commit requires a security gate that detects API keys, tokens, and private keys in modified files. Guardian performs file-based pattern analysis and blocks the commit if credentials are found.

What is the best way to prevent SQL injection and XSS vulnerabilities from shipping?

Preventing SQL injection and XSS from shipping is best handled by enforcing application security checks that flag injection flaws and missing input validation. Guardian acts as a hard gate across build and deploy workflows to stop these security regressions.

How do I audit dependencies for security risks during code review?

Auditing dependencies for security risks during code review involves running supply chain checks that evaluate updated packages against known vulnerabilities. Guardian audits dependencies and watches for risky configuration drift or weakened security middleware.

Can I block destructive shell commands in deployment scripts automatically?

You can block destructive shell commands in deployment scripts automatically by applying operational safety gates. Guardian validates project contracts and blocks risky operational commands before deployment, returning a hard BLOCK verdict to halt the pipeline.

Does this security gate work with existing build and deploy workflows?

This security gate works with existing build, deploy, and review workflows by analyzing changed files for security regressions and configuration drift. Guardian integrates into these processes and reports issues using BLOCK, WARN, and INFO verdicts.

When do I need a hard security gate instead of standard code review?

You need a hard security gate instead of standard code review when changes touch auth, config, or deployment scripts where leaked secrets or injection flaws are easy to miss. Guardian enforces readiness and stops critical risks before deployment.