Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .cursor-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "diffbot",
"displayName": "Diffbot",
"version": "1.3.0",
"description": "Structured web knowledge tools for development and research. Enables querying of Diffbot’s Knowledge Graph (for organizations, people, and news articles) as well as web extraction, crawling, entity resolution, and web search.",
"author": {
"name": "Diffbot",
"url": "https://diffbot.com"
},
"license": "MIT",
"repository": "https://github.com/diffbot/diffbot-skills",
"homepage": "https://docs.diffbot.com/docs/getting-started-with-diffbot",
"keywords": [
"web-knowledge",
"structured-data",
"dql",
"knowledge-graph",
"entity-search",
"company-research",
"developer-tools"
],
"logo": ".claude-plugin/icon.png"
}
25 changes: 21 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,19 +30,36 @@ jobs:
for f in .claude-plugin/marketplace.json .claude-plugin/plugin.json \
.cortex-plugin/plugin.json .factory-plugin/plugin.json \
.grok-plugin/plugin.json .github/plugin/plugin.json \
docs/listing/*/marketplace-entry.json; do
.cursor-plugin/plugin.json plugin.json \
docs/listing/*/marketplace-entry.json \
docs/listing/openai/openai-extension.json; do
jq empty "$f" || { echo "::error file=$f::invalid JSON"; exit 1; }
done
want=$(jq -r .version .claude-plugin/plugin.json)
echo "plugin version ${want}"
for f in .cortex-plugin/plugin.json .factory-plugin/plugin.json \
.grok-plugin/plugin.json .github/plugin/plugin.json; do
.grok-plugin/plugin.json .github/plugin/plugin.json \
.cursor-plugin/plugin.json plugin.json; do
got=$(jq -r .version "$f")
if [ "$got" != "$want" ]; then
echo "::error file=$f::version ${got} does not match .claude-plugin/plugin.json ${want}"
exit 1
fi
done
# Root plugin.json is the Agent Plugins 1.0.0 manifest (awesome-copilot
# intake, OpenAI portable packages, Open Plugins directories). Its schema
# rejects any other top-level key.
extra=$(jq -r 'keys - ["$schema","name","version","description","author","homepage","repository","license","keywords","extensions"] | .[]' plugin.json)
if [ -n "$extra" ] || ! jq -e '."$schema" == "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json"' plugin.json >/dev/null; then
echo "::error file=plugin.json::not an Agent Plugins 1.0.0 manifest (extra keys: ${extra:-none})"
exit 1
fi
# Cursor reads its logo by relative path.
logo=$(jq -r '.logo // empty' .cursor-plugin/plugin.json)
if [ -n "$logo" ] && [ ! -f "$logo" ]; then
echo "::error file=.cursor-plugin/plugin.json::logo ${logo} does not exist"
exit 1
fi
if [ -f CHANGELOG.md ] && ! grep -Eq "^## \[?${want//./\\.}\]?" CHANGELOG.md; then
echo "::error file=CHANGELOG.md::no section for ${want}"
exit 1
Expand Down Expand Up @@ -99,12 +116,12 @@ jobs:
id: spec
run: |
set -euo pipefail
specs=$(grep -rhoE "pip install( -U| --force-reinstall --no-deps)? '[^']+'" skills README.md \
specs=$(grep -rhoE "pip install( -U| --force-reinstall --no-deps)? '[^']+'" skills README.md docs/listing/openai \
| grep -oE "'[^']+'" | tr -d "'" | sort -u)
echo "specifiers found:"; printf ' %s\n' $specs
count=$(printf '%s\n' "$specs" | grep -c .)
if [ "$count" -ne 1 ]; then
echo "::error::expected one diffbot specifier across skills and README, found ${count}"
echo "::error::expected one diffbot specifier across skills, README, and docs/listing/openai, found ${count}"
exit 1
fi
echo "spec=${specs}" >> "$GITHUB_OUTPUT"
Expand Down
128 changes: 128 additions & 0 deletions .github/workflows/openai-plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
name: ChatGPT / Codex plugin ZIP

# Builds the skills-only plugin ZIP for the OpenAI Plugins Directory
# (ChatGPT + Codex) and uploads it as a workflow artifact. Nothing is
# submitted: uploading the ZIP to platform.openai.com/plugins is a manual step
# (see docs/listing/openai/README.md).
#
# This workflow is the build script. It lives inline here, not in a scripts/
# file, because the Anthropic plugin directory scans main and refuses scripts
# from a non-Verified org (AGENTS.md). docs/listing/openai/README.md repeats
# the same commands for a local build; keep the two in step.
#
# No secrets are used and nothing calls the Diffbot API. No MCP server is
# packaged: the remote MCP half of the listing is out of scope.
on:
pull_request:
paths:
- "skills/**"
- "plugin.json"
- ".claude-plugin/icon.png"
- "docs/listing/openai/**"
- ".github/workflows/openai-plugin.yml"
push:
tags: ["v*"]
workflow_dispatch:

permissions:
contents: read

concurrency:
group: openai-plugin-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: Build and check the plugin ZIP
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v7

- name: Build dist/openai/diffbot-<version>.zip
id: build
run: |
set -euo pipefail
version=$(jq -r .version plugin.json)
out=dist/openai
stage="$out/diffbot"
rm -rf "$out"
mkdir -p "$stage/assets"
cp -R skills "$stage/skills"
cp LICENSE "$stage/LICENSE"
cp .claude-plugin/icon.png "$stage/assets/logo.png"
jq --slurpfile ext docs/listing/openai/openai-extension.json \
'. + {extensions: {"com.openai": $ext[0]}}' plugin.json > "$stage/plugin.json"
(cd "$stage" && python3 -m zipfile -c "../diffbot-${version}.zip" plugin.json LICENSE assets skills)
echo "version=${version}" >> "$GITHUB_OUTPUT"
echo "zip=${out}/diffbot-${version}.zip" >> "$GITHUB_OUTPUT"
python3 -m zipfile -l "${out}/diffbot-${version}.zip"

- name: Check the package against the documented limits
env:
STAGE: dist/openai/diffbot
ZIP: ${{ steps.build.outputs.zip }}
run: |
set -euo pipefail
fail=0
err() { echo "::error::$*"; fail=1; }
m="$STAGE/plugin.json"
i='.extensions["com.openai"].interface'

# Agent Plugins 1.0.0 allows only these top-level keys.
extra=$(jq -r 'keys - ["$schema","name","version","description","author","homepage","repository","license","keywords","extensions"] | .[]' "$m")
[ -z "$extra" ] || err "plugin.json has keys outside Agent Plugins 1.0.0: ${extra}"
jq -e '."$schema" == "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json"' "$m" >/dev/null || err "missing Agent Plugins \$schema"
jq -e '.name | test("^[a-z0-9]+(-[a-z0-9]+)*$") and (length <= 64)' "$m" >/dev/null || err "name must be lowercase with single hyphens, <= 64 chars"
jq -e '.version | test("^[0-9]+\\.[0-9]+\\.[0-9]+")' "$m" >/dev/null || err "version must be semver"
jq -e '(.keywords // []) | length <= 25' "$m" >/dev/null || err "more than 25 keywords"

# Listing limits for public submission.
jq -e "$i.displayName | type == \"string\" and length > 0 and length <= 30" "$m" >/dev/null || err "displayName must be 1-30 chars"
jq -e "$i.shortDescription | type == \"string\" and length > 0 and length <= 30" "$m" >/dev/null || err "shortDescription must be 1-30 chars"
jq -e "$i.longDescription | type == \"string\" and length > 0 and length <= 4000" "$m" >/dev/null || err "longDescription must be 1-4000 chars"
jq -e "$i.developerName | type == \"string\" and length > 0 and length <= 80" "$m" >/dev/null || err "developerName must be 1-80 chars"
jq -e "$i.category | type == \"string\" and length > 0" "$m" >/dev/null || err "category is required"
jq -e "($i.capabilities // []) | length <= 20 and all(length <= 120)" "$m" >/dev/null || err "capabilities: at most 20, each <= 120 chars"
jq -e "($i.defaultPrompt // []) | length <= 3 and all(length <= 128) and (unique | length) == length" "$m" >/dev/null || err "defaultPrompt: at most 3 unique prompts, each <= 128 chars"
for k in websiteURL supportURL privacyPolicyURL termsOfServiceURL; do
jq -e "($i.$k // \"https://\") | startswith(\"https://\") and length <= 1024" "$m" >/dev/null || err "$k must be an HTTPS URL"
done
for k in logo composerIcon; do
p=$(jq -r "$i.$k // empty" "$m")
[ -n "$p" ] || { err "$k is required"; continue; }
case "$p" in ./assets/*) ;; *) err "$k must be a ./assets/ path";; esac
[ -f "$STAGE/${p#./}" ] || err "$k points at a missing file: $p"
done

# Skills-only: no MCP, app, or hook configuration may ship.
for f in mcp.json .mcp.json .app.json hooks hooks.json; do
[ ! -e "$STAGE/$f" ] || err "$f must not be in the skills-only package"
done

# Every skill: name == dir, description <= 1024, plugin:skill <= 64.
plugin=$(jq -r .name "$m")
for f in "$STAGE"/skills/*/SKILL.md; do
dir=$(basename "$(dirname "$f")")
fm=$(awk 'NR==1 && $0!="---"{exit 1} NR>1 && $0=="---"{exit} NR>1{print}' "$f") || { err "$f: no frontmatter"; continue; }
name=$(printf '%s\n' "$fm" | sed -n 's/^name:[[:space:]]*//p' | tr -d '"'"'")
desc=$(printf '%s\n' "$fm" | sed -n 's/^description:[[:space:]]*//p' | sed 's/^"//; s/"$//')
[ "$name" = "$dir" ] || err "$f: name '$name' != directory '$dir'"
[ -n "$desc" ] && [ "${#desc}" -le 1024 ] || err "$f: description must be 1-1024 chars (${#desc})"
[ "$(printf '%s:%s' "$plugin" "$name" | wc -c)" -le 64 ] || err "$f: ${plugin}:${name} longer than 64 chars"
done

# Archive limits: <= 100 MB compressed, <= 5000 entries.
size=$(stat -c %s "$ZIP")
entries=$(python3 -c 'import sys, zipfile; print(len(zipfile.ZipFile(sys.argv[1]).infolist()))' "$ZIP")
echo "zip ${ZIP}: ${size} bytes, ${entries} entries"
[ "$size" -le 104857600 ] || err "ZIP larger than 100 MB"
[ "$entries" -le 5000 ] || err "ZIP has more than 5000 entries"
exit "$fail"

- uses: actions/upload-artifact@v7
with:
name: diffbot-openai-plugin-${{ steps.build.outputs.version }}
path: ${{ steps.build.outputs.zip }}
if-no-files-found: error
retention-days: 30
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ jobs:
.cortex-plugin/plugin.json \
.factory-plugin/plugin.json \
.grok-plugin/plugin.json \
.github/plugin/plugin.json
.github/plugin/plugin.json \
.cursor-plugin/plugin.json \
plugin.json
do
version=$(node -p "require('./${f}').version")
if [ "$version" != "$tag" ]; then
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## Unreleased

### Added

- Root `plugin.json` in Agent Plugins 1.0.0 format. The awesome-copilot external-plugin intake requires it. It is also the base of the OpenAI ZIP and what Open Plugins directories (cursor.directory) detect.
- `.cursor-plugin/plugin.json` for the Cursor Marketplace.
- `.github/workflows/openai-plugin.yml`, which builds and checks the skills-only ChatGPT / Codex plugin ZIP and uploads it as an artifact.
- Listing playbooks in `docs/listing/cursor/` and `docs/listing/openai/`. `docs/listing/github/` now matches the current awesome-copilot intake. None of these catalogs has been submitted to.

Skills, tool behavior, and the 1.3.0 version are unchanged. No `.mcp.json` ships (Anthropic directory policy).

## 1.3.0 - 2026-11-17

### Changed
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,10 @@ These are curated third party catalogs that we have barely any control over but
| --- | --- | --- | --- |
| Claude Code | `/plugin install diffbot@claude-plugins-official` | `claude-plugins-official` | Submission in progress — see [`docs/listing/anthropic/`](docs/listing/anthropic/). The first-party `diffbot-skills` marketplace above needs no submission. |
| Grok Build | `/marketplace` → **diffbot** → `i` | `xai-official` | Submitted — [xai-org/plugin-marketplace#624](https://github.com/xai-org/plugin-marketplace/pull/624); see [`docs/listing/xai/`](docs/listing/xai/) |
| GitHub Copilot | `/plugin install diffbot@awesome-copilot` | `awesome-copilot` | Submission in progress — see [`docs/listing/github/`](docs/listing/github/) |
| GitHub Copilot | `/plugin install diffbot@awesome-copilot` | `awesome-copilot` | Packaging ready, not yet submitted — see [`docs/listing/github/`](docs/listing/github/) |
| Factory (Droid) | `droid plugin marketplace add https://github.com/Factory-AI/factory-plugins` then `droid plugin install diffbot@factory-plugins` | `factory-plugins` | Not yet submitted — see [`docs/listing/factory/`](docs/listing/factory/) |
| Cursor | — (not listed yet) | Cursor Marketplace, cursor.directory | Packaging ready, not yet submitted; `npx skills add diffbot/diffbot-skills -a cursor` works today — see [`docs/listing/cursor/`](docs/listing/cursor/) |
| ChatGPT / Codex | — (not listed yet) | OpenAI Plugins Directory | Packaging ready (skills-only ZIP), not yet submitted — see [`docs/listing/openai/`](docs/listing/openai/) |
| Cortex Code | `cortex plugin install diffbot` | Official Cortex marketplace | No public form — partner channel; Git / `npx skills` work today — see [`docs/listing/cortex/`](docs/listing/cortex/) |

## Setup
Expand Down
20 changes: 18 additions & 2 deletions docs/CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ work is the lever, not more words in the frontmatter.
## Multi-tool manifests

The same `skills/` tree is activated by per-tool manifests. Each tool looks in a
different place; keep all five plugin manifests in sync (name, version, description, license):
different place; keep all seven plugin manifests in sync (name, version, description, license):

| File | Tool | Notes |
| --- | --- | --- |
Expand All @@ -182,8 +182,10 @@ different place; keep all five plugin manifests in sync (name, version, descript
| `.cortex-plugin/plugin.json` | Snowflake Cortex Code | Preferred over `.claude-plugin/`; "if both present, `.cortex-plugin` wins" |
| `.github/plugin/plugin.json` | GitHub Copilot CLI + VS Code | Note the `plugin/` subdir. The one path VS Code reads that `.claude-plugin/` does **not** cover |
| `.factory-plugin/plugin.json` | Factory.ai (Droid) | No `.claude-plugin/` fallback — needs its own manifest. Components must stay at repo root, never inside `.factory-plugin/` |
| `.cursor-plugin/plugin.json` | Cursor Marketplace | Single-plugin layout from `cursor/plugin-template` (no `.cursor-plugin/marketplace.json`). `logo` points at `.claude-plugin/icon.png` so `main` carries one image, not two. See `docs/listing/cursor/` |
| `plugin.json` (repo root) | Agent Plugins / Open Plugins 1.0.0 | Required by the awesome-copilot intake gate (the root manifest is authoritative over `.github/plugin/`), the base of the OpenAI ZIP, and what cursor.directory auto-detects. VS Code reads it before `.github/plugin/plugin.json`. Its schema has `additionalProperties: false` — only `$schema`, `name`, `version`, `description`, `author`, `homepage`, `repository`, `license`, `keywords`, `extensions`. Keep OpenAI listing fields in `docs/listing/openai/openai-extension.json`, merged only into the ZIP |

- `license` is **required** by Copilot/GitHub — all five manifests carry it (MIT). Factory only requires name/description/version; extra fields are ignored.
- `license` is **required** by Copilot/GitHub — every manifest carries it (MIT). Factory only requires name/description/version; extra fields are ignored.
- Skills auto-discover from `skills/`; no `skills` path field needed in any manifest.
- **Copilot/VS Code manifest path = `.github/plugin/plugin.json` (with the `plugin/` subdir).**
Some third-party guides say bare `.github/plugin.json` or repo-root `plugin.json` — those are
Expand Down Expand Up @@ -225,6 +227,20 @@ different place; keep all five plugin manifests in sync (name, version, descript
loads only when the agent is working inside `docs/`. Read it explicitly before editing
skills or manifests, and point agents at it in any task that touches them.

### No `.mcp.json`, anywhere

cursor.directory and the OpenAI directory both detect an MCP config (`.mcp.json` /
`mcp.json`) at the plugin root. Do not add one to `main`: the Anthropic directory scans
`main` and refuses `.mcp.json` files, and Claude Code would load a root one into the
skills-only plugin. The remote `diffbot-mcp` server gets listed from its own repo (or a
branch this directory does not scan). See `docs/listing/cursor/`.

### ChatGPT / Codex ZIP

Built by `.github/workflows/openai-plugin.yml`. That workflow is the build script; the
commands sit inline in YAML because a script file on `main` is refused (`AGENTS.md`). Output
is `dist/openai/diffbot-<version>.zip` (gitignored). See `docs/listing/openai/`.

### Harnesses with NO addable manifest

- **ForgeCode** (`forgecode.dev`, the `.forge/` folder) has **no installable-plugin/manifest
Expand Down
14 changes: 12 additions & 2 deletions docs/listing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,19 @@ Internal docs for getting `diffbot` into each harness's curated catalog.

**Plugin / marketplace install:** native plugin commands and curated catalogs below. Git-based plugin install from this repo also works on every listed platform today.

**Pinned release:** `v1.1.0` @ `466f802ebadd8126bb09dc9fe9e81b736a8814b6`
**Latest release:** `v1.3.0` @ `f60776fdf449501a1d283c5098ab5e8b6c510e60`. Some per-platform folders still name an older pin; use the latest release, or the first tag that carries the files a catalog needs (see below), when submitting.

| Platform | Catalog | Submission path | Folder |
| --- | --- | --- | --- |
| Claude Code | `claude-plugins-official` | Partner / curator handoff (no public form) | [`anthropic/`](anthropic/) |
| Grok Build (xAI) | `xai-official` | PR to `xai-org/plugin-marketplace` (remote source, SHA-pinned) | [`xai/`](xai/) |
| GitHub Copilot | `awesome-copilot` | External-plugin intake issue | [`github/`](github/) |
| GitHub Copilot | `awesome-copilot` | External-plugin intake issue. Needs root `plugin.json`, so submit from the first tag after `v1.3.0` | [`github/`](github/) |
| Snowflake Cortex Code | Official Cortex marketplace | Partner channel (no public PR form) | [`cortex/`](cortex/) |
| Factory (Droid) | `factory-plugins` | PR to `Factory-AI/factory-plugins` | [`factory/`](factory/) |
| Cursor | Cursor Marketplace + cursor.directory | Publish form at cursor.com/marketplace/publish, and repo-URL submit on cursor.directory | [`cursor/`](cursor/) |
| ChatGPT / Codex | OpenAI Plugins Directory | ZIP upload at platform.openai.com/plugins (skills-only; needs a verified publisher) | [`openai/`](openai/) |

Cursor, awesome-copilot, and ChatGPT / Codex are **packaging ready, not yet submitted**.

Manifests in this repo (keep in sync):

Expand All @@ -25,5 +29,11 @@ Manifests in this repo (keep in sync):
| Cortex Code | `.cortex-plugin/plugin.json` |
| Copilot / VS Code | `.github/plugin/plugin.json` |
| Factory (Droid) | `.factory-plugin/plugin.json` |
| Cursor Marketplace | `.cursor-plugin/plugin.json` |
| Agent Plugins 1.0.0 (awesome-copilot intake, OpenAI ZIP, Open Plugins directories such as cursor.directory) | `plugin.json` (repo root) |

OpenAI listing fields live in `openai/openai-extension.json` and are merged into `plugin.json` only inside the built ZIP. Root `plugin.json` stays limited to the keys the Agent Plugins schema allows.

No `.mcp.json` ships at any path: the Anthropic directory scans `main` and refuses it (see `AGENTS.md` and [`cursor/`](cursor/)).

Skills auto-discover from `skills/` at the repo root (`diffbot-*` dirs with required `name:` frontmatter for both plugin hosts and `npx skills`). No `skills` path override in any manifest.
Loading