speclite-code-review-04-rules-extractor

speclite-code-review-04-rules-extractor is a skill for Claude Code from flanliulf/SpecLite. It costs 75 tokens per session (1,010 once invoked), scanned A, original, MIT.

A tool that studies past code reviews, their assessments, and their fixes to extract reusable development rules.

In plain words
What is it for?
Use it to analyze repeated findings, compare review rounds, and suggest updates to project-wide engineering documents.
Why use it?
It helps teams identify recurring problems and turn review history into guidance for future work.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to analyze repeated findings, compare review rounds, and suggest updates to project-wide engineering documents.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/flanliulf/speclite/speclite-code-review-04-rules-extractor
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.

Any agent
npx skills add flanliulf/SpecLite --skill speclite-code-review-04-rules-extractor
Clone the repo
git clone --depth 1 https://github.com/flanliulf/SpecLite

Made for: Claude Code.

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 speclite-code-review-04-rules-extractor

README.md
[![agentmods](https://agentmods.dev/badge/skills/flanliulf/speclite/speclite-code-review-04-rules-extractor/github.svg)](https://agentmods.dev/skills/flanliulf/speclite/speclite-code-review-04-rules-extractor)
Your own site
<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.

agentmods 80×15 button for speclite-code-review-04-rules-extractor

Your own site · 80×15
<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>
Per session 75 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,010 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.00075 $0.01010
Opus 5.5 $0.00030 $0.00404
Sonnet 5.5 $0.00015 $0.00202
Haiku 4.5 $0.00007 $0.00101

Measured 2mo ago against content hash c403061bc7f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

assets/source/speclite/sdlc-skills/4-implementation/speclite-code-review-04-rules-extractor/SKILL.md · 65 lines

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。

Read the full file on GitHub · 65 lines

Files

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.

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. 2mo ago Changed · -28 lines c403061bc7f2
  2. 2mo ago First seen · 93 lines · 75 tokens per session scan A 81dc0b99820d

Subscribe to this mod's changes

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.

Related

speclite-code-review-04-rules-extractor compared with skills from other repositories

speclite-code-review-04-rules-extractor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
speclite-code-review-04-rules-extractorflanliulf/SpecLiteSkill57d agoMITA75Claude Code
review-commentsdoordash-oss/agentic-orchestratorSkill1362d agoApache-2.0A33Claude Code, Codex
review-implementation-craftdoordash-oss/agentic-orchestratorSkill1362d agoApache-2.0A10Claude Code, Codex
review-implementation-functionality-evidencedoordash-oss/agentic-orchestratorSkill1362d agoApache-2.0A19Claude Code, Codex
final-fixdoordash-oss/agentic-orchestratorSkill1362d agoApache-2.0A23Claude Code, Codex
review-implementation-cleanlinessdoordash-oss/agentic-orchestratorSkill1362d agoApache-2.0A13Claude Code, Codex
Security Audit Checklistniels-emmer/myaceSkill12d agoMITA33Claude Code, Codex