a5c-ai

constitutional-ai-prompts

Constitutional AI and safety guardrail prompts for aligned LLM behavior

a5c-ai 1,738 103 Updated 7mo ago

Resources

1
GitHub

Install

npx skillscat add a5c-ai/babysitter/constitutional-ai-prompts

Install via the SkillsCat registry.

About this skill

This skill provides constitutional AI principles and safety guardrail prompts to guide large language models toward aligned, harmless responses. It addresses the challenge of ensuring AI systems follow ethical guidelines while remaining helpful, by offering critique-revision patterns, refusal templates, and red-team testing prompts. Developers should use it when implementing content moderation systems or designing AI agents that require built-in safety mechanisms and principled response frameworks.

SKILL.md

Constitutional AI Prompts Skill

Capabilities

  • Design constitutional AI principles
  • Implement self-critique and revision prompts
  • Create harmlessness guidelines
  • Design refusal patterns for unsafe requests
  • Implement red-team testing prompts
  • Create ethics-aware response frameworks

Target Processes

  • system-prompt-guardrails
  • content-moderation-safety

Implementation Details

Constitutional Patterns

  1. Critique-Revision: Self-evaluate and improve responses
  2. Principle Adherence: Follow defined ethical principles
  3. Harmlessness Focus: Prioritize safe responses
  4. Helpfulness Balance: Balance helpfulness with safety
  5. Transparency: Acknowledge limitations

Configuration Options

  • Constitutional principles list
  • Critique prompts
  • Revision guidelines
  • Refusal templates
  • Escalation triggers

Best Practices

  • Define clear constitutional principles
  • Balance helpfulness and safety
  • Test with adversarial inputs
  • Document refusal patterns
  • Regular principle review

Dependencies

  • langchain-core