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.
npx skills add lingxling/awesome-skills-cn --skill ai-code-generation-guardrailsgit clone --depth 1 https://github.com/lingxling/awesome-skills-cnWrote 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.
[](https://agentmods.dev/skills/lingxling/awesome-skills-cn/ai-code-generation-guardrails)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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.
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
- Define the parameters, thresholds, and identity bindings required for the target operational register.
- Select appropriate boundary enforcement values from validated enum select sets.
- 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 |
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.
- 11d ago First seen · 143 lines · 31 tokens per session scan A 15fe9f2c8fd4
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.
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.
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.
simp
A relationship-advice skill that helps interpret signals, plan respectful approaches, and write sincere messages for someone you like.
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.
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…
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.