GaleDocs

Tools

Rules

User rules in Gale userData plus .gale / Cursor instruction files.

Instruction files

create_rule writes a .mdc file under .gale/rules or ~/.gale/rules and mirrors it into .cursor/rules. Extra instruction paths sit on top of project AGENTS.md.

Rules

stringGale
Default
user-rules.md
Location
Settings → Tools → Rules
Storage
~/Library/Application Support/Gale/user-rules.md

User rules live in Gale userData, not OpenCode AGENTS.md. Workspace and global .mdc rules are canonical under .gale/ and ~/.gale/, with Cursor mirrors. create_rule writes those files; do not have the agent edit them by hand.

Extra instruction paths

stringGale
Default
[]
Location
Settings → Tools → Rules
Storage
preferences.instructionPaths

Comma-separated extra paths or globs injected with project instructions, such as docs/AGENT.md or **/.gale.md.

Built-in rules

Gale ships companion rules for the built-in vendor-ops skills. Each carries a triggers: frontmatter list; when the current turn's prompt names a trigger word (case-insensitive, word-boundary match), the rule body is injected after the first message and the agent consults the matching skill. Built-in rules are on by default — the Built-in toggle turns one off.

Built-in rules

jsonGale
Default
all enabled
Location
Settings → Tools → Rules
Storage
preferences.disabledBuiltinRules

Companion .mdc rules shipped inside the app next to the built-in skills. Each carries a triggers: frontmatter list — when the current turn's prompt names a trigger word (case-insensitive, word-boundary), the rule body is injected after the first message. On by default; the Built-in toggle turns one off.