Plugin Creator

Plugin Creator

Guides an agent to scaffold a Codex plugin directory with a plugin manifest, optional folders and a marketplace entry, using a bundled script.

Skill files5 files

agents/

references/

scripts/

SKILL.md161 lines
1
---
2
name: plugin-creator
3
description: Create and scaffold plugin directories for Codex with a required `.codex-plugin/plugin.json`, optional plugin folders/files, and baseline placeholders you can edit before publishing or testing. Use when Codex needs to create a new local plugin, add optional plugin structure, or generate or update repo-root `.agents/plugins/marketplace.json` entries for plugin ordering and availability metadata.
4
---
5
6
# Plugin Creator
7
8
## Quick Start
9
10
1. Run the scaffold script:
11
12
```bash
13
# Plugin names are normalized to lower-case hyphen-case and must be <= 64 chars.
14
# The generated folder and plugin.json name are always the same.
15
# Run from repo root (or replace .agents/... with the absolute path to this SKILL).
16
# By default creates in <repo_root>/plugins/<plugin-name>.
17
python3 .agents/skills/plugin-creator/scripts/create_basic_plugin.py <plugin-name>
18
```
19
20
2. Open `<plugin-path>/.codex-plugin/plugin.json` and replace `[TODO: ...]` placeholders.
21
22
3. Generate or update the repo marketplace entry when the plugin should appear in Codex UI ordering:
23
24
```bash
25
# marketplace.json always lives at <repo-root>/.agents/plugins/marketplace.json
26
python3 .agents/skills/plugin-creator/scripts/create_basic_plugin.py my-plugin --with-marketplace
27
```
28
29
For a home-local plugin, treat `<home>` as the root and use:
30
31
```bash
32
python3 .agents/skills/plugin-creator/scripts/create_basic_plugin.py my-plugin \
33
--path ~/plugins \
34
--marketplace-path ~/.agents/plugins/marketplace.json \
35
--with-marketplace
36
```
37
38
4. Generate/adjust optional companion folders as needed:
39
40
```bash
41
python3 .agents/skills/plugin-creator/scripts/create_basic_plugin.py my-plugin --path <parent-plugin-directory> \
42
--with-skills --with-hooks --with-scripts --with-assets --with-mcp --with-apps --with-marketplace
43
```
44
45
`<parent-plugin-directory>` is the directory where the plugin folder `<plugin-name>` will be created (for example `~/code/plugins`).
46
47
## What this skill creates
48
49
- If the user has not made the plugin location explicit, ask whether they want a repo-local plugin or a home-local plugin before generating marketplace entries.
50
- Creates plugin root at `/<parent-plugin-directory>/<plugin-name>/`.
51
- Always creates `/<parent-plugin-directory>/<plugin-name>/.codex-plugin/plugin.json`.
52
- Fills the manifest with the full schema shape, placeholder values, and the complete `interface` section.
53
- Creates or updates `<repo-root>/.agents/plugins/marketplace.json` when `--with-marketplace` is set.
54
- If the marketplace file does not exist yet, seed top-level `name` plus `interface.displayName` placeholders before adding the first plugin entry.
55
- `<plugin-name>` is normalized using skill-creator naming rules:
56
- `My Plugin` → `my-plugin`
57
- `My--Plugin` → `my-plugin`
58
- underscores, spaces, and punctuation are converted to `-`
59
- result is lower-case hyphen-delimited with consecutive hyphens collapsed
60
- Supports optional creation of:
61
- `skills/`
62
- `hooks/`
63
- `scripts/`
64
- `assets/`
65
- `.mcp.json`
66
- `.app.json`
67
68
## Marketplace workflow
69
70
- `marketplace.json` always lives at `<repo-root>/.agents/plugins/marketplace.json`.
71
- For a home-local plugin, use the same convention with `<home>` as the root:
72
`~/.agents/plugins/marketplace.json` plus `./plugins/<plugin-name>`.
73
- Marketplace root metadata supports top-level `name` plus optional `interface.displayName`.
74
- Treat plugin order in `plugins[]` as render order in Codex. Append new entries unless a user explicitly asks to reorder the list.
75
- `displayName` belongs inside the marketplace `interface` object, not individual `plugins[]` entries.
76
- Each generated marketplace entry must include all of:
77
- `policy.installation`
78
- `policy.authentication`
79
- `category`
80
- Default new entries to:
81
- `policy.installation: "AVAILABLE"`
82
- `policy.authentication: "ON_INSTALL"`
83
- Override defaults only when the user explicitly specifies another allowed value.
84
- Allowed `policy.installation` values:
85
- `NOT_AVAILABLE`
86
- `AVAILABLE`
87
- `INSTALLED_BY_DEFAULT`
88
- Allowed `policy.authentication` values:
89
- `ON_INSTALL`
90
- `ON_USE`
91
- Treat `policy.products` as an override. Omit it unless the user explicitly requests product gating.
92
- The generated plugin entry shape is:
93
94
```json
95
{
96
"name": "plugin-name",
97
"source": {
98
"source": "local",
99
"path": "./plugins/plugin-name"
100
},
101
"policy": {
102
"installation": "AVAILABLE",
103
"authentication": "ON_INSTALL"
104
},
105
"category": "Productivity"
106
}
107
```
108
109
- Use `--force` only when intentionally replacing an existing marketplace entry for the same plugin name.
110
- If `<repo-root>/.agents/plugins/marketplace.json` does not exist yet, create it with top-level `"name"`, an `"interface"` object containing `"displayName"`, and a `plugins` array, then add the new entry.
111
112
- For a brand-new marketplace file, the root object should look like:
113
114
```json
115
{
116
"name": "[TODO: marketplace-name]",
117
"interface": {
118
"displayName": "[TODO: Marketplace Display Name]"
119
},
120
"plugins": [
121
{
122
"name": "plugin-name",
123
"source": {
124
"source": "local",
125
"path": "./plugins/plugin-name"
126
},
127
"policy": {
128
"installation": "AVAILABLE",
129
"authentication": "ON_INSTALL"
130
},
131
"category": "Productivity"
132
}
133
]
134
}
135
```
136
137
## Required behavior
138
139
- Outer folder name and `plugin.json` `"name"` are always the same normalized plugin name.
140
- Do not remove required structure; keep `.codex-plugin/plugin.json` present.
141
- Keep manifest values as placeholders until a human or follow-up step explicitly fills them.
142
- If creating files inside an existing plugin path, use `--force` only when overwrite is intentional.
143
- Preserve any existing marketplace `interface.displayName`.
144
- When generating marketplace entries, always write `policy.installation`, `policy.authentication`, and `category` even if their values are defaults.
145
- Add `policy.products` only when the user explicitly asks for that override.
146
- Keep marketplace `source.path` relative to repo root as `./plugins/<plugin-name>`.
147
148
## Reference to exact spec sample
149
150
For the exact canonical sample JSON for both plugin manifests and marketplace entries, use:
151
152
- `references/plugin-json-spec.md`
153
154
## Validation
155
156
After editing `SKILL.md`, run:
157
158
```bash
159
python3 <path-to-skill-creator>/scripts/quick_validate.py .agents/skills/plugin-creator
160
```
161

