00-build-alignment-skill
Create your model-alignment skill from TRL documentation before learning DPO theory
npx skills add majiayu000/claude-skill-registry --skill 00-build-alignment-skill --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Build Your Alignment Skill You have a merged model that combines persona and agentic capabilities. But models that complete tasks eagerly can also complete harmful requests eagerly. Before learning alignment theory, you'll build a skill that encodes the knowledge you need. This lesson follows the pattern you've used throughout Part 8: create the skill first from official documentation, then use the chapter to test and improve it. By the end of this chapter, your `model-alignment` skill will be battle-tested and production-ready. ## Why Alignment Needs a Skill Alignment is not a one-time fix. It's an ongoing discipline with evolving techniques, common failure modes, and nuanced tradeoffs. Memorizing this is impossible. Encoding it into a skill makes the knowledge permanently accessible. | Traditional Approach | Skill-First Approach | |---------------------|---------------------| | Read papers, forget details | Build skill, query anytime | | Scattered alignment notes | Single authoritative source | | Reinvent safety patterns | Reuse validated approaches | | Cannot delegate to AI | AI executes your skill | Your merged Task API model from Chapter 67 needs alignment before deployment.
- Why Alignment Needs a Skill
- Step 1: Clone a Fresh Skills-Lab
- Step 2: Write Your LEARNING-SPEC.md
- Step 3: Fetch Official Documentation
- Step 4: Create Your model-alignment Skill
- Step 5: Verify Your Skill
- What Happens Next
- Try With AI
- Prompt 1: Verify Skill Structure
- Prompt 2: Connect to Task API Safety
- Prompt 3: Validate Against TRL Docs
- Safety Note
Clone the skills-lab repository git clone https://github.com/panaversity/skills-lab.git ~/skills-lab-ch68 Navigate to the directory cd ~/skills-lab-ch68 Create the skill directory structure mkdir -p .claude/skills/model-alignment cat > LEARNING-SPEC.md << 'EOF' cat > .claude/skills/model-alignment/SKILL.md << 'EOF' Check the skill exists ls -la .claude/skills/model-alignment/
What does the 00-build-alignment-skill skill do?
Create your model-alignment skill from TRL documentation before learning DPO theory
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill 00-build-alignment-skill --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
