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 AXIOTN/frontend-page-generator --skill form-validationgit clone --depth 1 https://github.com/AXIOTN/frontend-page-generatorWrote 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/axiotn/frontend-page-generator/form-validation)<a href="https://agentmods.dev/skills/axiotn/frontend-page-generator/form-validation"><img src="https://agentmods.dev/badge/skills/axiotn/frontend-page-generator/form-validation/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/axiotn/frontend-page-generator/form-validation"><img src="https://agentmods.dev/badge/skills/axiotn/frontend-page-generator/form-validation.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.00000 | $0.00696 |
| Opus 5.5 | $0.00000 | $0.00278 |
| Sonnet 5.5 | $0.00000 | $0.00139 |
| Haiku 4.5 | $0.00000 | $0.00070 |
Grade A, and why
form-validation 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 1mo 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 balance-check — 177 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 — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.
表单验证子技能
概述
提供完整的表单验证解决方案,包括常用验证规则和验证器类。
验证规则
export const validators = {
required: (message = '此字段为必填项') => (value) => {
if (value === undefined || value === null || value === '') return message;
return null;
},
email: (message = '请输入有效的邮箱地址') => (value) => {
if (!value) return null;
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value) ? null : message;
},
phone: (message = '请输入有效的手机号') => (value) => {
if (!value) return null;
return /^1[3-9]\d{9}$/.test(value) ? null : message;
},
minLength: (min, message) => (value) => {
if (!value) return null;
return value.length >= min ? null : message || `至少需要${min}个字符`;
},
maxLength: (max, message) => (value) => {
if (!value) return null;
return value.length <= max ? null : message || `最多${max}个字符`;
},
pattern: (regex, message = '格式不正确') => (value) => {
if (!value) return null;
return regex.test(value) ? null : message;
},
match: (field, message = '两次输入不一致') => (value, formData) => {
return value === formData[field] ? null : message;
},
range: (min, max, message) => (value) => {
if (value === undefined || value === null) return null;
const num = Number(value);
return num >= min && num <= max ? null : message || `请输入${min}-${max}之间的数值`;
},
custom: (validatorFn, message) => (value, formData) => {
return validatorFn(value, formData) ? null : message;
}
};
表单验证器类
export class FormValidator {
constructor(rules = {}) {
this.rules = rules;
}
validate(formData) {
const errors = {};
let isValid = true;
for (const [field, fieldRules] of Object.entries(this.rules)) {
for (const rule of fieldRules) {
const error = rule(formData[field], formData);
if (error) {
errors[field] = error;
isValid = false;
break;
}
}
}
return { isValid, errors };
}
}
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.
- 1mo ago First seen · 100 lines · 0 tokens per session scan A a85ed80a8531
form-validation is a skill published in the GitHub repository AXIOTN/frontend-page-generator (14 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 696 tokens. A static security scan graded it A with 0 findings. It is 100% identical to balance-check, differing in 177 lines, and is treated as a copy.
Other skills, from other repositories
local-ai-agents
Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
next-cache-components-adoption
Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…
chat-pet-sprite-creation
Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.
cpu-profile-analysis
Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…
insight-error-page
Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…