Documentation for AI
Structured package and project context files aligned with the current codebase.
This page now mirrors the actual public `ai-docs` assets in the repo instead of a hand-picked subset.
- Package references follow current package names and statuses
- Project context files are listed alongside package YAML files
- The example below is a representative excerpt, not a frozen contract
Available Documents(21)
@hua-labs/i18n-formatters
Locale-aware date, number, and currency formatters with hooks and subpath exports.
@hua-labs/motion-core
Production-ready motion hooks for transitions, gestures, scroll, and page animation.
@hua-labs/dot
Cross-platform style protocol from utility tokens to web CSSProperties and React Native styles.
Document Format
YAML Structure
Package YAML files describe a package snapshot: metadata, exports, usage, and constraints.
package:Package metadata and identity
exports:Import paths and exported items
usage:Install notes and starter examples
notes:Status, caveats, or ecosystem context
Example: @hua-labs/hua
Representative excerpt aligned with the current package version and public surface.
Using with AI
Feed package YAML plus the relevant project context file to your assistant for higher-fidelity code generation.
Example prompt:
"Build a multilingual dashboard using @hua-labs/hua and @hua-labs/ui. Here are the current AI docs: [paste files]"Project context files:
Place the relevant file in your project root or tooling-specific config path.
.cursor/rules/hua-framework.mdc - Cursor IDE rules.claude/project-context.md - Claude Code contextAGENTS.md - Codex project guideskills.md - Antigravity skill definitionsai-context.md - General AI context (SSOT)