feat(skill): add Claude Code skill for GoClaw CLI#4
Open
Conversation
Add comprehensive Claude Code skill reference with 16 progressive-disclosure guides covering 38 command groups. Includes 3-mode install.sh for safe settings.json patching via Python3, check-drift.sh validator, and MIT license. Distributed as tarball with SHA256 verification. Hero use case: goclaw tools invoke exec for remote shell execution.
- Add has_tty() helper that probes /dev/tty by actually opening it for read Fixes edge case where [[ -r /dev/tty ]] is true but reading fails under pipe redirect like < /dev/null. Mode 1 under pipe now exits 1 cleanly. - Update root README with "Claude Code Skill" section advertising tarball + SHA256 install one-liner for easy discovery and installation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
claude-skill/— a Claude Code skill that lets Claude autonomously invoke thegoclawCLI to manage GoClaw AI agent gateway servers.install.shwith 3-mode permission selector (full wildcard / readonly-only / no-patch). Safe~/.claude/settings.jsonmerge via quoted Python3 heredoc with env-var injection. Abort on Windows, TTY probe for/dev/tty, idempotent re-runs.check-drift.shvalidator: greps every flag mentioned in references and verifies it againstcmd/*.go. Currently 0 drift across 68 unique flag mentions.skill-v0.1.0already published: https://github.com/nextlevelbuilder/goclaw-cli/releases/tag/skill-v0.1.0README.mdgains a Claude Code Skill section with install snippet.Why
GoClaw users want to drive the gateway from Claude Code without hand-typing
goclawcommands. MCP server was considered and rejected (YAGNI — CLI is already the source of truth). Skill-only approach keeps version in sync with the CLI: bumpinggoclawupdates the reference surface automatically.Hero use case
Claude picks up a user intent like "run
uname -aon my goclaw server" and autonomously runs:Server
exectool verified atgoclaw/internal/tools/shell.go:114-128— params:command(required),working_dir(optional). Approval gate handled server-side viaExecApprovalManager.Safety posture
list,get,status, …) — SAFEST.curl | bash.SKILL.mdinstructs Claude to always append--output json, refuse streaming, and prompt user before destructive ops (delete,revoke,clear,unpublish,rotate).settings.jsonbacked up with timestamp before every merge.Files
claude-skill/SKILL.md— thin index with frontmatter.claude-skill/references/*.md— 16 reference files, 2159 lines total.claude-skill/install.sh— 223-line production installer.shellcheckclean.claude-skill/check-drift.sh— flag-vs-source validator. 0 drift.claude-skill/LICENSE— MIT.claude-skill/README.md— user-facing install + usage docs.claude-skill/.verified-commands.txt— 38 top-level commands verified from binary.Test matrix (automated)
shellcheck install.sh check-drift.sh./install.sh --help--mode--mode 1check-drift.shRemaining (post-merge)
plans/260417-1254-goclaw-claude-skill/phase-04-install-readme-test.md§Step 4.SKILL.mddescriptionkeywords after smoke test if over/under-triggering observed.Test plan
~/.claude/— Mode 2 defaultgoclaw agents list --output jsongoclaw tools invoke exec --param command="uname -a"--yes