Skip to content
Back to search

skillshare

SkillWorks with Claude CodeGitHub

๐Ÿ“š Sync skills across all AI CLI tools with one command and simplify team sharing. Supporting Codex, Claude Code, OpenClaw & more

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 11 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/runkids/skillshare with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/runkids/skillshare'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/runkids-skillshare/badge.svg)](/listings/runkids-skillshare)

HTML

<a href="/listings/runkids-skillshare"><img src="/api/listings/runkids-skillshare/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

These steps run a script from the network that findsafeskills does not scan.

> [!TIP] > **Use skillshare from your desktop.** [Get Skillshare App](https://github.com/runkids/skillshare-app/releases/latest) for macOS (Apple Silicon), Windows and Linux. First launch helps you install or locate the CLI, choose your AI tools and run your first sync. [Installation guide](https://skillshare.runkids.cc/docs/getting-started/desktop-app).

<a id="desktop-app"></a>

Desktop App โ€” visual setup and daily management

[Skillshare App](https://github.com/runkids/skillshare-app) puts skills, agents, MCP and hooks in a desktop window. Install the app, open it, and follow first-launch setup.

macOS (Apple Silicon), with Homebrew:

brew tap runkids/tap
brew install --cask skillshare-app

**Windows / Linux, or a manual macOS install:** [Download the latest app installers](https://github.com/runkids/skillshare-app/releases/latest). See the [Desktop App guide](https://skillshare.runkids.cc/docs/getting-started/desktop-app) for platform details.

CLI: macOS / Linux

curl -fsSL https://raw.githubusercontent.com/runkids/skillshare/main/install.sh | sh

The script installs to `~/.local/bin` by default, so normal installs and updates do not need `sudo`. If the installer prints PATH setup instructions, follow them before running `skillshare`. Add the suggested line to your shell config (such as `~/.zshrc` or `~/.bashrc`) for future terminals. Set `INSTALL_DIR` to use another location.

Windows PowerShell

irm https://raw.githubusercontent.com/runkids/skillshare/main/install.ps1 | iex

CLI: Homebrew

brew install skillshare

> **Tip:** Run `skillshare upgrade` to update to the latest version. It auto-detects your install method and handles the rest.

GitHub Actions

- uses: runkids/setup-skillshare@v1
  with:
    source: ./skills
- run: skillshare sync

See [`setup-skillshare`](https://github.com/marketplace/actions/setup-skillshare) for all options (audit, project mode, version pinning).

Shorthand (Optional)

Add an alias to your shell config (`~/.zshrc` or `~/.bashrc`):

alias ss='skillshare'

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md ยท README ยท 441 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

This file has changed since it was scanned, so this is not exactly the text that was scanned, and no line is marked. The findings are listed with the safety scan above.

  1. <p align="center" style="margin-bottom: 0;">
  2. <img src=".github/assets/skillshare-logo-card.png" alt="skillshare" width="280">
  3. </p>
  4. <h1 align="center" style="margin-top: 0.5rem; margin-bottom: 0.5rem;">skillshare</h1>
  5. <p align="center">
  6. <a href="README.md">English</a> ยท <a href="README-de.md">Deutsch</a> ยท <a href="README-es.md">Espaรฑol</a> ยท <a href="README-fr.md">Franรงais</a> ยท <a href="README-ja.md">ๆ—ฅๆœฌ่ชž</a> ยท <a href="README-ko.md">ํ•œ๊ตญ์–ด</a> ยท <a href="README-pt-BR.md">Portuguรชs</a> ยท <a href="README-zh-CN.md">็ฎ€ไฝ“ไธญๆ–‡</a> ยท <a href="README-zh-TW.md">็น้ซ”ไธญๆ–‡</a>
  7. </p>
  8. <p align="center">
  9. <a href="https://skillshare.runkids.cc"><img src="https://img.shields.io/badge/Website-skillshare.runkids.cc-blue?logo=docusaurus" alt="Website"></a>
  10. <a href="LICENSE"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a>
  11. <a href="https://github.com/runkids/skillshare/releases"><img src="https://img.shields.io/github/v/release/runkids/skillshare" alt="Release"></a>
  12. <a href="https://github.com/runkids/skillshare/releases"><img src="https://img.shields.io/github/downloads/runkids/skillshare/total" alt="Downloads"></a>
  13. <img src="https://img.shields.io/badge/platform-macOS%20%7C%20Linux%20%7C%20Windows-blue" alt="Platform">
  14. <a href="https://deepwiki.com/runkids/skillshare"><img src="https://img.shields.io/badge/Ask-DeepWiki-blue" alt="Ask DeepWiki"></a>
  15. <a href="https://ko-fi.com/williehung"><img src="https://img.shields.io/badge/Support-skillshare-FF5E5B?logo=kofi&logoColor=white" alt="Support skillshare on Ko-fi"></a>
  16. </p>
  17. <p align="center">
  18. <a href="https://github.com/runkids/skillshare/stargazers"><img src="https://img.shields.io/github/stars/runkids/skillshare?style=social" alt="Star on GitHub"></a>
  19. </p>
  20. <p align="center">
  21. <a href="https://trendshift.io/repositories/21835" target="_blank"><img src="https://trendshift.io/api/badge/repositories/21835" alt="runkids%2Fskillshare | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
  22. <a href="https://trendshift.io/repositories/21835?utm_source=trendshift-badge&amp;utm_medium=badge&amp;utm_campaign=badge-trendshift-21835" target="_blank" rel="noopener noreferrer"><img src="https://trendshift.io/api/badge/trendshift/repositories/21835/daily?language=Go" alt="runkids%2Fskillshare | Trendshift" width="250" height="55"/></a>
  23. </p>
  24. <p align="center">
  25. <strong>Your AI coding setup, everywhere.</strong><br>
  26. Manage skills, agents, rules, MCP connections and hooks in one place.<br>
  27. For Claude Code, Codex, Pi, OpenCode and more.
  28. </p>
  29. <p align="center">
  30. <a href="https://skillshare.runkids.cc">Website</a> โ€ข
  31. <a href="#installation">Install</a> โ€ข
  32. <a href="#quick-start">Quick Start</a> โ€ข
  33. <a href="#highlights">Highlights</a> โ€ข
  34. <a href="#cli-and-ui-preview">Screenshots</a> โ€ข
  35. <a href="#desktop-app">Desktop App</a> โ€ข
  36. <a href="https://skillshare.runkids.cc/docs">Docs</a>
  37. </p>
  38. <p align="center">
  39. <img src=".github/assets/demo.gif" alt="skillshare demo" width="960">
  40. </p>
  41. > [!NOTE]
  42. > **Latest**: v0.30.11 โ€” Share your Pi packages from the dashboard: **Share** on the Plugins page now lists the npm packages Pi installed, after your plugins, and copies one command that adds them all, such as `skillshare plugin add npm:<package> --target pi -g --no-tui`. The **Hooks in targets** dialog can also edit or remove Antigravity and Copilot hooks without importing them. [Plugins guide โ†’](https://skillshare.runkids.cc/docs/how-to/daily-tasks/sharing-plugins) ยท [All releases โ†’](https://github.com/runkids/skillshare/releases)
  43. ## Why skillshare
  44. Switching AI tools should not mean rebuilding your setup.
  45. skillshare gives your skills and other AI resources a home you control.
  46. - **Switch tools, keep your skills** โ€” edit once, then sync to Claude Code, Codex, Pi and the other tools you use.
  47. - **Take your setup with you** โ€” version your source in Git and pull it onto another machine.
  48. - **Share with your team** โ€” keep project resources with your code and distribute shared skills through tracked repositories.
  49. One teammate uses Claude Code, another uses Codex. Keep their shared code-review checklist in `.skillshare/` alongside the project. New teammates install the declared skills and sync to the configured tools instead of copying instructions from chat. [Team onboarding โ†’](https://skillshare.runkids.cc/docs/how-to/recipes/team-onboarding-recipe)
  50. Use the desktop app or CLI to manage everything locally, [audit skills before use](https://skillshare.runkids.cc/docs/reference/commands/audit), and [choose what each tool receives](https://skillshare.runkids.cc/docs/how-to/daily-tasks/filtering-skills).
  51. > Coming from another tool? [Migration Guide](https://skillshare.runkids.cc/docs/how-to/advanced/migration) ยท [Comparison](https://skillshare.runkids.cc/docs/understand/philosophy/comparison)
  52. ## CLI and UI Preview
  53. | Skill Detail | Security Audit |
  54. |---|---|
  55. | <img src=".github/assets/skill-detail-tui.png" alt="CLI sync output" width="480" height="300"> | <img src=".github/assets/audit-tui.png" alt="CLI install with security audit" width="480" height="300"> |
  56. | UI Dashboard | UI Skills |
  57. |---|---|
  58. | <img src=".github/assets/ui/web-dashboard-demo.png" alt="Web dashboard overview" width="480"> | <img src=".github/assets/ui/web-skills-demo.png" alt="Web UI skills page" width="480"> |
  59. ## Installation
  60. > [!TIP]
  61. > **Use skillshare from your desktop.** [Get Skillshare App](https://github.com/runkids/skillshare-app/releases/latest) for macOS (Apple Silicon), Windows and Linux. First launch helps you install or locate the CLI, choose your AI tools and run your first sync. [Installation guide](https://skillshare.runkids.cc/docs/getting-started/desktop-app).
  62. <a id="desktop-app"></a>
  63. ### Desktop App โ€” visual setup and daily management
  64. [Skillshare App](https://github.com/runkids/skillshare-app) puts skills, agents, MCP and hooks in a desktop window. Install the app, open it, and follow first-launch setup.
  65. macOS (Apple Silicon), with Homebrew:
  66. ```bash
  67. brew tap runkids/tap
  68. brew install --cask skillshare-app
  69. ```
  70. **Windows / Linux, or a manual macOS install:** [Download the latest app installers](https://github.com/runkids/skillshare-app/releases/latest). See the [Desktop App guide](https://skillshare.runkids.cc/docs/getting-started/desktop-app) for platform details.
  71. ### CLI: macOS / Linux
  72. ```bash
  73. curl -fsSL https://raw.githubusercontent.com/runkids/skillshare/main/install.sh | sh
  74. ```
  75. The script installs to `~/.local/bin` by default, so normal installs and updates do not need `sudo`. If the installer prints PATH setup instructions, follow them before running `skillshare`. Add the suggested line to your shell config (such as `~/.zshrc` or `~/.bashrc`) for future terminals. Set `INSTALL_DIR` to use another location.
  76. ### Windows PowerShell
  77. ```powershell
  78. irm https://raw.githubusercontent.com/runkids/skillshare/main/install.ps1 | iex
  79. ```
  80. ### CLI: Homebrew
  81. ```bash
  82. brew install skillshare
  83. ```
  84. > **Tip:** Run `skillshare upgrade` to update to the latest version. It auto-detects your install method and handles the rest.
  85. ### CLI: Nix
  86. ```bash
  87. nix profile add github:runkids/skillshare
  88. ```
  89. Update with `nix profile upgrade skillshare`. Requires Nix 2.30+ with flakes enabled; on older Nix or Lix, use `nix profile install`. NixOS and Home Manager configurations can use the flake's `overlays.default`.
  90. ### GitHub Actions
  91. ```yaml
  92. - uses: runkids/setup-skillshare@v1
  93. with:
  94. source: ./skills
  95. - run: skillshare sync
  96. ```
  97. See [`setup-skillshare`](https://github.com/marketplace/actions/setup-skillshare) for all options (audit, project mode, version pinning).
  98. ### Shorthand (Optional)
  99. Add an alias to your shell config (`~/.zshrc` or `~/.bashrc`):
  100. ```bash
  101. alias ss='skillshare'
  102. ```
  103. ## Quick Start
  104. ```bash
  105. skillshare init # Create config, source, and detected targets
  106. skillshare sync # Sync skills to all targets
  107. ```
  108. ## How It Works
  109. - macOS / Linux: `~/.config/skillshare/`
  110. - Windows: `%AppData%\skillshare\`
  111. ```
  112. โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
  113. โ”‚ Source Directory โ”‚
  114. โ”‚ ~/.config/skillshare/skills/ โ† skills (SKILL.md) โ”‚
  115. โ”‚ ~/.config/skillshare/agents/ โ† agents โ”‚
  116. โ”‚ ~/.config/skillshare/extras/ โ† rules, commands, etc. โ”‚
  117. โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
  118. โ”‚ sync
  119. โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ผโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
  120. โ–ผ โ–ผ โ–ผ
  121. โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ” โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
  122. โ”‚ Claude โ”‚ โ”‚ OpenCode โ”‚ โ”‚ OpenClaw โ”‚ ...
  123. โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜ โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
  124. ```
  125. | Platform | Skills Source | Agents Source | Extras Source | Link Type |
  126. |----------|---------------|---------------|---------------|-----------|
  127. | macOS/Linux | `~/.config/skillshare/skills/` | `~/.config/skillshare/agents/` | `~/.config/skillshare/extras/` | Symlinks |
  128. | Windows | `%AppData%\skillshare\skills\` | `%AppData%\skillshare\agents\` | `%AppData%\skillshare\extras\` | NTFS Junctions for folders (no admin required); file symlinks need Developer Mode, otherwise copied |
  129. | | Imperative (install-per-command) | Declarative (skillshare) |
  130. |---|---|---|
  131. | **Source of truth** | Skills copied independently | Single source โ†’ symlinks (or copies) |
  132. | **New machine setup** | Re-run every install manually | `git clone` config + `sync` |
  133. | **Security audit** | None | Built-in `audit` + auto-scan on install/update |
  134. | **Web dashboard** | None | `skillshare ui` |
  135. | **Runtime dependency** | Node.js + npm | None (single Go binary) |
  136. > [Full comparison โ†’](https://skillshare.runkids.cc/docs/understand/philosophy/comparison)
  137. ## Highlights
  138. **Install & update skills** โ€”from GitHub, GitLab, or any Git host
  139. ```bash
  140. skillshare install github.com/reponame/skills
  141. skillshare update --all
  142. skillshare target claude --mode copy # if symlinks don't work
  143. ```
  144. **Symlink issues?** โ€” switch to copy mode per target
  145. ```bash
  146. skillshare target <name> --mode copy
  147. skillshare sync
  148. ```
  149. **Security audit** โ€”scan before skills reach your agent
  150. ```bash
  151. skillshare audit
  152. ```
  153. **Project skills** โ€”per-repo, committed with your code
  154. ```bash
  155. skillshare init -p && skillshare sync
  156. ```
  157. **Agents** โ€”sync custom agents to agent-capable targets
  158. ```bash
  159. skillshare sync agents # sync agents only
  160. skillshare sync --all # sync skills + agents + extras + MCP + hooks together
  161. ```
  162. **Extras** โ€”manage rules, commands, prompts & more
  163. ```bash
  164. skillshare extras init rules # create a "rules" extra
  165. skillshare sync --all # sync skills + agents + extras + MCP + hooks together
  166. skillshare extras collect rules # collect local files back to source
  167. ```
  168. **MCP connections** โ€”configure once for Claude Code, Codex, Pi, VS Code, OpenCode and more
  169. ```bash
  170. skillshare mcp add # guided URL or JSON setup
  171. skillshare sync mcp --dry-run # preview native configuration changes
  172. skillshare sync mcp # apply connection settings
  173. ```
  174. Keep definitions in `config.yaml` or reference a separate `mcp.yaml`.
  175. See [MCP setup](https://skillshare.runkids.cc/docs/how-to/daily-tasks/sharing-mcp)
  176. for examples, environment references and importing existing connections.
  177. Manage native hooks without executing them:
  178. ```bash
  179. skillshare hooks add check --file ./check.yaml
  180. skillshare hooks sync --dry-run
  181. skillshare hooks sync
  182. ```
  183. **Plugins** โ€”install a complete plugin and pick which tools receive it
  184. ```bash
  185. skillshare plugin add # guided: source, plugin, targets, review
  186. skillshare plugin add owner/repo --target claude --target codex --no-tui
  187. skillshare sync plugins --dry-run # plugins sync separately from sync --all
  188. ```
  189. Existing native installations can be adopted with `plugin import`.
  190. See [Manage plugins across tools](https://skillshare.runkids.cc/docs/how-to/daily-tasks/sharing-plugins).
  191. **Shell completion** โ€”tab-complete commands, flags, and subcommands
  192. ```bash
  193. skillshare completion bash --install # also: zsh, fish, powershell, nushell
  194. ```
  195. **Local checkpoints** โ€” commit source changes without pushing
  196. ```bash
  197. skillshare commit -m "Update review skill"
  198. skillshare commit --dry-run
  199. ```
  200. **Web dashboard** โ€” visual control panel
  201. ```bash
  202. skillshare ui
  203. ```
  204. **Herdr panel** โ€” skillshare beside your agents in [Herdr](https://herdr.dev): updates, sync, audited installs and the source repo in one panel
  205. [Set up the Herdr panel โ†’](https://skillshare.runkids.cc/docs/learn/with-herdr)
  206. [All commands & guides โ†’](https://skillshare.runkids.cc/docs/reference/commands)
  207. ## Contributing
  208. Contributions welcome! Open an issue first, then submit a draft PR with tests.
  209. See [CONTRIBUTING.md](CONTRIBUTING.md) for setup details.
  210. ```bash
  211. git clone https://github.com/runkids/skillshare.git && cd skillshare
  212. make check # format + lint + test
  213. ```
  214. > [!TIP]
  215. > Not sure where to start? Browse [open issues](https://github.com/runkids/skillshare/issues) or try the [Playground](https://skillshare.runkids.cc/docs/learn/with-playground) for a zero-setup dev environment.
  216. ## Contributors
  217. Thanks to everyone who helped shape skillshare.
  218. <a href="https://github.com/leeeezx"><img src="https://github.com/leeeezx.png" width="50" style="border-radius:50%" alt="leeeezx"></a>
  219. <a href="https://github.com/Vergil333"><img src="https://github.com/Vergil333.png" width="50" style="border-radius:50%" alt="Vergil333"></a>
  220. <a href="https://github.com/romanr"><img src="https://github.com/romanr.png" width="50" style="border-radius:50%" alt="romanr"></a>
  221. <a href="https://github.com/xocasdashdash"><img src="https://github.com/xocasdashdash.png" width="50" style="border-radius:50%" alt="xocasdashdash"></a>
  222. <a href="https://github.com/philippe-granet"><img src="https://github.com/philippe-granet.png" width="50" style="border-radius:50%" alt="philippe-granet"></a>
  223. <a href="https://github.com/terranc"><img src="https://github.com/terranc.png" width="50" style="border-radius:50%" alt="terranc"></a>
  224. <a href="https://github.com/benrfairless"><img src="https://github.com/benrfairless.png" width="50" style="border-radius:50%" alt="benrfairless"></a>
  225. <a href="https://github.com/nerveband"><img src="https://github.com/nerveband.png" width="50" style="border-radius:50%" alt="nerveband"></a>
  226. <a href="https://github.com/EarthChen"><img src="https://github.com/EarthChen.png" width="50" style="border-radius:50%" alt="EarthChen"></a>
  227. <a href="https://github.com/gdm257"><img src="https://github.com/gdm257.png" width="50" style="border-radius:50%" alt="gdm257"></a>
  228. <a href="https://github.com/skovtunenko"><img src="https://github.com/skovtunenko.png" width="50" style="border-radius:50%" alt="skovtunenko"></a>
  229. <a href="https://github.com/TyceHerrman"><img src="https://github.com/TyceHerrman.png" width="50" style="border-radius:50%" alt="TyceHerrman"></a>
  230. <a href="https://github.com/1am2syman"><img src="https://github.com/1am2syman.png" width="50" style="border-radius:50%" alt="1am2syman"></a>
  231. <a href="https://github.com/thealokkr"><img src="https://github.com/thealokkr.png" width="50" style="border-radius:50%" alt="thealokkr"></a>
  232. <a href="https://github.com/JasonLandbridge"><img src="https://github.com/JasonLandbridge.png" width="50" style="border-radius:50%" alt="JasonLandbridge"></a>
  233. <a href="https://github.com/masonc15"><img src="https://github.com/masonc15.png" width="50" style="border-radius:50%" alt="masonc15"></a>
  234. <a href="https://github.com/richardwhatever"><img src="https://github.com/richardwhatever.png" width="50" style="border-radius:50%" alt="richardwhatever"></a>
  235. <a href="https://github.com/reneleonhardt"><img src="https://github.com/reneleonhardt.png" width="50" style="border-radius:50%" alt="reneleonhardt"></a>
  236. <a href="https://github.com/ndeybach"><img src="https://github.com/ndeybach.png" width="50" style="border-radius:50%" alt="ndeybach"></a>
  237. <a href="https://github.com/hhh2210"><img src="https://github.com/hhh2210.png" width="50" style="border-radius:50%" alt="hhh2210"></a>
  238. <a href="https://github.com/leoarry"><img src="https://github.com/leoarry.png" width="50" style="border-radius:50%" alt="leoarry"></a>
  239. <a href="https://github.com/salmonumbrella"><img src="https://github.com/salmonumbrella.png" width="50" style="border-radius:50%" alt="salmonumbrella"></a>
  240. <a href="https://github.com/daylamtayari"><img src="https://github.com/daylamtayari.png" width="50" style="border-radius:50%" alt="daylamtayari"></a>
  241. <a href="https://github.com/dstotijn"><img src="https://github.com/dstotijn.png" width="50" style="border-radius:50%" alt="dstotijn"></a>
  242. <a href="https://github.com/ipruning"><img src="https://github.com/ipruning.png" width="50" style="border-radius:50%" alt="ipruning"></a>
  243. <a href="https://github.com/massukio"><img src="https://github.com/massukio.png" width="50" style="border-radius:50%" alt="massukio"></a>
  244. <a href="https://github.com/nathanvale"><img src="https://github.com/nathanvale.png" width="50" style="border-radius:50%" alt="nathanvale"></a>
  245. <a href="https://github.com/LloydPowell771"><img src="https://github.com/LloydPowell771.png" width="50" style="border-radius:50%" alt="LloydPowell771"></a>
  246. <a href="https://github.com/kevincobain2000"><img src="https://github.com/kevincobain2000.png" width="50" style="border-radius:50%" alt="kevincobain2000"></a>
  247. <a href="https://github.com/StephenPAdams"><img src="https://github.com/StephenPAdams.png" width="50" style="border-radius:50%" alt="StephenPAdams"></a>
  248. <a href="https://github.com/mk-imagine"><img src="https://github.com/mk-imagine.png" width="50" style="border-radius:50%" alt="mk-imagine"></a>
  249. <a href="https://github.com/Curtion"><img src="https://github.com/Curtion.png" width="50" style="border-radius:50%" alt="Curtion"></a>
  250. <a href="https://github.com/amdoi7"><img src="https://github.com/amdoi7.png" width="50" style="border-radius:50%" alt="amdoi7"></a>
  251. <a href="https://github.com/jessica-engel"><img src="https://github.com/jessica-engel.png" width="50" style="border-radius:50%" alt="jessica-engel"></a>
  252. <a href="https://github.com/AlimuratYusup"><img src="https://github.com/AlimuratYusup.png" width="50" style="border-radius:50%" alt="AlimuratYusup"></a>
  253. <a href="https://github.com/thor-shuang"><img src="https://github.com/thor-shuang.png" width="50" style="border-radius:50%" alt="thor-shuang"></a>
  254. <a href="https://github.com/bishopmatthew"><img src="https://github.com/bishopmatthew.png" width="50" style="border-radius:50%" alt="bishopmatthew"></a>
  255. <a href="https://github.com/chaosky"><img src="https://github.com/chaosky.png" width="50" style="border-radius:50%" alt="chaosky"></a>
  256. <a href="https://github.com/iFwu"><img src="https://github.com/iFwu.png" width="50" style="border-radius:50%" alt="iFwu"></a>
  257. <a href="https://github.com/ildunari"><img src="https://github.com/ildunari.png" width="50" style="border-radius:50%" alt="ildunari"></a>
  258. <a href="https://github.com/vieGPT"><img src="https://github.com/vieGPT.png" width="50" style="border-radius:50%" alt="vieGPT"></a>
  259. <a href="https://github.com/aestilog"><img src="https://github.com/aestilog.png" width="50" style="border-radius:50%" alt="aestilog"></a>
  260. <a href="https://github.com/xarthurx"><img src="https://github.com/xarthurx.png" width="50" style="border-radius:50%" alt="xarthurx"></a>
  261. <a href="https://github.com/m0cun"><img src="https://github.com/m0cun.png" width="50" style="border-radius:50%" alt="m0cun"></a>
  262. <a href="https://github.com/bit3125"><img src="https://github.com/bit3125.png" width="50" style="border-radius:50%" alt="bit3125"></a>
  263. <a href="https://github.com/eekryuos"><img src="https://github.com/eekryuos.png" width="50" style="border-radius:50%" alt="eekryuos"></a>
  264. <a href="https://github.com/Bongseop-Kim"><img src="https://github.com/Bongseop-Kim.png" width="50" style="border-radius:50%" alt="Bongseop-Kim"></a>
  265. <a href="https://github.com/sophodex"><img src="https://github.com/sophodex.png" width="50" style="border-radius:50%" alt="sophodex"></a>
  266. <a href="https://github.com/PeterTianbuhan"><img src="https://github.com/PeterTianbuhan.png" width="50" style="border-radius:50%" alt="PeterTianbuhan"></a>
  267. <a href="https://github.com/dotned"><img src="https://github.com/dotned.png" width="50" style="border-radius:50%" alt="dotned"></a>
  268. <a href="https://github.com/ismferd"><img src="https://github.com/ismferd.png" width="50" style="border-radius:50%" alt="ismferd"></a>
  269. <a href="https://github.com/jblackburn21"><img src="https://github.com/jblackburn21.png" width="50" style="border-radius:50%" alt="jblackburn21"></a>
  270. <a href="https://github.com/jnhu76"><img src="https://github.com/jnhu76.png" width="50" style="border-radius:50%" alt="jnhu76"></a>
  271. <a href="https://github.com/jacobleft"><img src="https://github.com/jacobleft.png" width="50" style="border-radius:50%" alt="jacobleft"></a>
  272. <a href="https://github.com/rhysmcneill"><img src="https://github.com/rhysmcneill.png" width="50" style="border-radius:50%" alt="rhysmcneill"></a>
  273. <a href="https://github.com/druellan"><img src="https://github.com/druellan.png" width="50" style="border-radius:50%" alt="druellan"></a>
  274. <a href="https://github.com/12britz"><img src="https://github.com/12britz.png" width="50" style="border-radius:50%" alt="12britz"></a>
  275. <a href="https://github.com/askpatrickw"><img src="https://github.com/askpatrickw.png" width="50" style="border-radius:50%" alt="askpatrickw"></a>
  276. <a href="https://github.com/Almost42"><img src="https://github.com/Almost42.png" width="50" style="border-radius:50%" alt="Almost42"></a>
  277. <a href="https://github.com/Brett-Best"><img src="https://github.com/Brett-Best.png" width="50" style="border-radius:50%" alt="Brett-Best"></a>
  278. <a href="https://github.com/isCopyman"><img src="https://github.com/isCopyman.png" width="50" style="border-radius:50%" alt="isCopyman"></a>
  279. <a href="https://github.com/svob"><img src="https://github.com/svob.png" width="50" style="border-radius:50%" alt="svob"></a>
  280. <a href="https://github.com/michal-grzelak"><img src="https://github.com/michal-grzelak.png" width="50" style="border-radius:50%" alt="michal-grzelak"></a>
  281. <a href="https://github.com/shikbupt"><img src="https://github.com/shikbupt.png" width="50" style="border-radius:50%" alt="shikbupt"></a>
  282. <a href="https://github.com/LeoYeAI"><img src="https://github.com/LeoYeAI.png" width="50" style="border-radius:50%" alt="LeoYeAI"></a>
  283. <a href="https://github.com/TIR44"><img src="https://github.com/TIR44.png" width="50" style="border-radius:50%" alt="TIR44"></a>
  284. <a href="https://github.com/Ajaymamtora"><img src="https://github.com/Ajaymamtora.png" width="50" style="border-radius:50%" alt="Ajaymamtora"></a>
  285. <a href="https://github.com/vishaldialpad"><img src="https://github.com/vishaldialpad.png" width="50" style="border-radius:50%" alt="vishaldialpad"></a>
  286. <a href="https://github.com/kankan0829"><img src="https://github.com/kankan0829.png" width="50" style="border-radius:50%" alt="kankan0829"></a>
  287. <a href="https://github.com/dnabb"><img src="https://github.com/dnabb.png" width="50" style="border-radius:50%" alt="dnabb"></a>
  288. <a href="https://github.com/thinhngotony"><img src="https://github.com/thinhngotony.png" width="50" style="border-radius:50%" alt="thinhngotony"></a>
  289. <a href="https://github.com/skaurus"><img src="https://github.com/skaurus.png" width="50" style="border-radius:50%" alt="skaurus"></a>
  290. <a href="https://github.com/jamesbraza"><img src="https://github.com/jamesbraza.png" width="50" style="border-radius:50%" alt="jamesbraza"></a>
  291. <a href="https://github.com/2BAB"><img src="https://github.com/2BAB.png" width="50" style="border-radius:50%" alt="2BAB"></a>
  292. <a href="https://github.com/zdlldz"><img src="https://github.com/zdlldz.png" width="50" style="border-radius:50%" alt="zdlldz"></a>
  293. <a href="https://github.com/elstiaan"><img src="https://github.com/elstiaan.png" width="50" style="border-radius:50%" alt="elstiaan"></a>
  294. <a href="https://github.com/FaintFlower"><img src="https://github.com/FaintFlower.png" width="50" style="border-radius:50%" alt="FaintFlower"></a>
  295. <a href="https://github.com/yantinglin21"><img src="https://github.com/yantinglin21.png" width="50" style="border-radius:50%" alt="yantinglin21"></a>
  296. <a href="https://github.com/chung1912"><img src="https://github.com/chung1912.png" width="50" style="border-radius:50%" alt="chung1912"></a>
  297. <a href="https://github.com/r-fynn"><img src="https://github.com/r-fynn.png" width="50" style="border-radius:50%" alt="r-fynn"></a>
  298. <a href="https://github.com/cescox"><img src="https://github.com/cescox.png" width="50" style="border-radius:50%" alt="cescox"></a>
  299. <a href="https://github.com/hhdebb"><img src="https://github.com/hhdebb.png" width="50" style="border-radius:50%" alt="hhdebb"></a>
  300. <a href="https://github.com/Snurppa"><img src="https://github.com/Snurppa.png" width="50" style="border-radius:50%" alt="Snurppa"></a>
  301. <a href="https://github.com/s0undt3ch"><img src="https://github.com/s0undt3ch.png" width="50" style="border-radius:50%" alt="s0undt3ch"></a>
  302. <a href="https://github.com/danscheer"><img src="https://github.com/danscheer.png" width="50" style="border-radius:50%" alt="danscheer"></a>
  303. <a href="https://github.com/7zq12lvm-b"><img src="https://github.com/7zq12lvm-b.png" width="50" style="border-radius:50%" alt="7zq12lvm-b"></a>
  304. <a href="https://github.com/DarkiT"><img src="https://github.com/DarkiT.png" width="50" style="border-radius:50%" alt="DarkiT"></a>
  305. <a href="https://github.com/harisonw"><img src="https://github.com/harisonw.png" width="50" style="border-radius:50%" alt="harisonw"></a>
  306. <a href="https://github.com/wuhaoyujerry"><img src="https://github.com/wuhaoyujerry.png" width="50" style="border-radius:50%" alt="wuhaoyujerry"></a>
  307. <a href="https://github.com/star-nebula"><img src="https://github.com/star-nebula.png" width="50" style="border-radius:50%" alt="star-nebula"></a>
  308. <a href="https://github.com/AdamMagued"><img src="https://github.com/AdamMagued.png" width="50" style="border-radius:50%" alt="AdamMagued"></a>
  309. <a href="https://github.com/mbury"><img src="https://github.com/mbury.png" width="50" style="border-radius:50%" alt="mbury"></a>
  310. <a href="https://github.com/483218131"><img src="https://github.com/483218131.png" width="50" style="border-radius:50%" alt="483218131"></a>
  311. <a href="https://github.com/neilforest7"><img src="https://github.com/neilforest7.png" width="50" style="border-radius:50%" alt="neilforest7"></a>
  312. <a href="https://github.com/johnkattenhorn"><img src="https://github.com/johnkattenhorn.png" width="50" style="border-radius:50%" alt="johnkattenhorn"></a>
  313. <a href="https://github.com/aleps001"><img src="https://github.com/aleps001.png" width="50" style="border-radius:50%" alt="aleps001"></a>
  314. <a href="https://github.com/jskswamy"><img src="https://github.com/jskswamy.png" width="50" style="border-radius:50%" alt="jskswamy"></a>
  315. <a href="https://github.com/heyAidy"><img src="https://github.com/heyAidy.png" width="50" style="border-radius:50%" alt="heyAidy"></a>
  316. <a href="https://github.com/trojanwk"><img src="https://github.com/trojanwk.png" width="50" style="border-radius:50%" alt="trojanwk"></a>
  317. <a href="https://github.com/charitarthchugh"><img src="https://github.com/charitarthchugh.png" width="50" style="border-radius:50%" alt="charitarthchugh"></a>
  318. <a href="https://github.com/servaasvdc"><img src="https://github.com/servaasvdc.png" width="50" style="border-radius:50%" alt="servaasvdc"></a>
  319. <a href="https://github.com/tomerzcod7"><img src="https://github.com/tomerzcod7.png" width="50" style="border-radius:50%" alt="tomerzcod7"></a>
  320. <a href="https://github.com/ErykJakubik"><img src="https://github.com/ErykJakubik.png" width="50" style="border-radius:50%" alt="ErykJakubik"></a>
  321. <a href="https://github.com/maciejniec"><img src="https://github.com/maciejniec.png" width="50" style="border-radius:50%" alt="maciejniec"></a>
  322. <a href="https://github.com/jani-nieminen-framehaus"><img src="https://github.com/jani-nieminen-framehaus.png" width="50" style="border-radius:50%" alt="jani-nieminen-framehaus"></a>
  323. <a href="https://github.com/endgame302"><img src="https://github.com/endgame302.png" width="50" style="border-radius:50%" alt="endgame302"></a>
  324. ---
  325. ## Support skillshare โค๏ธ
  326. skillshare is free and open source.
  327. If skillshare saves you time, consider buying me a coffee.
  328. Every contribution helps with ongoing development, cross-platform testing,
  329. documentation, and maintenance.
  330. [โ˜• Buy me a coffee](https://ko-fi.com/williehung)
  331. You can also help by giving skillshare a โญ on GitHub!
  332. ## Star History
  333. <a href="https://star-history.dera.page/runkids/skillshare">
  334. <picture>
  335. <source media="(prefers-color-scheme: dark)" srcset="https://star-history.dera.page/svg?repos=runkids/skillshare&theme=dark" />
  336. <source media="(prefers-color-scheme: light)" srcset="https://star-history.dera.page/svg?repos=runkids/skillshare" />
  337. <img alt="Star History Chart" src="https://star-history.dera.page/svg?repos=runkids/skillshare" />
  338. </picture>
  339. </a>
  340. ---
  341. ## License
  342. MIT
skills/skillshare/scripts/run.sh ยท Bundled script ยท 136 lines ยท 1 finding marked
  1. #!/bin/sh
  2. # skillshare runner - npx-style execution without installation
  3. # Usage: sh run.sh [command] [args]
  4. # Download: curl -fsSL https://raw.githubusercontent.com/runkids/skillshare/main/skills/skillshare/scripts/run.sh -o run.sh
  5. # Or: sh run.sh [command] [args]
  6. set -e
  7. REPO="runkids/skillshare"
  8. CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/skillshare"
  9. BIN_DIR="$CACHE_DIR/bin"
  10. BINARY="$BIN_DIR/skillshare"
  11. VERSION_FILE="$CACHE_DIR/.version"
  12. MAX_AGE=86400 # Check for updates every 24 hours
  13. # Colors
  14. RED='\033[0;31m'
  15. GREEN='\033[0;32m'
  16. YELLOW='\033[0;33m'
  17. CYAN='\033[0;36m'
  18. NC='\033[0m'
  19. info() { printf "${CYAN}[skillshare]${NC} %s\n" "$1" >&2; }
  20. success() { printf "${GREEN}[skillshare]${NC} %s\n" "$1" >&2; }
  21. warn() { printf "${YELLOW}[skillshare]${NC} %s\n" "$1" >&2; }
  22. error() { printf "${RED}[skillshare]${NC} %s\n" "$1" >&2; exit 1; }
  23. # Detect OS
  24. detect_os() {
  25. OS=$(uname -s | tr '[:upper:]' '[:lower:]')
  26. case "$OS" in
  27. darwin) OS="darwin" ;;
  28. linux) OS="linux" ;;
  29. mingw*|msys*|cygwin*) error "Use PowerShell: irm https://raw.githubusercontent.com/runkids/skillshare/main/install.ps1 | iex" ;;
  30. *) error "Unsupported OS: $OS" ;;
  31. esac
  32. }
  33. # Detect architecture
  34. detect_arch() {
  35. ARCH=$(uname -m)
  36. case "$ARCH" in
  37. x86_64|amd64) ARCH="amd64" ;;
  38. arm64|aarch64) ARCH="arm64" ;;
  39. *) error "Unsupported architecture: $ARCH" ;;
  40. esac
  41. }
  42. # Get file modification time in seconds since epoch (cross-platform)
  43. get_file_age() {
  44. if [ "$(uname -s)" = "Darwin" ]; then
  45. stat -f %m "$1" 2>/dev/null || echo 0
  46. else
  47. stat -c %Y "$1" 2>/dev/null || echo 0
  48. fi
  49. }
  50. # Check if we need to update (version file older than MAX_AGE)
  51. needs_update() {
  52. [ ! -f "$VERSION_FILE" ] && return 0
  53. [ ! -x "$BINARY" ] && return 0
  54. file_time=$(get_file_age "$VERSION_FILE")
  55. current_time=$(date +%s)
  56. age=$((current_time - file_time))
  57. [ "$age" -ge "$MAX_AGE" ]
  58. }
  59. # Get latest version from GitHub API
  60. get_latest_version() {
  61. LATEST=$(curl -sL "https://api.github.com/repos/${REPO}/releases/latest" | grep '"tag_name"' | cut -d'"' -f4)
  62. if [ -z "$LATEST" ]; then
  63. error "Failed to get latest version. Check your internet connection."
  64. fi
  65. VERSION=${LATEST#v}
  66. }
  67. # Download and install to cache
  68. download_binary() {
  69. detect_os
  70. detect_arch
  71. get_latest_version
  72. URL="https://github.com/${REPO}/releases/download/${LATEST}/skillshare_${VERSION}_${OS}_${ARCH}.tar.gz"
  73. info "Downloading skillshare ${VERSION} for ${OS}/${ARCH}..."
  74. mkdir -p "$BIN_DIR"
  75. TMP_DIR=$(mktemp -d)
  76. trap "rm -rf $TMP_DIR" EXIT
  77. if ! curl -sL "$URL" | tar xz -C "$TMP_DIR" 2>/dev/null; then
  78. error "Failed to download. URL: $URL"
  79. fi
  80. if [ ! -f "$TMP_DIR/skillshare" ]; then
  81. error "Binary not found in archive"
  82. fi
  83. mv "$TMP_DIR/skillshare" "$BINARY"
  84. chmod +x "$BINARY"
  85. echo "$VERSION" > "$VERSION_FILE"
  86. success "Cached skillshare ${VERSION} at ${BIN_DIR}"
  87. }
  88. # Main logic
  89. main() {
  90. # 1. Check if skillshare is already in PATH
  91. if command -v skillshare >/dev/null 2>&1; then
  92. exec skillshare "$@"
  93. fi
  94. # 2. Check cached binary
  95. if [ -x "$BINARY" ]; then
  96. if ! needs_update; then
  97. exec "$BINARY" "$@"
  98. fi
  99. # Try to update, but fall back to cached version on failure
  100. if download_binary 2>/dev/null; then
  101. exec "$BINARY" "$@"
  102. else
  103. warn "Update check failed, using cached version"
  104. touch "$VERSION_FILE" # Reset timer
  105. exec "$BINARY" "$@"
  106. fi
  107. fi
  108. # 3. First run - download binary
  109. download_binary
  110. exec "$BINARY" "$@"
  111. }
  112. main "$@"

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If itโ€™s helped, pass it on.