process-faq
БесплатноЗапускает вложенные скриптыНе проверенProcess and transform FAQ documents (xlsx, word, pdf, txt) into RAG-optimized format. Use when working with FAQ files, knowledge base documents, or when the…
от joneqian★ 32 звезды на GitHubОб этом скилле
Process FAQ - FAQ Knowledge Base Processor
Transform raw FAQ documents into RAG-optimized structured format with intelligent content expansion and analysis.
What This Skill Does
This skill helps you:
- Convert FAQ documents to readable Markdown format (script)
- Analyze FAQ content and identify expansion opportunities (Claude)
- Expand content: split complex questions, rewrite answers (Claude)
- Standardize format and generate keywords automatically (script)
Supported Input Formats
- Excel (.xlsx)
- Word (.docx)
- PDF (.pdf)
- Text (.txt)
Workflow Overview (3-Step Process)
Step 1: Convert → Markdown (script)
Step 2: Expand → Enhanced FAQ (Claude - THIS IS THE KEY STEP!)
Step 3: Standardize → Final RAG format (script)
New Workflow (Claude + Script Collaboration)
Step 1: Convert to Markdown (Script)
First, convert the input file to Markdown so Claude can read and analyze it:
python process-faq/scripts/convert_to_markdown.py <input_file>
This creates a *_for_analysis.md file with structured FAQ content.
Why Markdown?
- Claude can directly read and understand the content
- Better for analyzing content quality vs just checking format
- Allows for nuanced, intelligent analysis
Step 2: Claude Analyzes and Expands Content (CRITICAL!)
This is the most important step where YOU (Claude) create value!
Read the Markdown file and perform deep content analysis and expansion:
Phase A: Content Quality Analysis (质量检查)
IMPORTANT: Do this BEFORE expanding content!
Identify and document issues:
Logical Issues (逻辑问题)
- Contradictions: Do different answers give conflicting information?
- Example: Q1 says "支持退货" but Q2 says "不支持退货"
- Inconsistencies: Do similar questions have different answers?
- Example: "配送时间 3 天" vs "配送时间 5-7 天"
- Outdated Information: References to old products, prices, or policies?
- Contradictions: Do different answers give conflicting information?
Duplicate/Redundant Content (重复内容)
- Exact Duplicates: Same question appears multiple times
- Semantic Duplicates: "如何登录?" vs "怎么登录?" (same meaning)
- Overlapping Answers: Multiple questions share 80%+ identical content
Missing or Incomplete Information (缺失信息)
- Incomplete Answers: Too brief, missing key steps or details
- Missing Context: Assumes knowledge users may not have
- Broken Logic: Answer doesn't actually address the question
Clarity Issues (表达问题)
- Unclear Questions: Too vague ("支持什么?")
- Ambiguous Terms: Undefined jargon or acronyms
- Poor Structure: Wall of text without formatting
Action Required: Document all issues found and decide:
- ✅ Fix: Resolve contradictions, merge duplicates, clarify ambiguities
- ⚠️ Flag: Note issues that need user clarification
- ❌ Remove: Delete truly useless or incorrect content
Phase B: Content Expansion Strategy
Goal: Transform a small FAQ into a comprehensive, high-quality knowledge base
CRITICAL: Expansion must happen AFTER quality analysis!
Key expansion techniques:
Resolve Issues First (基于 Phase A 的发现)
- Fix Contradictions: Choose the correct information, note uncertainty for user
- Merge Duplicates: Combine semantically identical questions into one best version
- Complete Incomplete: Fill in missing steps, add context
- Clarify Ambiguities: Reword vague questions to be specific
Split Complex Questions
- If one question like "如何使用产品?" contains multiple sub-topics
- Break it into specific questions: "如何安装?", "如何配置?", "如何维护?"
Extract Knowledge Points from Long Answers
- If one answer is 500+ characters and covers multiple topics
- Identify each distinct knowledge point
- Create a dedicated Q&A for each point
- BUT: Ensure each extracted point is accurate and consistent
Identify Missing Common Questions
- Based on the domain, what would users naturally ask?
- Add questions that should exist but don't
- Consider user journey: pre-purchase → purchase → usage → troubleshooting
Rewrite Answers for Clarity
- Make each answer concise and focused
- Remove sales language if not appropriate
- Add structure (numbered lists, bullet points)
- Ensure consistency with other related answers
Example: Quality Analysis + Expansion
Original (with issues):
Q1: 你们是怎么调理睡眠的?
A1: [500字,包含:产品介绍、使用流程、手环说明、"手环180元"、售后政策等]
Q2: 先用后付是什么意思?
A2: [与Q1相同的500字回答]
Q3: 华为手环多少钱?
A3: 手环200元左右
Phase A Analysis - Issues Found:
- ❌ Contradiction: Q1 说"手环 180 元",Q3 说"手环 200 元左右"
- ❌ Duplicate: Q1 和 Q2 的回答完全相同
- ⚠️ Overlapping: 三个问题都提到手环,信息散乱
Phase B Expansion - After Fixes:
Q1: 你们是怎么调理睡眠的?
A1: 我们通过太赫兹能量睡垫来调理睡眠,能帮助疏通经络、改善气血循环...
[简洁,只讲核心调理原理,不再包含价格等无关信息]
Q2: 先用后付是什么意思?
A2: 先用后付就是您可以先把产品拿回家免费体验,有效果再付款...
[独立回答,不再重复Q1的内容]
Q3: 华为手环多少钱?
A3: 华为手环180元左右(已统一价格,解决矛盾)
Q4: 为什么要用华为手环测睡眠?
A4: 手环能精准测出入睡时间、
Установить process-faq в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadWriteBashAskUserQuestionВложенные файлы
FAQ
Что делает скилл process-faq?
Process and transform FAQ documents (xlsx, word, pdf, txt) into RAG-optimized format. Use when working with FAQ files, knowledge base documents, or when the user needs to analyze and restructure FAQ content for RAG systems.
Как установить скилл process-faq?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл process-faq запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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