ai-following-rules
CommunityEnforce AI rules with hard and soft constraints.
Authorlebsral
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill helps you ensure AI outputs follow defined rules and policies by programmatically enforcing constraints instead of relying on ad-hoc prompting.
Core Features & Use Cases
- Hard rules with dspy.Assert to block violations (format, safety, policy) and retry until compliant.
- Soft guidance with dspy.Suggest to steer outputs without blocking progress.
- Modular composition: chaining multiple rules, content-policy checks, and custom error messages for deterministic results.
Quick Start
Configure a DSPy module that applies hard and soft rules to AI outputs to ensure compliance.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: ai-following-rules Download link: https://github.com/lebsral/DSPy-Programming-not-prompting-LMs-skills/archive/main.zip#ai-following-rules Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.