load-rules

Load user rules from ~/.ai/rules/ in defined order.

1|Updated Nov 19, 2025
One-click install
npx skills add https://github.com/MihaiOnSoftware/.ai --skill load-rules
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: load-rules
Source: https://github.com/MihaiOnSoftware/.ai/tree/main/skills/load-rules
Command: npx skills add https://github.com/MihaiOnSoftware/.ai --skill load-rules

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill loads all user rules from the ~/.ai/rules/ directory in their defined order, ensuring consistent rule application across sessions.

Core Features & Use Cases

  • Order-preserving loading: reads rules in the directory in a deterministic sequence and applies them in that order.
  • Robust handling: skips unreadable or invalid rule files with warnings and continues.
  • Use case: update your rule set by adding or modifying files in ~/.ai/rules/ and re-run to apply updates across tools.

Quick Start

Load all rules from ~/.ai/rules/ in the current session and apply them in order.

Frequently Asked Questions about load-rules

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

FAQPage Schema
How do I load AI rules from a local directory into my current session?

To load AI rules, the skill reads all user rule files from the ~/.ai/rules/ directory and applies them to the current session in their defined, deterministic order.

How are rule files ordered when applied to an environment?

Rule files are applied using order-preserving loading, which reads the files from the ~/.ai/rules/ directory in a deterministic sequence to ensure consistent behavior across tasks.

What happens if an unreadable or invalid rule file is found during initialization?

During initialization, the skill skips unreadable or invalid rule files with warnings and continues processing the remaining rules without halting the load operation.

Do I need any external dependencies to load rules from my local filesystem?

No external dependencies are required; loading rules requires only local filesystem access and standard runtime capabilities to read and apply the rule files.

What is the best way to update my AI rule set across different tools?

The best way to update your AI rule set is to add or modify files in the ~/.ai/rules/ directory, then re-run the skill to apply the updated rules across your tools.

Can I use this skill to apply configuration rules across different environments?

Yes, you can apply configuration rules across different environments, as the skill ensures deterministic behavior wherever the ~/.ai/rules/ directory resides.