Skip to content

Commit ddedf7d

Browse files
authored
Merge pull request #2 from Aucannot/codex/add-ai-auto-note-documentation-summary
feat: add ai-auto-note skill to auto-generate learning notes
2 parents ff2e649 + 8bfdc60 commit ddedf7d

10 files changed

Lines changed: 634 additions & 26 deletions

File tree

README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,49 @@ latest version of the **Chirpy** theme and the [CD][CD] workflow to here, so tha
2929

3030
Check out the [theme's docs](https://github.com/cotes2020/jekyll-theme-chirpy/wiki).
3131

32+
## Skill 安装与使用(AI Auto Note)
33+
34+
仓库内置了一个用于自动沉淀学习笔记的 skill:`skills/ai-auto-note-publisher`
35+
36+
如果你希望在 Codex 中全局复用,可安装到 `$CODEX_HOME/skills`
37+
38+
```bash
39+
mkdir -p "$CODEX_HOME/skills"
40+
cp -R skills/ai-auto-note-publisher "$CODEX_HOME/skills/"
41+
```
42+
43+
如果你希望在 Claude Code 中复用,可安装到 `~/.claude/skills`
44+
45+
```bash
46+
mkdir -p ~/.claude/skills
47+
cp -R skills/ai-auto-note-publisher ~/.claude/skills/
48+
```
49+
50+
安装后,在需要时触发该 skill,并通过以下命令生成笔记:
51+
52+
```bash
53+
python3 skills/ai-auto-note-publisher/scripts/create_ai_auto_note.py \
54+
--title "你的学习主题" \
55+
--input tmp/notes.txt \
56+
--repo-root .
57+
```
58+
59+
可选:如果你要覆盖自动分类,可传 `--subcategory`(例如 `rag``agents``general`)。
60+
61+
生成并提交后,如需自动推送 PR 到本仓库(需要已安装并登录 `gh`):
62+
63+
```bash
64+
cat > tmp/pr-body.md <<'EOF'
65+
## Summary
66+
- add ai auto notes
67+
EOF
68+
69+
bash skills/ai-auto-note-publisher/scripts/push_note_pr.sh \
70+
--branch feat/ai-auto-note-2026-03-12 \
71+
--title "feat: add ai auto notes" \
72+
--body-file tmp/pr-body.md
73+
```
74+
3275
## Contributing
3376

3477
This repository is automatically updated with new releases from the theme repository. If you encounter any issues or want to contribute to its improvement, please visit the [theme repository][chirpy] to provide feedback.

_posts/2025-11-21-code-to-style-imae.md

Lines changed: 0 additions & 26 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: "CoTyle 论文阅读记录"
3+
date: 2025-11-21 14:18:00 +0800
4+
categories: ["reading"]
5+
tags: [diffusion-models, reading-notes, generative-models]
6+
---
7+
8+
同事让我有空看看这个,我就简单读了一下。
9+
10+
### 项目地址
11+
- [Github CoTyle](https://github.com/Kwai-Kolors/CoTyle)
12+
- [GithubIO CoTyle](https://kwai-kolors.github.io/CoTyle/)
13+
14+
### 概况
15+
这个模型做到了使用 code(编码而非代码)控制图像风格。也就是说,在 code 相同的情况下,改变 prompt 和种子可以生成一组风格相似的图片。
16+
17+
<img src="/assets/img/CoTyle-image-1.png" alt="CoTyle 卖家秀" style="width: 400px;" />
18+
19+
粗略看了下 GitHub 首页,不过它对不同风格之间似乎并没有一种可以查表的方式,让人自己选择需要什么风格;code 的数值也非常大,看起来和 seed 一样需要“抽卡”。所以我怀疑它的侧重点并不在于引导单张图片风格化生成,而是维持一组图片保持同样的风格(同样的 code)。
20+
21+
### 好奇的问题
22+
1. 这看起来似乎就是一个类似 CLIP 的东西。
23+
2. 同事好奇的问题:Figure 4 中用红框圈出了 “suboptimal style consistency.”,这个一致性是怎么判断的?
24+
3. 有没有办法优雅地上线?
25+
26+
### 论文的场合
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
---
2+
name: ai-auto-note-publisher
3+
description: 自动把学习对话沉淀成博客笔记并提交到当前仓库。当用户提到“学习总结/自动归档/上传笔记/ai auto note”时使用。统一写入 categories: ["ai-auto-note", "<auto-subcategory>"],并按子目录自动归类。
4+
---
5+
6+
# AI Auto Note Publisher
7+
8+
将学习对话整理为可发布的 Jekyll 博客文章,并存入本仓库。
9+
10+
## 何时使用
11+
12+
当用户希望把与 AI 学习的结论自动沉淀成文档,并上传到仓库时。
13+
14+
## 输出规范
15+
16+
- 路径:`_posts/ai-auto-note/<subcategory>/YYYY-MM-DD-title.md`
17+
- Front matter 固定:
18+
- `categories: ["ai-auto-note", "<subcategory>"]`
19+
- `tags: ["ai-auto-note", "<subcategory>"]`
20+
- 正文结构至少包含:
21+
- `## 背景`
22+
- `## 结论速记`
23+
- `## 后续行动`
24+
25+
## 快速流程
26+
27+
1. 准备学习记录文本(例如 `tmp/notes.txt`)。
28+
2. 运行脚本生成文章:
29+
30+
```bash
31+
python3 skills/ai-auto-note-publisher/scripts/create_ai_auto_note.py \
32+
--title "你的标题" \
33+
--input tmp/notes.txt \
34+
--repo-root .
35+
36+
# 如需手动指定二级分类(覆盖自动分类)
37+
python3 skills/ai-auto-note-publisher/scripts/create_ai_auto_note.py \
38+
--title "你的标题" \
39+
--input tmp/notes.txt \
40+
--subcategory rag \
41+
--repo-root .
42+
```
43+
44+
3. 检查生成内容是否符合语义;必要时微调标题与要点。
45+
4. 提交到仓库。
46+
5. 推送分支并自动创建 PR(需 gh CLI 已登录)。
47+
48+
## 子分类策略
49+
50+
脚本会按关键词自动分类(如 `llm``prompting``rag``agents` 等),并优先做英文关键词边界匹配(避免 `evaluation` 误命中等情况)。
51+
52+
如未命中关键词,默认分类为 `general`
53+
54+
详细映射见:`references/subcategory-rules.md`
55+
56+
## 自动推送 PR 到本仓库
57+
58+
准备 PR 描述文件(例如 `tmp/pr-body.md`)后执行:
59+
60+
```bash
61+
bash skills/ai-auto-note-publisher/scripts/push_note_pr.sh \
62+
--branch feat/ai-auto-note-2026-03-12 \
63+
--title "feat: add ai auto notes" \
64+
--body-file tmp/pr-body.md
65+
```
66+
67+
脚本会:
68+
- `git push -u origin <branch>`
69+
- `gh pr create` 自动向仓库默认分支发起 PR。
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Subcategory Rules
2+
3+
用于 `ai-auto-note-publisher` 的自动归类规则。
4+
5+
## 当前分类
6+
7+
- `llm`: llm, 大模型, transformer, attention, token
8+
- `prompting`: prompt, 提示词, system prompt, cot, chain-of-thought
9+
- `rag`: rag, 检索, 向量数据库, embedding, 召回, retrieval, rerank, chunk
10+
- `agents`: agent, tool call, function calling, 多智能体, 工作流
11+
- `training`: finetune, sft, rlhf, 训练, 蒸馏
12+
- `evaluation`: benchmark, eval, 评测, 幻觉, hallucination
13+
- `deployment`: 部署, serving, latency, 吞吐, inference
14+
- 默认: `general`
15+
16+
## 调整建议
17+
18+
- 如果某个主题常出现误分类,优先新增关键词而不是新增大量新类。
19+
- 英文关键词建议使用“完整词”匹配(如 `eval` 只匹配独立单词),减少误命中。
20+
- 保持二级分类数量可控(建议 < 12)。

0 commit comments

Comments
 (0)