Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,31 +35,31 @@ Install `bitcoinui` in your AI coding tool.
### [Claude](https://code.claude.com/docs/en/slash-commands)

```sh
curl -L -o ~/.claude/commands/bitcoinui.md https://bitcoinui.ai/bitcoinui.md
curl -fsSL https://bitcoinui.ai/install.sh | bash
claude
/bitcoinui
```

### [Codex](https://github.com/openai/codex/blob/main/docs/skills.md)

```sh
curl -fsSL https://bitcoinui.ai/install-codex.sh | bash
curl -fsSL https://bitcoinui.ai/install.sh | bash
codex
$bitcoinui
```

### [Cursor](https://cursor.com/docs/agent/chat/commands)

```sh
curl -L -o ~/.cursor/commands/bitcoinui.md https://bitcoinui.ai/bitcoinui.md
curl -fsSL https://bitcoinui.ai/install.sh | bash
cursor
/bitcoinui
```

### [OpenCode](https://opencode.ai/docs/commands/)

```sh
curl -L -o ~/.config/opencode/command/bitcoinui.md https://bitcoinui.ai/bitcoinui.md
curl -fsSL https://bitcoinui.ai/install.sh | bash
opencode
/bitcoinui
```
Expand Down
8 changes: 4 additions & 4 deletions site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,28 @@ <h1>Bitcoin UI iOS</h1>
<h2 class="section-title">Design Review</h2>
<section class="block" id="claude">
<h2><a href="https://code.claude.com/docs/en/slash-commands">Claude</a></h2>
<pre><code><span class="prompt">$</span> curl -L -o ~/.claude/commands/bitcoinui.md https://bitcoinui.ai/bitcoinui.md
<pre><code><span class="prompt">$</span> curl -fsSL https://bitcoinui.ai/install.sh | bash
<span class="prompt">$</span> claude
<span class="prompt">&gt;</span> /bitcoinui</code></pre>
</section>

<section class="block" id="codex">
<h2><a href="https://github.com/openai/codex/blob/main/docs/skills.md">Codex</a></h2>
<pre><code><span class="prompt">$</span> curl -fsSL https://bitcoinui.ai/install-codex.sh | bash
<pre><code><span class="prompt">$</span> curl -fsSL https://bitcoinui.ai/install.sh | bash
<span class="prompt">$</span> codex
<span class="prompt">&gt;</span> $bitcoinui</code></pre>
</section>

<section class="block" id="cursor">
<h2><a href="https://cursor.com/docs/agent/chat/commands">Cursor</a></h2>
<pre><code><span class="prompt">$</span> curl -L -o ~/.cursor/commands/bitcoinui.md https://bitcoinui.ai/bitcoinui.md
<pre><code><span class="prompt">$</span> curl -fsSL https://bitcoinui.ai/install.sh | bash
<span class="prompt">$</span> cursor
<span class="prompt">&gt;</span> /bitcoinui</code></pre>
</section>

<section class="block" id="opencode">
<h2><a href="https://opencode.ai/docs/commands/">OpenCode</a></h2>
<pre><code><span class="prompt">$</span> curl -L -o ~/.config/opencode/command/bitcoinui.md https://bitcoinui.ai/bitcoinui.md
<pre><code><span class="prompt">$</span> curl -fsSL https://bitcoinui.ai/install.sh | bash
<span class="prompt">$</span> opencode
<span class="prompt">&gt;</span> /bitcoinui</code></pre>
</section>
Expand Down
13 changes: 1 addition & 12 deletions site/install-codex.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,4 @@
#!/usr/bin/env bash
set -euo pipefail

CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
SKILL_DIR="$CODEX_HOME/skills/bitcoinui"
REF_DIR="$SKILL_DIR/references"
BASE_URL="https://bitcoinui.ai/skills/bitcoinui"

mkdir -p "$REF_DIR"

curl -fsSL -o "$SKILL_DIR/SKILL.md" "$BASE_URL/SKILL.md"
curl -fsSL -o "$REF_DIR/bitcoinui-rubric.md" "$BASE_URL/references/bitcoinui-rubric.md"

echo "Installed to $SKILL_DIR"
echo "Restart Codex to pick up new skills."
curl -fsSL https://bitcoinui.ai/install.sh | bash
60 changes: 60 additions & 0 deletions site/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#!/usr/bin/env bash
set -euo pipefail

BITCOINUI_URL="https://bitcoinui.ai/bitcoinui.md"
SKILL_BASE_URL="https://bitcoinui.ai/skills/bitcoinui"
CODEX_HOME="${CODEX_HOME:-$HOME/.codex}"
INSTALLED=0

echo "Installing bitcoinui..."
echo ""

# Claude Code
if command -v claude >/dev/null 2>&1 || [ -d "$HOME/.claude" ]; then
mkdir -p "$HOME/.claude/commands"
curl -fsSL -o "$HOME/.claude/commands/bitcoinui.md" "$BITCOINUI_URL"
echo "Installed for Claude Code"
INSTALLED=$((INSTALLED + 1))
fi

# Cursor
if command -v cursor >/dev/null 2>&1 || [ -d "$HOME/.cursor" ]; then
mkdir -p "$HOME/.cursor/commands"
curl -fsSL -o "$HOME/.cursor/commands/bitcoinui.md" "$BITCOINUI_URL"
echo "Installed for Cursor"
INSTALLED=$((INSTALLED + 1))
fi

# OpenCode
if command -v opencode >/dev/null 2>&1 || [ -d "$HOME/.config/opencode" ]; then
mkdir -p "$HOME/.config/opencode/command"
curl -fsSL -o "$HOME/.config/opencode/command/bitcoinui.md" "$BITCOINUI_URL"
echo "Installed for OpenCode"
INSTALLED=$((INSTALLED + 1))
fi

# Codex
if command -v codex >/dev/null 2>&1 || [ -d "$CODEX_HOME" ]; then
SKILL_DIR="$CODEX_HOME/skills/bitcoinui"
REF_DIR="$SKILL_DIR/references"
mkdir -p "$REF_DIR"
curl -fsSL -o "$SKILL_DIR/SKILL.md" "$SKILL_BASE_URL/SKILL.md"
curl -fsSL -o "$REF_DIR/bitcoinui-rubric.md" "$SKILL_BASE_URL/references/bitcoinui-rubric.md"
echo "Installed for Codex"
INSTALLED=$((INSTALLED + 1))
fi

echo ""

if [ "$INSTALLED" -eq 0 ]; then
echo "No supported tools detected."
echo ""
echo "Install one of these first:"
echo " - Claude Code: https://claude.ai/code"
echo " - Cursor: https://cursor.com"
echo " - OpenCode: https://opencode.ai"
echo " - Codex: https://github.com/openai/codex"
exit 1
fi

echo "Done! Run /bitcoinui (or \$bitcoinui in Codex)."