ZeroSlop
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 frontmatter
2..zerosloprules
Project root rule file
3.AGENTS.md
Universal open agent markdown specification
4..cursorrules / .cursor/rules/*.mdc
Backwards-compatible Cursor import

Rule 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
PropertyTypeDescription
alwaysApplybooleanIf true, injected into every single prompt turn unconditionally.
globsstringPattern match (e.g. `src/**/*.py`). Attaches when edited file matches.
descriptionstringSemantic description used by the agent to attach the rule intelligently.