Skip to content

Editorial diagram design for Claude Code, Codex, GitHub Copilot, Cursor, Factory Droid, Qoder, and Pi. 45 diagram types. Self-contained HTML + SVG. No shadows. No Mermaid slop.

feat: add native Qoder plugin support (#397)

calmdd0f58256956
diff --git a/.github/workflows/auto-bump.yml b/.github/workflows/auto-bump.yml
index 2802a33..e36a521 100644
--- a/.github/workflows/auto-bump.yml
+++ b/.github/workflows/auto-bump.yml
@@ -124,11 +124,13 @@ jobs:
expected_without_skill=$(printf '%s\n' \
.claude-plugin/plugin.json \
.codex-plugin/plugin.json \
- .factory-plugin/plugin.json | LC_ALL=C sort)
+ .factory-plugin/plugin.json \
+ .qoder-plugin/plugin.json | LC_ALL=C sort)
expected_with_skill=$(printf '%s\n' \
.claude-plugin/plugin.json \
.codex-plugin/plugin.json \
.factory-plugin/plugin.json \
+ .qoder-plugin/plugin.json \
skills/diagram-design/SKILL.md | LC_ALL=C sort)
actual=$(git diff --name-only | LC_ALL=C sort)
if [ "$actual" != "$expected_without_skill" ] \
@@ -142,6 +144,7 @@ jobs:
.claude-plugin/plugin.json \
.codex-plugin/plugin.json \
.factory-plugin/plugin.json \
+ .qoder-plugin/plugin.json \
skills/diagram-design/SKILL.md > version-bump.patch
test -s version-bump.patch
@@ -203,11 +206,13 @@ jobs:
expected_without_skill=$(printf '%s\n' \
.claude-plugin/plugin.json \
.codex-plugin/plugin.json \
- .factory-plugin/plugin.json | LC_ALL=C sort)
+ .factory-plugin/plugin.json \
+ .qoder-plugin/plugin.json | LC_ALL=C sort)
expected_with_skill=$(printf '%s\n' \
.claude-plugin/plugin.json \
.codex-plugin/plugin.json \
.factory-plugin/plugin.json \
+ .qoder-plugin/plugin.json \
skills/diagram-design/SKILL.md | LC_ALL=C sort)
patch_paths=$(git apply --numstat "$patch" | cut -f3- | LC_ALL=C sort)
if [ "$patch_paths" != "$expected_without_skill" ] \
@@ -236,6 +241,7 @@ jobs:
Path(".claude-plugin/plugin.json"),
Path(".codex-plugin/plugin.json"),
Path(".factory-plugin/plugin.json"),
+ Path(".qoder-plugin/plugin.json"),
)
semver = re.compile(r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$")
diff --git a/.maintainer-policy.json b/.maintainer-policy.json
index a505b50..744e907 100644
--- a/.maintainer-policy.json
+++ b/.maintainer-policy.json
@@ -19,6 +19,10 @@
{
"path": ".factory-plugin/plugin.json",
"json_pointer": "/version"
+ },
+ {
+ "path": ".qoder-plugin/plugin.json",
+ "json_pointer": "/version"
}
],
"require_synchronized": true,
diff --git a/.qoder-plugin/plugin.json b/.qoder-plugin/plugin.json
new file mode 100644
index 0000000..17ef670
--- /dev/null
+++ b/.qoder-plugin/plugin.json
@@ -0,0 +1,27 @@
+{
+ "name": "diagram-design",
+ "description": "Architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar, loop, nested, tree, org chart, layer stack, exploded/plan, Venn, pyramid/funnel, bar, waterfall, treemap, heatmap, line, Gantt, scatter, high-level, process, medallion, data flow, DP integration, DP security matrix, Sankey, fishbone, Wardley map, kanban, journey, deployment, dependency, blueprint, UML class, story map, schema, lifecycle phase.",
+ "version": "2.6.110",
+ "author": {
+ "name": "Cathryn Lavery",
+ "url": "https://github.com/cathrynlavery"
+ },
+ "homepage": "https://diagramdesign.dev",
+ "repository": "https://github.com/cathrynlavery/diagram-design",
+ "license": "MIT",
+ "keywords": [
+ "diagrams",
+ "svg",
+ "architecture",
+ "flowchart",
+ "visualization",
+ "editorial",
+ "drawio",
+ "mermaid",
+ "import",
+ "animation",
+ "semantic-patterns"
+ ],
+ "commands": "./commands/",
+ "skills": "./skills/"
+}
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 9247e7e..c9fb203 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -28,7 +28,7 @@ See [README.md](README.md) for the full picture, including the design system and
Every validation gate below must pass before a PR is ready. They also run automatically as GitHub Actions CI (`.github/workflows/ci.yml`).
-**Do not bump the plugin version in your PR.** The Claude, Codex, and Factory manifest versions are bumped automatically on `main` after each merge by the Auto Version Bump workflow (`.github/workflows/auto-bump.yml`, ADR 0009), so pull requests must leave all three `plugin.json` versions untouched — CI rejects any change to them. This keeps open PRs from conflicting with each other on every merge. If your change warrants more than a patch release, say so in the PR description and the maintainer will apply the `release:minor` or `release:major` label before merging; the label selects the bump size. (`scripts/bump-plugin-version.py` still exists for the workflow and the maintainer — contributors never need to run it.)
+**Do not bump the plugin version in your PR.** The Claude, Codex, Factory, and Qoder manifest versions are bumped automatically on `main` after each merge by the Auto Version Bump workflow (`.github/workflows/auto-bump.yml`, ADR 0009), so pull requests must leave all four `plugin.json` versions untouched — CI rejects any change to them. This keeps open PRs from conflicting with each other on every merge. If your change warrants more than a patch release, say so in the PR description and the maintainer will apply the `release:minor` or `release:major` label before merging; the label selects the bump size. (`scripts/bump-plugin-version.py` still exists for the workflow and the maintainer — contributors never need to run it.)
| What it checks | Command |
|---|---|
diff --git a/README.md b/README.md
index 974bba8..b416009 100644
--- a/README.md
+++ b/README.md
@@ -48,7 +48,7 @@ The agent picks the type, states its plan, and writes one `.html` file you can o
## Install
-Works with any host that reads Agent Skills, including Cursor, Claude Code, Codex, GitHub Copilot, Gemini CLI, Cline, Windsurf and Amp:
+Works with any host that reads Agent Skills, including Cursor, Claude Code, Codex, Qoder, GitHub Copilot, Gemini CLI, Cline, Windsurf and Amp:
```bash
npx skills add cathrynlavery/diagram-design
@@ -99,6 +99,33 @@ Codex refreshes configured Git marketplaces at startup. To fetch immediately, ru
</details>
+<details>
+<summary><b>Qoder</b></summary>
+
+Clone the repository, validate the native plugin, and install it locally:
+
+```bash
+git clone https://github.com/cathrynlavery/diagram-design.git
+qoder plugins validate ./diagram-design
+qoder plugins install ./diagram-design
+qoder plugins list
+```
+
+Qoder loads the canonical `skills/diagram-design/` tree and the shared command
+definitions directly; no Qoder-specific copy is maintained. For Qoder IDE,
+build a bounded ZIP from the tracked plugin surfaces and import it through
+**Extensions → Plugins → Add Plugins → Upload Plugin**:
+
+```bash
+git -C diagram-design archive --format=zip \
+ --output=../diagram-design-qoder.zip HEAD \
+ .qoder-plugin commands skills LICENSE
+```
+
+Start a new task after installing or updating the plugin.
+
+</details>
+
<details>
<summary><b>GitHub Copilot</b></summary>
@@ -505,6 +532,7 @@ diagram-design/
├── .claude-plugin/ # Claude marketplace + plugin manifest
├── .codex-plugin/ # Codex plugin manifest
├── .factory-plugin/ # Factory Droid marketplace + plugin manifest
+├── .qoder-plugin/ # Qoder native plugin manifest
├── commands/
│ ├── export-diagram.md # plugin export command
│ ├── import-drawio.md # plugin draw.io import command
diff --git a/docs/adr/0008-native-host-manifests-share-one-plugin-root.md b/docs/adr/0008-native-host-manifests-share-one-plugin-root.md
index a86ebe5..d4765f0 100644
--- a/docs/adr/0008-native-host-manifests-share-one-plugin-root.md
+++ b/docs/adr/0008-native-host-manifests-share-one-plugin-root.md
@@ -15,3 +15,7 @@ The three native plugin manifests carry identical shared identity, description,
## Consequences
Each native host has an explicit install path while diagram behavior remains single-sourced. Adding another host requires native metadata, package-gate coverage, documentation, and a synchronized version bump; it never justifies copying the skill or command surface. Git-based Factory installs are updated by marketplace commit, while the synchronized manifest version remains release metadata and a review gate.
+
+## Amendment — 2026-10-17: Qoder joins the native manifest set
+
+Qoder receives a fourth native manifest at `.qoder-plugin/plugin.json`. It points to the same canonical `skills/` and `commands/` trees as the established hosts and carries the same synchronized metadata and version. Historical references above to three native manifests describe the accepted decision at v2.5.14; from this amendment forward, package and release gates cover all four manifests.
diff --git a/docs/adr/0009-versions-are-bumped-on-main-after-merge.md b/docs/adr/0009-versions-are-bumped-on-main-after-merge.md
index c586011..0d59fdf 100644
--- a/docs/adr/0009-versions-are-bumped-on-main-after-merge.md
+++ b/docs/adr/0009-versions-are-bumped-on-main-after-merge.md
@@ -15,3 +15,7 @@ Rapid consecutive merges may coalesce into a single bump: a queued workflow run
## Consequences
Open PRs no longer conflict with each other through the manifests; they conflict only when they genuinely touch the same content. Contributors never run the bump helper, and a PR that edits a manifest version fails CI with instructions to drop the change. Release numbering moves from one-version-per-PR to one-version-per-bump-commit, and a version may cover more than one merged PR. The workflow pushes past branch protection's required status checks, so its final push needs a token from an actor the protection exempts. Newly merged repository code runs in an unprivileged job that never receives that token; the publisher introduces it only for the final `git push`, after independently constraining the patch to the synchronized version fields and SKILL.md metadata. All third-party actions are pinned to immutable commits. The bump commit is also validated by CI's current-tree check on push.
+
+## Amendment — 2026-10-17: Qoder version synchronization
+
+Qoder did not exist in this repository during the pull-request bump history described above. Its native manifest now joins the synchronized release set, so the no-bump pull-request gate and the post-merge auto-bump workflow apply to Claude, Codex, Factory, and Qoder together. The historical context remains unchanged because it records the three manifests that existed when this ADR was accepted.
diff --git a/scripts/bump-plugin-version.py b/scripts/bump-plugin-version.py
index fd00261..1f9420c 100755
--- a/scripts/bump-plugin-version.py
+++ b/scripts/bump-plugin-version.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-"""Increment the synchronized Claude, Codex, and Factory manifest versions."""
+"""Increment synchronized Claude, Codex, Factory, and Qoder manifest versions."""
from __future__ import annotations
@@ -15,6 +15,7 @@ MANIFEST_PATHS = (
Path(".claude-plugin/plugin.json"),
Path(".codex-plugin/plugin.json"),
Path(".factory-plugin/plugin.json"),
+ Path(".qoder-plugin/plugin.json"),
)
SKILL_PATH = Path("skills/diagram-design/SKILL.md")
SEMVER = re.compile(r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$")
@@ -141,7 +142,7 @@ def main() -> int:
except PackageVersionError as exc:
print(f"ERROR: {exc}", file=sys.stderr)
return 1
- print(f"Updated Claude, Codex, and Factory plugin manifests to {version}")
+ print(f"Updated Claude, Codex, Factory, and Qoder plugin manifests to {version}")
return 0
diff --git a/scripts/plugin_version_history.py b/scripts/plugin_version_history.py
index d7023e3..86a0931 100755
--- a/scripts/plugin_version_history.py
+++ b/scripts/plugin_version_history.py
@@ -16,7 +16,9 @@ MANIFEST_PATHS = (
Path(".claude-plugin/plugin.json"),
Path(".codex-plugin/plugin.json"),
Path(".factory-plugin/plugin.json"),
+ Path(".qoder-plugin/plugin.json"),
)
+QODER_MANIFEST_PATH = Path(".qoder-plugin/plugin.json")
SEMVER = re.compile(r"^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)$")
@@ -38,9 +40,50 @@ def git(root: Path, *args: str) -> str:
return result.stdout.strip()
+def qoder_predates_manifest(root: Path, ref: str) -> bool:
+ """Return whether ref is from before Qoder's manifest entered its history."""
+ additions = git(
+ root,
+ "log",
+ "--all",
+ "--diff-filter=A",
+ "--format=%H",
+ "--",
+ QODER_MANIFEST_PATH.as_posix(),
+ ).splitlines()
+ if not additions:
+ return False
+ introduction = additions[-1]
+ result = subprocess.run(
+ ["git", "merge-base", "--is-ancestor", introduction, ref],
+ cwd=root,
+ stdout=subprocess.DEVNULL,
+ stderr=subprocess.PIPE,
+ text=True,
+ )
+ if result.returncode == 0:
+ return False
+ if result.returncode == 1:
+ return True
+ detail = result.stderr.strip()
+ raise VersionHistoryError(
+ f"could not compare Qoder manifest introduction with {ref}: {detail}"
+ )
+
+
def versions_at(root: Path, ref: str) -> Tuple[str, ...]:
- versions = []
+ entries: list[tuple[Path, str]] = []
for relative in MANIFEST_PATHS:
+ exists = subprocess.run(
+ ["git", "cat-file", "-e", f"{ref}:{relative.as_posix()}"],
+ cwd=root,
+ stdout=subprocess.DEVNULL,
+ stderr=subprocess.DEVNULL,
+ )
+ if exists.returncode != 0:
+ if relative == QODER_MANIFEST_PATH and qoder_predates_manifest(root, ref):
+ continue
+ raise VersionHistoryError(f"{relative} is missing at {ref}")
raw = git(root, "show", f"{ref}:{relative.as_posix()}")
try:
payload = json.loads(raw)
@@ -55,19 +98,22 @@ def versions_at(root: Path, ref: str) -> Tuple[str, ...]:
raise VersionHistoryError(
f"{relative} at {ref} has an invalid version: {version!r}"
)
- versions.append(version)
+ entries.append((relative, version))
+ if not entries:
+ raise VersionHistoryError(f"no plugin manifests found at {ref}")
+ versions = tuple(version for _, version in entries)
if len(set(versions)) != 1:
rendered = ", ".join(
- f"{path}={version}" for path, version in zip(MANIFEST_PATHS, versions)
+ f"{path}={version}" for path, version in entries
)
raise VersionHistoryError(
f"manifest versions at {ref} are not synchronized: {rendered}"
)
- return tuple(versions)
+ return versions
def versions_changed(root: Path, before: str, after: str) -> bool:
- return versions_at(root, before) != versions_at(root, after)
+ return versions_at(root, before)[0] != versions_at(root, after)[0]
def first_parent(root: Path, commit: str) -> str | None:
diff --git a/scripts/test-maintainer-policy.py b/scripts/test-maintainer-policy.py
index 53e42d5..ebc7fdc 100644
--- a/scripts/test-maintainer-policy.py
+++ b/scripts/test-maintainer-policy.py
@@ -63,6 +63,7 @@ EXPECTED_MANIFESTS = {
".claude-plugin/plugin.json",
".codex-plugin/plugin.json",
".factory-plugin/plugin.json",
+ ".qoder-plugin/plugin.json",
}
REQUIRED_COMMANDS = {
diff --git a/scripts/test-plugin-package.py b/scripts/test-plugin-package.py
index fab3922..01b4d0d 100755
--- a/scripts/test-plugin-package.py
+++ b/scripts/test-plugin-package.py
@@ -45,14 +45,14 @@ def write_json(path: Path, payload: dict) -> None:
path.write_text(json.dumps(payload, indent=2) + "\n", encoding="utf-8")
-def manifest(version: str, codex: bool = False) -> dict:
+def manifest(version: str, native_skills: bool = False) -> dict:
payload = {
"name": PLUGIN_NAME,
"description": "Create editorial diagrams.",
"version": version,
"author": {"name": "Cathryn Lavery"},
}
- if codex:
+ if native_skills:
payload["skills"] = "./skills/"
return payload
@@ -72,7 +72,13 @@ def seed_package(
root: Path, version: str = "1.2.3", include_factory: bool = True
) -> None:
write_json(root / ".claude-plugin/plugin.json", manifest(version))
- write_json(root / ".codex-plugin/plugin.json", manifest(version, codex=True))
+ write_json(
+ root / ".codex-plugin/plugin.json",
+ manifest(version, native_skills=True),
+ )
+ qoder = manifest(version, native_skills=True)
+ qoder["commands"] = "./commands/"
+ write_json(root / ".qoder-plugin/plugin.json", qoder)
if include_factory:
seed_factory(root, version)
write_json(
@@ -139,14 +145,21 @@ def package_repo(include_factory: bool = True) -> Iterator[Path]:
def set_versions(
- root: Path, claude: str, codex: str, factory: Optional[str] = None
+ root: Path,
+ claude: str,
+ codex: str,
+ factory: Optional[str] = None,
+ qoder: Optional[str] = None,
) -> None:
if factory is None:
factory = codex
+ if qoder is None:
+ qoder = codex
for relative, version in (
(Path(".claude-plugin/plugin.json"), claude),
(Path(".codex-plugin/plugin.json"), codex),
(Path(".factory-plugin/plugin.json"), factory),
+ (Path(".qoder-plugin/plugin.json"), qoder),
):
payload = json.loads((root / relative).read_text(encoding="utf-8"))
payload["version"] = version
@@ -248,6 +261,14 @@ def test_verifier() -> None:
"versions must match",
)
+ with package_repo() as root:
+ set_versions(root, "1.2.4", "1.2.4", qoder="1.2.5")
+ expect_failure(
+ "Qoder version drift",
+ VERIFY.verify_package(root, "HEAD"),
+ "versions must match",
+ )
+
with package_repo() as root:
set_versions(root, "1.2", "1.2")
expect_failure(
@@ -330,6 +351,57 @@ def test_verifier() -> None:
"could not read",
)
+ with package_repo() as root:
+ set_versions(root, "1.2.4", "1.2.4")
+ (root / ".qoder-plugin/plugin.json").unlink()
+ expect_failure(
+ "Qoder manifest deletion",
+ VERIFY.verify_package(root, "HEAD"),
+ "could not read",
+ )
+
+ with package_repo() as root:
+ set_versions(root, "1.2.4", "1.2.4")
+ qoder_path = root / ".qoder-plugin/plugin.json"
+ qoder = json.loads(qoder_path.read_text(encoding="utf-8"))
+ qoder["commands"] = "./missing-commands/"
+ write_json(qoder_path, qoder)
+ expect_failure(
+ "missing Qoder command surface",
+ VERIFY.verify_package(root, "HEAD"),
+ "Qoder manifest commands",
+ )
+
+ with package_repo() as root:
+ set_versions(root, "1.2.4", "1.2.4")
+ alternate = root / "alternate-skills" / PLUGIN_NAME
+ alternate.mkdir(parents=True)
+ (alternate / "SKILL.md").write_text("---\nname: diagram-design\n---\n")
+ qoder_path = root / ".qoder-plugin/plugin.json"
+ qoder = json.loads(qoder_path.read_text(encoding="utf-8"))
+ qoder["skills"] = "./alternate-skills/"
+ write_json(qoder_path, qoder)
+ expect_failure(
+ "non-canonical Qoder skill surface",
+ VERIFY.verify_package(root, "HEAD"),
+ "Qoder manifest skills must resolve to skills/",
+ )
+
+ with package_repo() as root:
+ set_versions(root, "1.2.4", "1.2.4")
+ alternate = root / "alternate-commands"
+ alternate.mkdir()
+ (alternate / "doctor.md").write_text("Run diagnostics.\n", encoding="utf-8")
+ qoder_path = root / ".qoder-plugin/plugin.json"
+ qoder = json.loads(qoder_path.read_text(encoding="utf-8"))
+ qoder["commands"] = "./alternate-commands/"
+ write_json(qoder_path, qoder)
+ expect_failure(
+ "non-canonical Qoder command surface",
+ VERIFY.verify_package(root, "HEAD"),
+ "Qoder manifest commands must resolve to commands/",
+ )
+
with package_repo() as root:
set_versions(root, "1.2.4", "1.2.4")
skill = root / "skills" / PLUGIN_NAME / "SKILL.md"
@@ -790,6 +862,70 @@ def test_version_history() -> None:
raise AssertionError("valid but unequal versions were treated as synchronized")
print("OK: version history ignores manifest metadata-only commits")
+ with package_repo() as root:
+ base = git(root, "rev-parse", "HEAD")
+ missing_path = root / ".codex-plugin/plugin.json"
+ missing_path.unlink()
+ deleted = commit_all(root, "delete an established Codex manifest")
+ try:
+ VERSION_HISTORY.versions_changed(root, base, deleted)
+ except VERSION_HISTORY.VersionHistoryError as exc:
+ if ".codex-plugin/plugin.json is missing" not in str(exc):
+ raise AssertionError(f"wrong established-manifest error: {exc}") from exc
+ else:
+ raise AssertionError("an established Codex manifest deletion was ignored")
+ print("OK: version history rejects deletion of an established manifest")
+
+ with tempfile.TemporaryDirectory() as scratch:
+ root = Path(scratch)
+ seed_package(root)
+ qoder_path = root / ".qoder-plugin/plugin.json"
+ qoder_payload = json.loads(qoder_path.read_text(encoding="utf-8"))
+ qoder_path.unlink()
+ subprocess.run(["git", "init", "-q"], cwd=root, check=True)
+ subprocess.run(["git", "config", "user.name", "Package Test"], cwd=root, check=True)
+ subprocess.run(
+ ["git", "config", "user.email", "[email protected]"],
+ cwd=root,
+ check=True,
+ )
+ pre_qoder = commit_all(root, "package before Qoder support")
+ main_branch = git(root, "symbolic-ref", "--short", "HEAD")
+ write_json(qoder_path, qoder_payload)
+ introduction = commit_all(root, "add Qoder manifest")
+
+ if VERSION_HISTORY.versions_changed(root, pre_qoder, introduction):
+ raise AssertionError("adding a synchronized Qoder manifest looked like a release")
+
+ git(root, "checkout", "-q", "-b", "pre-qoder-drift", pre_qoder)
+ codex_path = root / ".codex-plugin/plugin.json"
+ codex_payload = json.loads(codex_path.read_text(encoding="utf-8"))
+ codex_payload["version"] = "1.2.4"
+ write_json(codex_path, codex_payload)
+ drifted = commit_all(root, "desynchronize Codex before Qoder support")
+ try:
+ VERSION_HISTORY.versions_at(root, drifted)
+ except VERSION_HISTORY.VersionHistoryError as exc:
+ message = str(exc)
+ expected = ".codex-plugin/plugin.json=1.2.4"
+ if expected not in message:
+ raise AssertionError(f"drift error lost its path/version pairing: {message}") from exc
+ else:
+ raise AssertionError("pre-Qoder manifest drift was accepted")
+
+ git(root, "checkout", "-q", main_branch)
+
+ qoder_path.unlink()
+ deleted = commit_all(root, "delete the established Qoder manifest")
+ try:
+ VERSION_HISTORY.versions_changed(root, introduction, deleted)
+ except VERSION_HISTORY.VersionHistoryError as exc:
+ if ".qoder-plugin/plugin.json is missing" not in str(exc):
+ raise AssertionError(f"wrong Qoder deletion error: {exc}") from exc
+ else:
+ raise AssertionError("an established Qoder manifest deletion was ignored")
+ print("OK: only pre-introduction Qoder absence is accepted")
+
def main() -> int:
test_verifier()
diff --git a/scripts/verify-plugin-package.py b/scripts/verify-plugin-package.py
index a6c1732..39ea807 100755
--- a/scripts/verify-plugin-package.py
+++ b/scripts/verify-plugin-package.py
@@ -29,6 +29,7 @@ MANIFEST_PATHS = {
"Claude": Path(".claude-plugin/plugin.json"),
"Codex": Path(".codex-plugin/plugin.json"),
"Factory": Path(".factory-plugin/plugin.json"),
+ "Qoder": Path(".qoder-plugin/plugin.json"),
}
CLAUDE_MARKETPLACE = Path(".claude-plugin/marketplace.json")
CODEX_MARKETPLACE = Path(".agents/plugins/marketplace.json")
@@ -298,13 +299,39 @@ def verify_marketplaces(root: Path, errors: list[str]) -> None:
errors.append("packaged commands are missing from the shared plugin root")
-def verify_codex_skill_path(root: Path, codex_manifest: dict[str, Any], errors: list[str]) -> None:
- skills_root = resolve_local_path(root, codex_manifest.get("skills"), "Codex manifest skills", errors)
+def verify_native_skill_path(
+ root: Path,
+ label: str,
+ manifest: dict[str, Any],
+ errors: list[str],
+ canonical: Path | None = None,
+) -> None:
+ skills_root = resolve_local_path(
+ root, manifest.get("skills"), f"{label} manifest skills", errors
+ )
if skills_root is None:
return
+ if canonical is not None and skills_root != (root / canonical).resolve():
+ errors.append(
+ f"{label} manifest skills must resolve to {canonical.as_posix()}/"
+ )
skill = skills_root / PLUGIN_NAME / "SKILL.md"
if not skill.is_file():
- errors.append(f"Codex skills path does not contain {PLUGIN_NAME}/SKILL.md")
+ errors.append(f"{label} skills path does not contain {PLUGIN_NAME}/SKILL.md")
+
+
+def verify_qoder_commands(
+ root: Path, qoder_manifest: dict[str, Any], errors: list[str]
+) -> None:
+ commands_root = resolve_local_path(
+ root, qoder_manifest.get("commands"), "Qoder manifest commands", errors
+ )
+ if commands_root is None:
+ return
+ if commands_root != (root / "commands").resolve():
+ errors.append("Qoder manifest commands must resolve to commands/")
+ if not any(commands_root.glob("*.md")):
+ errors.append("Qoder commands path contains no command definitions")
def valid_double_quoted_yaml_scalar(value: str) -> bool:
@@ -471,7 +498,11 @@ def verify_package(root: Path, base_ref: str | None, mode: str = "increase") ->
verify_versions(root, base_ref, manifests, errors, mode)
verify_manifest_identity(manifests, errors)
verify_skill_metadata_version(root, manifests, errors)
- verify_codex_skill_path(root, manifests["Codex"], errors)
+ verify_native_skill_path(root, "Codex", manifests["Codex"], errors)
+ verify_native_skill_path(
+ root, "Qoder", manifests["Qoder"], errors, Path("skills")
+ )
+ verify_qoder_commands(root, manifests["Qoder"], errors)
verify_marketplaces(root, errors)
return errors
@@ -521,7 +552,7 @@ def main() -> int:
"current-only": "current tree",
}[mode]
print(
- f"OK plugin package ({detail}): Claude, Codex, and Factory {versions}, "
+ f"OK plugin package ({detail}): Claude, Codex, Factory, and Qoder {versions}, "
f"marketplace paths, and packaged skill"
)
return 0