hackbrasil-2026-bora/OiTenta / .agents/skills/shared-validation-rule
shared-validation-rule
UnverifiedCria regras de validação reutilizáveis no pacote compartilhado da aplicação, seguindo o padrão existente de contratos, utilitários, códigos de erro, exports e testes unitários completos.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 9.3 KB |
| agents/openai.yaml | config | 423 B |
| references/few-shots/email.rule.example.ts | script | 461 B |
| references/few-shots/email.rule.test.example.ts | script | 844 B |
| references/few-shots/min-length.rule.example.ts | script | 443 B |
| references/few-shots/min-length.rule.test.example.ts | script | 752 B |
| references/few-shots/range-length.rule.example.ts | script | 516 B |
| references/few-shots/range-length.rule.test.example.ts | script | 906 B |
| references/few-shots/required.rule.example.ts | script | 266 B |
| references/few-shots/required.rule.test.example.ts | script | 708 B |
| references/few-shots/strong-password.rule.example.ts | script | 599 B |
| references/few-shots/strong-password.rule.test.example.ts | script | 484 B |
| references/mandatory-readings.md | markdown | 1.9 KB |
references/few-shots/strong-password.rule.example.ts
View on GitHubimport { validateStringValues } from "../rule.utils";
import { ValidationRule } from "../validation-rule.interface";
export class StrongPasswordRule implements ValidationRule {
readonly minLength: number;
constructor(minLength: number = 8) {
this.minLength = minLength;
}
validate(value: unknown): string | null {
return validateStringValues(value, "strong.password", (item) => {
return (
item.length >= this.minLength &&
/[A-Z]/.test(item) &&
/[a-z]/.test(item) &&
/\d/.test(item) &&
/[^A-Za-z0-9]/.test(item)
);
});
}
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |