xiaohongshu
xiaohongshu
finetune-generate
Use when generating synthetic training data for multi-turn conversation fine-tuning. Triggers - have design artifacts ready, need to generate conversations, ready to assess quality. Requires finetune-design first.
Full skill instructions
Iteratively generate and filter training data until quality stabilizes.
Complete finetune-design first. You need:
By the end of this phase, you will have:
training_data.jsonl — Filtered, sliced training examplesgeneration_stats.md — Pass rates, criterion breakdown, iterationsprompt_versions/ — History of prompt iterationsThis is the most important part of the entire pipeline.
┌─────────────────────────────────────────────────────────────┐
│ TIGHT LOOP (5 transcripts per iteration) │
│ │
│ 1. Generate 5 transcripts │
│ 2. Assess with rubric (all backends) │
│ 3. HUMAN REVIEWS both transcripts AND assessments │
│ 4. Iterate based on human judgment │
│ 5. Repeat until ≥70% pass rate AND human satisfied │
│ │
│ Then: Scale to full volume │
└─────────────────────────────────────────────────────────────┘
Human review is required, not optional. The human reviews BOTH transcripts AND assessment results:
| Human reviews... | Looking for... |
|---|---|
| Transcripts | Quality issues the rubric might miss |
| Assessment results | False positives (passed but shouldn't have) |
| Assessment results | False negatives (failed but seems fine) |
| Both together | Gaps in what the rubric even checks |
Without human review:
| Rationalization | Reality |
|---|---|
| "Human review slows us down" | Skipping review = optimizing against broken metric. 1 hour of review saves days of bad data. |
| "Pass rate is high, must be fine" | High pass rate with single backend misses 20-30% of issues. Multi-backend + human review required. |
| "We can add calibration examples later" | Without calibration examples, backends disagree silently. Add them during design. |
| "The rubric is complete" | Rubrics evolve (e.g., 12→18 criteria). New failure modes emerge. |
| "One assessor backend is enough" | Single backend gave transcript 1000 perfect 1.0; other backends caught 4 failures. |
| "Let's just scale and filter later" | Scaling before 70% pass rate wastes compute. Fix prompts first. |
If you catch yourself using any of these rationalizations: STOP. Follow the gates.
You iterate on TWO things, not one:
| When you see... | Iterate on... |
|---|---|
| Transcript quality issues | Generation prompts (user-sim, assistant) |
| Assessment seems wrong | Assessor prompt, criteria wording |
| Backend disagreement | Calibration examples for that criterion |
| Missing failure mode | Add new criterion to rubric |
| Pass rates high but something feels off | Run expert role-play critique |
The rubric is never "done." In one project, criteria evolved: 12 → 14 → 16 → 17 → 18.
Expert role-play critique is required — periodically have Claude role-play domain experts to critique your rubric and small transcript batch directly. This catches blind spots invisible from your own perspective. See assessment-guide.md#expert-role-play-critique.
For each batch of 5 transcripts:
Gate (before scaling):
| Condition | Action |
|---|---|
| ≥70% pass rate AND human satisfied | Proceed to scale |
| 50-70% OR human sees issues | Continue iterating |
| <50% | Major revision needed |
Reference: generation-guide.md, assessment-guide.md
Once the tight loop stabilizes:
Warning signs during scale:
Run quantitative analysis on the full dataset to catch issues invisible in spot-checks:
| Check | Red Flag | Action |
|---|---|---|
| Phrase repetition | Any phrase in >50% of responses | Add to anti-patterns, regenerate |
| Structural rigidity | 100% same format | Vary response structure |
| Response length ratio | Avg >2x user length | Tighten length constraints |
| Praise distribution | Late responses 2x more praise | Adjust tone consistency |
Gate: No audit red flags
Reference: assessment-guide.md#audit-patterns
For failing transcripts, decide whether to fix or reject:
| Failure Type | Action |
|---|---|
| Soft failures (language, tone) | Attempt fixup with entailment constraint |
| Safety gate failures | Truncate at failure point or reject entirely |
| Structural issues | Usually reject |
Entailment constraint: Fixed response must naturally lead to user's next message. If fix breaks continuity → truncate instead.
If >30% need fixup: Generation prompts need revision.
Reference: assessment-guide.md#fixup-strategy
Create training examples from full transcripts:
50-turn transcript → ~8-10 training examples via slicing
Slicing strategy:
Token validation:
Leakage prevention:
Reference: assessment-guide.md#slicing-strategy
Optional: Use hugging-face-dataset-creator skill when ready to push training_data.jsonl to HF Hub.
Write progress after each transcript, not at the end:
for persona in personas:
transcript = generate_transcript(persona)
save_immediately(transcript) # Don't batch
API failures will happen. Use exponential backoff:
Track throughout generation:
Reference: assessment-guide.md#infrastructure
| Resource | What It Contains |
|---|---|
| code/SETUP-REFERENCE.md | Script templates: generate.py, assess.py, slice.py |
| code/infrastructure.py | Copy-paste ready: LLM backend, retry strategies, checkpointing |
| examples/therapy-domain.md | Complete therapy example: prompts, flaw patterns, criteria |
training_data.jsonl validatedxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience