Skip to content

Commit f38347e

Browse files
committed
Set up public Codex plugin marketplace
1 parent 003c7a9 commit f38347e

11 files changed

Lines changed: 556 additions & 97 deletions

‎.github/PULL_REQUEST_TEMPLATE.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## Summary
2+
3+
<!-- What changed, and who benefits? -->
4+
5+
## Plugin impact
6+
7+
<!-- Name the affected plugin(s), capabilities, auth policy, network/file access, and data boundaries. -->
8+
9+
## Verification
10+
11+
<!-- List commands run and any intentionally skipped checks. -->
12+
13+
- [ ] `npm run validate:marketplace`
14+
- [ ] Changed plugin tests
15+
- [ ] Cold-start setup instructions reviewed
16+
- [ ] Licenses and third-party notices reviewed
17+
- [ ] No credentials, customer data, private URLs, or personal paths added
18+
19+
## Reviewer notes
20+
21+
<!-- Call out security, legal, platform, or enterprise-admin review needed. -->

‎.github/workflows/marketplace.yml‎

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Marketplace
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- ".github/workflows/marketplace.yml"
7+
- ".agents/plugins/**"
8+
- "plugins/**"
9+
- "scripts/validate-marketplace.mjs"
10+
- "scripts/run-marketplace-tests.mjs"
11+
- "tests/**"
12+
- "package.json"
13+
- "README.md"
14+
- "CONTRIBUTING.md"
15+
- "SECURITY.md"
16+
push:
17+
branches: [main]
18+
paths:
19+
- ".github/workflows/marketplace.yml"
20+
- ".agents/plugins/**"
21+
- "plugins/**"
22+
- "scripts/validate-marketplace.mjs"
23+
- "scripts/run-marketplace-tests.mjs"
24+
- "tests/**"
25+
- "package.json"
26+
- "README.md"
27+
- "CONTRIBUTING.md"
28+
- "SECURITY.md"
29+
workflow_dispatch:
30+
31+
permissions:
32+
contents: read
33+
34+
concurrency:
35+
group: marketplace-${{ github.workflow }}-${{ github.ref }}
36+
cancel-in-progress: true
37+
38+
jobs:
39+
validate:
40+
name: Validate marketplace
41+
runs-on: ubuntu-latest
42+
timeout-minutes: 10
43+
steps:
44+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
45+
with:
46+
persist-credentials: false
47+
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
48+
with:
49+
node-version: "22.19.0"
50+
package-manager-cache: false
51+
- run: npm run validate:marketplace
52+
- run: npm run test:marketplace

‎.gitignore‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@
22
node_modules/
33
*.log
44
.codex-cache/
5+
.codex/
6+
.env
7+
.env.*
8+
!.env.example
9+
coverage/

‎CODE_OF_CONDUCT.md‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Code of Conduct
2+
3+
This project welcomes respectful, technically rigorous collaboration.
4+
5+
Participants are expected to:
6+
7+
- be constructive and considerate;
8+
- critique ideas and code without attacking people;
9+
- respect privacy and never post credentials, customer data, or private
10+
communications;
11+
- disclose conflicts of interest when recommending a plugin or dependency;
12+
- help keep the marketplace safe for people with different backgrounds and
13+
levels of experience.
14+
15+
Harassment, discrimination, threats, doxxing, or deliberately unsafe behavior
16+
are not acceptable. Maintainers may edit, hide, or remove content and restrict
17+
participation when needed to protect the project and its contributors.
18+
19+
Report conduct concerns privately through the repository owner's GitHub
20+
contact route. Do not post sensitive details in a public issue.

