learn-from-sage

learn-from-sage is a skill for Claude Code, Codex from kirodotdev/KiroCrew. It costs 56 tokens per session (2,271 once invoked), scanned A, original, Apache-2.0.

A review-learning system that records problems missed by Code Review Sage and turns approved lessons into rules for future code reviews.

In plain words
What is it for?
Staging missed issues, consolidating approved patterns into a human-editable rules file, and improving future review checks.
Why use it?
It helps close gaps where defects pass review and later ship, while keeping new lessons separate until a person approves them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Staging missed issues, consolidating approved patterns into a human-editable rules file, and improving future review checks.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kirodotdev/kirocrew/learn-from-sage
About the project

Kiro Crew is a persistent development workspace where agents continue multi-step software work across sessions, schedules, and connected interfaces. Developers use it locally or remotely through a desktop app, web dashboard, CLI, Slack, or Discord, with unattended tasks and recurring jobs. The catalogue contains skills and instructions for working with this workspace.

kirodotdev/KiroCrew · 4,518 stars · on GitHub · kiro.dev

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 kirodotdev/KiroCrew --skill learn-from-sage
Clone the repo
git clone --depth 1 https://github.com/kirodotdev/KiroCrew

Made for: Claude Code, Codex.

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 learn-from-sage

README.md
[![agentmods](https://agentmods.dev/badge/skills/kirodotdev/kirocrew/learn-from-sage/github.svg)](https://agentmods.dev/skills/kirodotdev/kirocrew/learn-from-sage)
Your own site
<a href="https://agentmods.dev/skills/kirodotdev/kirocrew/learn-from-sage"><img src="https://agentmods.dev/badge/skills/kirodotdev/kirocrew/learn-from-sage/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 learn-from-sage

Your own site · 80×15
<a href="https://agentmods.dev/skills/kirodotdev/kirocrew/learn-from-sage"><img src="https://agentmods.dev/badge/skills/kirodotdev/kirocrew/learn-from-sage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,271 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 62
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
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.00056 $0.02271
Opus 5.5 $0.00022 $0.00908
Sonnet 5.5 $0.00011 $0.00454
Haiku 4.5 $0.00006 $0.00227

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

Security

Grade A, and why

learn-from-sage 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.

src/kiro_crew/apps/builtins/code_review_sage/skills/learn-from-sage/SKILL.md · 166 lines

How it starts

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

Learn from Sage — detection-gap (miss) analysis (V2, file-centric)

Learning is not summarizing what Sage found. It is finding issues that leaked past review and shipped, then working backwards to close the gap so the reviewer catches the next one.

Two files, one rule each:

  • learned-patterns.md — the canonical, consolidated ruleset. The only file a review loads as heuristics. Human-editable.
  • learned-patterns.candidate.md — staging for new learnings. Staging an exact equivalent (same title, scope, impact and guidance) adds <!-- seen:N --> and <!-- last:<date> --> to the existing entry instead of appending; anything else is appended. Reviews do NOT read it. It is merged into learned-patterns.md only when a human triggers consolidation (a one-shot AI merge), after which it's cleared.

The interpreter in every command below

Commands here are written as <python> …. Replace <python> with the absolute interpreter path the task prompt names — it is the one the app itself runs, and it is the only interpreter guaranteed to exist on this host. Never substitute a bare python3: Windows has no such interpreter (the name resolves to a Microsoft Store app-execution alias that runs nothing), so the command would stage nothing and the learning would be silently lost. Outside a review session, use the interpreter running the app.

Where every path below is rooted

Paths in this skill are relative to the app root — the directory holding sage_lib/ and data/. A review or consolidation worker is already started there, so sage_lib/store.py resolves without any prefix. Deliberately relative, not ~/.kiro/crew/apps/code-review-sage/...: ~ is expanded by the SHELL, and the task does not pin one — PowerShell expands it, cmd.exe passes it through literally, and Python then cannot open the file. Outside a worker session, cd into the app root first (~/.kiro/crew/apps/code-review-sage on macOS/Linux, %USERPROFILE%\.kiro\crew\apps\code-review-sage on Windows).

Read the full file on GitHub · 166 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 Changed · +3 lines effb17341400
  2. 13d ago Changed · +12 lines f1da7b9ca38e
  3. 1mo ago Changed · +14 lines 24a13ba279e3
  4. 1mo ago First seen · 137 lines · 56 tokens per session scan A 4f8f953ca149

Subscribe to this mod's changes

learn-from-sage is a skill published in the GitHub repository kirodotdev/KiroCrew (4,518 stars, last pushed today), licensed Apache-2.0. It adds 56 tokens to every session and 2,271 once invoked, about $0.0002 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-08-30.