Surf CLI — AI-автоматизация браузера через расширение Chrome

★ 7.1 · vibe-coding

surf-codebase is a Claude Code skill that enables navigation and modification of the surf-cli codebase — a Chrome extension with a native host for AI-driven browser automation. The architecture follows a cli.cjs → host.cjs → service-worker → browser pipeline using CDP (Chrome DevTools Protocol) and Chrome APIs. Core files include src/cdp/controller.ts (~1000 lines) covering mouse, keyboard, screenshot, network, and console tracking; src/content/accessibility-tree.ts (~1900 lines) for YAML a11y tree generation and element interaction; and native/cli.cjs plus native/host.cjs (~2100 lines each) handling CLI parsing and AI client integration with ChatGPT, Gemini, and Perplexity. The skill suits developers adding CLI commands, implementing new CDP operations, or building browser automation workflows that rely on accessibility-tree element references and network request capture.