Skip to content

fix(install): bundle quickstart skill and clarify PATH activation#3

Merged
Zhihaoi merged 1 commit into
mainfrom
worktree-install-quickstart-skill
May 23, 2026
Merged

fix(install): bundle quickstart skill and clarify PATH activation#3
Zhihaoi merged 1 commit into
mainfrom
worktree-install-quickstart-skill

Conversation

@Zhihaoi
Copy link
Copy Markdown
Collaborator

@Zhihaoi Zhihaoi commented May 23, 2026

Summary

Two issues blocked anyone running curl -fsSL https://raw.githubusercontent.com/thustorage/ContextFS/main/install.sh | sh and then agentvfs-quickstart:

  1. agentvfs-quickstart couldn't find its skill source. The release tarball didn't ship docs/skills/agentvfs-workspace.md, but start.sh reads it relative to its own directory to populate ~/.claude/skills/agentvfs-workspace/SKILL.md and ~/.codex/AGENTS.md. Every invocation outside a repo checkout died with skill source not found at /home/.../.local/bin/docs/skills/agentvfs-workspace.md.

    • Fix: .github/workflows/release.yml now stages docs/skills/agentvfs-workspace.md into each tarball (linux / darwin-arm64 / darwin-x86_64); install.sh installs it alongside the binaries with 0644; start.sh probes $SCRIPT_DIR/docs/skills/agentvfs-workspace.md first (repo mode), then $SCRIPT_DIR/agentvfs-workspace.md (installed mode), and prints a clearer multi-line error if neither exists.
  2. The "PATH is not in your PATH" note conflated "do now" with "do once". Users who ran echo ... >> ~/.bashrc (the second line) found agentvfs-quickstart still missing in the current shell.

    • Fix: install.sh now labels the two commands # 1) Activate in the current shell (run this NOW) and # 2) Persist for future shells (run this ONCE), and suggests the rc file matching the host OS's typical login shell (~/.zshrc on macOS, ~/.bashrc on Linux) with the other as a one-line fallback hint.

Test plan

  • `bash -n start.sh`, `sh -n install.sh`, `python3 -c "yaml.safe_load(...)"` on `release.yml` — all clean
  • End-to-end `start.sh` against three layouts (repo-checkout, packaged-flat, missing-skill) with a stubbed `agentvfs` binary — repo and packaged write `SKILL.md` + `AGENTS.md`; missing-skill emits the new error
  • Visual check of `install.sh`'s final-message branches (linux/macos × in-PATH/not-in-PATH)
  • Real release run on a tag bump to confirm the tarball layout actually ships the `.md`

🤖 Generated with Claude Code

Two issues blocked users following the README's curl-piped
install path:

1. agentvfs-quickstart (start.sh, renamed) reads
   docs/skills/agentvfs-workspace.md relative to its own
   directory to write ~/.claude/skills/agentvfs-workspace/SKILL.md
   and ~/.codex/AGENTS.md. The release tarball didn't include
   this file, so every quickstart invocation outside a source
   checkout failed with "skill source not found".

   Fix: release.yml stages docs/skills/agentvfs-workspace.md
   into each tarball (linux/darwin-arm64/darwin-x86_64) and
   install.sh installs it alongside the binaries with 0644
   perms. start.sh now probes
   $SCRIPT_DIR/docs/skills/agentvfs-workspace.md (repo mode)
   then $SCRIPT_DIR/agentvfs-workspace.md (installed mode) and
   emits a clearer multi-line error if neither is present.

2. The "Note: $PREFIX is not in your PATH" message listed two
   commands without indicating which was for the current shell
   vs which persisted for future shells. Users persisted to
   ~/.bashrc and then ran agentvfs-quickstart in the same
   session, which still had the old PATH.

   Fix: install.sh now prints labeled "1) Activate in the
   current shell (run this NOW)" and "2) Persist for future
   shells (run this ONCE)" steps, and suggests the rc file
   matching the host OS's typical login shell (zsh on macOS,
   bash on Linux) with the other as a one-line fallback hint.

Tested:
- bash -n start.sh / sh -n install.sh / yaml.safe_load on
  release.yml — all clean
- end-to-end test of start.sh against three layouts
  (repo-checkout, packaged-flat, missing-skill) using a
  stubbed `agentvfs` binary — all three behave as expected
- visual diff of the new PATH note across linux/macos with
  PREFIX both in and out of PATH

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Zhihaoi Zhihaoi merged commit 339b68a into main May 23, 2026
5 checks passed
@Zhihaoi Zhihaoi deleted the worktree-install-quickstart-skill branch May 23, 2026 09:33
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