← ClaudeAtlas

wise-workflow-removelisted

Delete a user-authored workflow definition from `${CLAUDE_PLUGIN_DATA}/workflows/definitions/` — handles both layouts (`<name>/workflow.yaml` folder form AND legacy `<name>.yaml` flat form). Refuses to touch bundled workflows — they ship with the plugin and are replaced by a reinstall, not a remove. Invoked as `/wise-workflow-remove` (bare alias) or `/wise:wise-workflow-remove` (canonical). Use when the user says "remove workflow <name>", "delete workflow <name>", "drop my custom workflow", or types `/wise-workflow-remove`.
e1024kb/wise-claude · ★ 1 · AI & Automation · score 80
Install: claude install-skill e1024kb/wise-claude
# /wise-workflow-remove — delete a user workflow ## Why this skill exists `/wise-workflow-create` writes a YAML to `${CLAUDE_PLUGIN_DATA}/workflows/definitions/`. This skill is the matching removal path. Bundled workflows are immutable from the plugin's perspective (they live in the read-only plugin install directory) — this skill refuses to delete them rather than silently failing or producing confusing errors. ## Arguments Read `$ARGUMENTS`. The first whitespace-separated token is the `name` — the kebab-case workflow name (required). Matches the filename without the `.yaml` extension. When `$ARGUMENTS` is empty, stop with a clear error pointing at `/wise-workflow-list` to discover available workflows. ## Procedure ### 1. Parse and validate Read `name` from `$ARGUMENTS`. Reject anything that doesn't match `^[a-z][a-z0-9]*(-[a-z0-9]+)*$` — the same kebab-case shape `/wise-workflow-create` enforces; anything else is not a filename we would have written. ### 2. Refuse bundled Check both layouts under the bundled root — a bundled workflow in either form is off-limits: ```bash test -f "${CLAUDE_PLUGIN_ROOT}/workflows/${name}/workflow.yaml" \ || test -f "${CLAUDE_PLUGIN_ROOT}/workflows/${name}.yaml" ``` If either exits 0, the target is a bundled workflow. Stop with: ``` Refusing to delete bundled workflow <name>. Bundled workflows ship with the wise plugin and are replaced by a reinstall. If you want to override this workflow locally, create a user version with the