# Agent Smoke Test

> Run manual development checks for SwiftAutoGUI AI Agent actions through the local sagui CLI. Use when Claude or Codex needs to test app-control or Accessibility BasicAction generation on macOS.

- **Type:** Skill
- **Install:** `agentstack add skill-nakaokarei-swiftautogui-agent-smoke-test`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [NakaokaRei](https://agentstack.voostack.com/s/nakaokarei)
- **Installs:** 0
- **Category:** [Web & Browser](https://agentstack.voostack.com/c/web-and-browser)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [NakaokaRei](https://github.com/NakaokaRei)
- **Source:** https://github.com/NakaokaRei/SwiftAutoGUI/tree/master/.agents/skills/agent-smoke-test
- **Website:** https://nakaokarei.github.io/SwiftAutoGUI/documentation

## Install

```sh
agentstack add skill-nakaokarei-swiftautogui-agent-smoke-test
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# SwiftAutoGUI Agent Smoke Test

Run examples from the repository root. Always source `~/.zshrc` so the latest
`OPENAI_API_KEY` is available.

Build once:

```bash
swift build --product sagui
```

Search for Swift in Safari:

```bash
source ~/.zshrc && .build/debug/sagui agent \
  "Search for Swift in Safari." \
  --max-iterations 10 --delay 1
```

Get the frontmost application:

```bash
source ~/.zshrc && .build/debug/sagui agent \
  "Use exactly one getFrontmostApp action, then mark the goal done." \
  --max-iterations 1 --delay 0
```

Activate Calculator:

```bash
source ~/.zshrc && .build/debug/sagui agent \
  "Use exactly one activateApp action with app name Calculator, then mark the goal done." \
  --max-iterations 1 --delay 0
```

Press Calculator button 7 with Accessibility:

```bash
source ~/.zshrc && .build/debug/sagui agent \
  "Calculator is open. Use exactly one pressButton action with label 7 and bundleID com.apple.calculator. Do not use mouse or keyboard actions." \
  --max-iterations 1 --delay 0
```

Set the first TextEdit text field:

```bash
source ~/.zshrc && .build/debug/sagui agent \
  "TextEdit has a Save sheet open. Use exactly one setTextField action with an empty label, value SWIFTAUTOGUI_AGENT_TEST, and bundleID com.apple.TextEdit." \
  --max-iterations 1 --delay 0
```

Select a TextEdit menu item:

```bash
source ~/.zshrc && .build/debug/sagui agent \
  "TextEdit has a rich-text document open. Use exactly one selectMenuItem action with path [Format, Make Plain Text] and bundleID com.apple.TextEdit." \
  --max-iterations 1 --delay 0
```

Raise a Calculator window:

```bash
source ~/.zshrc && .build/debug/sagui agent \
  "Use exactly one raiseWindow action with title Calculator and bundleID com.apple.calculator." \
  --max-iterations 1 --delay 0
```

Open a URL:

```bash
source ~/.zshrc && .build/debug/sagui agent \
  "Use exactly one openURL action with URL https://example.com." \
  --max-iterations 1 --delay 0
```

Quit Calculator:

```bash
source ~/.zshrc && .build/debug/sagui agent \
  "Use exactly one quitApp action with app name Calculator." \
  --max-iterations 1 --delay 0
```

Check the `Actions:` line in each command output to confirm which
`BasicAction` the Agent generated.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [NakaokaRei](https://github.com/NakaokaRei)
- **Source:** [NakaokaRei/SwiftAutoGUI](https://github.com/NakaokaRei/SwiftAutoGUI)
- **License:** MIT
- **Homepage:** https://nakaokarei.github.io/SwiftAutoGUI/documentation

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-nakaokarei-swiftautogui-agent-smoke-test
- Seller: https://agentstack.voostack.com/s/nakaokarei
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
