diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json new file mode 100644 index 0000000..c2729c0 --- /dev/null +++ b/.claude-plugin/marketplace.json @@ -0,0 +1,15 @@ +{ + "name": "nativeapptemplate", + "owner": { + "name": "NativeAppTemplate", + "url": "https://github.com/nativeapptemplate" + }, + "description": "NativeAppTemplate Agent — generate validated three-platform SaaS apps (Rails 8.1 API + SwiftUI iOS + Jetpack Compose Android) from a natural-language spec.", + "plugins": [ + { + "name": "nativeapptemplate-agent", + "source": "./plugin", + "description": "Generate, validate, and walk three-platform apps from inside Claude Code — generate-app + walk-app skills, bundling the generator MCP server + mobile-mcp." + } + ] +} diff --git a/README.md b/README.md index 6027ae5..d769565 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,14 @@ tree ./out/clinic-queue/ # └── validation-report.html ← self-contained visual report (open in a browser) ``` -The same generator also ships as an MCP server — `npx -y -p nativeapptemplate-agent nativeapptemplate-agent-mcp` exposes a `generate_app` tool, so any MCP-capable assistant (Claude Code, Cursor, Cline, Goose) can invoke it without leaving the editor. And a **Claude Code plugin** ships in [`plugin/`](./plugin/) — `claude --plugin-dir ./plugin` loads two skills: `/nativeapptemplate-agent:generate-app` (generate → validate → explain) and `/nativeapptemplate-agent:walk-app` (launch the app on a simulator/emulator and walk its UI via `mobile-mcp`, screenshots inline). See [`plugin/README.md`](./plugin/README.md). +The same generator also ships as an MCP server — `npx -y -p nativeapptemplate-agent nativeapptemplate-agent-mcp` exposes a `generate_app` tool, so any MCP-capable assistant (Claude Code, Cursor, Cline, Goose) can invoke it without leaving the editor. And a **Claude Code plugin** ships in [`plugin/`](./plugin/) with two skills: `/nativeapptemplate-agent:generate-app` (generate → validate → explain) and `/nativeapptemplate-agent:walk-app` (launch the app on a simulator/emulator and walk its UI via `mobile-mcp`, screenshots inline). Install it via the bundled marketplace: + +```bash +/plugin marketplace add nativeapptemplate/nativeapptemplate-agent +/plugin install nativeapptemplate-agent@nativeapptemplate +``` + +…or load it locally with `claude --plugin-dir ./plugin`. See [`plugin/README.md`](./plugin/README.md). ## Requirements diff --git a/plugin/.claude-plugin/plugin.json b/plugin/.claude-plugin/plugin.json index 429f074..d1de398 100644 --- a/plugin/.claude-plugin/plugin.json +++ b/plugin/.claude-plugin/plugin.json @@ -2,7 +2,7 @@ "name": "nativeapptemplate-agent", "version": "0.2.0", "description": "Generate a validated three-platform SaaS app (Rails 8.1 API + SwiftUI iOS + Jetpack Compose Android) from a one-sentence spec, explain the validation report, and walk the running app on a simulator/emulator via mobile-mcp — without leaving Claude Code.", - "author": { "name": "Daisuke" }, + "author": { "name": "Daisuke Adachi" }, "homepage": "https://github.com/nativeapptemplate/nativeapptemplate-agent", "repository": "https://github.com/nativeapptemplate/nativeapptemplate-agent", "license": "MIT" diff --git a/plugin/README.md b/plugin/README.md index 9d1e9e8..5d4ff90 100644 --- a/plugin/README.md +++ b/plugin/README.md @@ -72,11 +72,18 @@ Then in the session: After editing plugin files, run `/reload-plugins` to pick up changes. Confirm the skill is loaded via `/help` and the MCP server via `/mcp`. -## Install from git +## Install from the marketplace + +The repo ships a marketplace manifest (`.claude-plugin/marketplace.json`) that points at +this `plugin/` directory. Add the marketplace, then install: ``` -/plugin install github.com/nativeapptemplate/nativeapptemplate-agent +/plugin marketplace add nativeapptemplate/nativeapptemplate-agent +/plugin install nativeapptemplate-agent@nativeapptemplate ``` -> Note: the plugin lives in the `plugin/` subdirectory of the repo. If installing -> by path, point at `plugin/`, not the repo root. +`nativeapptemplate` is the marketplace name; `nativeapptemplate-agent` is the plugin. Once +installed, the skills are available as `/nativeapptemplate-agent:generate-app` and +`/nativeapptemplate-agent:walk-app` (and `/mcp` shows both bundled servers). The CLI forms +are `claude plugin marketplace add nativeapptemplate/nativeapptemplate-agent` and +`claude plugin install nativeapptemplate-agent@nativeapptemplate`.