Agent Skillsleamsigc/ShortsGenerator › workflow-conventions

workflow-conventions

GitHub

定义项目工作流的结构规范、部署目标(本地/Modal)、环境变量管理及开发流程。适用于创建、编辑或调试工作流时的标准化指导。

skills/workflow-conventions/SKILL.md leamsigc/ShortsGenerator

Trigger Scenarios

创建新工作流目录 配置 Modal 部署模式 管理环境变量加载 编写工作流计划

Install

npx skills add leamsigc/ShortsGenerator --skill workflow-conventions -g -y
More Options

Use without installing

npx skills use leamsigc/ShortsGenerator@workflow-conventions

指定 Agent (Claude Code)

npx skills add leamsigc/ShortsGenerator --skill workflow-conventions -a claude-code -g -y

安装 repo 全部 skill

npx skills add leamsigc/ShortsGenerator --all -g -y

预览 repo 内 skill

npx skills add leamsigc/ShortsGenerator --list

SKILL.md

Frontmatter
{
    "name": "workflow-conventions",
    "description": "Workflow structure, environment variable patterns, planning rules, and development flow for this project. Relevant when creating, editing, or debugging workflows.",
    "user-invocable": false
}

Workflow Structure

Every workflow directory must follow this layout:

workflows/
  {workflow-name}/
    README.md          # What it does, inputs/outputs, how to run
    main.py            # Entry point
    .env.example       # Workflow-specific env var overrides (optional)
    tests/             # Workflow-specific tests (optional for simple scripts)

Dependencies are managed in the root requirements.txt, not per-workflow.

Deployment Targets

Every workflow must be runnable locally first. Modal is an optional additional deployment layer. Specify the target in the plan and CATALOG.md.

Target How to Run Notes
Local python workflows/{name}/main.py Always supported — the baseline for every workflow
Local + Modal Local run + modal deploy workflows/{name}/main.py Adds Modal deployment on top of local. Use for scheduled, GPU, or API-deployed functions

Modal Modes

When a workflow targets Modal, it must also declare its Modal mode(s) in the plan and CATALOG.md. A single Modal function cannot be both a web endpoint and a scheduled/manual function — use separate entry points when combining modes.

Mode Entry Point Trigger
Webhook run_modal() with @modal.fastapi_endpoint HTTP POST with bearer token
Scheduled run_scheduled() with schedule=modal.Cron(...) Automatic cron + Modal dashboard "Run now"
Manual run_manual() as plain @app.function Modal dashboard "Run now" or modal run CLI

Modes can be combined (e.g., webhook + scheduled). All entry points share the same run() core logic and image.

Environment Variables

Env vars use a two-tier loading system:

  1. Root .env (project root) — loaded first. Shared vars across workflows.
  2. Workflow .env (workflows/{name}/.env) — loaded second with override=True. Workflow-specific overrides.

Planning

  • Save plans to .agent/plans/{workflow-name}.md
  • Plans are independent — no sequencing, no cross-workflow dependencies
  • Each plan must include:
    • What the workflow does (inputs, outputs, side effects)
    • Dependencies and services needed
    • Deployment target (Local, or Local + Modal)
    • Validation steps to verify it works
    • Complexity indicator:
      • Simple - Single-pass executable, low risk
      • Medium - May need iteration, some complexity
      • Complex - Break into sub-tasks before executing
  • Use .agent/plans/_template.md as a starting point

Development Flow

  1. Scaffold — Run /new-workflow to create the directory and plan template
  2. Plan — Fill in the plan at .agent/plans/{workflow-name}.md
  3. Build — Run /build to execute the plan
  4. Validate — Test the workflow runs correctly
  5. Ship — Deploy to target (Modal, cron, etc.)

Progress Tracking

See CATALOG.md for the status of all workflows. Updated when a workflow is completed.

Version History

  • 7b83166 Current 2026-08-29 02:31

Same Skill Collection

skills/facebook-research-analyze/SKILL.md
skills/facebook-research-engage/SKILL.md
skills/facebook-research-report/SKILL.md
skills/facebook-research-scrape/SKILL.md
skills/facebook-research-setup/SKILL.md
skills/facebook-research/facebook-research-template/SKILL.md
skills/ig-research-analyze/SKILL.md
skills/ig-research-report/SKILL.md
skills/ig-research-scrape/SKILL.md
skills/ig-research-setup/SKILL.md
skills/ig-research-transcribe/SKILL.md
skills/ig-research/SKILL.md
skills/list-workflows/SKILL.md
skills/new-workflow/SKILL.md
skills/onboard/SKILL.md
skills/reddit-research-generate/SKILL.md
skills/reddit-research-scrape/SKILL.md
skills/reddit-research/SKILL.md
skills/short-generator/SKILL.md
skills/twitter-research-analyze/SKILL.md
skills/twitter-research-report/SKILL.md
skills/twitter-research-scrape/SKILL.md
skills/twitter-research-setup/SKILL.md
skills/twitter-research-topics/SKILL.md
skills/facebook-research-grow/SKILL.md
skills/facebook-research/SKILL.md
skills/twitter-research/SKILL.md

Metadata

Files
0
Version
7b83166
Hash
c96ca293
Indexed
2026-08-29 02:31

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-30 10:48
浙ICP备14020137号-1 $Carte des visiteurs$