Agent Skillsleamsigc/ShortsGenerator › new-workflow

new-workflow

GitHub

用于脚手架化新建独立工作流,自动收集配置并生成目录结构、代码模板、环境变量示例及计划文件。

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

Trigger Scenarios

用户需要创建新的工作流项目 初始化工作流目录和基础模板

Install

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

Use without installing

npx skills use leamsigc/ShortsGenerator@new-workflow

指定 Agent (Claude Code)

npx skills add leamsigc/ShortsGenerator --skill new-workflow -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": "new-workflow",
    "description": "Scaffold a new standalone workflow with directory structure and plan template",
    "argument-hint": "<workflow-name>",
    "disable-model-invocation": true
}

Scaffold a new standalone workflow.

Input

The user may provide a workflow name as the argument: $ARGUMENTS

Before doing anything else, you MUST gather ALL of the following inputs. Use the AskUserQuestion tool to ask for every missing piece of information. If the user provided a workflow name as the argument, you still MUST ask the remaining questions — the name alone is NOT enough to proceed.

Required inputs (ask for ALL that are not yet known):

  1. Workflow name — kebab-case, e.g., pdf-summarizer (skip only if provided as $ARGUMENTS)
  2. One-line description — what the workflow does in one sentence
  3. Detailed description or specification — can be left blank, but you must explicitly offer the option
  4. Deploy target — Local only, or Local + Modal
  5. Modal mode(s) — ask this ONLY if deploy target includes Modal: Webhook, Scheduled, Manual, or a combination (e.g., Webhook + Scheduled)

Do NOT skip any of these. Do NOT proceed to the Steps section until you have answers for all five inputs (or four if Local-only, since Modal mode does not apply).

Steps

  1. Validate the name

    • Must be kebab-case (lowercase, hyphens only)
    • Must not already exist in workflows/
  2. Create the workflow directory at workflows/$ARGUMENTS/

  3. Scaffold files:

    workflows/$ARGUMENTS/README.md

    # {workflow-name}
    
    {description}
    
    ## Usage
    
    ```bash
    python workflows/{workflow-name}/main.py
    

    Environment Variables

    This workflow loads env vars from the root .env first, then from workflows/{workflow-name}/.env (overrides).

    See the root .env.example for shared vars. Copy this workflow's .env.example to .env only if you need workflow-specific overrides.

    Deploy Target

    {target}

    
    **`workflows/$ARGUMENTS/main.py`**
    - If Local only: use the local-only template
    - If Modal webhook mode: use the webhook template
    - If Modal scheduled/manual mode (no webhook): use the scheduled template
    - If Modal webhook + scheduled: use the combined template
    - Include a docstring explaining what the workflow does
    
    **`workflows/$ARGUMENTS/.env.example`**
    - Only include workflow-specific vars that are NOT already in the root `.env.example`
    - If all vars are covered by the root `.env.example`, add a comment-only file explaining that
    - Always include a comment header explaining the override behavior
    
    
  4. Add new dependencies to root requirements.txt

    • If the workflow needs packages not already in the root requirements.txt, add them
    • Do NOT create a per-workflow requirements.txt
  5. Create plan file at .agent/plans/$ARGUMENTS.md

    • Use the template from .agent/plans/_template.md
    • Pre-fill the workflow name, description, and deploy target
    • Leave implementation details for the user to fill in
  6. Update CATALOG.md

    • Add a new row to the Workflows table
    • Status: Planned
    • Fill in complexity, deploy target, Modal mode (or N/A if local-only), and description
    • Set Args to TBD (will be filled in once the workflow is implemented)
  7. Report what was created

    • List all files created
    • Note any new dependencies added to root requirements.txt
    • Remind the user to fill in the plan before running /build

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/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/workflow-conventions/SKILL.md
skills/facebook-research-grow/SKILL.md
skills/facebook-research/SKILL.md
skills/twitter-research/SKILL.md

Metadata

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

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