yweb-infra

Provide standardized caching, logging, configuration, and storage modules for YWeb applications.

3|2|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/yafo-ai/yweb-core --skill yweb-infra
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: yweb-infra
Source: https://github.com/yafo-ai/yweb-core/tree/main/.cursor/skills/yweb-infra
Command: npx skills add https://github.com/yafo-ai/yweb-core --skill yweb-infra

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

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 @cached decorator.
  • Exception Handling: Centralize error management with Err for 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 @cached decorator 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.

Frequently Asked Questions about yweb-infra

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement caching for ORM objects in a YWeb backend application?

Configure application settings in a YWeb backend using the AppSettings module, which manages configuration via YAML files and environment variables for streamlined operational control.

What is the best way to manage business exceptions and global error handling in YWeb?

Manage business exceptions and global error handling in YWeb using the centralized Err module, which ensures robust error management and allows errors to be logged and handled gracefully.

How do I set up module-aware logging with sensitive data filtering in YWeb?

Set up module-aware logging with sensitive data filtering in YWeb by calling the get_logger() function, which provides configurable logging tailored to specific application modules.

Can I integrate S3 or OSS file storage solutions within the YWeb framework?

You can integrate local, OSS, or S3 storage solutions within the YWeb framework using the provided file storage module, enabling flexible and standardized file management for backend operations.

Do I need specific configuration to run scheduled tasks and cron jobs in YWeb?

Running scheduled tasks and cron jobs in YWeb requires using the dedicated scheduler module to define and manage operations, ensuring scheduled backend tasks execute reliably without external dependencies.