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.
npx skills add flanliulf/SpecLite --skill speclite-code-review-04-rules-extractorgit clone --depth 1 https://github.com/flanliulf/SpecLiteWrote 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/flanliulf/speclite/speclite-code-review-04-rules-extractor)<a href="https://agentmods.dev/skills/flanliulf/speclite/speclite-code-review-04-rules-extractor"><img src="https://agentmods.dev/badge/skills/flanliulf/speclite/speclite-code-review-04-rules-extractor/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/flanliulf/speclite/speclite-code-review-04-rules-extractor"><img src="https://agentmods.dev/badge/skills/flanliulf/speclite/speclite-code-review-04-rules-extractor.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.00075 | $0.01010 |
| Opus 5.5 | $0.00030 | $0.00404 |
| Sonnet 5.5 | $0.00015 | $0.00202 |
| Haiku 4.5 | $0.00007 | $0.00101 |
Grade A, and why
speclite-code-review-04-rules-extractor 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 2mo 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 — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Speclite Code Review 04 Rules Extractor(代码审查规则提炼)
Overview(概述)
从 evaluator 接受且有证据的 v2 CR 历史中提炼 candidate rules,并写入 durable speclite.cr-rules-extraction.v2 report。支持 runner 和人工 fresh session,不依赖聊天上下文证明完成。
Activation Boundary(激活边界)
- 用于分析一个 Story/current series 的 CR 历史、提炼候选规则并评估全局推广资格。
- 默认不修改全局文档;只有用户另行明确授权具体目标文件后才能应用建议。
- 不用于重新裁决 finding、执行修复、登记 TODO 或推进 Story 状态。
Core Capabilities(核心能力)
- CR 历史分析:读取 Story 的 review、evaluation 与 fix 记录。
- v2 证据过滤:只消费 evaluator accepted、非 dismissed/superseded 且有验证 evidence 的 finding。
- 跨 Story 推广门禁:至少跨两个 Story 复现或获得用户明确批准。
- 共性模式识别:按 invariant/fingerprint family 识别重复问题与修复引入问题。
- 规则提炼:转化为规避指南、指导原则、最佳实践或豁免说明。
- 全局文档建议:定位适合的 project context、architecture 或开发指南章节。
- Durable 输出:写入可由下一 fresh session 校验的结构化 report。
Contract(共享契约)
将当前 Skill 目录父目录解析为 {skills-root},完整读取 {skills-root}/speclite-code-review-contract/references/cr-contract.md,再通过 speclite resolve config --project-root {project-root} 获取路径。CR 目录只消费 runner 或人工 orchestrator 通过 speclite resolve cr-directory 传入的 crDir,不重推导。失败时 HALT;不得依赖 runner 或旧 artifact。
Inputs(输入)
crDir、compatibilityMode与legacyArtifactPaths:由 runner 或人工 orchestrator 通过speclite resolve cr-directory解析后传入;缺失时自行调用该 CLI 一次,不得以其他方式推导。- Story identity、
reviewSeries和 current evaluation,或足够独立定位它的信息。 orchestrationMode与handoffTarget;缺失时按人工 standalone 调用处理。
Workflow(工作流)
完整读取并执行 references/rules-extractor-workflow.md:收集 eligible CR records、分析 model/finding timeline、提炼 candidate rules、判断 global eligibility,并使用 assets/output-template.md 写入 durable report。
找不到有效 current v2 evaluation、证据不满足资格或 artifact identity/hash 不一致时,写 result: HALTED 并停止;不得用 legacy/superseded finding 推广全局规则。
Outputs and Handoff(输出与交接)
- 写入共享 contract 定义的 rules extraction canonical path,schema 为
speclite.cr-rules-extraction.v2。 - 返回 report path/hash、eligible/excluded findings、candidate/global counts 和
COMPLETED | HALTED。 - 将 durable result 交给
handoffTarget;人工模式可据此在下一 fresh session 独立进入 CR05。
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 2mo ago Changed · -28 lines c403061bc7f2
- 2mo ago First seen · 93 lines · 75 tokens per session scan A 81dc0b99820d
speclite-code-review-04-rules-extractor is a skill published in the GitHub repository flanliulf/SpecLite (5 stars, last pushed 7d ago), licensed MIT. It adds 75 tokens to every session and 1,010 once invoked, about $0.0003 per session on Opus 5.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-09-03.
speclite-code-review-04-rules-extractor compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| speclite-code-review-04-rules-extractorflanliulf/SpecLite | Skill | 5 | 7d ago | MIT | A | 75 | Claude Code |
| review-commentsdoordash-oss/agentic-orchestrator | Skill | 136 | 2d ago | Apache-2.0 | A | 33 | Claude Code, Codex |
| review-implementation-craftdoordash-oss/agentic-orchestrator | Skill | 136 | 2d ago | Apache-2.0 | A | 10 | Claude Code, Codex |
| review-implementation-functionality-evidencedoordash-oss/agentic-orchestrator | Skill | 136 | 2d ago | Apache-2.0 | A | 19 | Claude Code, Codex |
| final-fixdoordash-oss/agentic-orchestrator | Skill | 136 | 2d ago | Apache-2.0 | A | 23 | Claude Code, Codex |
| review-implementation-cleanlinessdoordash-oss/agentic-orchestrator | Skill | 136 | 2d ago | Apache-2.0 | A | 13 | Claude Code, Codex |
| Security Audit Checklistniels-emmer/myace | Skill | 1 | 2d ago | MIT | A | 33 | Claude Code, Codex |