用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/vamseeachanta/workspace-hub --skill yaml-workflow-executor-example-1-run-analysis命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | yaml-workflow-executor-example-1-run-analysis |
| description | Sub-skill of yaml-workflow-executor: Example 1: Run Analysis (+3). |
| version | 1.1.0 |
| category | development |
| type | reference |
| scripts_exempt | true |
# Direct execution
python -m workflow_executor config/workflows/analysis.yaml
# With overrides
python -m workflow_executor config/workflows/analysis.yaml \
--override filter_value=completed \
--override date_range.start=2024-06-01
# Via bash script
./scripts/run_workflow.sh config/workflows/analysis.yaml -v
from pathlib import Path
# Process multiple configs
config_dir = Path('config/workflows/')
for config_file in config_dir.glob('*.yaml'):
print(f"Processing: {config_file}")
result = execute_workflow(str(config_file))
print(f"Result: {result}")
# Load and modify config programmatically
config = WorkflowConfig.from_yaml('config/base.yaml')
config.parameters['custom_param'] = 'value'
config.input['data_path'] = 'data/custom_input.csv'
result = router.route(config)
import yaml
def generate_workflow_config(data_files: list, output_dir: str) -> str:
"""Generate workflow config for multiple data files."""
config = {
'task': 'pipeline',
'steps': []
}
for i, data_file in enumerate(data_files):
config['steps'].append({
'name': f'process_{i}',
'task': 'analyze_data',
'input': {'data_path': data_file},
'output': {'results_path': f'{output_dir}/result_{i}.json'}
})
config_path = 'config/generated_workflow.yaml'
with open(config_path, 'w') as f:
yaml.dump(config, f)
return config_path