agentic-security:add-scan-rule

Add a new SAST detector to the agentic-security scanner via a six-step process.

73|15|Updated May 6, 2026
One-click install
npx skills add https://github.com/Clear-Capabilities/agentic-security --skill agentic-security-add-scan-rule
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agentic-security:add-scan-rule
Source: https://github.com/Clear-Capabilities/agentic-security/tree/main/skills/add-scan-rule
Command: npx skills add https://github.com/Clear-Capabilities/agentic-security --skill agentic-security-add-scan-rule

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a repeatable six-step recipe to add a new SAST detector to the agentic-security scanner, enabling teams to extend security coverage without manual re-implementation.

Core Features & Use Cases

  • Defines where a rule lives (language-specific detectors, framework hardening, cross-cutting vuln classes, posture annotators) and the required file patterns.
  • Wires the detector into the engine, exports scan<Name> functions, and integrates fixtures and tests to validate behavior.
  • Provides a complete developer workflow for creating, wiring, fixtureing, and testing new detectors within the scanner.

Quick Start

Follow the six-step recipe to add a new SAST detector, including wiring it into engine.js and creating fixtures and tests.

Frequently Asked Questions about agentic-security:add-scan-rule

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

FAQPage Schema
How do I add a new SAST detector to a scanner?

To add a new SAST detector, follow a six-step process covering language-specific detectors, framework hardening, and cross-cutting vulnerabilities, including wiring the detector into the engine and validating it with fixtures and tests.

What are the required steps to wire a SAST detector into the scanning engine?

Wiring a SAST detector into the scanning engine requires exporting a scan function, integrating it into engine.js, creating validation fixtures, and running existing tests to confirm the setup.

Where should I place new SAST rules for framework hardening or language-specific detectors?

New SAST rules should be placed in language-specific detectors, framework hardening modules, cross-cutting vulnerability classes, or posture annotators, following the required file patterns for each category.

Do I need to create fixtures and tests when adding a SAST detector?

Yes, creating fixtures and tests is a required step to validate the behavior of a new SAST detector and ensure the new scanning rule integrates correctly without breaking existing test suites.

Does this SAST detector workflow support cross-cutting vulnerability patterns?

Yes, the SAST detector workflow supports cross-cutting vulnerability patterns alongside language-specific rules and framework hardening, enabling broad security coverage within the scanner.

What is the best way to validate a newly added SAST detector?

The best way to validate a new SAST detector is by running the existing test suite against the newly created fixtures to ensure the exported scan function behaves correctly within the engine.