self-iteration

self-iteration is a skill for Claude Code from ryanzhao1011/workframe. It costs 23 tokens per session (7,197 once invoked), scanned A, original, MIT.

A self-improvement workflow that studies the agent's past activity and recorded results to suggest changes.

In plain words
What is it for?
It reviews usage metrics, event logs, notes, issues, and previously applied proposals, then checks whether those proposals worked.
Why use it?
It helps identify repeated problems or unused processes instead of relying on memory or guesswork.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

Part of the core plugin — 36 skills, 4 agents, 12 hooks shipped together

Good fit It reviews usage metrics, event logs, notes, issues, and previously applied proposals, then checks whether those proposals worked.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ryanzhao1011/workframe/self-iteration
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 ryanzhao1011/workframe --skill self-iteration
Clone the repo
git clone --depth 1 https://github.com/ryanzhao1011/workframe

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 36 skills, 4 agents, 12 hooks.

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 self-iteration

README.md
[![agentmods](https://agentmods.dev/badge/skills/ryanzhao1011/workframe/self-iteration/github.svg)](https://agentmods.dev/skills/ryanzhao1011/workframe/self-iteration)
Your own site
<a href="https://agentmods.dev/skills/ryanzhao1011/workframe/self-iteration"><img src="https://agentmods.dev/badge/skills/ryanzhao1011/workframe/self-iteration/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 self-iteration

Your own site · 80×15
<a href="https://agentmods.dev/skills/ryanzhao1011/workframe/self-iteration"><img src="https://agentmods.dev/badge/skills/ryanzhao1011/workframe/self-iteration.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,197 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.00023 $0.07197
Opus 5.5 $0.00009 $0.02879
Sonnet 5.5 $0.00005 $0.01439
Haiku 4.5 $0.00002 $0.00720

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

Security

Grade A, and why

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.

plugins/core/skills/self-iteration/SKILL.md · 280 lines

How it starts

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

自迭代技能

后台作业与待批处理

后台路径由控制器执行:采证 → 冻结 → 模型按主题给结论 → 控制器核对 → 作业日志。后台作业只出建议:任何档位下都不改项目文件、不建提案文件,结果在 status。每项目滚动七天最多一次、全机 UTC 每日最多一次(两门合计),默认单次超时十五分钟;不设费用限额。用户级 self_iteration.mode 为 off / propose / apply,是上限;项目没有自己写 apply 的一律按 propose。

采证:每条没人处理过的纠正、每条没处置的笔记、每个复测失败各算一条候选,不要求两条字面相同。满足任一就排队——单个 scope 待处理笔记 ≥3,000 字、待处理纠正 ≥3 条、有标明重复强调的、有复测失败的、最早一条等了 ≥14 天(没有日期的从首次见到算)。落点在主会话记忆的纠正不入选;归属对不上真实角色目录或模块的只诊断。没入选的原因、笔记里不成条目的字数由 status 与 doctor 给出。

模型作业说明见 reference/job-instructions.md。结论八种:该写、已覆盖、该修工具、该交框架、该进文档、已过时、有冲突、证据不足。每条证据至少要落到一个主题;判「已覆盖」须逐条给出规则原文,控制器在冻结的文件里找得到连续一致的文字才算;写操作各自列出所用证据,控制器核目标、章节、来源、限定词与容量,给出不能自动写的原因。引文与字面检查不能证明语义正确。

有结论的证据记为「看过」,不再单独触发;同 scope 有新候选或它涉及的文件变了才随包再看,最多再看两次。没有结论的(漏答、引文找不到、作业期间文件被改、操作不可用)算未处理,连续三次暂停,材料变了或 resume 后再试。没有任何结论会永久消费一条证据,后台从不移走、删除或改写原笔记。

输入上限内按等待时间从老到新装,复测失败与重复强调优先;放不下的留到下次并记数,不截断。单条连必要上下文都超总上限时,在状态目录 selfiter/manual-review/ 保存原因、证据与所需文件全文转人工,跳过它继续装后面的;status 可查看。

新 CLI 程序先在隔离夹具中做实际能力自检,验证项目 hook、外部工具与文件写入的隔离;版本号本身不授予运行权。通过记录绑定平台、可执行程序与适配器指纹,任一变化重新验证;失败继续延期。自检与分析共享一次作业额度和总超时,自检用量单独记录。

用户在后续对话收到摘要后,选择查看或稍后;稍后不算驳回。有需要人看的主题(该写、该修工具、该交框架、该进文档、有冲突)或需处理的失败报告跨会话只提示一次;其余报告与自检延期只在 status 留存。旧待批、转人工和当前延期仍在新会话提示,同会话相同状态不重复。每个作业的 report-notice.json 保存报告提示回执,notices.json 只保留最近六十四个会话的待办提示指纹;已有历史报告不重播。用 workframe-selfiter status --project <项目根> 读取完整作业结果:建议逐条展示证据、原因、目标、拟写内容与不能自动写的原因,采纳后由主会话按各资产现有流程写,后台不代写。projects/proposals/pending/ 下的旧 AUTO 提案仍可查看与决定,后台只读它们、用来不重提已驳回的证据;决定前逐项展示改前、改后、理由、影响、恢复依据与 review_hash,不得只展示数量就执行。

用户明确决定后,对仍在白名单中的局部变更调用 workframe-selfiter decide --project <项目根> --proposal-id <AUTO-id> --decision accept --review-hash <用户所看版本的hash>;驳回用 --decision reject。草稿有变化须重新展示,不复用旧批准。受保护资产、重组、删除等提案仍走各资产现有 owner/审批流程,此命令不新增越权入口。有新有效证据才重评驳回事项;相同待批问题补证据,不重复建单。

人工项先完整展示原因、当前证据、上下文、manual_id 与 review_hash。用户按对应资产的现有流程实际处理后,可确认 workframe-selfiter manual-decide --project <项目根> --manual-id <id> --decision handled --review-hash <所看版本hash>;明确忽略当前证据则用 --decision ignore。只消费该版证据并关闭提示,原记录与旧版历史保留;两个动作都不代写内容、不授予受保护资产写权。同主题新证据重开原记录,必须重新展示和确认。

Read the full file on GitHub · 280 lines

Files

What ships with it

5 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. 3d ago Changed · -3 lines 0a6c4921a38f
  2. 15d ago Changed · +26 lines 872570887ac2
  3. 1mo ago Changed · +21 lines scan B → A 9d3b4c2003f4
  4. 3mo ago First seen · 236 lines · 23 tokens per session scan B db66a70e96db

Subscribe to this mod's changes

self-iteration is a skill published in the GitHub repository ryanzhao1011/workframe (9 stars, last pushed 5d ago), licensed MIT. It adds 23 tokens to every session and 7,197 once invoked, about $0.0001 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-31.

Related

self-iteration compared with skills from other repositories

self-iteration next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
self-iterationryanzhao1011/workframeSkill95d agoMITA23Claude Code
html-prototypemayuemarsha-del/pm-skillsSkill56mo agoMITA97Claude Code
feature-acceptancemayuemarsha-del/pm-skillsSkill56mo agoMITA192Claude Code
prdmayuemarsha-del/pm-skillsSkill56mo agoMITA202Claude Code
ui-walkthroughmayuemarsha-del/pm-skillsSkill56mo agoMITA231Claude Code
gbgcielebak/goal-by-goalSkill15mo agoMITA150Claude Code
competitor-researchmayuemarsha-del/pm-skillsSkill56mo agoMITA123Claude Code