STAGE_S8_SELF_ITERATION

STAGE_S8_SELF_ITERATION is a cursor rule for Cursor from SilenceInsect/AIDocxWorkFlow. It costs 19 tokens per session (5,353 once invoked), scanned A, original, MIT.

A quality-review and self-improvement procedure for an eight-stage document workflow. It analyzes earlier test cases, business flows, review reports, and feedback logs before producing improvement work.

In plain words
What is it for?
Use it after the preceding review stage to trace defects, analyze root causes, check test coverage, and improve the workflow.
Why use it?
It prevents self-review from relying on memory or incomplete evidence, and ensures missing required materials stop the process.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/silenceinsect/aidocxworkflow/stage_s8_self_iteration
Clone the repo
git clone --depth 1 https://github.com/SilenceInsect/AIDocxWorkFlow

Made for: 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 STAGE_S8_SELF_ITERATION

README.md
[![agentmods](https://agentmods.dev/badge/rules/silenceinsect/aidocxworkflow/stage_s8_self_iteration.svg)](https://agentmods.dev/rules/silenceinsect/aidocxworkflow/stage_s8_self_iteration)
Your own site
<a href="https://agentmods.dev/rules/silenceinsect/aidocxworkflow/stage_s8_self_iteration"><img src="https://agentmods.dev/badge/rules/silenceinsect/aidocxworkflow/stage_s8_self_iteration.svg" alt="Measured on agentmods" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,353 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00019 $0.05353
Opus 5 $0.00010 $0.02677
Sonnet 5 $0.00004 $0.01071
Haiku 4.5 $0.00002 $0.00535

Measured 3d ago against content hash 471dae6586f6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

STAGE_S8_SELF_ITERATION 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 3d 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/rules/STAGE_S8_SELF_ITERATION.mdc · 417 lines

How it starts

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

AIDocxWorkFlow S8 — 自迭代

独立阶段:可以单独调用。上游材料(S7 review_report.json / review_snapshot.json)审查合格后开始,失败写失败报告。


阶段入口

触发方式/aidocx-s8-self-iteration 或粘贴 S7 审查报告

前置材料(必须全部满足)

材料 来源 审查要求
S7 审查报告 workflow_assets/<req_name>/<version>/「S6 测试用例生成」/review_report.json 必须存在
S5 test_points.json(必须读取 workflow_assets/<req_name>/<version>/「S5 测试点生成」/test_points.json 用于 S4 覆盖率分析
S6 test_cases.json workflow_assets/<req_name>/<version>/「S6 测试用例生成」/test_cases.json 用于 S6 层缺陷追溯
S4 business_flow.md(必须读取 workflow_assets/<req_name>/<version>/「S4 流程图导出」/business_flow.md 用于风险点提取
执行反馈日志(可选) workflow_assets/feedback_logs/ 存在则作为深度分析数据

前置材料缺失时:生成失败报告,停止 S8。


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

开始根因分析前,必须先读取以下全部材料。禁止凭印象直接生成。

# 材料 路径 读取原因
1 8 模块总表 .cursor/MODULES.md(§1 总表) 缺陷根因最终落到模块 × 类型的组合;缺陷模式按模块统计
2 模块边界区分 .cursor/MODULES.md(§4 各模块 O_boundary.md) 判断 S5 TP 模块归属是否正确;根因分析的起点
3 S7 review_report(必须读取 workflow_assets/<req_name>/<version>/「S6 测试用例生成」/review_report.json 所有审查结论的来源;按 reviewer_a / reviewer_b / recommendations 结构追溯
4 S5 test_points(必须读取 workflow_assets/<req_name>/<version>/「S5 测试点生成」/test_points.json S5 层缺陷追溯的起点
5 S4 business_flow(必须读取 workflow_assets/<req_name>/<version>/「S4 流程图导出」/business_flow.md 异常决策树和风险点清单是 S5 缺 TP 的根因来源
6 S6 test_cases workflow_assets/<req_name>/<version>/「S6 测试用例生成」/test_cases.json S6 层缺陷追溯的参考

核心原则

🚨 强制阅读指令(MANDATORY):S8 阶段输出判定(不输出建议)——以「风险点覆盖」为核心指标,从 S4→S5→S6→S7 链路推理根因。

S8 的核心使命:从 S4 → S5 → S6 → S7 链路推理根因,以「风险点覆盖」为核心指标,产出缺陷模式分析和 Prompt 改进建议,并将经验归档到知识库。

Read the full file on GitHub · 417 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. 3d ago First seen · 417 lines · 19 tokens per session scan A 471dae6586f6

Subscribe to this mod's changes

STAGE_S8_SELF_ITERATION is a cursor rule published in the GitHub repository SilenceInsect/AIDocxWorkFlow (2 stars, last pushed 1mo ago), licensed MIT. It adds 19 tokens to every session and 5,353 once invoked, about $0.0001 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.