AIDocxWorkFlow: Skill for Claude Code

.cursor/skills/aidocx-s4-flowchart/SKILL.md

aidocx-s4-flowchart is a skill for Claude Code, Cursor from SilenceInsect/AIDocxWorkFlow. It costs 217 tokens per session (7,786 once invoked), scanned A, original, MIT.

A workflow stage that creates business flowcharts, interaction timelines, error decision trees, and risk lists from a project backlog and screen prototypes. A backlog is a structured list of planned work, while a prototype is an early version of the user interface.

In plain words
What is it for?
Use it to generate Mermaid flowcharts and sequence diagrams for each project area, document exception paths, and assign unique identifiers to risks. It checks required project files before running and writes a failure report when essential inputs are missing.
Why use it?
It turns requirements and screen designs into diagrams that expose normal flows, failures, and risks before testing. These outputs can also provide structured input for later test planning and review.

Skill for Claude CodeCursor

Written for Claude Code and Cursor: disable-model-invocation in frontmatter, but also installed under .cursor/. Also seen: mentions Claude Code; mentions Codex; mentions Cursor.

This is SilenceInsect/AIDocxWorkFlow's own configuration. It tells Claude Code and Cursor how to work on AIDocxWorkFlow itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything AIDocxWorkFlow configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is ⚠️ **模块定义见 [`.cursor/MODULES.md`](../../MODULES.md)(项目级唯一真相源)**。.

Reuse

Borrowing it

Nothing to install: this file belongs to SilenceInsect/AIDocxWorkFlow. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/SilenceInsect/AIDocxWorkFlow/main/.cursor/skills/aidocx-s4-flowchart/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/SilenceInsect/AIDocxWorkFlow

Made for: Claude Code, Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for aidocx-s4-flowchart

README.md
[![agentmods](https://agentmods.dev/badge/skills/silenceinsect/aidocxworkflow/aidocx-s4-flowchart/github.svg)](https://agentmods.dev/skills/silenceinsect/aidocxworkflow/aidocx-s4-flowchart)
Your own site
<a href="https://agentmods.dev/skills/silenceinsect/aidocxworkflow/aidocx-s4-flowchart"><img src="https://agentmods.dev/badge/skills/silenceinsect/aidocxworkflow/aidocx-s4-flowchart/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for aidocx-s4-flowchart

Your own site · 80×15
<a href="https://agentmods.dev/skills/silenceinsect/aidocxworkflow/aidocx-s4-flowchart"><img src="https://agentmods.dev/badge/skills/silenceinsect/aidocxworkflow/aidocx-s4-flowchart.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 217 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,786 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00217 $0.07786
Opus 5 $0.00109 $0.03893
Sonnet 5 $0.00043 $0.01557
Haiku 4.5 $0.00022 $0.00779

Measured 9d ago against content hash c02cdb48049d, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

aidocx-s4-flowchart scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/skills/aidocx-s4-flowchart/SKILL.md · 528 lines

How it starts

The opening of the file, as written. The whole thing — 528 lines — stays where its author put it; the contents beside it link to each section on GitHub.

AIDocxWorkFlow S4 — 流程图导出

独立阶段:可单独调用。上游材料(S2 backlog + S3 prototype)审查合格后开始,失败写失败报告。

⚠️ 模块定义见 .cursor/MODULES.md(项目级唯一真相源)。 本文件不重写 8 模块表。所有 epic.module / 风险点归属必须从 MODULES.md §1 8 模块中取值。


阶段入口

触发/aidocx-s4-flowchart 或粘贴 S2 backlog + S3 prototype

前置材料(必须全部满足,否则写 fail_report_S4.md 停止)

材料 路径 审查要求 缺失时
S2 backlog.md workflow_assets/<req_name>/<version>/「S2 需求拆解」/backlog.md 存在且含 Epic/Story 必阻断
S2 backlog.json 同上目录 backlog.json 存在 + summary.epic_count ≥ 1 + 每个 Epic 有 ≥ 1 个 Story + epic.module 必须从 8 模块中取值 必阻断
S1.5 exit_permission.json workflow_assets/<req_name>/<version>/「S1 需求评审」/exit_permission.json can_proceed_to_s2 == true(防御性核查:避免 S4 跑在 S2 之前) 警告,不阻断
S3 prototype.md(必读 workflow_assets/<req_name>/<version>/「S3 原型导出」/prototype.md 存在则消费 PAGE-XXX 页面 ID 作为 S4 流程节点;不存在则只从 S2 Story 推导 警告,不阻断

材料缺失时:生成 fail_report_S4.md,停止 S4。


§1.4 LLM 必读材料(阶段前置)

生成流程图前,必须先 Read 以下材料。禁止凭印象直接生成。

# 材料 路径 必读原因
1 8 模块总表 .cursor/MODULES.md(§1 总表) Epic 的模块前缀决定该 Epic 的主测试域
2 模块边界区分 .cursor/MODULES.md(§4 各模块 O_boundary.md) 异常决策树的叶子节点归属模块;防止把 BIZ 异常归成 UI
3 S2 backlog workflow_assets/<req_name>/<version>/「S2 需求拆解」/backlog.md Story/OBJ 是流程图生成的核心输入
4 S3 prototype workflow_assets/<req_name>/<version>/「S3 原型导出」/prototype.md 页面原型是流程节点的来源;S4 是 S5 EXCEPTION 类型 TP 的核心输入

§5 一致性检查(SKILL ↔ Rule 自动对齐)

触发时机:本节读取后、正式执行前。仅执行一次(同一次对话中多次触发本阶段,不重复检查)。

检查类型:A = 必读材料对齐 / B = 输出路径对齐 / C = 字段名对齐 / D = 模块枚举对齐

from ai_workflow.consistency_check import run_consistency_check

result = run_consistency_check(stage="s4")
if not result["passed"]:
    print(f"[一致性检查] 发现 {len(result['issues'])} 个问题(见日志)")

检查结果不阻断阶段执行,仅输出到日志供人工参考。


核心任务(4 类产出,缺一不可)

每个 Epic 生成:

  1. Mermaid 业务流程图(Flowchart)— 主流程
  2. Mermaid 时序图(Sequence Diagram)— 关键系统调用链路
  3. 异常/错误决策树(Flowchart / 文本)— 异常路径 + 回滚
  4. 状态机(State Diagram)— 状态迁移 + 触发条件

Read the full file on GitHub · 528 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 528 lines · 217 tokens per session scan A c02cdb48049d

Subscribe to this mod's changes

aidocx-s4-flowchart is a skill published in the GitHub repository SilenceInsect/AIDocxWorkFlow (2 stars, last pushed 1mo ago), licensed MIT. It adds 217 tokens to every session and 7,786 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens