Skip to content

fix(cursor): make GitHub marketplace imports indexable - #93

Closed
zzAllenn wants to merge 4 commits into
chainbase-labs:mainfrom
zzAllenn:codex/cursor-marketplace-packaging
Closed

fix(cursor): make GitHub marketplace imports indexable#93
zzAllenn wants to merge 4 commits into
chainbase-labs:mainfrom
zzAllenn:codex/cursor-marketplace-packaging

Conversation

@zzAllenn

Copy link
Copy Markdown
Contributor

Summary

  • package the Cursor marketplace entry from the repository-local plugins/agentkey directory so GitHub marketplace imports can index AgentKey
  • generate the nested Cursor manifest and Skill bundle from the canonical root files
  • run the generator in CI and fail with a repair command when committed generated files are stale
  • document the generated-directory contract and Cursor refresh behavior in both English and Chinese

Why

Cursor's marketplace indexer expects a local marketplace source to resolve to a self-contained plugin directory. The previous root source could work when loaded from a local checkout but GitHub imports indexed zero plugins. The repository-local package fixes that boundary, while the generator and CI guard prevent its duplicated distribution files from becoming a second source of truth.

Developer impact

Maintainers edit only .cursor-plugin/plugin.json and skills/agentkey/. plugins/agentkey/ is generated by ./scripts/sync-cursor-marketplace-plugin.sh; CI runs the generator on Linux and macOS and rejects any uncommitted generated diff. CI intentionally does not auto-commit to contributor branches.

Validation

  • npx -y bats tests/ — 26/26 passed
  • npx -y bats tests/cursor-plugin.bats — 6/6 passed
  • bash -n scripts/sync-cursor-marketplace-plugin.sh
  • JSON manifest validation with jq
  • generator rerun leaves plugins/agentkey/ unchanged
  • git diff --check origin/main...HEAD

@zzAllenn
zzAllenn marked this pull request as ready for review August 10, 2026 20:08
@zzAllenn zzAllenn closed this Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant