diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fc5e887..d220407 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,3 +16,21 @@ jobs: uses: astral-sh/setup-uv@v3 - name: Run lint run: script/lint + + publish-clawhub: + if: github.event_name == 'push' && github.ref == 'refs/heads/main' + needs: lint + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: "22" + - name: Publish to ClawHub + env: + CLAWHUB_TOKEN: ${{ secrets.CLAWHUB_TOKEN }} + run: | + npx clawhub@latest login --token "$CLAWHUB_TOKEN" + npx clawhub@latest publish skills/replicate --slug replicate --name "Replicate" diff --git a/README.md b/README.md index 1e2ca10..17e73ee 100644 --- a/README.md +++ b/README.md @@ -8,24 +8,6 @@ Discover, compare, and run AI models using Replicate's API. These skills work with any agent that supports the [Agent Skills standard](https://agentskills.io/specification), including Claude Code, OpenCode, OpenAI Codex, and Pi. -### npx skills - -Install using the [`npx skills`](https://skills.sh) CLI: - -``` -npx skills add https://github.com/replicate/skills ``` - -### Claude Code - -Install using the [plugin marketplace](https://code.claude.com/docs/en/discover-plugins#add-from-github): - -``` -/plugin marketplace add replicate/skills -``` - -### OpenCode - -OpenCode automatically discovers Claude Code skills installed under `~/.claude/skills/`. - -You can also copy `skills/replicate` into `~/.config/opencode/skills/replicate`. \ No newline at end of file +npx skills add replicate/skills +``` \ No newline at end of file