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.
curl -O https://raw.githubusercontent.com/SilenceInsect/AIDocxWorkFlow/main/.cursor/skills/aidocx-s4-flowchart/SKILL.mdgit clone --depth 1 https://github.com/SilenceInsect/AIDocxWorkFlowWrote 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.
[](https://agentmods.dev/skills/silenceinsect/aidocxworkflow/aidocx-s4-flowchart)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 §18 模块中取值。
阶段入口
触发:/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 生成:
- Mermaid 业务流程图(Flowchart)— 主流程
- Mermaid 时序图(Sequence Diagram)— 关键系统调用链路
- 异常/错误决策树(Flowchart / 文本)— 异常路径 + 回滚
- 状态机(State Diagram)— 状态迁移 + 触发条件
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.
- 9d ago First seen · 528 lines · 217 tokens per session scan A c02cdb48049d
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.
Other skills, from other repositories
systematic-debugging
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.
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…
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…
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…
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…
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…