技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
lov-xhs【数据与研究】Default a Xiaohongshu topic request to a source-backed research report; use search-only mode only when requested. Use when the user mentions 小红书调研、攻略规划、选题研究、小红书搜索, or "search Xiaohongshu notes".
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
name: lov-xhs description: > Default a Xiaohongshu topic request to a source-backed research report; use search-only mode only when requested. Use when the user mentions 小红书调研、攻略规划、选题研究、小红书搜索, or "search Xiaohongshu notes". license: MIT compatibility: "Portable Agent Skills format. Requires Python 3.9+, xiaohongshu-cli 0.6.4+ with a logged-in session, and network access. jq and API keys are not required." allowed-tools:
A bare Xiaohongshu topic request is a research request, not a request to dump search JSON. The Skill discovers notes, reads selected note bodies, extracts an auditable evidence corpus, and returns a source-backed report that answers the operator's actual question. Explicit search-only mode remains available when the operator asks for it.
lov-media-crawler。lov-media-publisher。deep-research。Use report mode when the request names a topic, question, route, plan, comparison, recommendation, trend, selection, or strategy — including a bare phrase such as 「冈仁波齐线路规划」. Do not ask the operator to choose between “search” and “report” when the input is already a topic; default to report.
Use search-only mode only when the operator explicitly says “只搜索”, “查标题”, “列出笔记”, “导出 JSON”, “给我原始结果”, or otherwise asks for raw discovery rows rather than an answer. If the operator asks for both, deliver the report first and keep the JSON as an attached source artifact.
Read the shared user-profile/v1 contract at the start of every run. Resolve
values in this order: current request, project context, this Skill's records,
shared preferences, shared user/brand profile, then safe defaults. When the
operator directly states a durable preference or brand fact, persist it through
scripts/profile_store.py and report the saved profile path. Never persist
cookies, tokens, secrets, or inferred credentials. See
references/user-profile.md for the full contract.
Read references/skill-composition.md before deciding whether to hand off to an
adjacent capability. The record keeps report mode, search-only export, and media
download as separate, explicit handoffs rather than hidden dependencies.
You MUST follow these steps in order.
xhs --version and confirm xiaohongshu-cli is installed.xhs status and confirm authenticated: true and guest: false.xhs login --qrcode.references/implementation.md and references/authorship-integrity.md before building commands.--must-contain title filters unless the operator explicitly
requires terms in the title.AskUserQuestion only when a mandatory input is genuinely missing or the
requested mode is impossible to infer. Do not use it to ask whether a bare
topic should become a report; report mode is the default.--sort popular unless the operator asks otherwise.
Save JSON with --output.scripts/xhs_collect.py against the same query, or
read selected notes with xhs read --json when collection is unavailable.
Save the evidence corpus with --output.ok: true; inspect meta.matches,
meta.notes_collected, and meta.errors. Never fill a failed read with
invented content.references/research-report.md. Answer the
actual question first, then provide the executable plan/answer, evidence
table, conflicts, uncertainty, and source links.items and notes for note titles,
authors, dates, interaction counts, descriptions, and URLs. Label
professional reasoning or recommendations as synthesis, not as platform
fact.scripts/xhs_search.py with the operator's query, optional title terms,
page count, sort, and output path.ok: true; inspect meta.items_fetched and meta.matches.items as the only source for titles, authors, interaction counts,
dates, and URLs.meta.matches and meta.notes_collected, the evidence corpus path, and the
report file path when one was written.meta.matches.Only when the operator explicitly asks to download media for a selected note,
pass that note URL to lov-media-crawler. Do not download media by default.
xiaohongshu-cli 0.6.4+lov-branding-consistency for authored, audience-visible report copyThe Skill does not require jq, API keys, or an external cloud service.
python3 scripts/validate_skill.py .
The source passes only when every local reference and script resolves, trust files contain a real case and dimensions, and no private path or unresolved placeholder remains.