Skip to content
Back to skills

Lesson Curator

ASecurity

整理 ~/.claude/lessons/ 全局工具链经验。审阅 draft, 改名落档, 维护 INDEX.md, 7 天 archive 自动归档。

  • 188 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 5, 2026
ai-agentsbash

Security analysis

A100/100

Scanned September 5, 2026

npx -y skills add WenJunDuan/Rlues --skill lesson-curator --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lesson Curator?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Lesson Curator
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wenjunduan-lesson-curator/badge)](https://www.skillsdirectory.com/skills/wenjunduan-lesson-curator)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: lesson-curator
effort: xhigh
disable-model-invocation: true
description: >
  整理 ~/.claude/lessons/ 全局工具链经验。审阅 draft, 改名落档, 维护 INDEX.md, 7 天 archive 自动归档。
---

# /lesson-curator

整理全局 lessons。每周或感觉 draft 堆积时跑一次。

## 任务

### 1. 列出待审 drafts

```bash
ls -la ~/.claude/lessons/draft-*.md 2>/dev/null
```

按创建时间排序, 显示给用户。每个 draft 显示:
- 文件名
- 创建距今天数
- 首段问题简述

### 2. 审阅每个 draft

对每个 draft 与用户对话:

```
draft-2026-04-28-codex-permission.md (创建 0 天前)
问题简述: /codex:status 报 permission denied

用户操作:
  a) 落档 → 改名为 2026-04-28-{slug}.md, 补全根因/workaround
  b) 丢弃 → 移到 archive/
  c) 跳过 → 下次再看
```

### 3. 7 天自动归档

```bash
find ~/.claude/lessons -maxdepth 1 -name 'draft-*.md' -mtime +7 -exec mv {} ~/.claude/lessons/archive/ \;
```

通知用户哪些被归档了。

### 4. 重建 INDEX.md

扫 `~/.claude/lessons/*.md` (排除 draft- 和 archive/), 按主题重建索引:

```markdown
# Global Lessons Index

## 主题: Codex / 跨模型调度
- [2026-04-28] codex permission pattern → ./2026-04-28-codex-permission.md
- [2026-04-22] codex-rescue subagent fail → ./2026-04-22-codex-rescue.md

## 主题: Hooks / Hook 协议
- [2026-04-15] Stop hook decision schema → ./2026-04-15-stop-hook-schema.md
- [2026-04-10] PostCompact additionalContext → ./2026-04-10-postcompact.md

## 主题: Permission / Bash matcher
- [2026-04-28] Bash 冒号语法 vs 空格语法 → ./2026-04-28-bash-permission-syntax.md

## 文件清单 (按时间倒序)
- 2026-04-28-codex-permission.md
- 2026-04-22-codex-rescue.md
- ...
```

主题分类靠 lesson 文件 frontmatter 的 `context:` 字段。

### 5. 报告

完成后告知用户:
- 归档了 N 个超期 draft
- 落档了 M 个 draft (列出新文件名)
- INDEX.md 现在 K 条目

## 与 lesson-drafter hook 的关系

- lesson-drafter hook **自动起草** draft-*.md (基于工具失败检测)
- /lesson-curator **由用户触发**, 审阅 draft, 落档或归档
- INDEX.md 由 curator 重建 (drafter 不动 INDEX.md)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…