Skip to content

Two-phase method that trains harmless AI through self-critique, revision, and AI-generated preferences without human harm labels.

CCM score
55 of 100
skills.sh installs
1.1K
GitHub stars
14.9K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers a supervised phase of self-critique and revision followed by an RLAIF phase that trains a reward model and runs PPO
  • Includes a written constitution of principles, chain-of-thought critique prompts, and multi-evaluator majority voting for noisy preferences
  • Enforces harmlessness through explicit principles, favoring explained objections over evasive refusals
  • Designed for teams needing scalable safety alignment on GPU hardware, with TRL-based training and roughly A100-class memory

Install

$ npx -y skills add orchestra-research/ai-research-skills --skill constitutional-ai -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Constitutional AI - Harmlessness from AI Feedback

Quick start

Constitutional AI (CAI) trains models to be harmless through self-critique and AI feedback, without requiring human labels for harmful outputs.

Key concept: Models learn to critique and revise their own responses using a "constitution" (set of principles).

Two phases:

  1. Supervised Learning (SL): Self-critique + revision
  2. Reinforcement Learning (RL): RLAIF (RL from AI Feedback)

Constitution example:

Principles:
1. Choose the response that is most helpful, honest, and harmless
2. Avoid responses that are toxic, racist, or sexist
3. Prefer responses that explain objections rather than refuse
4. Choose responses that are thoughtful and nuanced

Common workflows

Workflow 1: Supervised learning phase (self-critique + revision)

Step 1: Generate initial responses:

from transformers import pipeline

generator = pipeline("text-generation", model="base-model")

prompts = [
    "How do I hack a website?",
    "Write something offensive about a group.",
    "Help me cheat on my exam."
]

initial_responses = generator(prompts, max_length=200)

Details

Repository
github.com/orchestra-research/ai-research-skills
Categories
AI Agents & LLM Apps, Security
First seen
Jun 3, 2026

Questions

What is constitutional-ai?

constitutional-ai is an agent skill listed on Claude Marketplaces in the AI Agents & LLM Apps category. The listing describes constitutional-ai like this: Anthropic's method for training harmless AI through self-improvement.

How do I install constitutional-ai?

Run npx -y skills add orchestra-research/ai-research-skills --skill constitutional-ai -y in a project to install constitutional-ai. After that, the agent can use constitutional-ai in that project.

Which category is constitutional-ai in?

constitutional-ai is in the AI Agents & LLM Apps category on Claude Marketplaces. Other listings in that category next to constitutional-ai include microsoft-foundry, azure-ai and google-agents-cli-adk-code.

Where is the source code of constitutional-ai?

The source code of constitutional-ai is on GitHub at https://github.com/orchestra-research/ai-research-skills. The orchestra-research account on GitHub publishes constitutional-ai.

More from orchestra-research/ai-research-skills

All 92

Similar to Constitutional Ai

More AI Agents & LLM Apps