stably-sdk-rules
Installation
SKILL.md
Stably SDK Rules
Quick Rules
- Prefer raw Playwright for deterministic actions/assertions (faster + cheaper).
- Prioritize reliability over cost when Playwright becomes brittle.
- Use
agent.act()for canvas, coordinate-based drag/click, or unstable multi-step flows. - Use
expect(...).aiAssert()for dynamic visual assertions; keep prompts specific. - Use
page.extract()/locator.extract()when you need visual-to-data extraction. - Use
page.getLocatorsByAI()when semantic selectors are hard with standard locators. - Use
Inboxfor OTP/magic-link/verification email flows. - All prompts must be self-contained; never rely on implicit previous context.
- Keep
agent.act()tasks small; do loops/calculations/conditionals in code. - Use
fullPage: trueonly if content outside viewport matters. - Always add
.describe("...")to locators for trace readability. - For email isolation, use unique
Inbox.build({ suffix })per test and clean up.