Introduction
STABLY.md is a markdown file you place in your project root to give the Stably AI agent project-specific instructions. Rules defined here apply across all agent modes (create, fix, build, init) and all surfaces (local CLI and server-side CI/ECS test generation).
Think of it like CLAUDE.md for Claude Code — but for Stably. It’s a great way to customize the agent to match your team’s workflow — your conventions, your selector strategy, your project context — while still getting the full benefit of Stably’s built-in browser management, test debugging tooling (e.g. Playwright Trace Viewer), and intelligent test generation under the hood.
Quick Start
1
Create the file
Add a
STABLY.md file to your project root:STABLY.md
2
Run any Stably command
The rules are automatically loaded and applied:You’ll see a confirmation in the CLI output:
File Location and Naming
STABLY.md must be committed to your repository. If it’s .gitignore’d, the CLI will still read it locally, but the server-side agent (CI/ECS) won’t be able to find it — meaning your rules won’t apply during PR-triggered or scheduled test generation.File Format
STABLY.md uses freeform markdown. There’s no required structure — write whatever instructions you want the agent to follow. The content is appended directly to the agent’s system prompt.
Maximum length: 10,000 characters (~2,500 tokens). Files exceeding this limit are automatically truncated with a CLI warning.
Template
When you runstably init, the following template is created:
STABLY.md
Example
Here’s a real-world example for a Next.js e-commerce app:STABLY.md
Relationship to Other Config Files
Stably has three mechanisms for customizing agent behavior. Each serves a different purpose:
When multiple files are present, they are concatenated in this order: