aif-rules

Appends project conventions to RULES.md and registers area-specific rule files in config.yaml.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/1t1sCooL/zazyvala-bot --skill aif-rules-1t1scool
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: aif-rules
Source: https://github.com/1t1sCooL/zazyvala-bot/tree/main/.cursor/skills/aif-rules
Command: npx skills add https://github.com/1t1sCooL/zazyvala-bot --skill aif-rules-1t1scool

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Teams lose track of coding conventions scattered across chats and docs, and AI assistants generate inconsistent code without a persistent, loadable rules file. This Skill captures project rules into a structured RULES.md artifact that other AI Factory skills automatically load before executing tasks. ## Core Features & Use Cases - Direct rule addition: Append a rule in one command, e.g. "/aif-rules Always use DTO classes instead of arrays". - Interactive mode: Run without arguments to be prompted for the rule text via a guided question. - Area-specific rules: Create scoped convention files like rules/api.md or rules/frontend.md and register them as rules.<area> entries in .ai-factory/config.yaml. - Use Case: A backend team decides all database queries must go through repository classes; they add the rule once, and /aif-implement enforces it on every subsequent task. ## Quick Start Ask the AI to add the rule "Always use DTO classes instead of arrays" to the project rules using the aif-rules skill.

Frequently Asked Questions about aif-rules

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

FAQPage Schema
How do I add a coding convention that AI assistants will follow?▼

Run /aif-rules with the rule text as an argument, for example "/aif-rules Routes must use kebab-case". The rule is appended to .ai-factory/RULES.md and automatically loaded by /aif-implement before task execution.

How do I create area-specific rules for API or frontend code?▼

Use the area prefix, such as "/aif-rules area:api". The skill creates or updates .ai-factory/rules/api.md and registers it as rules.api in .ai-factory/config.yaml so area rules override base conventions.

What is the difference between RULES.md and rules/base.md?▼

RULES.md holds universal axioms managed by /aif-rules as a flat list. rules/base.md contains project conventions auto-detected during setup, and rules.<area> files hold area-specific rules. More specific rules take priority over general ones.

Does the skill prevent duplicate rules?▼

Yes. Before appending, the skill checks RULES.md for an existing rule with the same meaning and skips the addition, notifying the user instead of creating a duplicate entry.

What happens if .ai-factory/config.yaml does not exist?▼

The skill falls back to default paths (.ai-factory/RULES.md and .ai-factory/rules/) and English prompts. When registering an area rule without a config, it creates a minimal config scaffold containing the new rules.<area> entry.