Ls xhs note
Use when the user wants a complete Xiaohongshu note workflow that can start from a topic and turn it into a source article, a native note, and image assets, or continue from an existing note draft. Supports framework selection, model-native note drafting, and image generation.From its SKILL.md
npx -y skills add FrankL1u/liusir-skills --skill ls-xhs-noteAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
6.5 KB, ~1.2k tokens by cl100k_base, as published. Nobody here has run it
XHS Note Workflow
Create Xiaohongshu note assets from a topic or an existing draft.
Workflow rules live in references/. Repeatable execution lives in toolkit/. Content decisions belong to the model and the reference files; the CLI stays on the execution side.
Setup
- Run
cd toolkit && npm install && npm run build. - Run
pip install -r requirements.txt. - Choose a runtime root: project-local
./.ls-xhs-note/or user-level~/.liusir-skills/ls-xhs-note/. - Copy
config.example.yamlto{runtimeRoot}/config.yaml. - Add image provider keys only if automatic image generation is needed.
- Run
python3 scripts/validate_skill.pyafter setup or structural edits.
Skill Directory
| Path | Purpose |
|---|---|
references/pipeline.md | End-to-end workflow and routing |
references/frameworks.md | Primary framework definitions |
references/drafting-skeletons.md | Framework-specific draft body shapes |
references/writing-guide.md | Writing quality rules |
references/title-rules.md | Title, hook, tag, CTA, and first-screen copy rules |
references/xhs-constraints.md | Platform constraints |
references/visual-prompts.md | Visual planning rules |
references/style-selection.md | Preset recommendation matrix |
references/style-presets.md | Primary preset system and override mapping |
references/workflows/prompt-assembly.md | Series prompt assembly contract |
references/cli-reference.md | Command reference |
references/operations.md | Setup, onboarding, export, and maintenance notes |
references/style-template.md | Client configuration template |
references/skill-maintenance.md | Documentation and validation rules |
{runtimeRoot}/clients/{client}/style.yaml | Client profile and visual defaults |
{runtimeRoot}/clients/{client}/history.yaml | Export history |
{runtimeRoot}/clients/{client}/playbook.md | Optional local writing notes |
toolkit/dist/*.js | Built CLI entrypoints |
scripts/*.py | Intake and validation helpers |
runtimeRoot resolves in this order:
./.ls-xhs-note/~/.liusir-skills/ls-xhs-note/- the skill install directory as a read-only legacy fallback
Pipeline Overview
| Step | What happens |
|---|---|
| 1 | Load client config and route the request |
| 2 | Gather or accept a topic angle |
| 3 | Choose the angle and framework |
| 4 | Draft the note and polish posting copy |
| 5 | Generate images |
| 6 | Keep a placeholder post-generation step for later adjustment |
Workflow Layers
The skill currently has two layers:
- main workflow steps
- standalone maintenance tasks
Main workflow steps:
- load client configuration
- topic intake
- angle selection and framework choice
- draft the note and polish posting copy
- generate images
- keep a placeholder post-generation step for later adjustment
Standalone maintenance tasks:
- client onboarding
- history maintenance
Supported entry modes:
- topic-driven drafting
- existing draft polishing and export
- explicit
--steprouting
Critical Quality Rules
- Read
references/writing-guide.mdbefore drafting. - Keep one dominant angle per note.
- Write native note copy with model reasoning, not with programmatic skeleton generation as the primary path.
- Respect
{runtimeRoot}/clients/{client}/style.yamltone and blacklist fields. - Keep the first screen fast to scan.
- Use
references/frameworks.md,references/drafting-skeletons.md,references/writing-guide.md, andreferences/title-rules.mdtogether in Step 4. - Treat Step 5 as an image-generation workflow, not a dedicated first-page shortcut.
- If image generation fails, keep prompt-only output and continue.
- Use
presetas the primary visual decision; openstyleandlayoutonly as overrides. - Keep command behavior aligned with
references/cli-reference.md. - Do not move title, hashtag, slicing, or prompt decisions into heuristic CLI code.
Resilience: Never Stop on a Single-Step Failure
- If topic signals fail, continue with a direct topic.
- If client configuration is missing, initialize the minimum client structure and continue.
- If image generation fails, keep prompt files and generation diagnostics.
- Stop entirely only when required input is missing and no safe fallback exists.
Operations
Use references/operations.md for:
- first-run setup
- client onboarding
- export support
- maintenance support
Gotchas
- A note that preserves every branch of a long-form source will lose speed and clarity.
- Title quality depends on the actual angle, not on louder adjectives.
- Dense visual layouts fail quickly when the body copy is not already compact.
- The workflow drifts quickly if title, hashtag, slicing, or prompt choices move into heuristic code.
Comparison
| Workflow | Best use | Limitation |
|---|---|---|
| Full note workflow | Repeatable drafting and image generation | Later post-generation handling is still a placeholder |
| Raw prompt only | Quick idea exploration | No stable history or image plan |
| Manual packaging | Maximum manual control | Slow and inconsistent |
References
- Main workflow:
references/pipeline.md - Commands:
references/cli-reference.md - Writing:
references/writing-guide.md - Visual planning:
references/visual-prompts.md - Maintenance:
references/skill-maintenance.md
What ships with it: 51 files
113.8 KB alongside SKILL.md, 15 of them executable
agents/
- openai.yaml313 B
config/
- image-system.yaml1.5 KB
references/
- cli-reference.md3.8 KB
- drafting-skeletons.md5.2 KB
- frameworks.md9.7 KB
- operations.md1.7 KB
- pipeline.md5.9 KB
- presets/bold-type.md779 B
- presets/chalkboard.md706 B
- presets/clean-grid.md650 B
- presets/contrast-poster.md652 B
- presets/hand-doodle.md775 B
- presets/handwritten-flow.md706 B
- presets/mascot-infographic.md942 B
- presets/notion.md650 B
- presets/screen-print.md652 B
- presets/study-board.md720 B
- presets/study-notes.md720 B
- presets/tech-blueprint.md837 B
- skill-maintenance.md1.5 KB
- style-presets.md2.1 KB
- style-selection.md1.9 KB
- style-template.md1.5 KB
- title-rules.md3.2 KB
- topic-selection.md1.6 KB
- visual-prompts.md3.9 KB
- workflows/prompt-assembly.md4.5 KB
- writing-guide.md7.4 KB
- xhs-constraints.md2.0 KB
scripts/
- fetch_hotspots.pyruns478 B
- fetch_trendradar_hotspots.pyruns487 B
- title_keywords.pyruns419 B
- validate_skill.pyruns7.0 KB
toolkit/
- package.json943 B
- src/build-playbook.tsruns1.0 KB
- .clawhubignore36 B
- config.example.yaml552 B
- .gitignore72 B
- README.md3.5 KB
- requirements.txt60 B
11 more files not listed here. See all 51 in the repository.