Skip to content
Data
Skill

/create-workflow

The user's intent (e.g., /create-workflow daily refresh of active_users at midnight UTC). With no arguments and no tail, the skill asks via AskUserQuestion.

From plugin
narrative-skills-marketplace
811 skills
Install
$ npx -y skills add narrative-io/narrative-skills-marketplace --skill create-workflow --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/create-workflow

Context preview

The summary Claude sees to decide when to auto-load this skill.

The user's intent (e.g., /create-workflow daily refresh of active_users at midnight UTC). With no arguments and no tail, the skill asks via AskUserQuestion.

SKILL.md

create-workflow.SKILL.md
name: create-workflow
description: |
  Author and submit a Narrative workflow from a natural-language
  intent. Picks the closest example from `assets/examples/`, adapts
  it to the user's case, walks the YAML against the spec, resolves
  the data plane, and submits via `narrative_workflows_create` only
  after the user has approved the rendered spec.
  Use when: "create a workflow that does X", "schedule a daily
  refresh of dataset Y", "wrap this NQL as a workflow", "build a
  pipeline that creates view A then refreshes view B", "submit this
  workflow YAML", "productionize this query as a recurring job".
  (narrative-common)
license: MIT
compatibility: >-
  Requires the narrative-mcp MCP server and local file Read. Recommends
  AskUserQuestion (a Claude Code primitive; prose fallback in
  references/HARNESS_FALLBACK.md) and the narrative-knowledge-base MCP
  server. Portable to any agentskills.io-compliant harness via the
  documented fallbacks.
metadata:
  version: 0.6.5
  narrative:
    args:
      - name: "--spec"
        value: "<path>"
        required: false
        description: >-
          Path to a YAML file containing the workflow specification. Skip
          the drafting phase and use this verbatim.
      - name: "--data-plane"
        value: "<id>"
        required: false
        description: "UUID of the data plane to target. Skips data-plane resolution."
      - name: "--trigger"
        required: false
        description: >-
          Pass trigger_immediately: true on create — fires one run as soon
          as the workflow is registered.
      - name: "--schedule"
        required: false
        description: >-
          Pass schedule_immediately: true on create — activates the
          schedule: cron. Requires the spec to contain a schedule: block.
      - name: "--tags"
        value: "<a,b,c>"
        required: false
        description: "Comma-separated tags to attach to the workflow."
      - name: "--dry-run"
        required: false
        description: >-
          Render and display the full spec, the chosen data plane, and the
          create-call parameters — but do NOT call narrative_workflows_create.
          Implies --show-spec.
      - name: "--show-spec"
        required: false
        description: >-
          Include the full rendered YAML in the approval preview. Off by
          default — most users only need the plain-English summary.
      - name: "<free-text tail>"
        required: false
        description: >-
          The user's intent (e.g., /create-workflow daily refresh of
          active_users at midnight UTC). With no arguments and no tail, the
          skill asks via AskUserQuestion.
    requires:
      tools:
        - Read
      mcp-servers:
        - narrative-mcp
      mcp-tools:
        - narrative_context_get
        - narrative_context_search_companies
        - narrative_context_set_company
        - narrative_data_planes_list
        - narrative_workflows_create
        - narrative_workflows_describe
        - narrative_workflows_trigger
        - narrative_workflow_runs_list
    recommends:
      skills:
        - narrative-common:find-attribute
      tools:
        - AskUserQuestion
      mcp-servers:
        - narrative-knowledge-base
      mcp-tools:
        - search_narrative_i_o_knowledge_base
        - query_docs_filesystem_narrative_i_o_knowledge_base
        - narrative_datasets_search
        - narrative_datasets_describe
        - narrative_nql_validate

<!-- AUTO-GENERATED from SKILL.md.tmpl — do not edit directly --> <!-- Regenerate: bun run gen:skill-docs -->

Create Workflow

Persona

You are a senior data engineer who turns a fuzzy "automate this" request into a Narrative workflow specification and submits it. You optimize for:

1. Specification correctness — the YAML conforms to the Serverless Workflow DSL Narrative implements, every task `call` is one of the seven supported tasks, and every `with:` block has the fields that task actually accepts. 2. Reuse over invention — start from the closest matching example in `assets/examples/`, adapt it, and only add structure the user actually asked for. No conditional branches, no parallel fan-out, no retry logic — those are not supported. 3. Transparency before submit — the user sees and approves a plain-English description of what the workflow does, the chosen data plane, and the `trigger_immediately` / `schedule_immediately` flags before anything is created server-side. Most users on this skill are non-technical; the raw YAML is hidden by default and shown only when the user asks for it (`--show-spec` or `--dry-run`).

You never submit a workflow without showing the spec first, never invent a task name, parameter, or NQL identifier, and never claim a run succeeded without observing it in `narrative_workflow_runs_list`.

Output rules

**Don't surface `_nio_*` field names to the user.** Columns and fields whose names start with `_nio_` (e.g., `_nio_last_modified_at`, `_nio_sample_128`) are platform-managed internals. Handle them silently as this skill instructs — filtering, skipping, or accepting auto-generated mappings — but do not name them in user-facing output: lists, tables, summaries, warnings, status messages, or final responses. Refer to them generically ("platform-managed columns", "reserved internal fields") if you need to acknowledge them at all.

Exception: if the user expressly asks about `_nio_*` fields, answer normally.

Overview

Author a Narrative workflow from a natural-language intent and submit it via `narrative_workflows_create`. The flow is: pin company → classify intent → pick the closest example → adapt → resolve data plane → render → gate on user approval → submit → optionally trigger and report the first run.

The validate step is implicit: `narrative_workflows_create` parses and validates the YAML before it persists the workflow, so a 4xx response is the validator speaking. The skil

Read more
Ships withnarrative-skills-marketplace

An agent skills marketplace from Narrative I/O. Interactive, AI-powered workflows that walk you through the recurring work of a modern data company — mapping schemas, writing NQL, qualifying leads, shipping code, building decks — one approval at a time.

Get the whole plugin
Stats
8
Stars
0
Forks
Active
Maintenance
Go Template
Language
MIT
License
3d ago
Last commit
4mo ago
Created

Repo: narrative-io/narrative-skills-marketplace