lc-faq-add
БесплатноБез исполняемых скриптовНе проверенFile an interview question and answer into doc/faq/ in the shape the other 49 FAQs use — the sheet its Scope line owns, the numbered section it belongs under…
от yennanliu★ 141 звезда на GitHubОб этом скилле
File a Q&A into the FAQs
Add an answer to doc/faq/ and its 中文 counterpart under i18n/zh/faq/.
Invocation: /lc-faq-add <topic or question> — e.g.
/lc-faq-add kafka rebalancing, /lc-faq-add java virtual threads.
Why the translation is part of the job
doc/faq/ is 49 documents across 12 sub-trees and it is 100% translated — 902 of 902
sections. So a new English section does not leave the tree "mostly translated": it leaves
a hole that nothing reports until someone next runs node script/zh.js status faq, and the
page renders a Chinese document with an English gap in the middle of it.
That is why this skill writes both halves in one pass. It is also the difference between
this skill and markdown-doc-writer, which knows neither the tree nor the overlay.
Prime directives
- The Scope line picks the file, not the topic name. Every FAQ opens with one, and it
exists to stop two files growing into the same document. Read the candidates' Scope lines
before choosing — "connection pooling" could plausibly land in
db/,backend/orjava/, and only the Scope lines say which owns it. - File it under the section it belongs to. The FAQs are numbered documents
(
## 1) The Four Pillars of OOP→### 1-1) Encapsulation). A new answer goes under the section that owns the concept, never appended to the end as a loose question. - The Chinese section ships in the same change (see above).
- Every fence is tagged.
```java,```python,```sql,```bash, or```textfor ASCII diagrams and program output. Never a bare```. - Answer the question that gets asked. These are interview notes: the answer leads with the thing you would say out loud, then the mechanism, then the code if code helps. A tutorial that builds up to the answer is the wrong shape.
Where a file lives, and what that decides
The directory is the index category — build-site.js maps the top-level sub-directory:
| Directory | Card category |
|---|---|
doc/faq/java/ |
Java |
doc/faq/backend/ |
Backend |
doc/faq/db/ |
Database |
doc/faq/redis/, kafka/, flink/, sql/ |
Redis, Kafka, Flink, SQL |
doc/faq/spark/ |
Spark & Hadoop |
doc/faq/stream/ |
Streaming |
a file at doc/faq/ root |
General |
An unmapped sub-directory becomes its own capitalised category rather than failing — so a new directory is a decision about the index, and worth naming in the report.
The page name folds the sub-directory in: doc/faq/java/faq_OOP.md → faqs/java_faq_OOP.html.
The card title comes from the H1, and the card description is summarised from the lead
paragraph — so both are worth writing as something a reader would recognise.
The steps
1. Find the file whose Scope line owns it
ls doc/faq/ doc/faq/*/
grep -n "Scope" doc/faq/*/*.md doc/faq/*.md | grep -i "<topic keyword>"
Read the Scope lines of every plausible candidate, not just the one whose filename matches. If the best file is not the obvious one, say so in the report and explain which Scope line decided it.
A new FAQ file is right when no existing Scope line claims the area and the topic is worth more than a section. It needs its own H1 and Scope block:
# gRPC FAQ
> **Scope** — <what this file owns, and what it deliberately does not>.
> **See also**: [`./faq_API_design.md`](./faq_API_design.md) — <why you'd go there>.
---
## 1) <First section>
Add the See also line to the neighbouring file too, so the pair points both ways.
2. Read a neighbour, then place the section
sed -n '1,60p' doc/faq/<dir>/<file>.md
grep -n '^## \|^### ' doc/faq/<dir>/<file>.md
The heading numbering is positional (## 3) → ### 3-2)). Inserting a section in the
middle means renumbering the ones after it — which moves their anchors, so every link
aimed at them has to move in the same change. Prefer appending within the owning section,
and when a renumber is genuinely right, do the link sweep:
grep -rn "#<old-anchor>" doc/ i18n/ site/pages/
3. Write the answer
- lead with the answer, then the mechanism, then code (directive 5);
- bold the key terms the way the neighbours do —
**Pattern**,**Key Idea**; - a table when the answer is a comparison; that is what most of these questions are;
- every fence tagged (directive 4);
- headings never skip a level (
h2→h3, neverh2→h4).
4. Write the 中文 section in the same pass
node script/zh.js sync faq/<dir>/<file>
node script/zh.js todo faq/<dir>/<file> # the new section, with its key
Write it into i18n/zh/faq/<dir>/<file>.md under the key todo printed, keeping every
<!--CODE--> marker in order — compose throws otherwise. Structure and heading order
come from the English document; translate the heading text only. Links keep their English
anchor targets. API, class and command names stay in English.
**If the English FAQ h
Установить lc-faq-add в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGlobGrepBashWriteEditFAQ
Что делает скилл lc-faq-add?
File an interview question and answer into doc/faq/ in the shape the other 49 FAQs use — the sheet its Scope line owns, the numbered section it belongs under, tagged code fences — and write the matching 繁體中文 overlay section in the same pass, because that tree is 100% translated and a new English answer leaves a hole the moment it lands. Use when asked to add an FAQ entry, document an interview question, answer a backend/Java/SQL/Kafka question into the notes, or start a new FAQ file. Triggers - "add a question about virtual threads to the java FAQ", "/lc-faq-add kafka rebalancing", "document this interview question", "start a FAQ for gRPC".
Как установить скилл lc-faq-add?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл lc-faq-add запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic