Agent skill

ljg-qa Question Chain Extractor

by lijigang in lijigang/ljg-skills

Turns an article, paper or book into a directed chain of sharp questions and four-part answers that retraces the author's reasoning, saved as an org-mode note.

MITAuto-check passedKnowledge Management

SKILL.md written in Chinese; this summary is our English description.

Install ljg-qa Question Chain Extractor

skills CLI
$ npx skills add lijigang/ljg-skills --skill ljg-qa -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install lijigang/ljg-skills ljg-qa --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/lijigang/ljg-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ljg-qa .claude/skills/ljg-qa && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ljg-qa
GitHub stars
7.5k
Token cost
~590 tokens
SKILL.md length
129 words
Files
3 (incl. references)
Skills in repo
26
Repo updated
First seen
Licence
MIT

At a glance

Turns an article, paper or book into a directed chain of sharp questions and four-part answers that retraces the author's reasoning, saved as an org-mode note.

  • Works in 3 steps: Q 切要害 ——… → A 有形式化收口 —— 每个 A 严格四段:*结论*(一句话)+… → Q 链有方向 —— Q 之间不是并列罗列,是「Q1 答完→Q2…
  • Extracting an article's core argument as a chain of questions and answers
  • SKILL.md covers 你不是, 你是, 三条铁律 and 工作流, plus 5 more sections
  • Calls curl

What it does

The skill reads a URL, a PDF or pasted text and pulls out the author's argument skeleton as questions about why a solution holds, how it differs from alternatives, what it costs and where it fails, rather than asking for definitions. Questions are ordered by logical dependency, not by chapter, so reading them in sequence retraces the author's reasoning. It is explicitly not an FAQ generator, a reworded summary, a fact list or a comprehension quiz.

Every answer has four parts: a one-sentence conclusion, a formalization that compresses the idea into one line of text and simple symbols such as an equation or an old-to-new arrow, the reasoning steps, and the conditions under which it stops holding. Notes are written in org-mode with a denote-style file name under ~/Documents/notes, following Workflows/Extract.md and a question design reference. The SKILL.md is in Chinese and includes a list of gotchas against textbook-style questions and answers padded with jargon.

When your agent uses it

  • Extracting an article's core argument as a chain of questions and answers
  • Studying a paper by questioning its method, cost and limits
  • Turning a book chapter into reusable org-mode notes

Example prompts

  • “/ljg-qa on the article at https://example.com/post about caching strategies.”
  • “Extract Q&A from ~/Downloads/paper.pdf, focusing on why the method works and where it fails.”
  • “Turn this pasted text into a question chain with conclusions and boundaries.”

Requirements

  • A notes folder at ~/Documents/notes for the output

Workflow steps

3 steps, taken from the first numbered list in SKILL.md.

  1. Q 切要害 —— 问的是「为什么这个解法成立」「它跟另一种做法差在哪」「它的代价是什么」「它在哪里失效」,不是「它定义是什么」。一个 Q 必须能让答案承重,不能被一句话敷衍过去。
  2. A 有形式化收口 —— 每个 A 严格四段:*结论*(一句话)+ *形式化*(用文字 + 简单符号把思想压成一行可视关系,如 A = B + C、旧: X → 新: Y)+ *论证步*(怎么想到的)+ *边界*(不成立的条件)。形式化是"思想的几何",让读者一眼看出关系。
  3. Q 链有方向 —— Q 之间不是并列罗列,是「Q1 答完→Q2 自然冒出来」。读者读完整串 Q,相当于走了一遍作者的推理路径。

What it can do on your machine

Read from SKILL.md and the folder at commit 9e75497. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use curl, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

ljg-qa Question Chain Extractor loads about 590 tokens when it runs, and up to ~2k if it reads all its reference files. Until then it costs about 118 tokens; SKILL.md has 129 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~118
When it runs · the whole SKILL.md, loaded when a task matches
~590
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from lijigang/ljg-skills at commit 9e75497, republished under its MIT licence (© lijigang). 129 words, ~590 tokens.

Download SKILL.mdSave it as .claude/skills/ljg-qa/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
ljg-qa
description
信息提问机。给一篇文章/论文/书,把核心观点抽成 Q-A 对——Question 切要害,不教科书;Answer 简洁清晰,有形式化收口,逻辑链完整。读者顺 Q 链走过,每个 A 砸下一枚钉子,复现作者整套推理。Use when user says '问答', 'Q&A', 'QA', '提问', '抽取问题', '/ljg-qa', or shares an article/paper/book and asks for Q-A extraction. Triggers when the user wants ideas extracted not as a summary but as a sequence of incisive questions with answered. NOT FOR FAQ generation, glossary creation, or comprehension quizzes — this is intellectual scaffolding, not study aids.
user_invocable
true

ljg-qa: 问答提取

读一份东西,把它的思想拆成「为什么—怎么—边界」的问答链。

读者顺着 Q 走过去,每个 A 砸下来一枚钉子。

你不是

  • 不是 FAQ 生成器("什么是 X"——读者一看就跳过)
  • 不是摘要换皮(把段落拆成"问/答"两半还是摘要)
  • 不是知识点列表(孤立的事实碰撞不出洞察)
  • 不是阅读理解题(提问不是为了考读者,是为了切中作者)

你是

把作者的论证骨架翻出来,每根骨头长成一个尖锐的问题。读者沿着 Q 链读,能复现作者的整套思路——而不是被告知结论。

三条铁律

  1. Q 切要害 —— 问的是「为什么这个解法成立」「它跟另一种做法差在哪」「它的代价是什么」「它在哪里失效」,不是「它定义是什么」。一个 Q 必须能让答案承重,不能被一句话敷衍过去。

  2. A 有形式化收口 —— 每个 A 严格四段:结论(一句话)+ 形式化(用文字 + 简单符号把思想压成一行可视关系,如 A = B + C、旧: X → 新: Y)+ 论证步(怎么想到的)+ 边界(不成立的条件)。形式化是"思想的几何",让读者一眼看出关系。

  3. Q 链有方向 —— Q 之间不是并列罗列,是「Q1 答完→Q2 自然冒出来」。读者读完整串 Q,相当于走了一遍作者的推理路径。

工作流

按 Workflows/Extract.md 的步骤执行。

设计参考

Q 怎么提、A 怎么收口的具体模式见 References/QuestionDesign.md。

Voice Notification

执行 workflow 时:

bash
curl -s -X POST http://localhost:31337/notify \
  -H "Content-Type: application/json" \
  -d '{"message": "Running Extract in ljg-qa"}' \
  > /dev/null 2>&1 &

输出文本:

Running **Extract** in **ljg-qa**...

输出

  • 格式:org-mode(*bold*,禁 markdown 语法)
  • 路径:~/Documents/notes/
  • denote 文件名:{YYYYMMDDTHHMMSS}--qa-{核心主题 5-10 字}__qa.org

Examples

Example 1: URL

User: /ljg-qa https://example.com/article
→ WebFetch 获取
→ 找观点骨架 → 设计 Q 链 → 写 A 三段
→ org-mode 输出到 ~/Documents/notes/

Example 2: 论文 PDF

User: /ljg-qa ~/Downloads/paper.pdf
→ Read PDF(注意 pages 参数)
→ Q 抽出方法的「为什么」「代价」「边界」
→ 输出 org-mode

Example 3: 直接文本

User: 把这段抽成 Q-A: [text]
→ 跳过获取,直接抽
→ 输出

Gotchas

  • AI 默认会写「什么是 X」型问题 —— 教科书腔。生成后扫一遍,凡是 Q 能用一句定义打发的,重写
  • AI 默认会让 A 散掉 —— 没有结论句、没有边界、写成一段散文。每个 A 必须严格四段(结论 / 形式化 / 步骤 / 边界)
  • AI 默认会把「形式化」写成数学公式 —— 不是。形式化是用文字 + → = ≠ + × 这类符号压一行可视的关系,比如 通才 = 协调,专才 = 干活。是"思想的几何",不是"数学的形式"
  • AI 默认按章节顺序提问 —— 这是抄目录,不是抽思想。Q 链应该按论证依赖关系排,不按出现顺序
  • AI 默认会把 Q-A 理解成「问答游戏」 —— 不是。这里 Q 是凿子,A 是钉子。装饰性的轻问题禁止
  • AI 默认会在 A 里堆术语保平安 —— 用术语不算回答。把术语翻译成具体动作和具体物件,否则 A 没承重

© lijigang, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (references) in skills/ljg-qa of lijigang/ljg-skills.

  • SKILL.md
  • References/QuestionDesign.md
  • Workflows/Extract.md

Open the folder on GitHubat commit 9e75497

Compare with similar skills

ljg-qa Question Chain Extractor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

ljg-qa Question Chain Extractor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
ljg-qa Question Chain Extractor this skilllijigang/ljg-skills7.5k—~590Automated safety check: PassMIT
Ray Obsidian Vault Setupimraywang/rayskills159—~625Automated safety check: PassCustom licence
iMandalArt Mandala Cardstwhsi/skills259—~3kAutomated safety check: PassNone
Bulletmindsickn33/agentic-awesome-skills47k1 repos~916Automated safety check: PassMIT
Agent Carnet Notebookyamadashy/repomix29k—~1.2kAutomated safety check: PassMIT
Personal Knowledge Wikizhayujie/CowAgent47k—~924Automated safety check: PassMIT

Similar skills

  • Ray Obsidian Vault Setup

    imraywang/rayskills

    Sets up, audits or incrementally upgrades a local Obsidian vault for knowledge work and content production, without overwriting or moving existing notes.

    159 GitHub stars~625 tokensUpdated 17 days ago
    Knowledge ManagementAuto-check passed
  • Turns source material into a pure-text 3x3 iMandalArt 2.2 card with a five-character center and eight labeled surrounding angles, laid out with hard line breaks.

    259 GitHub stars~3k tokensUpdated 2 mo ago
    Knowledge ManagementAuto-check passed
  • Bulletmind

    sickn33/agentic-awesome-skills

    Convert input into clean, structured, hierarchical bullet points for summarization, note-taking, and structured thinking.

    47k GitHub starsUsed in 1 repo~916 tokens
    Knowledge ManagementAuto-check passed
  • Agent Carnet Notebook

    yamadashy/repomix

    Saves and recalls markdown notes between agent sessions with the agent-carnet CLI, tracking which notes proved useful so stale ones expire and good ones stay.

    29k GitHub stars~1.2k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Personal Knowledge Wiki

    zhayujie/CowAgent

    Maintains a structured Markdown knowledge base in a knowledge/ folder by ingesting shared articles, synthesizing conversations and answering questions from it.

    47k GitHub stars~924 tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Qmd

    alsk1992/CloddsBot

    Local hybrid search for markdown notes and docs. An agent skill from alsk1992/CloddsBot.

    3k GitHub starsUsed in 3 repos~1.2k tokens
    Knowledge ManagementAuto-check passed

More from lijigang/ljg-skills

All 26 skills in this repo
  • Whole-Book Explainer Notes

    lijigang/ljg-skills

    Explains a whole book to someone who has not read it, keeping its specific content and showing how its threads connect, and saves the result as an Org note.

    7.5k GitHub stars~1k tokensUpdated 2 days ago
    Auto-check passed
  • Ljg Paper

    lijigang/ljg-skills

    Explain research papers to readers without a specialist background: what the paper studies, what the authors contribute, how the findings follow, and what the evidence does not establish.

    7.5k GitHub stars~798 tokensUpdated 2 days ago
    Auto-check passed
  • Text to PNG Card Caster

    lijigang/ljg-skills

    Turns text, URLs or local files into tall PNG cards through HTML typography, with four modes: long reading card, full-text layout, comic and whiteboard.

    7.5k GitHub stars~1.9k tokensUpdated 2 days ago
    Auto-check passed
  • Turns a named classical Chinese chapter, such as one from the Tao Te Ching or the Analects, into a single annotated PNG image with notes and commentary.

    7.5k GitHub stars~551 tokensUpdated 2 days ago
    Auto-check passed
  • Constraint Engine

    lijigang/ljg-skills

    Finds the handful of constraints that truly define a domain, role, product or debate, grades each by hardness, and explains the behavior those constraints produce.

    7.5k GitHub stars~2.1k tokensUpdated 2 days ago
    Auto-check passed
  • Offline HTML Talk Decks

    lijigang/ljg-skills

    Builds single-file offline HTML talk decks from Org or Markdown outlines, with faithful layout or editorial condensing and keyboard navigation.

    7.5k GitHub stars~506 tokensUpdated 2 days ago
    Auto-check passed

Questions about ljg-qa Question Chain Extractor

What does ljg-qa Question Chain Extractor do?

Turns an article, paper or book into a directed chain of sharp questions and four-part answers that retraces the author's reasoning, saved as an org-mode note. The skill reads a URL, a PDF or pasted text and pulls out the author's argument skeleton as questions about why a solution holds, how it differs from alternatives, what it costs and where it fails, rather than asking for definitions. Questions are ordered by logical dependency, not by chapter, so reading them in sequence retraces the author's reasoning.

When should I use ljg-qa Question Chain Extractor?

ljg-qa Question Chain Extractor fits situations like: extracting an article's core argument as a chain of questions and answers; studying a paper by questioning its method, cost and limits; turning a book chapter into reusable org-mode notes.

How do I install ljg-qa Question Chain Extractor in Claude Code?

Run `npx skills add lijigang/ljg-skills --skill ljg-qa -a claude-code`. Or copy the skill folder (skills/ljg-qa in lijigang/ljg-skills) into .claude/skills/ljg-qa in your project. Claude Code loads it when a task matches its description.

How do I install ljg-qa Question Chain Extractor in Codex?

Run `npx skills add lijigang/ljg-skills --skill ljg-qa -a codex`. Or copy the skill folder (skills/ljg-qa in lijigang/ljg-skills) into .agents/skills/ljg-qa in your project. Codex loads it when a task matches its description.

Can I use ljg-qa Question Chain Extractor in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lijigang/ljg-skills --skill ljg-qa -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ljg-qa, .gemini/skills/ljg-qa, .github/skills/ljg-qa and .opencode/skills/ljg-qa in your project.

What does ljg-qa Question Chain Extractor need to run?

Going by SKILL.md and its folder, ljg-qa Question Chain Extractor needs the command-line tools its instructions call (curl). Our summary lists: A notes folder at ~/Documents/notes for the output.

Does ljg-qa Question Chain Extractor access the network?

SKILL.md contains no URLs. Its commands use curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is ljg-qa Question Chain Extractor safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does ljg-qa Question Chain Extractor use?

ljg-qa Question Chain Extractor is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does ljg-qa Question Chain Extractor use?

About 590 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.5k tokens, read only when the agent opens those files.

What are the alternatives to ljg-qa Question Chain Extractor?

Skills that share tags, products or a category with ljg-qa Question Chain Extractor: Ray Obsidian Vault Setup (imraywang/rayskills, 159 stars), iMandalArt Mandala Cards (twhsi/skills, 259 stars), Bulletmind (sickn33/agentic-awesome-skills, 47k stars) and Agent Carnet Notebook (yamadashy/repomix, 29k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains ljg-qa Question Chain Extractor?

lijigang (a GitHub user) maintains it in lijigang/ljg-skills, which has 7,481 GitHub stars. The repository holds 26 skills in this directory. The repository was last updated on October 8, 2026.

Source: lijigang/ljg-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.