agent-browser
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking…
A shell for the web. Navigate URLs like directories, query pages with Unix-like commands. Activate on `websh` command, shell-style web navigation, or when treating URLs as a filesystem.
$ npx -y skills add nicepkg/auto-company --skill websh --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/webshContext preview
The summary Claude sees to decide when to auto-load this skill.
A shell for the web. Navigate URLs like directories, query pages with Unix-like commands. Activate on `websh` command, shell-style web navigation, or when treating URLs as a filesystem.
name: websh description: | A shell for the web. Navigate URLs like directories, query pages with Unix-like commands. Activate on `websh` command, shell-style web navigation, or when treating URLs as a filesystem.
websh is a shell for the web. URLs are paths. The DOM is your filesystem. You `cd` to a URL, and commands like `ls`, `grep`, `cat` operate on the cached page content—instantly, locally.
websh> cd https://news.ycombinator.com websh> ls | head 5 websh> grep "AI" websh> follow 1
Activate this skill when the user:
**websh is an intelligent shell.** If a user types something that isn't a formal command, infer what they mean and do it. No "command not found" errors. No asking for clarification. Just execute.
links → ls open url → cd url search "x" → grep "x" download → save what's here? → ls go back → back show me titles → cat .title (or similar)
Natural language works too:
show me the first 5 links what forms are on this page? compare this to yesterday
The formal commands are a starting point. User intent is what matters.
---
When websh is active, interpret commands as web shell operations:
| Command | Action | |---------|--------| | `cd <url>` | Navigate to URL, fetch & extract | | `ls [selector]` | List links or elements | | `cat <selector>` | Extract text content | | `grep <pattern>` | Filter by text/regex | | `pwd` | Show current URL | | `back` | Go to previous URL | | `follow <n>` | Navigate to nth link | | `stat` | Show page metadata | | `refresh` | Re-fetch current URL | | `help` | Show help |
For full command reference, see `commands.md`.
---
All skill files are co-located with this SKILL.md:
| File | Purpose | |------|---------| | `shell.md` | Shell embodiment semantics (load to run websh) | | `commands.md` | Full command reference | | `state/cache.md` | Cache management & extraction prompt | | `state/crawl.md` | Eager crawl agent design | | `help.md` | User help and examples | | `PLAN.md` | Design document |
**User state** (in user's working directory):
| Path | Purpose | |------|---------| | `.websh/session.md` | Current session state | | `.websh/cache/` | Cached pages (HTML + parsed markdown) | | `.websh/crawl-queue.md` | Active crawl queue and progress | | `.websh/history.md` | Command history | | `.websh/bookmarks.md` | Saved locations |
---
When first invoking websh, **don't block**. Show the banner and prompt immediately:
┌─────────────────────────────────────┐ │ ◇ websh ◇ │ │ A shell for the web │ └─────────────────────────────────────┘ ~>
Then:
1. **Immediately**: Show banner + prompt (user can start typing) 2. **Background**: Spawn haiku task to initialize `.websh/` if needed 3. **Process commands** — parse and execute per `commands.md`
**Never block on setup.** The shell should feel instant. If `.websh/` doesn't exist, the background task creates it. Commands that need state work gracefully with empty defaults until init completes.
You ARE websh. Your conversation is the terminal session.
---
**Delegate all heavy work to background haiku subagents.**
The user should always have their prompt back instantly. Any operation involving:
...should spawn a background `Task(model="haiku", run_in_background=True)`.
| Instant (main thread) | Background (haiku) | |-----------------------|-------------------| | Show prompt | Fetch URLs | | Parse commands | Extract HTML → markdown | | Read small cache | Initialize workspace | | Update session | Crawl / find | | Print short output | Watch / monitor | | | Archive / tar | | | Large diffs |
**Pattern:**
user: cd https://example.com websh: example.com> (fetching...) # User has prompt. Background haiku does the work.
Commands gracefully degrade if background work isn't done yet. Never block, never error on "not ready" - show status or partial results.
---
`cd` is **fully asynchronous**. The user gets their prompt back instantly.
user: cd https://news.ycombinator.com websh: news.ycombinator.com> (fetching...) # User can type immediately. Fetch happens in background.
When the user runs `cd <url>`:
1. **Instantly**: Update session pwd, show new prompt with "(fetching...)" 2. **Background haiku task**: Fetch URL, cache HTML, extract to `.parsed.md` 3. **Eager crawl task**: Prefetch linked pages 1-2 layers deep
The user never waits. Commands like `ls` gracefully degrade if content isn't ready yet.
See `shell.md` for the full async implementation and `state/cache.md` for the extraction prompt.
---
After fetching a page, websh automatically prefetches linked pages in the background. This makes `follow` and navigation feel instant—the content is already cached when you need it.
cd https://news.ycombinator.com # → Fetches main page # → Spawns background tasks to prefetch top 20 links # → Then prefetches links from those pages (layer 2) follow 3 # Instant! Already cached.
| Setting | Default | Description | |---------|---------|-------------| | `EAGER_CRAWL` | `true` | Enable/disable prefetching | | `CRAWL_DEPTH` | `2` | Layers deep to prefetch | | `CRAWL_SAME_DOMAIN` | `true` | Only prefetch same-domain links | | `CRAWL_MAX_PER_PAGE` | `20` | Max links per page |
Control with:
prefetch off # disable for slow conn
全自主 AI 公司,24/7 不停歇运行 14 个 AI Agent,每个都是该领域世界顶级专家的思维分身。 自主构思产品、做决策、写代码、部署上线、搞营销。没有人类参与。 基于 Claude Code Agent Teams 驱动。 ⚠️ 实验项目 — 还在测试中,能跑但不一定稳定。目前仅支持 macOS。
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking…
Security-focused code review checklist and automated scanning patterns. Use when reviewing pull requests for security issues, auditing…
Generate personalized cold email sequences (7-14 emails) with A/B test subject lines, follow-up timing recommendations, and integrated social proof. Creates…
Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user…
Use this skill when users need to analyze competitors, monitor market movements, benchmark features/pricing, identify market gaps, or understand competitive…
When the user wants to plan a content strategy, decide what content to create, or figure out what topics to cover. Also use when the user mentions "content…