Skip to content

hackbrasil-2026-bora/OiTenta / .agents/skills/shared-validation-rule

shared-validation-rule

Unverified

Cria 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.

references/few-shots/strong-password.rule.example.ts

View on GitHub
import { 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)
      );
    });
  }
}
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall