What problem does it solve?
This Skill prevents costly integration bugs and security regressions by enforcing consistent engineering conventions across Anarchy’s Rust (FRAME pallet/runtime), TypeScript (Next.js/PAPI), and Rust↔TS (Wasm bridge) boundaries.
Core Features & Use Cases
- Language-agnostic conventions: establishes Japanese-first commenting, strict naming rules, i18n error message key patterns, and “write the why” guidance to reduce ambiguity during reviews.
- Rust runtime/pallet guardrails: enforces no_std compliance, deterministic logging constraints for wasm, storage growth bounds via MaxEncodedLen, overflow-safe arithmetic, and unsafe prohibition with scoped justification.
- TypeScript frontend safety & consistency: mandates strict TypeScript mode, disciplined React usage, stable identifiers, BigInt handling rules, and boundary error mapping to avoid leaking raw RPC messages to users.
- Wasm bridge correctness: limits wasm_bindgen interfaces to safe primitives and string/JSON serialization, preventing incorrect bigint transfers.
Quick Start
Ask the AI to “Generate a Rust pallet change and its corresponding TypeScript calls that follow the Anarchy coding-standards for naming, Japanese doc comments, no_std constraints, checked arithmetic, and wasm/TS error mapping, and list exactly which rules were applied.”