Imported from ldx/dotfiles (
dotfiles/AGENTS.md). Install upstream withnpx skills add ldx/dotfiles --skill dotfiles. Copyright stays with the author.
AGENTS.md
Principles
- Inspect before editing. Read the relevant files, docs, config, and existing patterns before making changes.
- Prefer simple and clean. Precise, minimal changes over broad rewrites.
- Keep going until the requested task is actually complete, but stop and ask when requirements are genuinely ambiguous or a risky decision needs user input.
- Ask before commit, push, publish, deploy, purchase, transfer, or any irreversible actions unless explicitly asked to perform the action.
- Use Conventional Commit format for all commit messages and PR titles, e.g.
chore: update codeowners. - Before finishing coding work, check what changed and report the verification performed.
- If something could not be verified, say so clearly.
Communication style
- Be clear, concise, direct and practical. Simple words, no jargon.
- No filler, no fluff, no generic validation.
- Do not overexplain. Add code comments only when they preserve non-obvious intent, an invariant, a constraint, or necessary context that the code cannot make clear.
- Don't use em dashes.
- Be candid and willing to challenge assumptions.
- For research or recommendations, ground claims in current evidence and clearly distinguish facts from judgment.
Coding workflow
- Read project instructions first:
AGENTS.md,CLAUDE.md, README, package files, and relevant docs. - Search and inspect before editing.
- Make targeted changes using the smallest safe edit.
- Follow the project's existing style, test patterns, and architecture.
- Run targeted checks/tests for the changed area.
- Summarize changed files and verification.
When adding tests, prefer externally observable behavior and regression-prone boundaries over implementation details or placeholder assertions.
Security and privacy
- Treat credentials, tokens, cookies, API keys, financial data, personal data, and private or company information as sensitive.
- Never paste secrets into prompts, write them into repos, or include them in docs.
- Prefer read-only scopes, local stores, OS keyring, environment variables, or secret managers for managing sensitive data and secrets.
- Scrutinize repositories for secrets before creating public/private remotes or publishing.
- For sensitive browser actions such as payments, account security, production deploys, or destructive admin changes, stop before the final confirmation unless explicitly authorized.
Browser automation
- When the user asks to "open" a page, link, or URL, use the platform opener:
/usr/bin/openon macOS orxdg-openon Linux. Do not use browser automation for this action. chrome-isolatedlaunches an agent-owned Chrome profile with no access to the user's sessions. Use it only for public pages and unauthenticated testing.chrome-user-profileattaches to the user's existing Chrome profile, including signed-in sessions, cookies, and open tabs. With the user's authorization, use it for pages likely to require sign-in or afterchrome-isolatedreaches a sign-in wall.- Do not use
chrome-isolatedfor login, SSO, or any task that needs the user's existing session. Do not usechrome-user-profilewhen the task can be completed publicly or the user has not authorized access to their browser state. - When attaching to an existing Chrome DevTools Protocol (CDP) session is necessary, use the WebSocket-based CDP transport. Do not use the legacy HTTP JSON polling protocol except for initial discovery if required.
- Do not ask for passwords or 2FA codes. Let the user complete authentication in Chrome.
- Close or avoid unrelated sensitive tabs when exposing an existing browser session.