xiaohongshu-skills
Scope
This skill packages an offline-first Xiaohongshu workflow into a portable bundle that works in both Codex and Claude Code.
Workflow:
- Snapshot source pipeline and vendor skills
- Redact secrets and replace risky binaries with placeholders
- Run smoke tests (syntax, unit tests, offline verify, render, publish dry-run)
- Backup via Git
- Verify key files via GitHub Contents API hash comparison
Required Inputs
- Source pipeline path (default:
/Users/hy3/Desktop/setting/xhs-pipeline) - Bundle destination path (default:
./bundle/xhs-pipeline) - GitHub repo owner/repo for backup
GITHUB_TOKENexported for backup/API verify
Standard Commands
scripts/package_snapshot.sh --source /abs/xhs-pipeline --dest ./bundle/xhs-pipeline
scripts/redact_snapshot.py --root ./bundle --report ./state/redaction_report.json
scripts/smoke_all.sh --mode full --publish-dry-run
scripts/backup_git.sh --repo-owner <owner> --repo <repo> --branch codex/xiaohongshu-skills-YYYYMMDD
scripts/verify_github_api.py --repo-owner <owner> --repo <repo> --ref main --checklist ./state/api_checklist.json
Outputs
state/redaction_report.jsonstate/smoke_report.jsonstate/backup_report.jsonstate/api_verify_report.json
Notes
- Redaction is mandatory before backup.
- Publish stage only uses
--dry-runin smoke mode. - Keep
SKILL.mdandCLAUDE.mdcommand contracts identical. - Read references only when needed:
references/title_2026_playbook.md: 2026 title/copy strategy and compliance-safe hooks.