rule-security

Enforce security rules on Python, TypeScript, Terraform, and Docker file edits.

1|1|Updated Mar 31, 2026
One-click install
npx skills add https://github.com/btabaska/simpler-grants-documentation-automation --skill rule-security-btabaska
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rule-security
Source: https://github.com/btabaska/simpler-grants-documentation-automation/tree/main/.claude/skills/rule-security
Command: npx skills add https://github.com/btabaska/simpler-grants-documentation-automation --skill rule-security-btabaska

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The rule enforces security policies when editing critical code paths and infrastructure files, ensuring that edits adhere to centralized security standards.

The policy is defined to require application-level controls for authentication, authorization, input handling, secrets management, and dependency governance across Python, TypeScript, Terraform, and Docker-related edits.

Core Features & Use Cases

  • Authentication and Authorization: Enforce consistent authentication checks and authorization enforcement in code edits to prevent access violations.
  • Input Validation: Enforce validation at the edge using well-defined schemas with explicit types and constraints to prevent invalid or unsafe data handling.
  • Secrets and Dependencies: Prevent secrets from being committed; require secrets to be loaded from secure stores at runtime; pin dependencies and monitor transitive updates for license compliance.
  • Coverage: Applies across api/src//*.py, frontend/src//.{ts,tsx}, infra/**/.tf, and Dockerfiles to maintain uniform security posture during edits.

Quick Start

Review code changes and apply security-rule checks before submitting a pull request.

Frequently Asked Questions about rule-security

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

FAQPage Schema
How do I enforce secure coding standards during file edits?

To enforce secure coding standards during file edits, apply centralized security rules that validate authentication, input handling, and secrets management. This prevents vulnerabilities by requiring standardized frontmatter and guardrails before code changes are submitted.

What is the best way to prevent secrets from being committed in Python and TypeScript?

Preventing secrets from being committed requires enforcing policies that mandate loading secrets from secure stores at runtime. Applying input validation and dependency governance rules across Python and TypeScript edits ensures invalid data and unmanaged dependencies are blocked.

Does this security rule coverage apply to Terraform and Docker infrastructure files?

Yes, security rule coverage applies to Terraform and Docker infrastructure files. It enforces uniform security postures during edits by checking authentication, authorization, and dependency governance across API, frontend, infra, and Dockerfile paths.

How do I automate input validation and authorization checks for code reviews?

Automating input validation and authorization checks for code reviews involves integrating standardized security policies into the editing workflow. This requires defined schemas with explicit types and constraints, ensuring edge validation occurs before pull request submission.

Why should I pin dependencies and monitor transitive updates for security?

Pinning dependencies and monitoring transitive updates mitigates license compliance risks and prevents introducing vulnerable packages. Enforcing dependency governance during edits ensures that security policies actively track and restrict unauthorized library modifications.