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 alonf/specrew --skill specrew-code-rulesgit clone --depth 1 https://github.com/alonf/specrewWrote 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/alonf/specrew/specrew-code-rules)<a href="https://agentmods.dev/skills/alonf/specrew/specrew-code-rules"><img src="https://agentmods.dev/badge/skills/alonf/specrew/specrew-code-rules/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/alonf/specrew/specrew-code-rules"><img src="https://agentmods.dev/badge/skills/alonf/specrew/specrew-code-rules.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.00173 | $0.01426 |
| Opus 5.5 | $0.00069 | $0.00570 |
| Sonnet 5.5 | $0.00035 | $0.00285 |
| Haiku 4.5 | $0.00017 | $0.00143 |
Grade A, and why
specrew-code-rules 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 1mo 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 — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.
specrew-code-rules
Type: Implement-time Guidance Skill Schema: v1 Status: Active implementation conduct
Purpose
The code-implementation design lens captured this feature's implementation-craft rules at design time (the
implementation-rules.yml manifest). This skill is the implement-time half: while you write code, it
surfaces the chosen rules so the code reflects the agreed posture (DI, naming, size, error handling,
security-context, copy semantics, dependency stance, …) without the maintainer re-pasting rules. It is
guidance, not a gate — there is no mechanical conformance check; the value is that you actually follow
the rules as you write.
The Big Picture (read this first, every time)
You are a static reader. You carry NO per-feature content yourself — you resolve it at read time:
- Resolve the active feature. Read
.specrew/start-context.json(session_state.feature_ref/feature_path) to find the active feature'sspecs/<feature>/directory. - Read the per-feature manifest
specs/<feature>/implementation-rules.yml— the selected rule ids (checked/unchecked), per-rule decisions, the resolved stack, custom rules, and thedependency_policy. - Read the canonical catalog
extensions/specrew-speckit/knowledge/design-lenses/code-rules.yml(deployed under the project's design-lens catalog) to resolve each selected rule id to its text, and the optional project overlaycode-rules.local.yml(additive + per-rule override; never drops a shipped rule) for the ingested company guideline / reusable custom rules. - Compose BASELINE + OVERLAY (below) and surface it task-scoped for the current work.
Compose: baseline + overlay
- BASELINE — the catalog's
baseline-defaultgroup ALWAYS applies (intent-revealing names, short methods, low nesting, DI as a principle, no magic numbers, guard object invariants, don't leak mutable internals, SOLID, idiomatic errors, …). Apply it even when there is no manifest (baseline-only mode). - OVERLAY — when a manifest exists, layer the feature's choices on top: the selected
decision-promptrules + the human's per-ruledecision, the applicableapplicability-filteredrules, anycustom_rules, and thedependency_policy. An unchecked baseline rule is a recorded exception — honor the exception.
What ships with it
1 file 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.
- 1mo ago First seen · 94 lines · 173 tokens per session scan A e51e5350b9c6
specrew-code-rules is a skill published in the GitHub repository alonf/specrew (54 stars, last pushed today), licensed MIT. It adds 173 tokens to every session and 1,426 once invoked, about $0.0007 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-10-26.
specrew-code-rules compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| specrew-code-rulesalonf/specrew | Skill | 54 | today | MIT | A | 173 | Claude Code, Codex |
| autoreviewopenclaw/clawhub | Skill | 9.6k | today | MIT | A | 17 | Claude Code, Codex |
| omh-code-reviewrlaope/oh-my-hermes | Skill | 6.2k | today | MIT | A | 18 | Claude Code |
| agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skills | Skill | 2.2k | 10d ago | MIT | A | 115 | Claude Code, Codex |
| asplos-writing-stylebrycewang-stanford/Awesome-Journal-Skills | Skill | 1.5k | 3d ago | MIT | A | 65 | Claude Code |
| revdiff-planumputun/revdiff | Skill | 974 | today | MIT | A | 84 | Claude Code |
| re0-mergeLilMGenius/paperthin | Skill | 1.5k | today | MIT | A | 51 | Claude Code, Codex |