aif-rules

Add project-specific rules to a `.ai-factory/RULES.md` file for automated loading.

Updated Feb 23, 2026
One-click install
npx skills add https://github.com/batFormat/sancrm-docs --skill aif-rules-batformat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: aif-rules
Source: https://github.com/batFormat/sancrm-docs/tree/main/.claude/skills/aif-rules
Command: npx skills add https://github.com/batFormat/sancrm-docs --skill aif-rules-batformat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps maintain consistency and quality in a project by allowing users to define and enforce specific coding rules and conventions.

Core Features & Use Cases

  • Rule Management: Add new project-specific rules to a central RULES.md file.
  • Automated Loading: Rules are automatically loaded by the /aif-implement skill before task execution.
  • Use Case: When starting a new project, you can use this skill to establish conventions like "Always use DTO classes instead of arrays" or "Routes must use kebab-case".

Quick Start

Use the aif-rules skill to add the convention that all database queries must go through repository classes.

Frequently Asked Questions about aif-rules

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

FAQPage Schema
How do I enforce project coding conventions automatically during development?

Project-specific coding conventions are enforced by adding direct rules to a `.ai-factory/RULES.md` file, which is automatically loaded before task execution to maintain consistent project standards.

What is the best way to document coding standards for an AI development workflow?

Documenting coding standards is done by writing actionable directives as a flat list in a `RULES.md` file, which prevents duplicates and formats rules for automated loading during implementation.

Can I add new coding rules interactively or do I need to provide arguments?

You can add coding rules by providing direct arguments or by using interactive prompts that guide you through entering the rule text, offering flexibility in how conventions are defined.

How do automated coding rules prevent duplicate entries in a project?

Automated coding rules prevent duplicates by checking existing entries in the `RULES.md` file before adding new directives, ensuring a flat and consistent list of actionable project standards.

Does the aif-rules skill format conventions as a flat list or nested categories?

The aif-rules skill formats conventions as a flat list of actionable directives rather than nested categories, preventing duplicates and maintaining a consistent project standard.