Agent skill · Documentation

00-build-alignment-skill

Create your model-alignment skill from TRL documentation before learning DPO theory

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 16 KB
Bundled scripts: none
Path: skills/ai-ml/00-build-alignment-skill/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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.

What's inside
Steps it walks through
  1. Why Alignment Needs a Skill
  2. Step 1: Clone a Fresh Skills-Lab
  3. Step 2: Write Your LEARNING-SPEC.md
  4. Step 3: Fetch Official Documentation
  5. Step 4: Create Your model-alignment Skill
  6. Step 5: Verify Your Skill
  7. What Happens Next
  8. Try With AI
  9. Prompt 1: Verify Skill Structure
  10. Prompt 2: Connect to Task API Safety
  11. Prompt 3: Validate Against TRL Docs
  12. Safety Note
Ships with 1 file
  • metadata.json
Commands it runs
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/
More from claude-skill-registry
All skills →
About this skill
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.

Keep going