Skip to content

feat: distribute the Claude Code skill via install.sh - #148

Open
pedropaf wants to merge 1 commit into
mainfrom
feat/claude-code-skill
Open

pedropaf wants to merge 1 commit into
mainfrom
feat/claude-code-skill

Conversation

@pedropaf

Copy link
Copy Markdown
Collaborator

What

Makes the bundled modl Claude Code skill installable without a repo clone, so an agent can drive modl (generate, edit, train, workflows) from prompts.

Changes

  • install.sh — new install_claude_skill step:
    • Fetches skills/modl/SKILL.md from GitHub raw, pinned to the installed release tag, falling back to main.
    • Runs only when Claude Code is present (~/.claude exists) — no-op otherwise.
    • Skips an existing symlink, so dev checkouts (~/.claude/skills/modl → local repo) are never clobbered.
    • Fully non-fatal — a failed fetch never breaks the binary install.
    • Opt out with --no-skill.
  • skills/modl/SKILL.md — rewrote the description with trigger phrases so Claude Code auto-invokes the skill instead of requiring an explicit /modl.
  • README.md — documented the skill and the clone/symlink install path.

Notes

  • Existing releases predate the skill, so the tag-pinned fetch will 404 and correctly fall back to main. Once a release is cut with the skill present, it pins to the tag.
  • Verified: sh -n install.sh passes; the main raw URL returns HTTP 200.

🤖 Generated with Claude Code

Make the bundled `modl` Claude Code skill installable without a repo clone:

- install.sh: new install_claude_skill step fetches skills/modl/SKILL.md from
  GitHub raw (pinned to the release tag, falling back to main) into
  ~/.claude/skills/modl. Runs only when Claude Code is present (~/.claude
  exists), skips an existing symlink so dev checkouts are untouched, is
  non-fatal, and opts out with --no-skill.
- SKILL.md: rewrite the description with trigger phrases so Claude Code
  auto-invokes the skill instead of requiring an explicit /modl.
- README: document the skill + the clone/symlink install path.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant