aif-rules

Append vetted rules to .ai-factory/RULES.md with single-rule-per-line formatting.

56|3|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/lee-to/ai-workspace --skill aif-rules-lee-to
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: aif-rules
Source: https://github.com/lee-to/ai-workspace/tree/main/.claude/skills/aif-rules
Command: npx skills add https://github.com/lee-to/ai-workspace --skill aif-rules-lee-to

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Project teams often struggle to maintain consistent conventions across codebases and tasks. This skill centralizes short, actionable rules in a single, versioned location (.ai-factory/RULES.md), enabling automatic loading by the task runner (/aif-implement) to enforce standards.

Core Features & Use Cases

  • Append rules to .ai-factory/RULES.md with each invocation, creating an ever-growing, auditable ruleset.
  • Respect project context by merging in skill-context overrides from .ai-factory/skill-context/aif-rules/SKILL.md when present.
  • Guardrails for automation tasks by ensuring rules are loaded before execution and applied to all relevant steps.
  • Use Case: A team adds a convention like "All database migrations must be tracked" and this rule is automatically enforced before deployment tasks begin.

Quick Start

Provide a new rule via argument or run in interactive mode to append rules to the project RULES.md.

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 conventions and coding standards automatically?▼

You can enforce project conventions by appending vetted, actionable rules to a centralized .ai-factory/RULES.md file. This standardizes project conventions by ensuring formatting integrity with a single-rule-per-line standard and preventing duplicates.

What is the best way to manage AI workflow rules for automated coding tasks?▼

Managing AI workflow rules involves centralizing short, actionable rules in a single versioned location. This enables automatic loading by the task runner to apply consistent guardrails across all relevant automation steps before execution.

How do I add new project rules to .ai-factory/RULES.md?▼

You can add new project rules by providing a rule via an argument or running in interactive mode. Each invocation appends the rule to the project RULES.md, creating an ever-growing, auditable ruleset.

Can I override project rules for a specific skill context?▼

Yes, you can override project rules by placing skill-context overrides in .ai-factory/skill-context/aif-rules/SKILL.md. The system operates within the project context and merges these overrides when present.

Does the centralized rules management support duplicate rule detection?▼

Yes, centralized rules management prevents duplicates and requires actionable language. It enforces a single-rule-per-line standard to maintain formatting integrity within the versioned ruleset.

Why are my project conventions not being applied during automated task execution?▼

Project conventions may not be applied if rules are not centralized in .ai-factory/RULES.md. Ensuring rules are automatically loaded before execution and applied to all relevant steps provides the necessary guardrails.