hai-core
OfficialCore utilities for config, logging, and i18n
Authorhai-series
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides the foundational core services for Hai Framework apps, including configuration loading, structured logging, internationalization (i18n), and HaiResult-based error handling and module lifecycle helpers, enabling consistent behavior across modules.
Core Features & Use Cases
- Configuration loading: centralized, validated config retrieval with reload/watch capabilities.
- Logging & observability: standardized log formats, levels, and child loggers for modules.
- Internationalization: global locale management and message retrieval.
- HaiResult error handling: unified success/error shapes with clear causes and suggestions.
- Module lifecycle: standardized init/use/close pattern across modules.
- Use Case: adopt core across services to ensure predictable startup, error handling, and messaging.
Quick Start
Initialize core by calling core.init with your project configuration directory, then use core.config, core.logger, and core.i18n to build and manage modules.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: hai-core Download link: https://github.com/hai-series/hai-framework/archive/main.zip#hai-core Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.