Skip to content
Back to skills

Save Workflow

ASecurity

Design, revise, or save a reusable workflow from a description or this session's plan. Use for planning chats on the workflow page and requests to author a workflow without executing it.

  • 11,684 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 15, 2026
ai-agentsgoexpressgit

Works with

  • mcp

Security analysis

A100/100

Scanned November 19, 2026

npx -y skills add omnigent-ai/omnigent --skill save-workflow --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Save Workflow?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Save Workflow
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/omnigent-ai-save-workflow/badge)](https://www.skillsdirectory.com/skills/omnigent-ai-save-workflow)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: save-workflow
description: Design, revise, or save a reusable workflow from a description or this session's plan. Use for planning chats on the workflow page and requests to author a workflow without executing it.
---

# Author a reusable workflow

The user wants to reuse a workflow: this session's plan, or one they describe.
Use `sys_workflow_save` when the request calls for saving. If it is unavailable,
still prepare the plan with the available tools and report that it could not
be saved.

## Work from the context

Use the request, conversation, journal and relevant project context to make a
useful workflow without an interview. Choose ordinary names, step boundaries
and reversible defaults yourself, and briefly state assumptions. Ask about the
objective only if neither the request nor that context identifies what the
workflow should accomplish. Explain what you checked and the specific missing
objective. Otherwise produce a useful plan with assumptions and run inputs.
Missing credentials, run targets or execution approvals belong in the plan's
requirements; they do not prevent authoring or saving it.

If an explicit review instruction or a tool permission prevents saving,
prepare the proposal first, then cite the exact instruction or observed
denial. Do not invent an approval requirement because a workflow will later
perform external actions. When unattended, resolve questions with the
coordinating session if there is one. If a concrete blocker remains, report
what you prepared, what you checked and exactly what prevents completion;
do not wait for a person.

A request to create or save a workflow authorizes saving it, not executing its
steps. Respect an explicit request to draft, review or try it before saving.
In a workflow page's planning chat, follow its instructions: publish the
proposal in the journal, with a description (see Description) on every plan,
and let **Save plan** apply both to the existing workflow; do not create
another workflow or run its steps.

## Research the procedure while authoring

Before publishing a proposal, read the referenced SOPs, runbooks and relevant
project instructions. Follow links to procedures and skills far enough to
establish the actions, prerequisites, validation and approval boundaries that
determine the plan. This is planning work: inspect sources without carrying out
the workflow's operations.

Reuse relevant research already completed in the session. Refresh the affected
sources when changes to the request or new evidence warrant it.

Turn those findings into concrete step goals, dependencies and completion
criteria. Keep useful source references in the relevant steps' Details (see
Step descriptions) so a later run can use them without access to this planning
conversation. If an essential source is unavailable, identify that gap and
draft the parts you can support; do not hide an unknown procedure behind a
future "explore the SOP" step.

Include discovery in the saved plan only when its result must be obtained for
each run, such as selecting current PRs, finding today's failures or resolving
the source revision to import. Name it for that result. Learning the procedure
and deciding the workflow's structure belong here, before saving; they are not
steps to repeat in every run. Do not freeze today's run inputs into the plan.

## Name

Use the name the user picked: Save as workflow in the Tasks tab sends it along
with this skill. If they gave none, choose a short name for what the workflow
does ("Triage flaky tests") and include it in the result without waiting for
agreement.

## Steps

- From this session: read the journal with `sys_journal_read`, `kind: "plan"`
  for the plan's graph, then its statuses and notes. Keep the steps worth
  repeating, and drop one-off steps and tries that were abandoned.
- From a description: research the procedure as above, then draft its execution
  steps. Write the draft as the session's plan with `sys_journal_write_plan`,
  named for the workflow, so the user sees it in the Tasks tab, and don't start
  its steps.
- Drop completed authoring research when saving a session's plan. Keep discovery
  that a future run needs, expressed in terms of its inputs and result. Leave
  out a review of the plan itself: a run adds one when the user requests it.
