yweb-infra
OfficialYWeb Infrastructure Modules
Authoryafo-ai
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides standardized and efficient ways to manage core infrastructure concerns within a YWeb application, including caching, error handling, logging, configuration, file storage, and scheduled tasks.
Core Features & Use Cases
- Caching: Implement efficient data caching with automatic invalidation for ORM objects and relationships using
@cacheddecorator. - Exception Handling: Centralize error management with
Errfor business exceptions and global handlers. - Logging: Utilize
get_logger()for module-aware, configurable logging with sensitive data filtering. - Configuration: Manage application settings via YAML and environment variables using
AppSettings. - File Storage: Integrate with local, OSS, or S3 storage solutions.
- Scheduled Tasks: Define and manage cron jobs and other scheduled operations.
- Use Case: When developing a new feature, use the
@cacheddecorator to optimize database reads for frequently accessed user profiles, and ensure all errors are logged and handled gracefully using the provided exception handling mechanisms.
Quick Start
Read the documentation for the YWeb caching module to implement a cached function.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: yweb-infra Download link: https://github.com/yafo-ai/yweb-core/archive/main.zip#yweb-infra 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 223,000+ vetted skills library on demand.