/ljg-skills:fix-ljg-org-to-mdfrom ljg-skills
扫描 skills 目录,把 org 输出格式改为 markdown,提交代码,同步到全局。Use when user says '/fix-ljg-org-to-md', 'fix org format', 'org 转 md', '把 org 改成 md', '修正输出格式'.
Ships in ljg-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
扫描 skills/ 目录下所有 SKILL.md 及关联文件,把"要求模型输出 org 格式"的内容改为 markdown,然后提交并同步到全局。
SKILLS_DIR="$HOME/learning/code/github/ljg-skills/skills"
GLOBAL_SKILLS="$HOME/.claude/skills"
grep -rl \
-e '\.org\b' \
-e '#+title' \
-e '#+date' \
-e '#+filetags' \
-e '__.*\.org' \
-e 'org 格式\|org格式\|以 org 输出\|输出.*\.org' \
$SKILLS_DIR
对每个命中文件,用 Read 工具读取全文,然后按下表逐条替换。
| 场景 | 查找 | 替换 |
|---|---|---|
| 文件名扩展名 | __paper.org | __paper.md |
| 文件名扩展名 | __qa.org | __qa.md |
| 文件名扩展名 | __plain.org | __plain.md |
| 文件名扩展名 | __writes.org | __writes.md |
| 通用 denote 扩展名 | __{type}.org 模式 | __{type}.md |
| org 头:title | #+title: | title: (置于 --- YAML 块内) |
| org 头:date | #+date: | date: (置于 --- YAML 块内) |
| org 头:filetags | #+filetags: | tags: (置于 --- YAML 块内) |
| org 头块整体 | #+title: X\n#+date: Y\n... | ---\ntitle: X\ndate: Y\n...\n--- |
| 输出格式声明 | org 格式 / org格式 | markdown 格式 |
| 输出格式声明 | 以 org 输出 / 输出 org | 以 markdown 输出 / 输出 markdown |
| 输出文件扩展 | .org (非 URL 上下文) | .md |
注意:*bold* 不在自动替换范围内——在 SKILL.md 的 markdown 正文中它是斜体,只在明确是 org 输出模板的代码块内才改成 **bold**。判断方式:看上下文是否为 ``` 包裹的"输出示例"块。
原始:
#+title: 论文核心思想
#+date: {date}
#+filetags: :paper:
改为:
---
title: 论文核心思想
date: {date}
tags: [paper]
---
替换完后确认无遗漏:
grep -rn "#+title\|#+date\|#+filetags\|__.*\.org\b" $SKILLS_DIR
# 预期:无输出(arxiv.org 等 URL 中的 .org 不计)
如仍有命中,逐一判断是否需要修改(URL 中的 .org 不改)。
cd $(dirname $SKILLS_DIR)
git add -A
git status # 展示变更文件列表
git commit -m "fix: convert org output format to markdown in skills"
如果 Step 1 无任何文件被修改,报告"无需转换,工作目录已是 markdown 格式",不提交空 commit。
rsync -av --delete $SKILLS_DIR/ $GLOBAL_SKILLS/
同步后抽查改动最多的 skill:
grep -n "#+title\|\.org\b" $GLOBAL_SKILLS/ljg-paper/SKILL.md | head -5
# 预期:仅 URL 中的 arxiv.org,无 org 头
fix-ljg-org-to-md 完成
- 扫描文件:X 个
- 修改文件:X 个(或"无需修改")
- Commit:<sha> fix: convert org output format to markdown in skills
- 全局同步:X 个 skills 已更新
.org 不改——arxiv.org、gnu.org 等域名保持原样;替换前用 Read 看上下文#+title: 会留下散乱的裸字段,需要把整个头块包进 --- / ---*bold* 仅改输出模板——SKILL.md 正文里的 *text* 是合法斜体,不要动;只改代码块内"模型输出示例"里的 *bold*What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub ruiqiliu/ljg-skills --plugin ljg-skills21 skills in this plugin
/ljg-blind盲区扫描——读昨天你与 AI 的全部对话,照出暴露的思维盲区(不是不懂的知识,是让某类真相一直看不见的思维习惯),再从微信读书挑一本书的一章精准补上,落成一篇完整分析笔记。Use when user says '扫盲区', '盲区', '照盲区', '看看我的思维盲区', '我昨天想漏了什么', 'blind spot', 'ljg-blind', '/ljg-blind', or wants yesterday's AI conversations analyzed for cognitive blind spots plus a targeted weread chapter to fill them. 可选参数:传一个日期(YYYY-MM-DD)扫那天而非昨天。NOT FOR 纵向深钻一个观点(用 ljg-think)、一个领域降秩(用 ljg-rank)、陪读一篇文本(用 ljg-read)、找一个领域的约束(用 ljg-constraint)。/ljg-bookBook reader for one durable takeaway. Turns a book into one book-grounded change in what the reader notices, asks, does, or refrains from doing. USE WHEN the user gives a book title, PDF, excerpt, or asks 拆书, 分析这本书, 这本书在讲什么, 压缩一本书, or book. Defaults to a saved Markdown note. NOT FOR chapter summaries, papers, single-idea deep dives, or field ranking./ljg-cardContent caster (铸). Transforms content into PNG visuals. Seven molds: -l (default) long reading card, -i infograph, -m multi-card reading cards (1080x1440), -v editorial sketchnote (problem→failure→pivot→insight→naming, magazine + archive layout), -c comic (manga-style B&W), -w whiteboard (marker-style board layout), -b big-fonts attachment card (1080x1440, weathered 碑刻 style for 小红书). Output to ~/Downloads/. Use when user says '铸', 'cast', '做成图', '做成卡片', '做成信息图', '做成海报', '视觉笔记', 'sketchnote', '杂志', 'editorial', '漫画', 'comic', 'manga', '白板', 'whiteboard', '大字', '附件图', 'big fonts', '小红书卡片'. Replaces ljg-cards and ljg-infograph./ljg-constraint给一个领域、专业、角色、产品或争论找出真正框住它的几条约束,判明它们属于世界/规则/解释(硬/软/自设),看这组约束如何定义身份、补全问题、框出解空间并解释实际行为;尤其用于区分目标相同但约束不同导致的方案分歧,识别被误当硬事实的旧解释。USE WHEN 用户说 '约束', '找约束', '这个领域的约束是什么', '本质约束', '什么框住了它', '硬约束还是自设约束', '边界在哪', '这行为什么这么做', 'constraint', '/ljg-constraint', or gives any domain/profession/role/product/debate and wants its defining constraints and solution space mapped. NOT FOR 往下挖生成器(用 ljg-rank,找的是生成力不是边界)、纵向深钻一个观点到底(用 ljg-think)、拆一本书(用 ljg-book)、一个概念解剖(用 ljg-learn)。/ljg-invest投资分析。给一个项目(公司名、BP、创始人对话记录),写一份深度投资分析报告。不走传统投资分析的路——核心判断只有一个:这个项目是不是一台「秩序创造机器」。Use when user says '投资报告', '投资分析', '分析这个项目', '写投资报告', 'investment report', 'invest analysis', or provides entrepreneur conversation records wanting investment evaluation. Also trigger when user pastes or references meeting notes, pitch decks, or founder interviews and asks for analysis./ljg-learnDeep concept anatomist that deconstructs any concept through 8 exploration dimensions (history, dialectics, phenomenology, linguistics, formalization, existentialism, aesthetics, meta-philosophy) and compresses insights into an epiphany. Use when user asks to explain, dissect, or deeply understand a concept, term, or idea. Triggers on '解剖概念', '概念解剖', 'explain concept', 'learn concept', '/ljg-learn'. Produces markdown output.