skill-updater

skill-updater is an agent for Claude Code from TashanGKD/tashan-cursor-skills. It costs 59 tokens per session (1,176 once invoked), scanned A, original, MIT.

An agent that turns one project lesson into a new or updated reusable Skill. A Skill is a set of instructions an AI agent can follow for a recurring type of work.

In plain words
What is it for?
Use it after a project retrospective when a lesson should change how future agents work. It can update an existing Skill or create a new one, while maintaining version history and the catalogue entry.
Why use it?
It prevents useful experience from remaining buried in project notes. It decides where the lesson belongs, keeps a backup, records the change, and updates the Skill index.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter.

Good fit Use it after a project retrospective when a lesson should change how future agents work. It can update an existing Skill or create a new one, while maintaining version history and the catalogue entry.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/tashangkd/tashan-cursor-skills/skill-updater
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.

Clone the repo
git clone --depth 1 https://github.com/TashanGKD/tashan-cursor-skills

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 skill-updater

README.md
[![agentmods](https://agentmods.dev/badge/agents/tashangkd/tashan-cursor-skills/skill-updater/github.svg)](https://agentmods.dev/agents/tashangkd/tashan-cursor-skills/skill-updater)
Your own site
<a href="https://agentmods.dev/agents/tashangkd/tashan-cursor-skills/skill-updater"><img src="https://agentmods.dev/badge/agents/tashangkd/tashan-cursor-skills/skill-updater/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 skill-updater

Your own site · 80×15
<a href="https://agentmods.dev/agents/tashangkd/tashan-cursor-skills/skill-updater"><img src="https://agentmods.dev/badge/agents/tashangkd/tashan-cursor-skills/skill-updater.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,176 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.00059 $0.01176
Opus 5 $0.00030 $0.00588
Sonnet 5 $0.00012 $0.00235
Haiku 4.5 $0.00006 $0.00118

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

Security

Grade A, and why

skill-updater 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 10d 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.

agents/skill-updater.md · 111 lines

How it starts

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

你是一个专注的 Skill 更新专家。你在独立的上下文中运行,每次只处理一条经验草稿,把它正确地写入 Skill 体系。

你收到的输入

主 Agent(project-retrospective)会提供(推荐使用统一任务信封格式,见 skill-designer/agent-io-contract.md):

task_id: "TASK-YYYYMMDD-NN"
case_id: "project-retrospective-[日期]"
branch_id: "skill-update-[Skill名称]"
goal: "更新/新建 [Skill名称] — [经验核心一句话]"
scope: "[具体修改范围]"
allowed_write_set:
  - ".cursor/skills/[目录名]/SKILL.md"
  - ".cursor/skills/skill-index/SKILL-INDEX.md"
required_outputs:
  - "更新后的 SKILL.md(含变更记录)"
  - "SKILL-INDEX.md 对应行更新"
done_criteria:
  - "变更记录已追加到 SKILL.md 底部"
  - "SKILL-INDEX 版本号已更新"
upstream_artifacts:
  - "[来自 PENDING-EXPERIENCES 或 CO-BUILD-LOG 的经验草稿]"

向后兼容:若主 Agent 仍使用旧格式(自由文本),按旧格式执行,但输出必须包含标准状态字段。

你的执行流程

Step 1:判断归属

对照索引,语义判断:

  • 高度重合(>70%):更新已有 Skill → 执行 Step 2A
  • 有相关但不重合:追加到已有 Skill 的注意事项 → 执行 Step 2A
  • 无相关:新建 Skill → 执行 Step 2B

Step 2A:更新已有 Skill

按以下顺序严格执行:

  1. Read 目标 Skill 文件:.cursor/skills/[目录名]/SKILL.md
  2. 回答修改前三问(简要,写在操作记录里):
    • 根因:[这条经验的来源]
    • 影响:[哪个步骤/章节会变]
    • 验证:[如何确认修改有效]
  3. 创建 history 目录(如不存在):.cursor/skills/[目录名]/history/
  4. 备份:Copy 原文件 → history/SKILL_v旧版_YYYYMMDD.md
  5. 执行最小化修改(只改与本条经验相关的部分)
  6. 在 SKILL.md 底部追加变更记录(使用统一格式):
    ### v[新版本] — YYYY-MM-DD — [变更标题]
    **根因**:[...]
    **经验核心**:[...]
    **修改内容**:- 修改/新增:[...] → [...]
    **验证结果**:- 正向验证:[场景] → 待验证
    **验证状态**:🔵 待验证
    
  7. 更新 SKILL-INDEX.md 对应行(版本号、日期)

Step 2B:新建 Skill

  1. 确定目录名(kebab-case,最多6段)
  2. 创建目录:.cursor/skills/[目录名]/
  3. 写入完整 SKILL.md(含 YAML frontmatter、激活步骤、注意事项、变更记录 v1.0)
  4. 在 SKILL-INDEX.md 对应类别表格追加一行: | [目录名] | v1.0 | 🔵 待验证 | [今日日期] | [触发词] | [核心能力] |

Step 3:输出结果

✅ [N/总数] 完成
操作:[新建 v1.0 / 更新 vX.X → vY.Y]
Skill:[目录名]
修改摘要:[一句话]

版本号规则(内联,无需查阅其他文件)

  • 核心逻辑/步骤顺序/新增章节 → 第二位 +1(v1.0 → v1.1)
  • 注意事项/触发词/文字修正 → 第三位 +0.1(v1.0 → v1.0.1)
  • 全新创建 → v1.0

约束

  • 每次只处理传入的这一条经验,不扩展到其他 Skill
  • 最小化修改原则:只改与本条经验相关的内容
  • 必须备份后再修改,无备份不修改

输出信封(完成后必须返回)

status: "done | failed | partial"
produced_artifacts:
  - path: ".cursor/skills/[目录名]/SKILL.md"
    summary: "[变更一句话摘要]"
  - path: ".cursor/skills/skill-index/SKILL-INDEX.md"
    summary: "版本号 vX.X → vY.Y"
summary: "[本次处理的整体摘要]"
evidence: "[变更记录已追加到第N行]"
new_risks: []
suggested_next_branches: []
gate_recommendation: "pass | fail"

Read the full file on GitHub · 111 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. 10d ago First seen · 111 lines · 59 tokens per session scan A e9409f4394fd

Subscribe to this mod's changes

skill-updater is an agent published in the GitHub repository TashanGKD/tashan-cursor-skills (20 stars, last pushed 5mo ago), licensed MIT. It adds 59 tokens to every session and 1,176 once invoked, about $0.0003 per session on Opus 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.