gnn-shared-utilities
GNN shared utility functions and helper modules. Use when working with common pipeline utilities, logging helpers, file I/O wrappers, path management, or…
от ActiveInferenceInstitute★ 36 звёзд на GitHub
Установить gnn-shared-utilities в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
GNN Shared Utilities
Purpose
Provides shared utility functions, helper modules, and common infrastructure used across all 25 pipeline steps. Includes logging, error handling, configuration, dependency validation, and the standardized pipeline template.
Key Commands
# Utils is a shared library — not run directly but imported by all pipeline steps.
# Validate pipeline dependencies
python -c "from gnn.utils import validate_pipeline_dependencies; validate_pipeline_dependencies()"
# Check optional dependency status
python -c "from gnn.utils import get_dependency_status; print(get_dependency_status())"
# Probe process memory (canonical MB-scale helper)
python -c "from gnn.utils import get_current_memory_usage; print(get_current_memory_usage())"
Key Modules
| Module | Key Exports | Purpose |
|---|---|---|
logging_utils / observability.structured_logging |
setup_step_logging, PipelineLogger, log_step_* |
Structured logging |
errors.error_handling / errors.error_recovery |
ErrorRecoveryManager, PipelineErrorHandler, generate_correlation_id |
Error handling & recovery |
config_io.config_loader |
load_config, get_config_value, set_config_value, validate_config |
Pipeline configuration |
runtime_safety.dependency_validator |
DependencyValidator, validate_pipeline_dependencies, get_dependency_status |
Dependency management |
observability.performance_tracking |
PerformanceTracker, track_operation_standalone |
Performance monitoring |
config_io.io_utils / mcp |
verify_directory_writable, redact_environment, is_sensitive_env_key |
Shared write-probe & env redaction |
API
from gnn.utils import (
# Logging
PipelineLogger,
setup_step_logging,
setup_main_logging,
log_step_start,
log_step_success,
log_step_error,
log_step_warning,
StructuredLogger,
get_pipeline_logger,
# Error handling
ErrorRecoveryManager,
PipelineErrorHandler,
generate_correlation_id,
format_error_message,
get_recovery_manager,
# Configuration
get_config_value,
set_config_value,
validate_config,
load_config,
save_config,
# Dependencies
DependencyValidator,
validate_pipeline_dependencies,
check_optional_dependencies,
get_dependency_status,
# Performance
PerformanceTracker,
performance_tracker,
get_performance_summary,
# Pipeline utilities
validate_and_convert_paths,
)
# Canonical homes outside the facade import block
from gnn.pipeline.config import get_output_dir_for_script
from gnn.utils.pipeline_orchestration.base_processor import (
BaseProcessor,
ProcessingResult,
create_processor,
)
# Setup logging for a pipeline step
logger = setup_step_logging("step_name", verbose=True)
log_step_start(logger, "Processing started")
log_step_success(logger, "Processing completed")
# Configuration management
from gnn.pipeline.config import get_pipeline_config
config = get_pipeline_config()
validate_config(config)
# Dependency validation
validate_pipeline_dependencies()
# Performance tracking
with performance_tracker.track_operation("operation_name"):
do_work()
Visual Logging Features
- Color-coded status indicators (green=success, yellow=warning, red=error)
- Progress bars and completion indicators
- Correlation ID tracking for debugging
- Structured summary tables
- Performance timing and memory tracking
MCP Tools
This module registers tools with the GNN MCP server (see mcp.py):
get_environment_infoget_file_infoget_logging_infoget_system_infovalidate_dependencies
References
Documentation
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- AGENTS.md
- README.md
- SPEC.md
- __init__.py
- arguments/AGENTS.md
- arguments/README.md
- arguments/__init__.py
- arguments/arg_definitions.py
- arguments/arg_parsing.py
- arguments/argument_catalog.py
- arguments/path_conversion.py
- arguments/pipeline_arguments.py
- arguments/pipeline_config_merge.py
- arguments/step_config.py
- config_io/AGENTS.md
- config_io/README.md
- config_io/__init__.py
- config_io/code_metrics.py
- config_io/config_loader.py
- config_io/io_utils.py
- config_io/path_utils.py
- errors/AGENTS.md
- errors/README.md
- errors/__init__.py
- errors/error_handling.py
- errors/error_recovery.py
- file_workers.py
- julia_runtime.py
- logging/AGENTS.md
- logging/README.md
- logging/SPEC.md
- logging/__init__.py
- logging/formatters.py
- logging/logging_utils.py
- logging/visual.py
- logging_utils.py
- mcp.py
- mcp/AGENTS.md
- mcp/README.md
- mcp/__init__.py
FAQ
Что делает скилл gnn-shared-utilities?
GNN shared utility functions and helper modules. Use when working with common pipeline utilities, logging helpers, file I/O wrappers, path management, or pipeline template infrastructure.
Как установить скилл gnn-shared-utilities?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gnn-shared-utilities запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…