xiaohongshu
xiaohongshu
amcs-lyrics-generator
Generate song lyrics with citations from pinned sources. Enforces rhyme scheme, meter, syllable counts, hook strategy, and profanity filter while retrieving from MCP sources with deterministic hash-based pinning. Use when creating lyrics with structural constraints, source attribution, and policy...
Full skill instructions
Produces complete song lyrics that satisfy structural, stylistic, and policy constraints while maintaining full source provenance through hash-pinned retrieval.
Invoke this skill after PLAN and STYLE generation to create lyrics. Runs in parallel with PRODUCER node and feeds into COMPOSE.
inputs:
- name: sds_lyrics
type: amcs://schemas/lyrics-1.0.json
required: true
description: Lyrics entity from SDS with constraints and preferences
- name: plan
type: amcs://schemas/plan-1.0.json
required: true
description: Section order and target word counts
- name: style
type: amcs://schemas/style-1.0.json
required: true
description: Musical style for thematic alignment
- name: sources
type: array[amcs://schemas/source-1.0.json]
required: false
description: External knowledge sources for retrieval
- name: blueprint
type: amcs://schemas/blueprint-1.0.json
required: true
description: Genre-specific lyrical patterns and lexicon
- name: seed
type: integer
required: true
description: Determinism seed (use seed+2 for this node)
outputs:
- name: lyrics
type: string
description: Complete lyrics text with section markers
- name: citations
type: array[citation]
description: |
Source chunks used with provenance:
- chunk_hash: SHA-256 of source text
- source_id: UUID of source
- text: Actual source snippet
- weight: Influence weight (0-1)
- name: metrics
type: object
description: |
Quality metrics:
- rhyme_tightness: 0-1 score
- singability: 0-1 score (syllable consistency)
- hook_density: count per section
run_seed + 2 for LLM generation and retrieval tie-breakingplan.section_ordersds_lyrics.constraints.max_linessection_requirements (min/max lines, must_end_with_hook)sds_lyrics.rhyme_scheme (e.g., AABB, ABAB)sds_lyrics.syllables_per_linesds_lyrics.constraints.explicit:
sds_lyrics.hook_strategy:
sources:
style.mood + plan.section_order[0]{chunk_hash, source_id, text}sds_lyrics.source_citationsFor each section in plan.section_order:
Retrieve Section Constraints:
section_requirements[section] for min/max linestarget_word_counts[section] from planBuild Context:
Generate Lyrics:
run_seed + 2 + section_indexsds_lyrics.syllables_per_line ± 2must_end_with_hook, ensure last line is hookApply Profanity Filter:
explicit = false, scan for profanityStore Section:
[Verse 1], [Chorus], etc.If hook_strategy = "chant":
If hook_strategy = "lyrical":
If hook_strategy = "call-response":
Rhyme Tightness:
Singability:
Hook Density:
metrics.hook_densitymax_lines{lyrics, citations, metrics, _hash}Input:
{
"sds_lyrics": {
"language": "en",
"pov": "1st",
"tense": "present",
"rhyme_scheme": "AABB",
"syllables_per_line": 8,
"hook_strategy": "chant",
"section_order": ["Intro", "Verse", "Chorus", "Verse", "Chorus"],
"constraints": {
"explicit": false,
"max_lines": 40,
"section_requirements": {
"Chorus": {"min_lines": 6, "must_end_with_hook": true}
}
},
"source_citations": [{"source_id": "family-doc-uuid", "weight": 0.8}]
},
"sources": [
{
"source_id": "family-doc-uuid",
"chunks": [
{"hash": "abc123", "text": "Our family gathers every Christmas Eve..."},
{"hash": "abc456", "text": "The kids love decorating the tree together..."}
]
}
],
"seed": 44
}
Output:
{
"lyrics": "[Intro]\nSnowflakes falling, lights aglow\n\n[Verse]\nGathering 'round on Christmas Eve (8 syllables)\nThe kids decorate, we all believe (8 syllables)\n\n[Chorus]\nFamily time is what we need (8 syllables)\nLove and joy in every deed (8 syllables)\nSinging carols, feeling free (8 syllables)\nChristmas magic, you and me (8 syllables)\nFamily time is what we need (8 syllables - HOOK)\nLove and joy in every deed (8 syllables)\n\n[Verse]\n...\n\n[Chorus]\n...",
"citations": [
{
"chunk_hash": "abc123",
"source_id": "family-doc-uuid",
"text": "Our family gathers every Christmas Eve...",
"weight": 0.8
},
{
"chunk_hash": "abc456",
"source_id": "family-doc-uuid",
"text": "The kids love decorating the tree together...",
"weight": 0.8
}
],
"metrics": {
"rhyme_tightness": 0.95,
"singability": 0.88,
"hook_density": 3
},
"_hash": "ghi789..."
}
explicit=false violates policymax_lines per section truncates lyricsxiaohongshu
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