Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

workflow-schema-composer

БесплатноБез исполняемых скриптовНе проверен

This skill should be used when the user wants to create a new looplia workflow, generate a workflow definition file, or compose workflow steps from skill…

memorysaverот memorysaver★ 21 звезда на GitHub11 установок в других каталогах

Об этом скилле

Workflow Schema Composer

Generate complete, valid workflow definitions from skill recommendations.

Purpose

Transform the output from skill-capability-matcher into a ready-to-use looplia workflow markdown file that follows the v0.6.2 schema.

Process

Step 1: Receive Inputs

From skill-capability-matcher output:

  • Skill sequence with step IDs
  • Mission descriptions for each step
  • Data flow dependencies
  • Original user requirements
  • Explicit name (if --name flag was provided) - use this exact name for the workflow

Step 1.5: Parse User Preferences from Enriched Prompt (v0.6.4)

CRITICAL: User preferences from wizard answers MUST be incorporated into step missions.

When the enriched prompt contains "User clarifications: Q: ... A: ..." sections, extract each preference:

Example enriched prompt:

/build search hackernews for AI news. User clarifications: Q: Which social media platforms? A: twitter, linkedin. Q: How many articles? A: top5. Q: Focus areas? A: llm, adoption. Q: Output format? A: posts

Extract as structured preferences:

Question Pattern Preference Key Value Inject Into
"platforms" / "social media" PLATFORMS twitter, linkedin Output/social step mission
"how many" / "articles" / "count" COUNT 5 Search/filter step mission
"focus" / "areas" / "topics" FOCUS llm, adoption Search and analysis missions
"format" / "output" / "include" FORMAT posts Final output step mission

Preference Injection Rules:

  1. COUNT preferences → Add to search/fetch step: "Find top 5 articles..."
  2. FOCUS preferences → Add to search and analysis: "...focusing on LLM and adoption trends"
  3. PLATFORM preferences → Add to output step: "...optimized for twitter and linkedin"
  4. FORMAT preferences → Add to output step: "Create posts (not reports)..."

Step 2: Design Steps

For each recommended skill:

- id: {suggestedStepId}
  skill: {skill-name}
  mission: |
    {mission description from matcher}
  needs: [{dependencies}]
  input: {input path(s)}
  output: {output path}
  model: {optional model override}
  validate:
    required_fields: [{fields}]

Step 3: Resolve Dependencies

Use dataFlow from matcher:

  • Steps with no dependencies: needs: is omitted
  • Dependent steps: list all required step IDs in needs:
  • Final step: add final: true

Step 4: Design Input/Output Paths

Use variable substitution:

  • ${{ sandbox }}/inputs/content.md - Initial input (for workflows requiring input)
  • ${{ sandbox }}/outputs/{step-id}.json - Step outputs
  • ${{ steps.{id}.output }} - Reference previous step output

Input-Less Capable Skills (v0.6.3)

These skills can operate WITHOUT an input field - they fetch/generate data autonomously:

Skill Capability
search Web search, API queries, autonomous data fetching

When a workflow's first step uses an input-less capable skill:

  1. OMIT the input: field entirely from that step
  2. The mission description drives the skill's behavior
  3. Subsequent steps reference the output: ${{ steps.{id}.output }}

Example input-less first step:

- id: fetch-data
  skill: browser-research
  mission: |
    Search the web for recent technology trends.
    Extract titles, URLs, and key details.
  output: ${{ sandbox }}/outputs/data.json
  # NO input field - browser-research operates autonomously

Step 5: Suggest Validation

Based on skill output type:

  • Analysis skills: required_fields: [contentId, headline, keyThemes]
  • Idea skills: required_fields: [contentId, hooks, angles]
  • Assembly skills: required_fields: [contentId, suggestedOutline]

Step 6: Compose Frontmatter (v0.7.0)

CRITICAL: If --name flag was provided, use that exact name. Do not derive or modify it.

---
name: {explicit-name OR derived-from-description}
version: 1.0.0
description: {user's original description, cleaned up}

# v0.7.0: Explicit skills declaration for selective plugin loading
skills:
  - {skill-name-1}
  - {skill-name-2}
  - ...

steps:
  - id: ...
---

Skills Declaration (v0.7.0): Extract unique skill names from all step recommendations and list them in the skills: field. This enables selective plugin loading at runtime - only required skills are loaded.

Naming rules:

  1. If --name article-summary was provided → use article-summary exactly
  2. If no --name → derive from description (e.g., "analyze videos" → "video-analyzer")
  3. Always use kebab-case for names
  4. Always include skills: field with all unique skills from steps

Step 7: Generate Markdown Body

Add usage documentation:

For workflows requiring input:

# {Workflow Name}

{Brief description}

## Usage

```bash
looplia run {workflow-name} --file <content.md>

**For input-less workflows (v0.6.3):**
```markdown
# {Workflow Nam
Полный SKILL.md на GitHub

Установить workflow-schema-composer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

SCHEMA.mdtemplates/workflow.md.template

FAQ

Что делает скилл workflow-schema-composer?

This skill should be used when the user wants to create a new looplia workflow, generate a workflow definition file, or compose workflow steps from skill recommendations. Use when someone says "create a looplia workflow", "generate workflow.md", "compose workflow steps", "build me an automation pipeline", or "/build" (final step). Final step in looplia workflow building: transforms skill recommendations into valid v0.7.0 workflow YAML/Markdown files. Each step uses skill: + mission: syntax, following the one workflow step → one skill-executor → multiple skills architecture. v0.7.0: Generates explicit `skills:` declaration for selective plugin loading. v0.6.3: Supports input-less workflows using input-less capable skills (e.g., search).

Как установить скилл workflow-schema-composer?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл workflow-schema-composer запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить workflow-schema-composer с