ai-code-generation-guardrails

ai-code-generation-guardrails is a skill for Claude Code from lingxling/awesome-skills-cn. It costs 31 tokens per session (1,243 once invoked), scanned A, a copy of ai-code-generation-guardrails, MIT.

A register of safety checks for code produced by generative AI. It includes abstract syntax tree checks, which inspect code structure, forbidden-import filters, and checks for previously unknown security weaknesses.

In plain words
What is it for?
Use it to define code-generation boundaries, reject forbidden patterns or imports, inspect generated code structure, and record security requirements for review.
Why use it?
It helps catch unsafe generated code before it is accepted or run. The structured rules make security requirements easier to review and apply consistently.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the agentic-awesome-skills plugin — 174 skills shipped together

Good fit Use it to define code-generation boundaries, reject forbidden patterns or imports, inspect generated code structure, and record security requirements for review.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lingxling/awesome-skills-cn/ai-code-generation-guardrails
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add lingxling/awesome-skills-cn --skill ai-code-generation-guardrails
Clone the repo
git clone --depth 1 https://github.com/lingxling/awesome-skills-cn

Made for: Claude Code.

Or install agentic-awesome-skills, the plugin that ships this one along with the rest of its 174 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ai-code-generation-guardrails

README.md
[![agentmods](https://agentmods.dev/badge/skills/lingxling/awesome-skills-cn/ai-code-generation-guardrails/github.svg)](https://agentmods.dev/skills/lingxling/awesome-skills-cn/ai-code-generation-guardrails)
Your own site
<a href="https://agentmods.dev/skills/lingxling/awesome-skills-cn/ai-code-generation-guardrails"><img src="https://agentmods.dev/badge/skills/lingxling/awesome-skills-cn/ai-code-generation-guardrails/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ai-code-generation-guardrails

Your own site · 80×15
<a href="https://agentmods.dev/skills/lingxling/awesome-skills-cn/ai-code-generation-guardrails"><img src="https://agentmods.dev/badge/skills/lingxling/awesome-skills-cn/ai-code-generation-guardrails.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,243 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00031 $0.01243
Opus 5.5 $0.00012 $0.00497
Sonnet 5.5 $0.00006 $0.00249
Haiku 4.5 $0.00003 $0.00124

Measured 11d ago against content hash 15fe9f2c8fd4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ai-code-generation-guardrails scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

100% identical to ai-code-generation-guardrails — 191 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

antigravity-awesome-skills/plugins/agentic-awesome-skills-claude/skills/ai-code-generation-guardrails/SKILL.md · 143 lines

How it starts

The opening of the file, as written. The whole thing — 143 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AI Code Generation Security Guardrails

What it is: Defines automated AST validation filters, forbidden pattern checks, and boundary invariants for code synthesized by generative AI models.

Overview

Provides a standardized, auditable framework and data model for AI Code Generation Security Guardrails operations across distributed engineering and decentralized application systems.

When to Use This Skill

  • When formalizing architectural contracts, security invariants, or operational limits for AI Code Generation Security Guardrails.
  • When cross-functional review is required between protocol developers, smart contract auditors, and AI engineering agents.
  • When generating reproducible CSV, SQL DDL, JSON Schema, and Notion property registers for tracking compliance.

How It Works

  1. Define the parameters, thresholds, and identity bindings required for the target operational register.
  2. Select appropriate boundary enforcement values from validated enum select sets.
  3. Export standardized artifacts (CSV table, SQL DDL, JSON Schema) to integrate into validation CI pipelines.

Field Reference

# Field Name Type SQL Type JSON Schema Type Notion Property Type Example Value
1 Guardrail Policy ID id SERIAL PRIMARY KEY integer Text SEC-001
2 Target Language Pipeline select VARCHAR(32) string Select Rust (Soroban)
3 AST Security Scanner text VARCHAR(64) string Text cargo-audit & clippy
4 Dangerous Primitives Filter select VARCHAR(16) string Select Yes
5 Disallowed Unsafe Blocks select VARCHAR(16) string Select Enforced Strict
6 Reentrancy Detection Rule select VARCHAR(32) string Select CEI Pattern Enforced
7 Prompt Injection Protection select VARCHAR(32) string Select Dual-Layer Boundary
8 Max Allowed Cyclomatic Complexity number INTEGER number Number 15
9 Pipeline Enforcement Status select VARCHAR(32) string Select Blocking CI Gate
10 Lead Security Engineer text VARCHAR(64) string Text Ranjeet2063
11 Policy Verification Date date DATE string, format: date Date 2026-10-01

Read the full file on GitHub · 143 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 143 lines · 31 tokens per session scan A 15fe9f2c8fd4

Subscribe to this mod's changes

ai-code-generation-guardrails is a skill published in the GitHub repository lingxling/awesome-skills-cn (312 stars, last pushed 11d ago), licensed MIT. It adds 31 tokens to every session and 1,243 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to ai-code-generation-guardrails, differing in 191 lines, and is treated as a copy.

Related

Other skills, from other repositories

ai-code-generation-guardrails

Use when reviewing AI-generated code before merge or execution: plan AST/security checks, isolated behavior tests and evidence, with language-specific coverage limits.

sickn33/agentic-awesome-skills · 35 tokens

ai-code-generation-guardrails

Use when reviewing AI-generated code before merge or execution: plan AST/security checks, isolated behavior tests and evidence, with language-specific coverage limits.

iradoweck/antigravity-awesome-skills · 35 tokens

simp

A relationship-advice skill that helps interpret signals, plan respectful approaches, and write sincere messages for someone you like.

BeamusWayne/simp-skill · 36 tokens

resemble-detect

Deepfake detection and media safety — detect AI-generated audio, images, video, and text, trace synthesis sources, apply watermarks, verify speaker identity, and analyze media intelligence using Resemble AI.

Prat011/awesome-llm-skills · 45 tokens

algorithmic-art

Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code, generative art, algorithmic art, flow fields, or particle systems. Create original algorithmic art rather than copying existing artists' work to avoid copyright…

Prat011/awesome-llm-skills · 62 tokens

canvas-design

Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.

Prat011/awesome-llm-skills · 59 tokens