Skip to content

Commit ea50fd4

Browse files
committed
chore: rename bitcoin builder skill
1 parent 8749761 commit ea50fd4

6 files changed

Lines changed: 41 additions & 38 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ and understand Lightning payment flows and capabilities.
77

88
**[Try it here](https://sandbox.albylabs.com)**
99

10-
The Alby Sandbox was vibe coded using the [Alby Agent Skill](https://github.com/getAlby/alby-agent-skill)
10+
The Alby Sandbox was vibe coded using the [Alby Bitcoin Builder Skill](https://github.com/getAlby/builder-skill)
1111

1212
## Development
1313

1414
`yarn install`
1515

1616
`yarn dev`
1717

18-
Make sure to install the alby agent skill: `npx skills add getAlby/alby-agent-skill`
18+
Make sure to install the alby bitcoin builder skill: `npx skills add getAlby/builder-skill`

docs/design/sidebar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The list of scenarios in the below diagram is just an example.
99
Links:
1010

1111
- [Alby Hub](https://getalby.com/alby-hub)
12-
- [Alby Agent Skill](https://github.com/getAlby/alby-agent-skill)
12+
- [Alby Bitcoin Builder Skill](https://github.com/getAlby/builder-skill)
1313
- [Alby JS SDK](https://github.com/getalby/js-sdk)
1414
- [Alby Lightning Tools](https://github.com/getalby/js-lightning-tools)
1515

src/components/app-sidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import { BitcoinConnectIcon } from "@/icons/BitcoinConnectIcon";
2626

2727
const externalLinks = [
2828
{
29-
title: "Alby Agent Skill",
30-
url: "https://github.com/getalby/alby-agent-skill",
29+
title: "Alby Bitcoin Builder Skill",
30+
url: "https://github.com/getalby/builder-skill",
3131
icon: <BotIcon className="size-4" />,
3232
},
3333
{

src/components/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ export function Layout({ children }: LayoutProps) {
2727
<span className="inline-flex items-center gap-1">
2828
Built with
2929
<a
30-
href="https://github.com/getAlby/alby-agent-skill"
30+
href="https://github.com/getAlby/builder-skill"
3131
target="_blank"
3232
rel="noopener noreferrer"
3333
className="inline-flex items-center gap-1 text-muted-foreground hover:text-foreground transition-colors"
3434
>
3535
<BotIcon className="size-3.5" />
36-
Alby Agent Skill
36+
Alby Bitcoin Builder Skill
3737
</a>
3838
</span>
3939
<span className="opacity-40">·</span>

src/components/visualizations/prompts-tab.tsx

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { useState } from 'react';
1+
import { useState } from "react";
22
import {
33
Play,
44
Rocket,
@@ -7,26 +7,26 @@ import {
77
Check,
88
MessageSquareText,
99
Terminal,
10-
} from 'lucide-react';
11-
import { Button } from '@/components/ui/button';
12-
import { useScenarioStore, useUIStore } from '@/stores';
10+
} from "lucide-react";
11+
import { Button } from "@/components/ui/button";
12+
import { useScenarioStore, useUIStore } from "@/stores";
1313
import {
1414
PROMPT_CATEGORIES,
1515
GETTING_STARTED_PROMPTS,
1616
getAllPrompts,
1717
type PromptCategory,
1818
type PromptWithScenario,
19-
} from '@/data/prompts';
20-
import type { ScenarioPrompt } from '@/types';
21-
import { cn } from '@/lib/utils';
19+
} from "@/data/prompts";
20+
import type { ScenarioPrompt } from "@/types";
21+
import { cn } from "@/lib/utils";
2222

2323
const CATEGORY_ICONS: Record<PromptCategory, React.ReactNode> = {
24-
'this-scenario': <Play className="h-4 w-4" />,
25-
'getting-started': <Rocket className="h-4 w-4" />,
26-
'all-scenarios': <List className="h-4 w-4" />,
24+
"this-scenario": <Play className="h-4 w-4" />,
25+
"getting-started": <Rocket className="h-4 w-4" />,
26+
"all-scenarios": <List className="h-4 w-4" />,
2727
};
2828

29-
const SKILL_COMMAND = 'npx skills add getAlby/alby-agent-skill';
29+
const SKILL_COMMAND = "npx skills add getAlby/builder-skill";
3030

3131
function GettingStartedCard() {
3232
const [copied, setCopied] = useState(false);
@@ -37,7 +37,7 @@ function GettingStartedCard() {
3737
setCopied(true);
3838
setTimeout(() => setCopied(false), 2000);
3939
} catch (err) {
40-
console.error('Failed to copy:', err);
40+
console.error("Failed to copy:", err);
4141
}
4242
};
4343

@@ -46,7 +46,8 @@ function GettingStartedCard() {
4646
<div className="p-3">
4747
<h3 className="font-medium text-sm mb-1">Getting Started</h3>
4848
<p className="text-xs text-muted-foreground mb-2">
49-
Install the Alby agent skill in your project, then copy a prompt below into Claude Code or another AI tool.
49+
Install the Alby agent skill in your project, then copy a prompt below
50+
into Claude Code or another AI tool.
5051
</p>
5152
<div className="flex items-center gap-2">
5253
<div className="flex-1 flex items-center gap-2 bg-muted/50 rounded-md px-3 py-1.5 font-mono text-xs">
@@ -81,12 +82,12 @@ export function PromptsTab() {
8182
const { promptCategory, setPromptCategory } = useUIStore();
8283
const { currentScenario } = useScenarioStore();
8384

84-
const isGettingStarted = promptCategory === 'getting-started';
85+
const isGettingStarted = promptCategory === "getting-started";
8586

8687
const prompts: (ScenarioPrompt | PromptWithScenario)[] =
87-
promptCategory === 'this-scenario'
88-
? currentScenario.prompts ?? []
89-
: promptCategory === 'all-scenarios'
88+
promptCategory === "this-scenario"
89+
? (currentScenario.prompts ?? [])
90+
: promptCategory === "all-scenarios"
9091
? getAllPrompts()
9192
: [];
9293

@@ -100,10 +101,10 @@ export function PromptsTab() {
100101
key={category.id}
101102
onClick={() => setPromptCategory(category.id)}
102103
className={cn(
103-
'flex items-center gap-2 px-3 py-2 text-sm rounded-md transition-colors text-left whitespace-nowrap flex-shrink-0',
104+
"flex items-center gap-2 px-3 py-2 text-sm rounded-md transition-colors text-left whitespace-nowrap flex-shrink-0",
104105
promptCategory === category.id
105-
? 'bg-primary text-primary-foreground'
106-
: 'hover:bg-muted'
106+
? "bg-primary text-primary-foreground"
107+
: "hover:bg-muted",
107108
)}
108109
>
109110
{CATEGORY_ICONS[category.id]}
@@ -135,7 +136,7 @@ export function PromptsTab() {
135136
<PromptCard
136137
key={index}
137138
prompt={prompt}
138-
showScenario={promptCategory === 'all-scenarios'}
139+
showScenario={promptCategory === "all-scenarios"}
139140
/>
140141
))}
141142
</div>
@@ -160,12 +161,12 @@ function PromptCard({
160161
setCopied(true);
161162
setTimeout(() => setCopied(false), 2000);
162163
} catch (err) {
163-
console.error('Failed to copy:', err);
164+
console.error("Failed to copy:", err);
164165
}
165166
};
166167

167168
const scenarioInfo =
168-
showScenario && 'scenarioTitle' in prompt ? prompt : null;
169+
showScenario && "scenarioTitle" in prompt ? prompt : null;
169170

170171
return (
171172
<div className="border rounded-lg overflow-hidden">

src/data/code-snippets.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export type SnippetId =
1717
// Getting Started
1818
| "install-libraries"
1919
| "init-wallet"
20-
| "agent-skill"
20+
| "builder-skill"
2121
// REPL
2222
| "browser-console"
2323
| "available-globals"
@@ -62,7 +62,7 @@ export type SnippetId =
6262
| "bc-pay-button"
6363
| "bc-launch-payment-modal";
6464

65-
export type CodeLanguage = 'javascript' | 'typescript' | 'bash';
65+
export type CodeLanguage = "javascript" | "typescript" | "bash";
6666

6767
export interface CodeSnippet {
6868
id: SnippetId;
@@ -92,13 +92,13 @@ export const SNIPPET_CATEGORIES: {
9292

9393
export const CODE_SNIPPETS: CodeSnippet[] = [
9494
{
95-
id: "agent-skill",
96-
title: "Alby Agent Skill",
95+
id: "builder-skill",
96+
title: "Alby Bitcoin Builder Skill",
9797
description:
98-
"Let your agent write the code for you, without making mistakes. Run the following command inside your project:",
98+
"Turn your favorite agent into a bitcoin app builder. Run the following command inside your project:",
9999
category: "getting-started",
100100
language: "bash",
101-
code: `npx skills add getAlby/alby-agent-skill
101+
code: `npx skills add getAlby/builder-skill
102102
103103
# No need to follow the code examples below. Jump directly to the example prompts!
104104
`,
@@ -719,7 +719,8 @@ disconnect()
719719
{
720720
id: "bc-pay-button",
721721
title: "Pay Button Component",
722-
description: "A button that fetches an invoice on click and launches the payment modal. Supports external payments via QR code scanning.",
722+
description:
723+
"A button that fetches an invoice on click and launches the payment modal. Supports external payments via QR code scanning.",
723724
code: `import { useState } from 'react'
724725
import { PayButton, refreshBalance } from '@getalby/bitcoin-connect-react'
725726
import type { SendPaymentResponse } from '@webbtc/webln-types'
@@ -762,7 +763,8 @@ function CheckoutButton() {
762763
{
763764
id: "bc-launch-payment-modal",
764765
title: "Launch Payment Modal",
765-
description: "Programmatically launch a payment modal. Polls for external payments (e.g. QR code scans) and notifies the modal via setPaid.",
766+
description:
767+
"Programmatically launch a payment modal. Polls for external payments (e.g. QR code scans) and notifies the modal via setPaid.",
766768
code: `import { launchPaymentModal, refreshBalance } from '@getalby/bitcoin-connect-react'
767769
768770
async function handlePayment(invoice: string) {

0 commit comments

Comments
 (0)