Skip to content
Back to skills

Flow Runtime Handler Skill

ASecurity

Operate ShareCRM approval flow, business flow, and stage accelerator runtime tasks. Use when users need to approve, reject, complete, reassign, remind, send back, retrieve, cancel, suspend, edit task data, advance stage, check progress, or process pending workflow tasks. Always require human confirmation before write or irreversible operations and append a Run Ledger record after each attempted write.

  • 3 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 27, 2026
businesspythongobashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 27, 2026

npx -y skills add fsxiaoke/sharecrm-cli-skills --skill flow-runtime-handler-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Flow Runtime Handler Skill?

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

Security grade badge for Flow Runtime Handler Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fsxiaoke-flow-runtime-handler-skill/badge)](https://www.skillsdirectory.com/skills/fsxiaoke-flow-runtime-handler-skill)

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: "flow-runtime-handler-skill"
description: "Operate ShareCRM approval flow, business flow, and stage accelerator runtime tasks. Use when users need to approve, reject, complete, reassign, remind, send back, retrieve, cancel, suspend, edit task data, advance stage, check progress, or process pending workflow tasks. Always require human confirmation before write or irreversible operations and append a Run Ledger record after each attempted write."
apiName: "flow-runtime-handler-skill"
---
# Flow Runtime Handler

## Purpose

Safely operate workflow runtime tasks through ShareCRM CLI:

- Approval flow: approve, reject, reassign, remind, add approver, send back, retrieve, cancel, reply, carbon copy, check detail/progress.
- BPM/business flow: complete, update and complete, reassign, remind, cancel, suspend, edit, trigger, check detail/log.
- Stage accelerator: fetch stage instance and advance stage.

This is a high-risk writer skill. Treat every runtime operation as a state-changing action unless it is an explicit query/detail command.

## Contract

| Item | Rule |
| --- | --- |
| Role | writer |
| Risk | high |
| Preconditions | Target identifier and operation are known, or query first to select a target. |
| Human confirmation | Mandatory before every write, reassignment, cancellation, rollback, or stage transition. |
| Retry | Retry only after correcting parameters; stop on permission errors or status conflicts. |

Do not hardcode tenant, environment, user, URL, token, credential, or project-specific IDs. Read credentials from the approved local credential mechanism when a command requires authentication.

## Minimal Input

```yaml
taskType: approval | bpm | stage
target:
  taskId: string
  instanceId: string
  entityId: string
  objectId: string
action: approve | reject | complete | change_handler | remind | add_approver | send_back | retrieve | cancel | suspend | edit | update_and_complete | move_stage | reply | carbon_copy | query_detail | query_progress
payload:
  opinion: string
  handlerIds: [integer]
  data: object
  stageId: string
  previousTaskId: string
```

## Workflow

1. Classify the flow type: `approval`, `bpm`, or `stage`.
2. If the target is missing or ambiguous, query pending tasks/detail first and let the user select one.
3. Map the user's intent to one action and command using `references/runtime-commands.md`.
4. Validate required parameters with the command reference; run CLI `--help` when uncertain.
5. Before any write, state the exact target, action, side effect, and intended command shape; wait for explicit confirmation.
6. Execute one target at a time. For multiple tasks, ask/confirm per task unless the user explicitly approves a bounded batch.
7. Verify by re-querying pending tasks, runtime detail, instance detail, progress, or audit log.
8. Append a compact Run Ledger JSONL entry after every attempted write, including failed or blocked attempts.

## Safety Rules

- Never infer a destructive action from vague intent; clarify first.
- Stop on insufficient permission, ambiguous target, missing required parameter, or task status conflict.
- Prefer `--help` over guessing command flags.
- Keep sensitive payloads out of chat and ledgers; store only references, summaries, and hashes.
- For edit/update operations, show the field-level change summary before confirmation.

## Runtime State

```text
planned -> ready -> running -> succeeded
                         -> failed
                         -> blocked
                         -> skipped
```

Use `blocked` for missing identifiers/parameters/permissions. Use `skipped` when the user cancels or declines confirmation.

## Run Ledger

After every attempted write, append one JSON object to `{workspace}/tempfile/flow-runtime-ledger.jsonl`.

Use the same `run_id` across retries and fallback operations for the same user goal. Increment `attempts` across repeated attempts. Store large or sensitive input/output payloads as artifacts and reference them from `input_ref` or `output_ref`.

Preferred helper:

```bash
python3 <skill_dir>/scripts/append_ledger.py --workspace <WORKSPACE_DIR> --entry '<JSON_OBJECT>'
```

Required JSON fields:

```yaml
run_id: generated id
goal: original user goal
status: succeeded | failed | blocked | skipped
target: taskId/instanceId/objectId summary
command: sharecrm <module> runtime <operation>
confirmation: approved | declined | not_required
started_at: timestamp
ended_at: timestamp
attempts: number
errors: []
```

Optional fields: `input_ref`, `output_ref`, `output_summary`, `artifact_hash`, and `operator`.

## Command Reference

Read `references/runtime-commands.md` only when a concrete operation or command mapping is needed.

Files in this skill

  • SKILL.md4.6 KB
  • agents/openai.yaml225 B
  • references/runtime-commands.md5.6 KB
  • scripts/append_ledger.py3.1 KB

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 business →

Comments

Loading comments…

Newsletter

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