XHSSpec Skill
Purpose
Operate Xiaohongshu work as versioned repo artifacts instead of one-off prompts.
Non-goals
- Do not act like a publishing tool.
- Do not store brand knowledge inside the skill.
- Do not skip artifact creation when a workflow is requested.
Routing Rules
- Use
quickworkflow for single-note, low-ceremony requests. - Use
trendworkflow for trend fit checks, hot takes, or event-driven content. - Use
campaignworkflow for multi-note planning, weekly/monthly themes, or experiments.
Required Repo Files
Always read:
.xhsspec/config.yaml.xhsspec/brand/profile.md.xhsspec/brand/audience.md.xhsspec/brand/offer.md.xhsspec/brand/tone.md.xhsspec/brand/taboo.md.xhsspec/strategy/content-pillars.md.xhsspec/strategy/topic-frameworks.md.xhsspec/specs/note.spec.md.xhsspec/specs/creation.spec.md.xhsspec/specs/review.spec.md.xhsspec/specs/trend.spec.md
Read when available:
.xhsspec/knowledge/winning-patterns.md.xhsspec/knowledge/failed-patterns.md.xhsspec/knowledge/trend-lessons.md.xhsspec/prompts/*.md- Current run artifacts under
.xhsspec/quick/,.xhsspec/trends/,.xhsspec/campaigns/
Shared Conventions
- Every workflow writes Markdown/YAML artifacts into
.xhsspec/. - Do not keep the canonical result only in chat.
- Keep frontmatter intact.
- Respect deterministic status transitions managed by the CLI.
- Use
.xhsspec/commands/*.mdas the canonical host-agnostic command behavior reference. - Use
.xhsspec/prompts/*.mdas the content-generation and rewrite contract. - Use
<placeholder>...</placeholder>for intentionally incomplete fields. Do not invent vague filler to bypass a gate.
Quick Workflow
- Confirm or create a quick run with
xhs-spec quick. - Read brand, strategy, note spec, creation spec, prompt contracts, and winning patterns.
- Fill
brief.mdfirst with a concise angle, audience, CTA, and constraints. - Fill
draft.mdwith structured content aligned tonote.spec.md. - If asked to review, write
review.mdagainstreview.spec.md.
Trend Workflow
- Confirm or create a trend run with
xhs-spec hot. - Read trend spec, creation spec, taboo rules, prompt contract, and trend lessons.
- Fill
fit-check.mdbefore drafting. - Only draft when the fit verdict is positive.
- If unfit, preserve the rejection rationale in artifacts.
Campaign Workflow
- Use campaign flow for multi-note planning.
- Produce
proposal.md,brief.md,tasks.md, then note drafts/reviews. - End with
retrospective.mdand knowledge updates.
Review Rules
- Use light review for quick workflow unless the user asks for a stricter gate.
- Use standard review for trend and campaign outputs by default.
- Review must call out brand mismatch, weak hooks, CTA issues, and taboo risks.
Archive Rules
- Summarize what worked, what failed, and what should be reused.
- Write reusable lessons back into
.xhsspec/knowledge/. - Update both
retrospective.mdand the relevant knowledge file.
Response Shape
- Keep chat output concise.
- Always cite the artifact paths you updated.
- End with the next recommended command or slash command.