Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Run

ASecurity

Build, install, and run the app on a target device (auto-detects platform)

2 stars
0 votes
0 copies
1 views
Added 9/29/2026
developmentgophpswiftkotlinshellrails

Security Analysis

A100/100

Scanned 9/29/2026

$npx -y skills add abnegate/claudes --skill run --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Run?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Run
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/abnegate-run/badge)](https://www.skillsdirectory.com/skills/abnegate-run)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: run
description: Build, install, and run the app on a target device (auto-detects platform)
argument-hint: "[--no-install] [--device <target>] [--variant <variant>]"
---

# Run App

Build, install, and launch the application on a target device. Auto-detects the project platform and build system.

## Arguments

Parse `$ARGUMENTS` for named flags:
- `--no-install` — Skip the install step (assume already installed)
- `--device <target>` — Target device. Values:
  - **Android**: `emulator`, `physical`, or a device serial from `adb devices`
  - **iOS**: `simulator`, `physical`, or a device UDID
  - **Web**: `chrome`, `firefox`, `safari`, `edge`
  - **Flutter**: any `flutter devices` id
- `--variant <variant>` — Build variant (e.g. `debug`, `release`, `demo`). Defaults to `debug`. Passed through to `/skills:install`.

## Platform Detection (Parallel)

Launch parallel agents to detect the project platform:

**Agent 1 — Android**:
Check for: `build.gradle.kts` or `build.gradle` containing `android`, `AndroidManifest.xml`

**Agent 2 — iOS**:
Check for: `*.xcodeproj`, `*.xcworkspace`, `Podfile`, `Package.swift` with iOS platform

**Agent 3 — Web**:
Check for: `package.json` with `dev`/`start` script, `deno.json`, `composer.json`, `Gemfile`

**Agent 4 — Cross-platform**:
Check for: `pubspec.yaml` (Flutter), `build.gradle.kts` with `kotlin("multiplatform")` (KMP)

## Execution

### 1. Install (unless `--no-install`)

Run the `/skills:install` command with the resolved device target. This handles build + install.

### 2. Resolve Device

Determine the target device for launching:

**Android:**
1. `adb devices -l`
2. Match `--device` value:
   - `emulator` → device line containing `emulator`
   - `physical` → device line NOT containing `emulator`
   - Serial string → exact match
   - No value, one device → use it
   - No value, multiple devices → ask the user which to target
3. Extract serial for `adb -s <serial>` commands

**iOS:**
1. `simulator` → `xcrun simctl list devices booted` (boot one if none running)
2. `physical` → `xcrun devicectl list devices`
3. No value, one target → use it
4. No value, multiple targets → ask the user which to target

**Web:**
1. Resolve browser:
   - `chrome` → `open -a "Google Chrome"` (macOS) / `google-chrome` (Linux)
   - `firefox` → `open -a Firefox` / `firefox`
   - `safari` → `open -a Safari`
   - `edge` → `open -a "Microsoft Edge"` / `microsoft-edge`
   - No value → use whatever `open` or `xdg-open` defaults to
2. Dev server URL from framework detection (usually `http://localhost:3000` or `:5173` or `:8080`)

**Flutter:**
1. `flutter devices` to list available
2. Match `--device` value against device id or name
3. No value → first available

### 3. Launch

**Android:**
1. Detect the app package and main activity:
   - Parse `AndroidManifest.xml` for `package` attribute and the activity with `android.intent.action.MAIN`
   - Or parse from `build.gradle.kts`: `applicationId`
2. Launch: `adb -s <serial> shell am start -n <package>/<activity>`

**iOS Simulator:**
1. Detect bundle ID from `Info.plist` or Xcode project
2. Launch: `xcrun simctl launch booted <bundle-id>`

**iOS Device:**
1. `xcrun devicectl device process launch --device <udid> <bundle-id>`

**Web:**
1. Start dev server in background if not running:
   - `package.json` with `dev` script → `<pm> run dev`
   - `package.json` with `start` script → `<pm> run start`
   - `composer.json` (Laravel) → `php artisan serve`
   - `Gemfile` (Rails) → `bin/rails server`
   - `deno.json` → `deno task dev` or `deno task start`
2. Wait for server to be ready (poll localhost)
3. Open browser to the dev URL

**Flutter:**
1. `flutter run -d <device-id>`

### 4. Report

Confirm the app is running with:
- Device name and serial/id
- Package/bundle identifier
- Any relevant URL (for web)

## Error Handling

- **App not installed**: Run `/skills:install` even if `--no-install` was passed, then retry launch
- **Activity not found**: Re-detect from manifest, try alternate activity names
- **Device offline**: Report and suggest reconnecting
- **Port in use (web)**: Find the process on the port, report to user, suggest killing or using alternate port
- **Build failure**: Delegate to `/skills:build` command for diagnosis and fixing

Attribution

abnegateabnegate
View sourceSee grades on GitHubMore from abnegate →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Clean Code

Pragmatic coding standards - concise, direct, no over-engineering, no unnecessary comments

304955 votes

Browser Extension Developer

Use this skill when developing or maintaining browser extension code in the `browser/` directory, including Chrome/Firefox/Edge compatibility, content scripts, background scripts, or i18n updates.

286712 votes

Seo Optimizer

SEO optimization with keyword analysis, readability assessment, technical validation, content quality. Use for search rankings, blog posts, content audits, or encountering keyword density, readability scores, meta tags, schema markup errors.

2222 votes

Google Official Seo Guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

1862 votes

Writing Plans

Use when you have a spec or requirements for a multi-step task, before touching code

2927051 votes
View all in development →