Skip to content

Commit c2f22fe

Browse files
dadachiclaude
andauthored
feat(plugin): add marketplace manifest so the plugin is installable (#106)
* feat(plugin): add marketplace manifest so the plugin is installable The plugin was only loadable via `--plugin-dir` (local) — `/plugin install github.com/...` (as the README claimed) doesn't work without a marketplace. Add `.claude-plugin/marketplace.json` at the repo root registering the plugin (source: ./plugin), so it's installable by anyone. Install flow (verified against the CLI — validate ✔, local `marketplace add ./` resolved the ./plugin source and listed it): /plugin marketplace add nativeapptemplate/nativeapptemplate-agent /plugin install nativeapptemplate-agent@nativeapptemplate Fix the now-correct install instructions in plugin/README.md (was the bogus `/plugin install github.com/...`) and add the marketplace flow to the root README. Marketplace name `nativeapptemplate`; plugin name `nativeapptemplate-agent` (matches plugin.json, so skills stay `/nativeapptemplate-agent:*`). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(plugin): attribution → "Daisuke Adachi" (match package.json + LICENSE) The marketplace owner and plugin.json author read bare "Daisuke"; the canonical attribution everywhere else (package.json author, LICENSE copyright) is the full name "Daisuke Adachi". Align both, since marketplace owner is public catalog metadata shown when users add the marketplace. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore(plugin): marketplace owner → NativeAppTemplate org (+ url) owner identifies the catalog/distribution, so use the org/brand (with its GitHub URL) rather than a personal name — reads as the official marketplace and scales to more plugins/maintainers. plugin.json author stays "Daisuke Adachi" (the person who wrote it; matches package.json + LICENSE). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3355734 commit c2f22fe

4 files changed

Lines changed: 35 additions & 6 deletions

File tree

.claude-plugin/marketplace.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "nativeapptemplate",
3+
"owner": {
4+
"name": "NativeAppTemplate",
5+
"url": "https://github.com/nativeapptemplate"
6+
},
7+
"description": "NativeAppTemplate Agent — generate validated three-platform SaaS apps (Rails 8.1 API + SwiftUI iOS + Jetpack Compose Android) from a natural-language spec.",
8+
"plugins": [
9+
{
10+
"name": "nativeapptemplate-agent",
11+
"source": "./plugin",
12+
"description": "Generate, validate, and walk three-platform apps from inside Claude Code — generate-app + walk-app skills, bundling the generator MCP server + mobile-mcp."
13+
}
14+
]
15+
}

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,14 @@ tree ./out/clinic-queue/
126126
# └── validation-report.html ← self-contained visual report (open in a browser)
127127
```
128128

129-
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).
129+
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:
130+
131+
```bash
132+
/plugin marketplace add nativeapptemplate/nativeapptemplate-agent
133+
/plugin install nativeapptemplate-agent@nativeapptemplate
134+
```
135+
136+
…or load it locally with `claude --plugin-dir ./plugin`. See [`plugin/README.md`](./plugin/README.md).
130137

131138
## Requirements
132139

plugin/.claude-plugin/plugin.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nativeapptemplate-agent",
33
"version": "0.2.0",
44
"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.",
5-
"author": { "name": "Daisuke" },
5+
"author": { "name": "Daisuke Adachi" },
66
"homepage": "https://github.com/nativeapptemplate/nativeapptemplate-agent",
77
"repository": "https://github.com/nativeapptemplate/nativeapptemplate-agent",
88
"license": "MIT"

plugin/README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,18 @@ Then in the session:
7272
After editing plugin files, run `/reload-plugins` to pick up changes. Confirm the
7373
skill is loaded via `/help` and the MCP server via `/mcp`.
7474

75-
## Install from git
75+
## Install from the marketplace
76+
77+
The repo ships a marketplace manifest (`.claude-plugin/marketplace.json`) that points at
78+
this `plugin/` directory. Add the marketplace, then install:
7679

7780
```
78-
/plugin install github.com/nativeapptemplate/nativeapptemplate-agent
81+
/plugin marketplace add nativeapptemplate/nativeapptemplate-agent
82+
/plugin install nativeapptemplate-agent@nativeapptemplate
7983
```
8084

81-
> Note: the plugin lives in the `plugin/` subdirectory of the repo. If installing
82-
> by path, point at `plugin/`, not the repo root.
85+
`nativeapptemplate` is the marketplace name; `nativeapptemplate-agent` is the plugin. Once
86+
installed, the skills are available as `/nativeapptemplate-agent:generate-app` and
87+
`/nativeapptemplate-agent:walk-app` (and `/mcp` shows both bundled servers). The CLI forms
88+
are `claude plugin marketplace add nativeapptemplate/nativeapptemplate-agent` and
89+
`claude plugin install nativeapptemplate-agent@nativeapptemplate`.

0 commit comments

Comments
 (0)