create-rule

Installation
SKILL.md

Create Rule

Create a new security rule for ComplianceAsCode. This skill handles both templated and non-templated rules.

Rule ID: $ARGUMENTS

Tool Strategy

This skill uses mcp__content-agent__* tools when available (preferred — deterministic, structured results). When the MCP server is not configured, fall back to filesystem-based alternatives noted as Fallback in each step. See .claude/skills/shared/mcp_fallbacks.md for detailed fallback procedures. The skill must complete successfully either way.

Phase 1: Validate Input

  1. Validate rule ID format:
    • Must be lowercase with underscores (no hyphens or uppercase)
    • Example valid IDs: sshd_max_auth_tries, accounts_password_minlen
Installs
2
GitHub Stars
2.8K
First Seen
Jun 12, 2026
create-rule — complianceascode/content