基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cdeistopened/skill-stack-skills --skill wiki-index-qmd命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Build and use an affirmation practice based on Scott Adams' specific methodology. Use when someone says 'how do affirmations work', 'teach me affirmations', 'does Adams really write affirmations', 'how to manifest goals', 'affirmation practice', 'I want to try affirmations', or 'what's Adams' affirmation system.' Teaches Adams' specific 15x daily writing practice with his caveats and track record.
Resolve apparent contradictions using Zakery Kline's three-strategy framework from How to Think. Use when someone says 'these two things both seem true but they contradict each other', 'how can X and Y both be right', 'this doesn't make sense — on one hand... but on the other hand', 'I'm confused by an apparent contradiction', 'these claims seem incompatible', or 'help me reconcile these two positions.' Walks through distinction-making, level analysis, and temporal resolution to determine whether the contradiction is real or resolvable.
Analyze text for logical fallacies using Zakery Kline's framework from Chapter 3 of How to Think. Use when someone says 'check this argument', 'find the fallacies', 'is this reasoning valid', 'analyze this debate', 'what's wrong with this argument', 'logical fallacies', 'is this logically sound', 'audit this essay', 'check my reasoning', or 'fallacy check.' Scans for all 10 named fallacies, quotes the specific passages, and shows how to fix each one.
| name | wiki-index-qmd |
| description | Index semantic chunks into QMD (local hybrid search) for article research and RAG queries. |
Index semantic chunks into QMD, a local hybrid search engine that combines BM25 keyword search, vector similarity, and reranking. QMD collections are used by the article writing agents to research topics before drafting.
After chunks exist in data/chunks/ (from wiki-chunk). QMD indexing is an alternative or complement to Qdrant Cloud embedding. Use QMD for local research and development; use Qdrant for the production RAG API.
data/chunks/ (JSON files from the chunking pipeline)| Variable | Required | Source |
|---|---|---|
| QMD CLI | Yes | Installed via bun |
| No API keys needed | -- | QMD runs locally |
qmd create-collection {slug}-transcripts
This creates an empty collection ready to accept documents.
qmd index --collection {slug}-transcripts --input data/chunks/ --format wiki-chunks
The wiki-chunks format tells QMD to:
chunks[] array from each fileepisode_idepisode_titletopic_titletopic_typekey_entitiestimestamp_starttimestamp_end# Check collection stats
qmd stats {slug}-transcripts
# Test a search query
qmd search --collection {slug}-transcripts --query "business idea for SaaS" --limit 5
To re-index after adding new chunks:
# Delete and recreate
qmd delete-collection {slug}-transcripts
qmd create-collection {slug}-transcripts
qmd index --collection {slug}-transcripts --input data/chunks/ --format wiki-chunks
Or index only new files:
# Index a specific file
qmd index --collection {slug}-transcripts --input data/chunks/new_episode.json --format wiki-chunks
QMD provides hybrid search combining three signals:
The article writing agents use QMD queries like:
qmd search --collection mfm-transcripts --query "Alex Hormozi business advice" --limit 10
Results include the chunk content, metadata, and relevance scores.
After indexing, the QMD collection contains:
| Field | Source |
|---|---|
| Document text | chunks[].content |
| episode_id | chunks[].episode_id |
| episode_title | chunks[].episode_title |
| topic_title | chunks[].topic_title |
| topic_type | chunks[].topic_type |
| key_entities | chunks[].key_entities |
| timestamp_start | chunks[].timestamp_start |
QMD indexing does not read wiki.yaml directly -- it works from the chunk JSON files. The slug from wiki.yaml is used as the collection name convention: {slug}-transcripts.
After indexing:
Document count: qmd stats {slug}-transcripts should show a document count close to the total chunk count across all JSON files
python3 -c "
import json, glob
total = sum(json.load(open(f))['total_chunks'] for f in glob.glob('data/chunks/*.json'))
print(f'Expected chunks: {total}')
"
Search relevance: Test 3-5 queries about known topics and verify results make sense:
qmd search --collection {slug}-transcripts --query "specific known topic" --limit 3
Entity search: Search for a top entity by name and confirm results include episodes where that entity appears
No empty documents: Spot-check that retrieved documents have meaningful content (not empty or truncated)
Transcripts ──► Chunks ──► QMD Index ──► Article Research Agent
└──► Qdrant Embeddings ──► Production RAG API
QMD and Qdrant serve different purposes:
Both can be populated from the same chunk files.
QMD not found: Install QMD via bun. Check that the qmd binary is on your PATH.
Indexing fails on large collections: Index in batches by pointing to individual chunk files rather than the entire directory.
Search returns irrelevant results: Check that chunks are properly segmented. Poor chunking quality upstream leads to poor search quality downstream.
Collection already exists: Use qmd delete-collection then recreate, or use the --upsert flag if available.