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.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.00348 |
| Sonnet 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 7d 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.
- 7d 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 (12 stars, last pushed 3mo 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
debug-optimize-lcp
Guides debugging and optimizing Largest Contentful Paint (LCP) using Chrome DevTools MCP tools. Use this skill whenever the user asks about LCP performance, slow page loads, Core Web Vitals optimization, or wants to understand why their page's main content takes too long to appear. Also use when the user mentions…
repro-admin
Reproduce an EmDash admin UI bug. Attach a container, start the demo dev server, drive the admin with agent-browser using the dev-bypass session, and capture the reproduction as screenshots plus a replayable transcript.
create-site
Creates a new Power Pages code site (SPA) using React, Angular, Vue, or Astro. Guides through the full process from initial concept to deployed site: requirements discovery, scaffolding, component planning, design, implementation, validation, and deployment. Use when the user wants to create, build, or scaffold a new…
prototype-web
A clickable, high-fidelity web product prototype with navigation, a hero section, feature cards, steps, social proof, and optional pricing. It is designed to resemble a finished landing page while remaining a prototype.
menu-transitions-rtl
Animate react-horizontal-scrolling-menu scrolling and build right-to-left menus: noPolyfill defaults to true since v8, so transitionDuration (default 500), a custom-easing-function transitionBehavior, and per-call ScrollOptions { duration, boundary } on scrollToItem/scrollNext/scrollPrev are silently ignored unless…
vite
Vite build tool configuration, plugin API, SSR, and Vite 8 Rolldown migration. Use when working with Vite projects, vite.config.ts, Vite plugins, or building libraries/SSR apps with Vite.