infrastructure-core

Solid

Skill for the core infrastructure module providing logging, configuration, exception handling, progress tracking, checkpoints, retry logic, pipeline execution, performance monitoring, security, file operations, and multi-project orchestration. Use when setting up logging, loading config, handling errors, running pipelines, or monitoring performance.

DevOps & Infrastructure 18 stars 1 forks Updated today Apache-2.0

Install

View on GitHub

Quality Score: 81/100

Stars 20%
43
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Core Infrastructure Module Foundation utilities used across the entire infrastructure layer and all project scripts. ## Logging (`logging/utils.py`) ```python from infrastructure.core import get_logger, log_operation, log_stage, format_duration from infrastructure.core.logging.setup import setup_logger from infrastructure.core.logging.utils import log_timing, log_substep logger = get_logger(__name__) logger.info("Processing started") # log_operation is a context manager (logs start, completion, failure) with log_operation("Processing data"): process() # Decorator for automatic timing and logging @log_timing def expensive_operation(): pass # Structured progress logging log_stage(1, 10, "Running Tests") log_substep("Unit tests passed") # ETA calculation from infrastructure.core.runtime import calculate_eta ``` ## Configuration (`config/loader.py`) ```python from infrastructure.core.config.loader import load_config, find_config_file, get_config_as_dict # Load project config.yaml config = load_config(project_path / "manuscript" / "config.yaml") # Auto-discover config file config_path = find_config_file(project_root) ``` ## Exception Hierarchy (`exceptions.py`) All exceptions extend `TemplateError`. Use context-preserving helpers: ```python from infrastructure.core import TemplateError from infrastructure.core.exceptions import ( ConfigurationError, ValidationError, BuildError, RenderingError, LLMError, PublishingError, raise_with_context, chai...

Details

Author
docxology
Repository
docxology/template
Created
11 months ago
Last Updated
today
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category