inject-rule

Appends user-provided rule arguments to the Ad-hoc Rules section of USER_CONTEXT.md.

1|1|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/csuzngjh/principles --skill inject-rule
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: inject-rule
Source: https://github.com/csuzngjh/principles/tree/main/claude/skills/inject-rule
Command: npx skills add https://github.com/csuzngjh/principles --skill inject-rule

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill allows for immediate, temporary adjustments to the AI's behavior or context without needing to permanently alter core system rules.

Core Features & Use Cases

  • Ad-hoc Rule Injection: Add custom rules to the user context on the fly.
  • Immediate Course Correction: Quickly guide the AI's responses or actions for a specific interaction.
  • Use Case: If the AI is misunderstanding a specific term or needs a temporary constraint for a particular task, you can use this Skill to inject a clarifying rule.

Quick Start

Inject a rule that states all future responses should be in a formal tone.

Frequently Asked Questions about inject-rule

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I apply temporary rules for immediate AI course correction?

To apply temporary rules for immediate AI course correction, you inject an ad-hoc rule into the user context. This dynamically adjusts agent behavior on the fly without modifying core system configurations.

Can I adjust AI behavior dynamically without altering kernel configurations?

Yes, you can adjust AI behavior dynamically without altering kernel configurations by injecting ad-hoc rules. This appends user-provided constraints directly to the user context for immediate effect.

What is ad-hoc rule injection in AI context management?

Ad-hoc rule injection in AI context management is the process of adding temporary rules to guide agent responses. It solves the problem of needing immediate course correction without permanent system changes.

How do I add a temporary constraint to user context on the fly?

You add a temporary constraint to user context by providing rule arguments to the injection mechanism. This appends the rule to the Ad-hoc Rules section of the USER_CONTEXT.md file, creating the section if it does not exist.

When do I need to inject rules into the user context?

You need to inject rules into the user context when the AI is misunderstanding a specific term or requires a temporary constraint for a particular task. This provides immediate course correction for that specific interaction.

Does injecting ad-hoc rules permanently modify core system rules?

No, injecting ad-hoc rules does not permanently modify core system rules. It only appends temporary constraints to the user context, allowing for dynamic, on-the-fly adjustments to agent behavior.