# Contributing to browserclaw Contributions welcome! Please: 1. Fork the repository 2. Create a feature branch (`git checkout -b my-feature`) 3. Make your changes 4. For code changes, run `npm run format:check && npm run lint && npm run typecheck && npm run build && npm test` 5. Submit a pull request Integration tests need Chromium: `npx playwright-core install chromium`. The pre-push hook runs `format:check` and `lint`; `git push --no-verify` skips it. ## OpenClaw sync: code, docs, and skills Documentation review is part of every OpenClaw sync. Include any needed updates in the same sync PR: - Check `README.md`, `PATTERNS.md`, and `examples/` against the resulting Browserclaw API and behavior: signatures, defaults, timeouts, cancellation, security policy, resource ownership, and requirements. - Edit `docs/agent-guide.md` for the guide and `.claude/skills/browserclaw/SKILL.md` for the entry skill, then run `npm run sync:agent-skills`. `npm version` runs the same sync through the `version` script, so manifests follow every bump. Never edit the generated copies; `src/agent-docs.test.ts` fails on drift. - Verify affected snippets against the implementation and exported types. Check skill frontmatter, local links, and `git diff --check`. Code changes still require the full verification commands above. - Record the documentation reviewed and any updates in the PR summary and sync run log. If no updates are needed, record that conclusion and its scope. - Reuse applicable worktrees, cached releases, and review evidence. Recheck documentation affected by follow-up fixes before pushing them. A documentation-only follow-up does not require a package version bump.