© OpenAI · Apache 2.0 · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 6,373 prompts

More by @OpenSourceBuffGuy

See all
Website Clone Architect prompt image

Website Clone Architect

Reverse-engineers a website section by section, writes component specs, and hands them to parallel builder agents in git worktrees to rebuild it.

agent-skill, orchestrator, parallel-agents, multi-agent, plan-then-execute, web-development, frontend, codebase-analysis, scaffolding, css, html, nextjs, typescript, git, mcp, claude-code, for-developers, for-designers, long-form, advanced, technical-spec, task-decomposition, structured-output, design-systems, ui-ux, tool-use, checklist, report, vibe-coding

Italian Terrace Cafe Candid Portrait prompt image

Italian Terrace Cafe Candid Portrait

Generates a photorealistic candid shot of a woman in a white corset dress laughing at a sunny hotel terrace cafe, written as detailed JSON.

image-prompt, json-prompt, structured-output, photorealistic, portrait, woman, candid, fashion, cottagecore, natural-light, golden-hour, bokeh, summer, travel, cityscape, mountains, medium-shot, vibrant-colors, for-photographers, nano-banana, fashion-shoot, luxury

Night Street Photo With Leashed Cat prompt image

Night Street Photo With Leashed Cat

Generates a flash-lit night street photo of a blonde woman in a retro track jacket walking a hissing tabby cat on a leash.

image-prompt, json-prompt, nano-banana, structured-output, portrait, woman, animals, pet-portrait, night-scene, street-photography, candid, editorial, fashion, dramatic-lighting, photorealistic, vertical-format, medium-shot, graffiti, for-photographers, for-content-creators

1 view

Reviews

Loading reviews…

Discussion

Loading comments…