Skip to content

eric-cielo/moflo / .claude/skills/spell-builder

spell-builder

Verified

Create, edit, and validate spell definitions (YAML/JSON) that compose connectors and step commands into end-to-end spells. Use when building new spell definitions, modifying existing ones, or exploring available spell components.

FileKindSize
SKILL.mdskill md12.9 KB
architecture.mdmarkdown8.5 KB
connectors/github-cli/README.mdmarkdown2.0 KB
connectors/http/README.mdmarkdown1.4 KB
connectors/local-outlook/README.mdmarkdown1.9 KB
connectors/playwright/README.mdmarkdown1.7 KB
permissions.mdmarkdown4.3 KB
preflight.mdmarkdown4.1 KB
steps/agent/README.mdmarkdown1.8 KB
steps/bash/README.mdmarkdown1005 B
steps/browser/README.mdmarkdown2.1 KB
steps/condition/README.mdmarkdown1.1 KB
steps/github/README.mdmarkdown1.6 KB
steps/loop/README.mdmarkdown1.2 KB
steps/memory/README.mdmarkdown1.6 KB
steps/outlook/README.mdmarkdown2.9 KB
steps/parallel/README.mdmarkdown1.1 KB
steps/prompt/README.mdmarkdown923 B
steps/wait/README.mdmarkdown667 B

steps/browser/README.md

View on GitHub
# `browser` — Web Automation via Playwright

**Purpose:** Use this step to drive a browser for scraping, testing, or web interaction. Choose this over `bash` + `curl` when you need JavaScript rendering, form filling, authentication flows, or page snapshots.

## Usage

```yaml
- id: scrape-dashboard
  type: browser
  config:
    headless: true
    userDataDir: "~/.moflo/browser-profiles/myapp"
    timeout: 45000
    actions:
      - action: open
        url: "https://dashboard.example.com/metrics"
      - action: fill
        selector: "#username"
        value: "{credentials.DASH_USER}"
      - action: fill
        selector: "#password"
        value: "{credentials.DASH_PASS}"
      - action: click
        selector: "#login-btn"
      - action: wait
        selector: ".metrics-table"
      - action: snapshot
        outputVar: metricsPage
```

## Config

| Field | Required | Default | Description |
|-------|----------|---------|-------------|
| `actions` | Yes | — | Array of sequential browser actions |
| `headless` | No | `true` | Run without a visible browser window |
| `timeout` | No | `30000` | Default action timeout in milliseconds |
| `userDataDir` | No | — | Persistent browser profile path (preserves cookies/sessions) |

## Supported Actions

`open`, `click`, `fill`, `type`, `select`, `check`, `uncheck`, `hover`, `press`, `scroll`, `wait`, `snapshot`, `screenshot`, `evaluate`, `get-text`, `get-value`, `get-title`, `get-url`, `back`, `forward`, `reload`, `close`

## Outputs

| Field | Type | Description |
|-------|------|-------------|
| `html` | string | Page HTML (from `snapshot`) |
| `screenshot` | string | Base64-encoded screenshot |
| `text` | string | Extracted text content |
| *outputVar* | any | Custom variable set by actions with `outputVar` |

## Persistent Sessions

Set `userDataDir` to reuse login sessions across runs. Sign in once with `headless: false`, then all subsequent headless runs skip login automatically.

## Connector

Delegates to the `playwright` connector. See `connectors/playwright/README.md`.

## Source

`src/cli/spells/commands/browser-command.ts`
brainstormingobra/superpowersYou MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).Stars: 322kUpdated Claude CodeCodexVerifiedInstall
brand-guidelinesanthropics/skillsApplies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
frontend-designanthropics/skillsGuidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making choices that don't read as templated defaults.Stars: 198kUpdated Claude CodeCodexVerifiedInstall
mcp-builderanthropics/skillsGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).Stars: 198kUpdated Claude CodeCodexVerifiedInstall