agentleFS
sbussosbusso/claudeclaw/skills/install-extension/SKILL.md

install-extension

Skill194 starsChanged 8 months agoMITView on GitHub

Install a ClaudeClaw extension (e.g., slack, triage)

  • Installs packages

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If already installed, ask if the user wants to update instead (git pull + rebuild).

    line 36
  2. Very specific:

    If manifest.json has a dependencies field, install them at the root:

    line 51
  3. Very specific:

    If manifest.json has hooks.postInstall:

    line 65

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Install Extension

Install a ClaudeClaw extension from GitHub.

Usage

/install slack
/install triage

Flow

1. Validate input

The argument is the extension short name (e.g., slack, triage). The full repo name is claudeclaw-<name>.

EXTENSION_NAME="${1}"
REPO="https://github.com/sbusso/claudeclaw-${EXTENSION_NAME}.git"
EXT_DIR="extensions/claudeclaw-${EXTENSION_NAME}"

2. Check if already installed

[ -d "$EXT_DIR" ] && echo "Extension claudeclaw-${EXTENSION_NAME} is already installed." && exit 0

If already installed, ask if the user wants to update instead (git pull + rebuild).

3. Clone the extension

mkdir -p extensions
git clone "$REPO" "$EXT_DIR"

4. Read manifest and install dependencies

cat "$EXT_DIR/manifest.json"

If manifest.json has a dependencies field, install them at the root:

cd "$(git rev-parse --show-toplevel)" && npm install <each dependency with version>

5. Compile the extension

cd "$EXT_DIR" && npx tsc

6. Run post-install hook

If manifest.json has hooks.postInstall:

chmod +x "$EXT_DIR/hooks/install.sh"
bash "$EXT_DIR/hooks/install.sh" "$(git rev-parse --show-toplevel)"

This copies skills, agents, and agent skills into the ClaudeClaw root.

7. Rebuild core

npm run build

8. Restart service

Detect OS and restart:

macOS:

SERVICE_NAME=$(launchctl list | grep claudeclaw | awk '{print $3}')
[ -n "$SERVICE_NAME" ] && launchctl kickstart -k "gui/$(id -u)/$SERVICE_NAME"

Linux:

systemctl --user restart claudeclaw

9. Verify

Print confirmation:

Extension claudeclaw-<name> installed successfully.
- Skills: <list from manifest>
- Type: <channel|extension>
- Restart: service restarted

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.