‎CONTRIBUTING.md‎

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Contributing
2+
3+
Thanks for helping make these plugins useful, inspectable, and safe to share.
4+
This is a public Codex marketplace, so a plugin is ready only when a new user
5+
can understand and verify it from a cold start.
6+
7+
## Add or update a plugin
8+
9+
1. Put the package at `plugins/<plugin-name>/`. Use lower-case kebab-case, and
10+
keep the folder name, marketplace entry name, and manifest `name` identical.
11+
2. Add `plugins/<plugin-name>/.codex-plugin/plugin.json` with accurate public
12+
metadata, capabilities, authentication behavior, version, repository URL,
13+
and license.
14+
3. Add or update the entry in
15+
`.agents/plugins/marketplace.json`. Local source paths must be
16+
`./plugins/<plugin-name>`.
17+
4. Include a plugin `README.md` that explains the first safe prompt,
18+
prerequisites, permissions, authentication, data boundaries, and failure
19+
behavior.
20+
5. Keep tests, fixtures, licenses, and third-party notices with the plugin or
21+
in clearly named companion folders.
22+
6. Add a `test:<plugin-name>` script to `package.json`. The marketplace-wide
23+
CI job discovers each catalog entry and runs that matching test script.
24+
25+
Never commit credentials, OAuth tokens, customer data, private URLs, personal
26+
paths, or generated caches.
27+
28+
## Validate locally
29+
30+
Node.js 22.19 or newer is required for the repository checks:
31+
32+
```sh
33+
npm run validate:marketplace
34+
npm run test:marketplace
35+
npm run validate
36+
```
37+
38+
Run the changed plugin's own test suite too. For Grafana Observability:
39+
40+
```sh
41+
npm run verify:grafana:source
42+
npm run test:grafana
43+
```
44+
45+
The deeper provider, authentication, install, and native-platform checks are in
46+
[the Grafana test guide](tests/grafana-observability/README.md).
47+
48+
## Pull requests
49+
50+
Keep pull requests focused. Describe:
51+
52+
- what the plugin does and who it is for;
53+
- what capabilities, network access, files, or authentication it needs;
54+
- how a reviewer can reproduce the happy path and a safe failure path;
55+
- the tests you ran and any intentionally skipped gates;
56+
- license or third-party-notice changes.
57+
58+
Use the [review and publish checklist](docs/review-and-publish.md) before asking
59+
for review. New plugins should include their own validation coverage and update
60+
the marketplace-wide checks when they introduce a new package shape.

‎README.md‎

Lines changed: 105 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,93 +1,139 @@
11
# Community Plugins
22

3-
Public, installable Codex plugins designed to be understandable and safely
4-
verifiable from the first task.
5-
Each plugin ships with its own manifest, operating guidance, tests, and
6-
reproducible release evidence.
3+
A public, Git-backed marketplace of Codex plugins that developers, prospects,
4+
and enterprise teams can inspect before they install. Each plugin is packaged
5+
with its manifest, setup guide, tests, and license or third-party notices.
76

