Coding & Refactoringlow risk

od-plugin-publish-github

Publish a local Open Design plugin to a new public GitHub repository using gh CLI.

nexu-io/open-design·plugins/_official/examples/od-plugin-publish-github/SKILL.md
58/ 100推薦值

匯入這個 Skill

選擇你的 coding agent,複製專案級或個人級安裝指令。

固定至平台收錄的 commit
匯入目前專案.agents/skills/od-plugin-publish-github
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/examples/od-plugin-publish-github -a codex -y
匯入個人環境~/.agents/skills/od-plugin-publish-github
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/examples/od-plugin-publish-github -a codex -g -y
手動放置目錄.agents/skills/od-plugin-publish-githubOfficial docs ↗
匯入目前專案.claude/skills/od-plugin-publish-github
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/examples/od-plugin-publish-github -a claude-code -y
匯入個人環境~/.claude/skills/od-plugin-publish-github
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/examples/od-plugin-publish-github -a claude-code -g -y
手動放置目錄.claude/skills/od-plugin-publish-githubOfficial docs ↗
匯入目前專案.agents/skills/od-plugin-publish-github
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/examples/od-plugin-publish-github -a github-copilot -y
匯入個人環境~/.copilot/skills/od-plugin-publish-github
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/examples/od-plugin-publish-github -a github-copilot -g -y
手動放置目錄.agents/skills/od-plugin-publish-githubOfficial docs ↗
匯入目前專案.agents/skills/od-plugin-publish-github
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/examples/od-plugin-publish-github -a cursor -y
匯入個人環境~/.cursor/skills/od-plugin-publish-github
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/examples/od-plugin-publish-github -a cursor -g -y
手動放置目錄.agents/skills/od-plugin-publish-githubOfficial docs ↗
匯入目前專案.agents/skills/od-plugin-publish-github
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/examples/od-plugin-publish-github -a gemini-cli -y
匯入個人環境~/.gemini/skills/od-plugin-publish-github
npx skills add https://github.com/nexu-io/open-design/tree/7533db3f4342d09b27368fa5d907ebd3cdb93b75/plugins/_official/examples/od-plugin-publish-github -a gemini-cli -g -y
Native Gemini CLIgemini skills install https://github.com/nexu-io/open-design.git --scope workspace --path plugins/_official/examples/od-plugin-publish-github
手動放置目錄.agents/skills/od-plugin-publish-githubOfficial docs ↗
⚠ 安裝指令使用開源 skills CLI。執行前請檢查來源、腳本與權限。
# Publish Plugin to GitHub

Use this workflow when the active project contains a copied plugin folder and the user wants it published as a new public GitHub repository.

## Workflow

1. Read the active plugin inputs. `plugin_context_path` is the copied plugin folder relative to the project working directory.
2. Inspect `open-design.json`, `SKILL.md`, and any compatibility metadata in the copied folder.
3. Call the local daemon endpoint instead of hand-rolling GitHub commands:
   `curl -sS -X POST "$OD_DAEMON_URL/api/projects/$OD_PROJECT_ID/plugins/publish-github" -H 'content-type: application/json' -d '{"path":"<plugin_context_path>"}'`
4. Read the JSON response. If `ok` is true, report the final repository URL and any useful log/validation summary.
5. If the endpoint fails, report its `message`, `code`, and useful log lines. When authentication is missing, tell the user to run `gh auth login --hostname github.com`.

Prefer the manifest `name` as the repository slug. If that repository already exists, choose the next clear slug and mention the rename.