Skip to content

Instantly share code, notes, and snippets.

@mobob
mobob / agent-browser.md
Last active January 15, 2026 05:11
Claude Code Skill for agent-browser

agent-browser

Browser automation CLI optimized for AI agents. Use npx agent-browser for all commands.

When to Use

  • Testing websites and web applications
  • Verifying UI changes after code modifications
  • Checking for console errors and page issues
  • Taking screenshots for documentation or debugging
# Create a new worktree and branch from within current git directory.
ga() {
if [[ -z "$1" ]]; then
echo "Usage: ga [branch name]"
exit 1
fi
local branch="$1"
local base="$(basename "$PWD")"
local path="../${base}--${branch}"
@t3dotgg
t3dotgg / try-catch.ts
Last active January 17, 2026 12:27
Theo's preferred way of handling try/catch in TypeScript
// Types for the result object with discriminated union
type Success<T> = {
data: T;
error: null;
};
type Failure<E> = {
data: null;
error: E;
};