Skip to content

Split install.md into platform-specific guides#17

Merged
juntao merged 4 commits intomainfrom
split-install-docs
Feb 2, 2026
Merged

Split install.md into platform-specific guides#17
juntao merged 4 commits intomainfrom
split-install-docs

Conversation

@juntao
Copy link
Member

@juntao juntao commented Feb 2, 2026

Summary

  • Rename install.md to install-claudecode.md (for Claude Code, uses ~/.claude)
  • Create install-openclaw.md (for OpenClaw, uses ~/.openclaw)

Both guides have identical content except for the skill directory path.

🤖 Generated with Claude Code

- Rename install.md to install-claudecode.md (for Claude Code)
- Create install-openclaw.md (for OpenClaw, uses ~/.openclaw)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR splits the installation documentation into platform-specific guides for Claude Code and OpenClaw agents. The main change is creating two separate installation guides that differ only in the skill directory paths used by each platform.

Changes:

  • Created install-claudecode.md with installation instructions using ~/.claude/skills/payment path
  • Created install-openclaw.md with installation instructions using ~/.openclaw/skills/payment path
  • Both files are identical except for platform-specific paths and agent platform names

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 3 comments.

File Description
install-claudecode.md Installation guide for Claude Code agents using ~/.claude directory structure
install-openclaw.md Installation guide for OpenClaw agents using ~/.openclaw directory structure

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +16 to +21
SKILL_DIR="${HOME}/.openclaw/skills/payment"
mkdir -p "$(dirname "$SKILL_DIR")"

# Clone the skill directory
git clone --depth 1 https://github.com/second-state/payment-skill.git /tmp/payment-skill-repo
cp -r /tmp/payment-skill-repo/skill/* "$SKILL_DIR"
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The directory setup is incomplete. Line 17 creates the parent directory (/.openclaw/skills/) but line 21 tries to copy files INTO $SKILL_DIR (/.openclaw/skills/payment) which doesn't exist yet. This will cause the cp command to fail. Either change line 17 to mkdir -p "$SKILL_DIR" to create the full path, or change line 21 to cp -r /tmp/payment-skill-repo/skill "$SKILL_DIR" (removing the /*) and adjust line 17 to use dirname.

Copilot uses AI. Check for mistakes.
echo "OS: $(uname -s), Arch: $(uname -m)"
```

Supported: Linux/macOS/Windows on x86_64/aarch64
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing trailing newline at end of file. For consistency with install-claudecode.md and common convention, add a blank line at the end of the file.

Suggested change
Supported: Linux/macOS/Windows on x86_64/aarch64
Supported: Linux/macOS/Windows on x86_64/aarch64

Copilot uses AI. Check for mistakes.
Comment on lines +20 to +25
git clone --depth 1 https://github.com/second-state/payment-skill.git /tmp/payment-skill-repo
cp -r /tmp/payment-skill-repo/skill/* "$SKILL_DIR"
rm -rf /tmp/payment-skill-repo

# Download platform-specific binaries
"${SKILL_DIR}/bootstrap.sh"
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The quick install instructions clone https://github.com/second-state/payment-skill.git at the moving default branch and then immediately execute bootstrap.sh from that clone, which creates a supply-chain risk. If the remote repository or its distribution channel is compromised, users following these steps will run attacker-controlled code with access to their payment wallet and local environment. Consider pinning the clone to a specific trusted tag or commit and/or adding integrity verification (e.g., checksum or signature verification) before executing bootstrap.sh.

Copilot uses AI. Check for mistakes.
Juntao Yuan and others added 2 commits February 2, 2026 05:48
Changed from mkdir -p "$(dirname "$SKILL_DIR")" to mkdir -p "$SKILL_DIR"
to ensure the destination directory exists before copying files.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Changed `.claude/skills/payment/skill/scripts/` to
`~/.claude/skills/payment/scripts/` (removed extra /skill/, added ~/)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

skill/SKILL.md Outdated
https://github.com/second-state/payment-skill/releases

Extract to `.claude/skills/payment/skill/scripts/`
Extract to `~/.claude/skills/payment/scripts/`
Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This path is hardcoded to use ~/.claude/ which is specific to Claude Code. Since the PR creates separate installation guides for Claude Code and OpenClaw (which uses ~/.openclaw/), this documentation should be platform-agnostic. Consider using a placeholder like <SKILL_DIR>/scripts/ or documenting both paths to support users of both platforms.

Copilot uses AI. Check for mistakes.
Use `scripts/` instead of full absolute paths since the paths
are relative to the skill directory.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@juntao juntao merged commit 09cd774 into main Feb 2, 2026
6 checks passed
@juntao juntao deleted the split-install-docs branch February 2, 2026 06:04
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.

2 participants