8-
## Grafana Observability for Codex
7+
This repository is a community distribution source for local Codex, not an
8+
automatic listing in OpenAI's universal Plugins Directory. See
9+
[OpenAI's plugin packaging docs](https://developers.openai.com/plugins/build/plugins)
10+
for the distinction between public directory publishing and repo marketplaces.
911

10-
[![Watch the Grafana production-monitoring demo](docs/media/grafana-production-monitoring-demo.png)](docs/media/grafana-production-monitoring-demo-8x.mp4)
12+
## Add it to Codex
1113

12-
**[Watch the 23-second demo · 8× speed](docs/media/grafana-production-monitoring-demo-8x.mp4)** · [Full walkthrough · 3 minutes](docs/media/grafana-production-monitoring-demo.mp4)
14+
In Codex, choose **Add plugin marketplace** and use a repository slug or clone
15+
URL, not a raw `marketplace.json` URL:
1316

14-
[Grafana Observability](plugins/grafana-observability/README.md) gives Codex five
15-
bounded, administrator-reviewed ways to inspect Grafana evidence for
16-
infrastructure, APM, logs, IoT/edge, and business KPIs. Grafana and its
17-
datasources stay read-only; the plugin writes only its own local audit and
18-
evidence state.
17+
```text
18+
Source: tonyloehr/community-plugins
19+
Git ref: main
20+
Sparse paths:
21+
.agents/plugins
22+
plugins
23+
```
24+
25+
Those two sparse paths load the complete plugin catalog without pulling this
26+
repo's tests, demo media, or source receipts. To fetch every repository file,
27+
leave **Sparse paths** blank. To fetch only Grafana Observability, use these two
28+
paths instead:
29+
30+
```text
31+
.agents/plugins
32+
plugins/grafana-observability
33+
```
1934

20-
## Install
35+
Adding a marketplace makes its catalog available to browse. It does **not**
36+
install, enable, or authenticate every plugin. After adding it, install only
37+
the plugin you want.
2138

22-
Requires Codex and Node.js 22.19 or newer:
39+
The same flow from the CLI:
2340

2441
```sh
25-
codex plugin marketplace add tonyloehr/community-plugins --ref main
42+
# Load the full catalog efficiently.
43+
codex plugin marketplace add tonyloehr/community-plugins \
44+
--ref main \
45+
--sparse .agents/plugins \
46+
--sparse plugins
47+
48+
# Install one plugin from that catalog.
2649
codex plugin add grafana-observability@community-plugins
2750
```
2851

29-
Start a new Codex task after installation, then try:
52+
If you want a full checkout instead of a sparse one:
53+
54+
```sh
55+
codex plugin marketplace add tonyloehr/community-plugins --ref main
56+
```
57+
58+
The `@community-plugins` selector comes from the top-level `name` in
59+
[the marketplace manifest](.agents/plugins/marketplace.json), not from the
60+
GitHub URL. Start a new Codex task after installation so its skills and tools
61+
are picked up.
62+
63+
## Available plugins
64+
65+
| Plugin | Purpose | Learn more |
66+
| --- | --- | --- |
67+
| [Grafana Observability](plugins/grafana-observability/README.md) | Inspect administrator-approved, read-only Grafana evidence for infrastructure, APM, logs, IoT/edge, and business KPIs. | [Guide](plugins/grafana-observability/README.md) · [23-second demo](docs/media/grafana-production-monitoring-demo-8x.mp4) |
68+
69+
Grafana Observability requires Codex and Node.js 22.19 or newer. Its manifest
70+
declares both `Read` and `Write`. `Write` is limited to
71+
plugin-owned local audit and evidence files; it does not write to Grafana,
72+
datasources, dashboards, services, or deployments.
73+
74+
Its default startup uses a credential-free fixture, so you can verify the
75+
install without touching a Grafana instance:
3076

3177
```text
3278
Use $setup-grafana-observability to check the fixture profile and available packs.
3379
```
3480

35-
The default startup is a credential-free fixture, so installation can be
36-
checked without touching a Grafana instance. A real connection requires a
37-
read-only identity and an administrator-reviewed signed authority bundle. See
38-
the [plugin guide](plugins/grafana-observability/README.md) for the guarded
39-
setup flow and platform limits.
81+
## Copy-paste Codex prompts
4082

41-
The five evidence skills intentionally do not run against a canned Grafana
42-
dataset on first install. They stop until an administrator activates the exact
43-
packs and scopes the customer has reviewed, so simulated results cannot be
44-
mistaken for live evidence.
45-
46-
## What ships
83+
Browse before installing:
4784

4885
```text
49-
.agents/plugins/marketplace.json # Codex marketplace catalog
50-
plugins/grafana-observability/ # Installable plugin package
51-
tests/grafana-observability/ # Package, provider, auth, and install tests
52-
vendor/grafana-observability-source/ # Pinned source snapshot and receipts
53-
scripts/ # Validation and reproducibility tooling
86+
Add the Git-backed marketplace from tonyloehr/community-plugins at ref main. Use sparse paths .agents/plugins and plugins. List the available plugins and recommend the best fit for this repository, but do not install or authenticate anything yet.
5487
```
5588

56-
The Grafana plugin includes:
89+
Install one plugin:
5790

58-
- a `.codex-plugin/plugin.json` manifest and `.mcp.json` launcher;
59-
- six cold-start skills, including setup and five focused investigation paths;
60-
- five MCP tools with aliases, bounded windows, and opaque evidence references;
61-
- an integrity-checked packaged runtime, schemas, legal notices, and icon;
62-
- synthetic, real-Grafana, authentication, installed-client, Keychain, and
63-
source-provenance tests.
91+
```text
92+
If community-plugins is not already configured, add it from tonyloehr/community-plugins at ref main using sparse paths .agents/plugins and plugins/grafana-observability. Install grafana-observability@community-plugins, explain its permissions and authentication policy, and give me the credential-free smoke-test prompt for a new Codex task.
93+
```
6494

65-
The manifest declares both `Read` and `Write` because pack runs persist
66-
plugin-owned local evidence/audit files. It does not grant Codex write access
67-
to Grafana, datasources, dashboards, services, or deployments.
95+
Review before adoption:
6896

69-
## Verify
97+
```text
98+
Review tonyloehr/community-plugins before I install it. Inspect .agents/plugins/marketplace.json, each plugin manifest, declared capabilities, authentication policy, external endpoints, licenses, and setup instructions. Flag anything that needs security or admin review.
99+
```
70100

71-
No `npm install` is needed for the default package checks:
101+
## Update or remove
72102

73103
```sh
74-
npm run validate
75-
npm run verify:grafana:source
76-
npm run test:grafana
104+
# Refresh the Git-backed marketplace snapshot.
105+
codex plugin marketplace upgrade community-plugins
106+
107+
# Reinstall a plugin after a new version is published.
108+
codex plugin add grafana-observability@community-plugins
109+
110+
# Remove the configured marketplace source.
111+
codex plugin marketplace remove community-plugins
77112
```
78113

79-
For the Docker matrix, authentication, installed-client, native Keychain, and
80-
byte-for-byte source rebuild commands, see the
81-
[Grafana test guide](tests/grafana-observability/README.md). Source provenance
82-
and update mechanics are documented in
83-
[Grafana source and reproducible builds](docs/grafana-observability-source.md).
114+
For an enterprise fork or private mirror, use its HTTPS or SSH clone URL and
115+
make sure Git credentials already work non-interactively. Keep the same
116+
`.agents/plugins/marketplace.json` and `plugins/<name>/` layout.
117+
118+
## Repository layout
119+
120+
```text
121+
.agents/plugins/marketplace.json # Catalog and install policy
122+
plugins/<plugin-name>/ # One installable plugin
123+
.codex-plugin/plugin.json # Required plugin manifest
124+
README.md # Cold-start setup and safety guidance
125+
tests/<plugin-name>/ # Plugin-specific verification
126+
scripts/ # Marketplace and package checks
127+
```
84128

85-
## Contribute
129+
## Trust and contributions
86130

87-
Treat each plugin as a distributable product: keep its manifest, cold-start
88-
instructions, safety boundary, tests, licenses, and notices together. Run the
89-
checks above before opening a pull request, and use the
90-
[review and publish checklist](docs/review-and-publish.md) for release changes.
131+
Treat every plugin as code you are choosing to run. Review its manifest,
132+
capabilities, authentication policy, setup guide, and license before installing
133+
it. This repository never needs credentials committed to it.
91134

92-
This repository is Apache-2.0 licensed. Individual plugins can carry their own
93-
license and third-party notices; review those files before redistribution.
135+
See [CONTRIBUTING.md](CONTRIBUTING.md) to add or update a plugin,
136+
[SECURITY.md](SECURITY.md) to report a vulnerability, and
137+
[CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) for participation expectations. The
138+
repository is Apache-2.0 licensed; individual plugins may carry their own
139+
license and third-party notices.

‎SECURITY.md‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Security
2+
3+
## Reporting a vulnerability
4+
5+
Please do not open a public issue for a suspected vulnerability, leaked secret,
6+
or unsafe plugin behavior. Use this repository's
7+
[private security advisory form](https://github.com/tonyloehr/community-plugins/security/advisories/new).
8+
If that form is unavailable, open a public issue containing only “Security
9+
contact requested”—no technical details—and a maintainer will arrange a private
10+
channel.
11+
12+
Include:
13+
14+
- the affected plugin and version or commit;
15+
- a minimal reproduction;
16+
- expected and observed behavior;
17+
- possible impact and any safe mitigation;
18+
- whether credentials, customer data, or external systems may be involved.
19+
20+
Do not include real tokens, credentials, customer data, or private URLs in a
21+
report. Redact them before sharing.
22+
23+
## Supported scope
24+
25+
Security review covers the current `main` branch and the latest published
26+
version of each plugin in this marketplace. Older versions may be fixed only
27+
by upgrading.
28+
29+
Plugin authors should document capabilities, authentication, external
30+
endpoints, and data boundaries in each plugin README and manifest. A plugin
31+
must not silently broaden those boundaries in a routine update.

0 commit comments

Comments
 (0)