- Write steps the agent can carry through itself: discover inputs, do the
  work, verify the result and recover from ordinary failures. Include input
  discovery, defaults and bounded recovery in step goals where needed.
  Do not add human checkpoints for routine choices, checks or continuation.
  Preserve explicit approval requirements, naming their source and when they
  apply. Do not add a generic "ask if unsure" or "confirm before proceeding"
  step; specify the input lookup, default or recovery the agent should use.
- Keep retained step IDs stable. When dropping steps, reconnect dependencies
  to preserve needed prerequisites and remove references to dropped IDs.
- List steps after their prerequisites. A dependency must supply a result or
  satisfy a real gate needed by that step; do not put every step behind generic
  exploration or a human decision that does not affect it.
- End with a single final step, such as "Report the results", that depends on
  every step that would otherwise be last, so a run ends in one place instead
  of in several steps side by side. If the plan you're saving ends in several
  steps, add one.

## Step descriptions

A step's `goal`, in `sys_journal_write_plan` and `sys_workflow_save`, is its
description. People read it on the step's card and in the Tasks tab while they
review the plan, and a run's agent works from the same text. Write it for a
person first, in plain language and short Markdown bullets, with these parts
in this order:

- **Inputs:** what the step reads and where it comes from, such as a Slack
  channel, a pull request, a file or another MCP server's tool.
- **What it does:** two to four short bullets.
- **Outputs:** what it produces, such as a PR link, a report or a file. This
  is what done means for the step.
- **Details:** the exact commands, paths, flags and checks the run needs, and
  the sources they come from. They come last, but keep them: a run has only
  the saved steps and the workflow's description.

In the first three parts, name things the way the user would and avoid jargon;
leave tool names, flags and IDs to Details. Separate the parts with blank
lines and keep each one short. For a long procedure, point to its file or
runbook in Details instead of copying it. For example, one step's `goal`:

```markdown
**Inputs:** the pull request named in the run's request, and its CI checks on GitHub.

**What it does:**
- Reads the logs of each failing check.
- Fixes the cause on the PR's branch and pushes the fix.
- Reruns a check that failed for an unrelated reason, at most twice.

**Outputs:** the PR with passing checks, and a one-line note on each fix.

**Details:**
- List the checks with `gh pr checks <number> --json name,state,link`.
- Rerun a failed job with `gh run rerun <run-id> --failed`.
- Push with `git push --force-with-lease`; never push to the default branch.
```

When you save a session's plan, rewrite goals that don't follow this form.

## Make it generic

- A detail that would differ next run comes out of the steps: the repo, the
  PR, the module or file, a ticket, a date. Name steps for the kind of work
  ("Fix the failing tests"), not this run's instance ("Fix
  test_upload_retry").
- A detail that stays the same stays, in the step's Details: commands,
  conventions, checks.
- If the user wants it exact, keep the specifics.

## Description

Say what the workflow does in a sentence or two, then how a run finds its
inputs and which ones it actually needs. For example: "Find and fix flaky
tests in the current repository. Use its test configuration unless a suite
is specified." Separate required inputs from optional overrides, and name
any authorization needed for external actions. The running agent should
look up missing details and apply documented defaults before asking.

When the workflow already has a description, as in a planning chat, keep
the user's wording and structure rather than rewriting it into the form
above. Change only what the plan makes inaccurate, add only what a run needs
that it leaves out, and publish it unchanged when it still fits.

## Save

- When asked to create or save a workflow, save it with `sys_workflow_save`
  once the steps are ready, whether they came from a run or a description.
  Do not ask for the same go-ahead again.
- If the user requested a draft or review first, show the proposal and wait
  only for that requested review. Revise it with `sys_journal_write_plan` as
  they ask. If they requested a trial, use the workflow skill to run the
  existing plan with the available context and inputs; don't plan it again.
  Save afterward if that was already requested, incorporating what the trial
  taught you.

On `name_taken`, load the existing workflow if possible. If it already matches
the requested workflow, reuse it and report its name and ID. Otherwise choose
a descriptive, distinct name and retry, reporting the chosen name; ask only
if the user required that exact name. Do not overwrite an existing workflow
or keep retrying the same collision.

After saving, reply with its name, description, relevant assumptions and where
to run it: Run a workflow in the + menu of a session's composer, or Run in the
workflow's ⋯ menu on the Workflows page in the sidebar.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.