gnn-template-init
GNN pipeline template and initialization system. Use when creating new pipeline steps, bootstrapping project structure, or understanding the thin orchestrator…
от ActiveInferenceInstitute★ 36 звёзд на GitHub
Установить gnn-template-init в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
GNN Template & Initialization (Step 0)
Purpose
Initializes the pipeline environment and provides the canonical template for creating new pipeline steps. This is the entry point for the 25-step GNN pipeline.
Key Commands
# Run template initialization
python src/gnn/0_template.py --target-dir input/gnn_files --output-dir output --verbose
# Use as part of full pipeline
python src/gnn/main.py --only-steps 0 --verbose
API
from gnn.template import (
process_template_standardized,
process_single_file,
validate_file,
generate_correlation_id,
safe_template_execution,
demonstrate_utility_patterns,
get_version_info,
)
# Process template step (used by pipeline)
result = process_template_standardized(target_dir, output_dir, logger)
# Process a single file (options dict is required)
result = process_single_file(file_path, output_dir, {"verbose": True})
# Validate a file (returns a dict: status/error/file_path)
validation = validate_file(file_path)
# Generate correlation ID for tracing
corr_id = generate_correlation_id()
Key Exports
process_template_standardized— main pipeline processing functionprocess_single_file— process individual filevalidate_file— file validationgenerate_correlation_id— unique ID for pipeline tracingsafe_template_execution— execution with error handlingget_version_info— module version metadata
Thin Orchestrator Pattern
# N_module.py — Thin orchestrator (<150 lines)
from gnn.pipeline.step_script import create_standardized_pipeline_script
run_script = create_standardized_pipeline_script(
"N_module.py", process_func, "Description"
)
- Orchestrators handle ONLY: arg parsing, logging, output dirs, delegation
- ALL domain logic lives in
src/gnn/<module>/processor.py - Exit codes: 0=success, 1=error, 2=success with warnings/skipped
MCP Tools
This module registers tools with the GNN MCP server (see mcp.py):
template.get_infotemplate.process_directorytemplate.process_file
References
- AGENTS.md — Module documentation
- README.md — Usage guide
- SPEC.md — Module specification
- step_registry.py — Canonical step contract
Documentation
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- AGENTS.md
- README.md
- SPEC.md
- __init__.py
- mcp.py
- processor.py
- utils.py
FAQ
Что делает скилл gnn-template-init?
GNN pipeline template and initialization system. Use when creating new pipeline steps, bootstrapping project structure, or understanding the thin orchestrator pattern for GNN module development.
Как установить скилл gnn-template-init?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gnn-template-init запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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…