AgentSkillsCN

ralph-install

当您首次设置Ralph/claude-golem时,这一工具能帮您检查依赖项、安装CLI工具,并配置1Password的认证令牌。涵盖install ralph、setup ralph以及依赖项。注意:此工具不适用于日常的Ralph使用(因为相关技能已预先安装)。

SKILL.md
--- frontmatter
name: ralph-install
description: Use when setting up Ralph/claude-golem for the first time. Checks dependencies, installs CLIs, configures 1Password tokens. Covers install ralph, setup ralph, dependencies. NOT for: daily Ralph usage (skills already installed).

Ralph Install Wizard

Guides new users through claude-golem setup. Checks for required CLIs, configures tokens in 1Password, sets up the golem-powers symlink, and validates everything works.

Available Scripts

Run these directly - standalone setup and validation:

ScriptPurposeUsage
scripts/check-deps.shCheck dependenciesbash ~/.claude/commands/golem-powers/ralph-install/scripts/check-deps.sh
scripts/install-deps.shInstall missingbash ~/.claude/commands/golem-powers/ralph-install/scripts/install-deps.sh --all
scripts/validate.shFull validationbash ~/.claude/commands/golem-powers/ralph-install/scripts/validate.sh

Quick Start

For a full installation, run through these workflows in order:

StepWorkflowPurpose
1check-depsVerify required CLIs are installed (including Bun)
2install-depsInstall missing dependencies via brew (+ CodeRabbit via curl)
3setup-tokensConfigure API tokens in 1Password (claude-golem item)
4setup-symlinksCreate golem-powers symlink, remove old symlinks
5validateVerify installation works end-to-end

After installation, to wire up a project:

StepWorkflowPurpose
6wire-projectAdd project to registry with contexts and MCPs

See also: SETUP.md for the full wiring guide.


Required Dependencies

Core CLIs

CLIPurposeCheck Command
ghGitHub CLI for PRs, issuesgh --version
op1Password CLI for secretsop --version
gumInteractive promptsgum --version
fswatchFile watching for live modefswatch --version
jqJSON processingjq --version
gitVersion controlgit --version

TypeScript Skills

CLIPurposeCheck Command
bunTypeScript runtime for golem-powersbun --version
crCodeRabbit CLI for code review (optional)cr --version

Required API Keys

These keys are stored in 1Password under the claude-golem item:

KeyPurpose1Password Path
Context7Library documentation lookupop://Private/claude-golem/context7/API_KEY
LinearIssue tracking integrationop://Private/claude-golem/linear/API_KEY

Setup:

bash
# Create the claude-golem item with sections
op item create --category "API Credential" --vault "Private" --title "claude-golem"
op item edit "claude-golem" --vault "Private" "context7.API_KEY[concealed]=ctx7sk_your_key"
op item edit "claude-golem" --vault "Private" "linear.API_KEY[concealed]=lin_api_your_key"

Golem-Powers Symlink

All skills are under the golem-powers namespace. Create a single symlink:

bash
mkdir -p ~/.claude/commands
ln -sf /path/to/claude-golem/skills/golem-powers ~/.claude/commands/golem-powers

Skills are then available as /golem-powers:skill-name:

  • /golem-powers:1password
  • /golem-powers:convex
  • /golem-powers:github
  • /golem-powers:linear
  • /golem-powers:context7
  • /golem-powers:coderabbit
  • etc.

Configuration Paths

PathPurpose
~/.config/claude-golem/Main config directory
~/.config/claude-golem/config.jsonUser settings
~/.claude/commands/golem-powersSkills symlink
~/.claude/CLAUDE.mdGlobal Claude instructions
~/.claude/contexts/Modular context files

Contexts Directory

The contexts directory contains reusable CLAUDE.md modules:

code
~/.claude/contexts/
├── base.md               # Universal rules (scratchpad, AIDEV-NOTE, type safety)
├── tech/
│   ├── nextjs.md         # Next.js patterns
│   ├── supabase.md       # Supabase patterns
│   ├── convex.md         # Convex patterns
│   └── react-native.md   # React Native patterns
└── workflow/
    ├── interactive.md    # Interactive Claude rules (CLAUDE_COUNTER)
    ├── ralph.md          # Ralph autonomous execution
    ├── rtl.md            # RTL layout rules
    ├── testing.md        # Testing standards
    └── design-system.md  # Component guidelines

Projects reference contexts with @context: directives:

markdown
## Contexts
@context: base
@context: tech/nextjs
@context: workflow/rtl

The contexts are in the claude-golem repo at ~/.claude/contexts/ (not symlinked, copied during setup).


Troubleshooting

Homebrew not installed

Install Homebrew first:

bash
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

1Password CLI not connecting to app

Ensure:

  1. 1Password 8 desktop app is installed
  2. Settings > Developer > CLI integration is enabled
  3. Biometric unlock is enabled for CLI

Bun not installing via brew

Try the official installer:

bash
curl -fsSL https://bun.sh/install | bash

Skills not appearing in Claude

Check the golem-powers symlink:

bash
ls -la ~/.claude/commands/golem-powers

If missing or broken, run setup-symlinks workflow.