Configuration • Persistent Instructions
Rules & AGENTS.md
Rules provide persistent, system-level instructions to the agent. ZeroSlop natively supports .zerosloprules, AGENTS.md, and legacy rule files, automatically applying coding standards, architecture constraints, and testing patterns.
Supported Rule Locations & Precedence
ZeroSlop resolves rules in the following order of precedence:
1..zeroslop/rules/*.md
Scoped project rules with frontmatter2..zerosloprules
Project root rule file3.AGENTS.md
Universal open agent markdown specification4..cursorrules / .cursor/rules/*.mdc
Backwards-compatible Cursor importRule File Anatomy
.zeroslop/rules/frontend.md
---
description: "Strict TypeScript and React coding standards"
globs: "app/**/*.{ts,tsx}"
alwaysApply: false
---
- Always use explicit TypeScript return types on public functions
- Prefer named exports over default exports
- Co-locate styles and unit tests in the same feature folder| Property | Type | Description |
|---|---|---|
| alwaysApply | boolean | If true, injected into every single prompt turn unconditionally. |
| globs | string | Pattern match (e.g. `src/**/*.py`). Attaches when edited file matches. |
| description | string | Semantic description used by the agent to attach the rule intelligently. |