amanah-validation
Enforce Amanah client and server validation for identity, money, dates, files, trusted contacts, and Legacy Access.
Files1
View on GitHubSKILL.mdskills/amanah-validation/SKILL.md
GitHubPurpose
Reject invalid or unsafe data with corrective, human-readable feedback.
Scope
Names, email, phone, country, currency, amounts, dates, payments, balances, files, trusted contacts, and claims.
Rules
Validate on client for guidance and server for authority. Normalize before validation; use ISO allowlists; validate payment against remaining balance.
Required patterns
Associate errors with fields, preserve user input safely, validate MIME plus signature, and centralize schemas.
Forbidden patterns
Never trust extensions, client validation, formatted money strings, ambiguous dates, or silent coercion.
Relevant modules
Forms, APIs, services, uploads, debt, trusted, legacy.
Testing
Test boundaries, malformed Unicode, localization, duplicate identities, oversized files, impossible dates, and cross-field rules.
Definition of done
Invalid input cannot mutate state and every user-facing error explains how to correct it.