From 963521e8d995e90b1ee241ba53372847af6898f5 Mon Sep 17 00:00:00 2001 From: De Clercq Wentzel <10665586+wentzeld@users.noreply.github.com> Date: Thu, 19 Mar 2026 10:27:23 -0700 Subject: [PATCH 1/5] Add Build with AI getting started page for CRE docs --- src/config/sidebar.ts | 4 + .../cre/getting-started/build-with-ai.mdx | 99 +++++++++++++++++++ src/content/cre/llms-full-go.txt | 82 +++++++++++++++ src/content/cre/llms-full-ts.txt | 82 +++++++++++++++ 4 files changed, 267 insertions(+) create mode 100644 src/content/cre/getting-started/build-with-ai.mdx diff --git a/src/config/sidebar.ts b/src/config/sidebar.ts index 5154c17b055..9fea561cc03 100644 --- a/src/config/sidebar.ts +++ b/src/config/sidebar.ts @@ -145,6 +145,10 @@ export const SIDEBAR: Partial> = { url: "cre/getting-started/before-you-build", highlightAsCurrent: ["cre/getting-started/before-you-build-ts", "cre/getting-started/before-you-build-go"], }, + { + title: "Build with AI", + url: "cre/getting-started/build-with-ai", + }, ], }, { diff --git a/src/content/cre/getting-started/build-with-ai.mdx b/src/content/cre/getting-started/build-with-ai.mdx new file mode 100644 index 00000000000..d004e568bde --- /dev/null +++ b/src/content/cre/getting-started/build-with-ai.mdx @@ -0,0 +1,99 @@ +--- +section: cre +date: Last Modified +title: "Build with AI" +metadata: + description: "Use AI-powered tools to build CRE workflows — install the CRE skill for code editors or load CRE context into AI web chat." + datePublished: "2026-03-19" + lastModified: "2026-03-19" +--- + +import { Aside, CopyText } from "@components" + +You can use AI-powered tools to generate, debug, and explore CRE workflows. There are two approaches: install a skill in your code editor or paste a starter prompt into AI web chat. + +## Code editor + +### Install the skill + +Run the following command to add the CRE skill to your code editor agent: + +```shell +npx skills add https://github.com/smartcontractkit/chainlink-agent-skill --skill cre-skills +``` + +### Prompt your agent + +Once installed, reference the skill in your prompt: + +``` +Use the /cre-skills skill and [describe what you want to build] +``` + +### What you can do + +- Generate complete CRE workflows in TypeScript or Go +- Get help with onboarding, project setup, and account configuration +- Debug issues with simulation, secrets, triggers, and deployment +- Look up CLI commands, SDK APIs, and capability details + +### Works with + +Claude Code, Cursor, Codex, Gemini, Copilot, Cline + +## AI Webchat + +If you prefer working in a browser, you can load the full CRE documentation into an AI chat session. Context files are available for both SDKs: + +- **TypeScript**: +- **Go**: + +Copy a starter prompt below, replace the placeholder at the end with your use case, and paste it into your preferred AI chat. + +### TypeScript + +``` +I'm building a Chainlink CRE workflow using the TypeScript SDK. + +Here is the full CRE TypeScript documentation: +https://docs.chain.link/cre/llms-full-ts.txt + +Please fetch and read that file. After you've read it, please: +- Help me build a CRE workflow based on what I describe +- Answer any questions I have about the CRE TypeScript SDK +- Guide me through implementation step by step + +I want to build: [describe your use case] +``` + + + Open in ChatGPT + +| + + Open in Claude + + +### Go + +``` +I'm building a Chainlink CRE workflow using the Go SDK. + +Here is the full CRE Go documentation: +https://docs.chain.link/cre/llms-full-go.txt + +Please fetch and read that file. After you've read it, please: +- Help me build a CRE workflow based on what I describe +- Answer any questions I have about the CRE Go SDK +- Guide me through implementation step by step + +I want to build: [describe your use case] +``` + + + Open in ChatGPT + +| + + Open in Claude + diff --git a/src/content/cre/llms-full-go.txt b/src/content/cre/llms-full-go.txt index 1b80e60a5e7..1aa63aaa951 100644 --- a/src/content/cre/llms-full-go.txt +++ b/src/content/cre/llms-full-go.txt @@ -1201,6 +1201,88 @@ Once you're authenticated, you're ready to build your first workflow: --- +# Build with AI +Source: https://docs.chain.link/cre/getting-started/build-with-ai +Last Updated: 2026-03-19 + +You can use AI-powered tools to generate, debug, and explore CRE workflows. There are two approaches: install a skill in your code editor or paste a starter prompt into AI web chat. + +## Code editor + +### Install the skill + +Run the following command to add the CRE skill to your code editor agent: + +```shell +npx skills add https://github.com/smartcontractkit/chainlink-agent-skill --skill cre-skills +``` + +### Prompt your agent + +Once installed, reference the skill in your prompt: + +``` +Use the /cre-skills skill and [describe what you want to build] +``` + +### What you can do + +- Generate complete CRE workflows in TypeScript or Go +- Get help with onboarding, project setup, and account configuration +- Debug issues with simulation, secrets, triggers, and deployment +- Look up CLI commands, SDK APIs, and capability details + +### Works with + +Claude Code, Cursor, Codex, Gemini, Copilot, Cline + +## AI Webchat + +If you prefer working in a browser, you can load the full CRE documentation into an AI chat session. Context files are available for both SDKs: + +- **TypeScript**: https\://docs.chain.link/cre/llms-full-ts.txt +- **Go**: https\://docs.chain.link/cre/llms-full-go.txt + +Copy a starter prompt below, replace the placeholder at the end with your use case, and paste it into your preferred AI chat. + +### TypeScript + +``` +I'm building a Chainlink CRE workflow using the TypeScript SDK. + +Here is the full CRE TypeScript documentation: +https://docs.chain.link/cre/llms-full-ts.txt + +Please fetch and read that file. After you've read it, please: +- Help me build a CRE workflow based on what I describe +- Answer any questions I have about the CRE TypeScript SDK +- Guide me through implementation step by step + +I want to build: [describe your use case] +``` + +| + +### Go + +``` +I'm building a Chainlink CRE workflow using the Go SDK. + +Here is the full CRE Go documentation: +https://docs.chain.link/cre/llms-full-go.txt + +Please fetch and read that file. After you've read it, please: +- Help me build a CRE workflow based on what I describe +- Answer any questions I have about the CRE Go SDK +- Guide me through implementation step by step + +I want to build: [describe your use case] +``` + +| + +--- + # Using Triggers Source: https://docs.chain.link/cre/guides/workflow/using-triggers/overview Last Updated: 2025-11-04 diff --git a/src/content/cre/llms-full-ts.txt b/src/content/cre/llms-full-ts.txt index 8e194113777..8e04a0948d4 100644 --- a/src/content/cre/llms-full-ts.txt +++ b/src/content/cre/llms-full-ts.txt @@ -1201,6 +1201,88 @@ Once you're authenticated, you're ready to build your first workflow: --- +# Build with AI +Source: https://docs.chain.link/cre/getting-started/build-with-ai +Last Updated: 2026-03-19 + +You can use AI-powered tools to generate, debug, and explore CRE workflows. There are two approaches: install a skill in your code editor or paste a starter prompt into AI web chat. + +## Code editor + +### Install the skill + +Run the following command to add the CRE skill to your code editor agent: + +```shell +npx skills add https://github.com/smartcontractkit/chainlink-agent-skill --skill cre-skills +``` + +### Prompt your agent + +Once installed, reference the skill in your prompt: + +``` +Use the /cre-skills skill and [describe what you want to build] +``` + +### What you can do + +- Generate complete CRE workflows in TypeScript or Go +- Get help with onboarding, project setup, and account configuration +- Debug issues with simulation, secrets, triggers, and deployment +- Look up CLI commands, SDK APIs, and capability details + +### Works with + +Claude Code, Cursor, Codex, Gemini, Copilot, Cline + +## AI Webchat + +If you prefer working in a browser, you can load the full CRE documentation into an AI chat session. Context files are available for both SDKs: + +- **TypeScript**: https\://docs.chain.link/cre/llms-full-ts.txt +- **Go**: https\://docs.chain.link/cre/llms-full-go.txt + +Copy a starter prompt below, replace the placeholder at the end with your use case, and paste it into your preferred AI chat. + +### TypeScript + +``` +I'm building a Chainlink CRE workflow using the TypeScript SDK. + +Here is the full CRE TypeScript documentation: +https://docs.chain.link/cre/llms-full-ts.txt + +Please fetch and read that file. After you've read it, please: +- Help me build a CRE workflow based on what I describe +- Answer any questions I have about the CRE TypeScript SDK +- Guide me through implementation step by step + +I want to build: [describe your use case] +``` + +| + +### Go + +``` +I'm building a Chainlink CRE workflow using the Go SDK. + +Here is the full CRE Go documentation: +https://docs.chain.link/cre/llms-full-go.txt + +Please fetch and read that file. After you've read it, please: +- Help me build a CRE workflow based on what I describe +- Answer any questions I have about the CRE Go SDK +- Guide me through implementation step by step + +I want to build: [describe your use case] +``` + +| + +--- + # Using Triggers Source: https://docs.chain.link/cre/guides/workflow/using-triggers/overview Last Updated: 2025-11-04 From 1a56cf5ccda491279e7e65b772108d1347a89352 Mon Sep 17 00:00:00 2001 From: De Clercq Wentzel <10665586+wentzeld@users.noreply.github.com> Date: Thu, 19 Mar 2026 10:51:06 -0700 Subject: [PATCH 2/5] Split Build with AI page into language-specific variants --- .../cre/getting-started/build-with-ai-go.mdx | 74 +++++++++ .../cre/getting-started/build-with-ai-ts.mdx | 74 +++++++++ src/content/cre/llms-full-go.txt | 143 ++++++++---------- src/content/cre/llms-full-ts.txt | 143 ++++++++---------- 4 files changed, 270 insertions(+), 164 deletions(-) create mode 100644 src/content/cre/getting-started/build-with-ai-go.mdx create mode 100644 src/content/cre/getting-started/build-with-ai-ts.mdx diff --git a/src/content/cre/getting-started/build-with-ai-go.mdx b/src/content/cre/getting-started/build-with-ai-go.mdx new file mode 100644 index 00000000000..caada9bc750 --- /dev/null +++ b/src/content/cre/getting-started/build-with-ai-go.mdx @@ -0,0 +1,74 @@ +--- +section: cre +date: Last Modified +title: "Build with AI" +pageId: "getting-started-build-with-ai" +sdkLang: "go" +metadata: + description: "Use AI-powered tools to build CRE workflows in Go — install the CRE skill for code editors or load CRE context into AI web chat." + datePublished: "2026-03-19" + lastModified: "2026-03-19" +--- + +import { Aside, CopyText } from "@components" + +You can use AI-powered tools to generate, debug, and explore CRE workflows. There are two approaches: install a skill in your code editor or paste a starter prompt into AI web chat. + +## Code editor + +### Install the skill + +Run the following command to add the CRE skill to your code editor agent: + +```shell +npx skills add https://github.com/smartcontractkit/chainlink-agent-skill --skill cre-skills +``` + +### Prompt your agent + +Once installed, reference the skill in your prompt: + +``` +Use the /cre-skills skill and [describe what you want to build] +``` + +### What you can do + +- Generate complete CRE workflows in Go +- Get help with onboarding, project setup, and account configuration +- Debug issues with simulation, secrets, triggers, and deployment +- Look up CLI commands, SDK APIs, and capability details + +### Works with + +Claude Code, Cursor, Codex, Gemini, Copilot, Cline + +## AI Webchat + +If you prefer working in a browser, you can load the full CRE Go documentation into an AI chat session. + +**Context file**: + +Copy the starter prompt below, replace the placeholder at the end with your use case, and paste it into your preferred AI chat. + +``` +I'm building a Chainlink CRE workflow using the Go SDK. + +Here is the full CRE Go documentation: +https://docs.chain.link/cre/llms-full-go.txt + +Please fetch and read that file. After you've read it, please: +- Help me build a CRE workflow based on what I describe +- Answer any questions I have about the CRE Go SDK +- Guide me through implementation step by step + +I want to build: [describe your use case] +``` + + + Open in ChatGPT + +| + + Open in Claude + diff --git a/src/content/cre/getting-started/build-with-ai-ts.mdx b/src/content/cre/getting-started/build-with-ai-ts.mdx new file mode 100644 index 00000000000..68da74f5c4f --- /dev/null +++ b/src/content/cre/getting-started/build-with-ai-ts.mdx @@ -0,0 +1,74 @@ +--- +section: cre +date: Last Modified +title: "Build with AI" +pageId: "getting-started-build-with-ai" +sdkLang: "ts" +metadata: + description: "Use AI-powered tools to build CRE workflows in TypeScript — install the CRE skill for code editors or load CRE context into AI web chat." + datePublished: "2026-03-19" + lastModified: "2026-03-19" +--- + +import { Aside, CopyText } from "@components" + +You can use AI-powered tools to generate, debug, and explore CRE workflows. There are two approaches: install a skill in your code editor or paste a starter prompt into AI web chat. + +## Code editor + +### Install the skill + +Run the following command to add the CRE skill to your code editor agent: + +```shell +npx skills add https://github.com/smartcontractkit/chainlink-agent-skill --skill cre-skills +``` + +### Prompt your agent + +Once installed, reference the skill in your prompt: + +``` +Use the /cre-skills skill and [describe what you want to build] +``` + +### What you can do + +- Generate complete CRE workflows in TypeScript +- Get help with onboarding, project setup, and account configuration +- Debug issues with simulation, secrets, triggers, and deployment +- Look up CLI commands, SDK APIs, and capability details + +### Works with + +Claude Code, Cursor, Codex, Gemini, Copilot, Cline + +## AI Webchat + +If you prefer working in a browser, you can load the full CRE TypeScript documentation into an AI chat session. + +**Context file**: + +Copy the starter prompt below, replace the placeholder at the end with your use case, and paste it into your preferred AI chat. + +``` +I'm building a Chainlink CRE workflow using the TypeScript SDK. + +Here is the full CRE TypeScript documentation: +https://docs.chain.link/cre/llms-full-ts.txt + +Please fetch and read that file. After you've read it, please: +- Help me build a CRE workflow based on what I describe +- Answer any questions I have about the CRE TypeScript SDK +- Guide me through implementation step by step + +I want to build: [describe your use case] +``` + + + Open in ChatGPT + +| + + Open in Claude + diff --git a/src/content/cre/llms-full-go.txt b/src/content/cre/llms-full-go.txt index 1aa63aaa951..1a0f0ed9c7d 100644 --- a/src/content/cre/llms-full-go.txt +++ b/src/content/cre/llms-full-go.txt @@ -1201,88 +1201,6 @@ Once you're authenticated, you're ready to build your first workflow: --- -# Build with AI -Source: https://docs.chain.link/cre/getting-started/build-with-ai -Last Updated: 2026-03-19 - -You can use AI-powered tools to generate, debug, and explore CRE workflows. There are two approaches: install a skill in your code editor or paste a starter prompt into AI web chat. - -## Code editor - -### Install the skill - -Run the following command to add the CRE skill to your code editor agent: - -```shell -npx skills add https://github.com/smartcontractkit/chainlink-agent-skill --skill cre-skills -``` - -### Prompt your agent - -Once installed, reference the skill in your prompt: - -``` -Use the /cre-skills skill and [describe what you want to build] -``` - -### What you can do - -- Generate complete CRE workflows in TypeScript or Go -- Get help with onboarding, project setup, and account configuration -- Debug issues with simulation, secrets, triggers, and deployment -- Look up CLI commands, SDK APIs, and capability details - -### Works with - -Claude Code, Cursor, Codex, Gemini, Copilot, Cline - -## AI Webchat - -If you prefer working in a browser, you can load the full CRE documentation into an AI chat session. Context files are available for both SDKs: - -- **TypeScript**: https\://docs.chain.link/cre/llms-full-ts.txt -- **Go**: https\://docs.chain.link/cre/llms-full-go.txt - -Copy a starter prompt below, replace the placeholder at the end with your use case, and paste it into your preferred AI chat. - -### TypeScript - -``` -I'm building a Chainlink CRE workflow using the TypeScript SDK. - -Here is the full CRE TypeScript documentation: -https://docs.chain.link/cre/llms-full-ts.txt - -Please fetch and read that file. After you've read it, please: -- Help me build a CRE workflow based on what I describe -- Answer any questions I have about the CRE TypeScript SDK -- Guide me through implementation step by step - -I want to build: [describe your use case] -``` - -| - -### Go - -``` -I'm building a Chainlink CRE workflow using the Go SDK. - -Here is the full CRE Go documentation: -https://docs.chain.link/cre/llms-full-go.txt - -Please fetch and read that file. After you've read it, please: -- Help me build a CRE workflow based on what I describe -- Answer any questions I have about the CRE Go SDK -- Guide me through implementation step by step - -I want to build: [describe your use case] -``` - -| - ---- - # Using Triggers Source: https://docs.chain.link/cre/guides/workflow/using-triggers/overview Last Updated: 2025-11-04 @@ -9540,6 +9458,67 @@ Dive deeper into concepts from this guide: --- +# Build with AI +Source: https://docs.chain.link/cre/getting-started/build-with-ai-go +Last Updated: 2026-03-19 + +You can use AI-powered tools to generate, debug, and explore CRE workflows. There are two approaches: install a skill in your code editor or paste a starter prompt into AI web chat. + +## Code editor + +### Install the skill + +Run the following command to add the CRE skill to your code editor agent: + +```shell +npx skills add https://github.com/smartcontractkit/chainlink-agent-skill --skill cre-skills +``` + +### Prompt your agent + +Once installed, reference the skill in your prompt: + +``` +Use the /cre-skills skill and [describe what you want to build] +``` + +### What you can do + +- Generate complete CRE workflows in Go +- Get help with onboarding, project setup, and account configuration +- Debug issues with simulation, secrets, triggers, and deployment +- Look up CLI commands, SDK APIs, and capability details + +### Works with + +Claude Code, Cursor, Codex, Gemini, Copilot, Cline + +## AI Webchat + +If you prefer working in a browser, you can load the full CRE Go documentation into an AI chat session. + +**Context file**: https\://docs.chain.link/cre/llms-full-go.txt + +Copy the starter prompt below, replace the placeholder at the end with your use case, and paste it into your preferred AI chat. + +``` +I'm building a Chainlink CRE workflow using the Go SDK. + +Here is the full CRE Go documentation: +https://docs.chain.link/cre/llms-full-go.txt + +Please fetch and read that file. After you've read it, please: +- Help me build a CRE workflow based on what I describe +- Answer any questions I have about the CRE Go SDK +- Guide me through implementation step by step + +I want to build: [describe your use case] +``` + +| + +--- + # Part 1: Project Setup & Simulation Source: https://docs.chain.link/cre/getting-started/part-1-project-setup-go Last Updated: 2026-01-14 diff --git a/src/content/cre/llms-full-ts.txt b/src/content/cre/llms-full-ts.txt index 8e04a0948d4..d8b9109c84f 100644 --- a/src/content/cre/llms-full-ts.txt +++ b/src/content/cre/llms-full-ts.txt @@ -1201,88 +1201,6 @@ Once you're authenticated, you're ready to build your first workflow: --- -# Build with AI -Source: https://docs.chain.link/cre/getting-started/build-with-ai -Last Updated: 2026-03-19 - -You can use AI-powered tools to generate, debug, and explore CRE workflows. There are two approaches: install a skill in your code editor or paste a starter prompt into AI web chat. - -## Code editor - -### Install the skill - -Run the following command to add the CRE skill to your code editor agent: - -```shell -npx skills add https://github.com/smartcontractkit/chainlink-agent-skill --skill cre-skills -``` - -### Prompt your agent - -Once installed, reference the skill in your prompt: - -``` -Use the /cre-skills skill and [describe what you want to build] -``` - -### What you can do - -- Generate complete CRE workflows in TypeScript or Go -- Get help with onboarding, project setup, and account configuration -- Debug issues with simulation, secrets, triggers, and deployment -- Look up CLI commands, SDK APIs, and capability details - -### Works with - -Claude Code, Cursor, Codex, Gemini, Copilot, Cline - -## AI Webchat - -If you prefer working in a browser, you can load the full CRE documentation into an AI chat session. Context files are available for both SDKs: - -- **TypeScript**: https\://docs.chain.link/cre/llms-full-ts.txt -- **Go**: https\://docs.chain.link/cre/llms-full-go.txt - -Copy a starter prompt below, replace the placeholder at the end with your use case, and paste it into your preferred AI chat. - -### TypeScript - -``` -I'm building a Chainlink CRE workflow using the TypeScript SDK. - -Here is the full CRE TypeScript documentation: -https://docs.chain.link/cre/llms-full-ts.txt - -Please fetch and read that file. After you've read it, please: -- Help me build a CRE workflow based on what I describe -- Answer any questions I have about the CRE TypeScript SDK -- Guide me through implementation step by step - -I want to build: [describe your use case] -``` - -| - -### Go - -``` -I'm building a Chainlink CRE workflow using the Go SDK. - -Here is the full CRE Go documentation: -https://docs.chain.link/cre/llms-full-go.txt - -Please fetch and read that file. After you've read it, please: -- Help me build a CRE workflow based on what I describe -- Answer any questions I have about the CRE Go SDK -- Guide me through implementation step by step - -I want to build: [describe your use case] -``` - -| - ---- - # Using Triggers Source: https://docs.chain.link/cre/guides/workflow/using-triggers/overview Last Updated: 2025-11-04 @@ -9017,6 +8935,67 @@ Dive deeper into concepts from this guide: --- +# Build with AI +Source: https://docs.chain.link/cre/getting-started/build-with-ai-ts +Last Updated: 2026-03-19 + +You can use AI-powered tools to generate, debug, and explore CRE workflows. There are two approaches: install a skill in your code editor or paste a starter prompt into AI web chat. + +## Code editor + +### Install the skill + +Run the following command to add the CRE skill to your code editor agent: + +```shell +npx skills add https://github.com/smartcontractkit/chainlink-agent-skill --skill cre-skills +``` + +### Prompt your agent + +Once installed, reference the skill in your prompt: + +``` +Use the /cre-skills skill and [describe what you want to build] +``` + +### What you can do + +- Generate complete CRE workflows in TypeScript +- Get help with onboarding, project setup, and account configuration +- Debug issues with simulation, secrets, triggers, and deployment +- Look up CLI commands, SDK APIs, and capability details + +### Works with + +Claude Code, Cursor, Codex, Gemini, Copilot, Cline + +## AI Webchat + +If you prefer working in a browser, you can load the full CRE TypeScript documentation into an AI chat session. + +**Context file**: https\://docs.chain.link/cre/llms-full-ts.txt + +Copy the starter prompt below, replace the placeholder at the end with your use case, and paste it into your preferred AI chat. + +``` +I'm building a Chainlink CRE workflow using the TypeScript SDK. + +Here is the full CRE TypeScript documentation: +https://docs.chain.link/cre/llms-full-ts.txt + +Please fetch and read that file. After you've read it, please: +- Help me build a CRE workflow based on what I describe +- Answer any questions I have about the CRE TypeScript SDK +- Guide me through implementation step by step + +I want to build: [describe your use case] +``` + +| + +--- + # Part 1: Project Setup & Simulation Source: https://docs.chain.link/cre/getting-started/part-1-project-setup-ts Last Updated: 2026-01-20 From 4dcb066ad85aca255d9a2baf9853d0d4fd8f6137 Mon Sep 17 00:00:00 2001 From: De Clercq Wentzel <10665586+wentzeld@users.noreply.github.com> Date: Thu, 19 Mar 2026 11:03:13 -0700 Subject: [PATCH 3/5] sidebar fix --- src/config/sidebar.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/config/sidebar.ts b/src/config/sidebar.ts index 9fea561cc03..de1a94126a9 100644 --- a/src/config/sidebar.ts +++ b/src/config/sidebar.ts @@ -148,6 +148,7 @@ export const SIDEBAR: Partial> = { { title: "Build with AI", url: "cre/getting-started/build-with-ai", + highlightAsCurrent: ["cre/getting-started/build-with-ai-ts", "cre/getting-started/build-with-ai-go"], }, ], }, From 09772efb5348fa6355298d80206164b5b1752a35 Mon Sep 17 00:00:00 2001 From: De Clercq Wentzel <10665586+wentzeld@users.noreply.github.com> Date: Thu, 19 Mar 2026 11:04:10 -0700 Subject: [PATCH 4/5] Delete src/content/cre/getting-started/build-with-ai.mdx --- .../cre/getting-started/build-with-ai.mdx | 99 ------------------- 1 file changed, 99 deletions(-) delete mode 100644 src/content/cre/getting-started/build-with-ai.mdx diff --git a/src/content/cre/getting-started/build-with-ai.mdx b/src/content/cre/getting-started/build-with-ai.mdx deleted file mode 100644 index d004e568bde..00000000000 --- a/src/content/cre/getting-started/build-with-ai.mdx +++ /dev/null @@ -1,99 +0,0 @@ ---- -section: cre -date: Last Modified -title: "Build with AI" -metadata: - description: "Use AI-powered tools to build CRE workflows — install the CRE skill for code editors or load CRE context into AI web chat." - datePublished: "2026-03-19" - lastModified: "2026-03-19" ---- - -import { Aside, CopyText } from "@components" - -You can use AI-powered tools to generate, debug, and explore CRE workflows. There are two approaches: install a skill in your code editor or paste a starter prompt into AI web chat. - -## Code editor - -### Install the skill - -Run the following command to add the CRE skill to your code editor agent: - -```shell -npx skills add https://github.com/smartcontractkit/chainlink-agent-skill --skill cre-skills -``` - -### Prompt your agent - -Once installed, reference the skill in your prompt: - -``` -Use the /cre-skills skill and [describe what you want to build] -``` - -### What you can do - -- Generate complete CRE workflows in TypeScript or Go -- Get help with onboarding, project setup, and account configuration -- Debug issues with simulation, secrets, triggers, and deployment -- Look up CLI commands, SDK APIs, and capability details - -### Works with - -Claude Code, Cursor, Codex, Gemini, Copilot, Cline - -## AI Webchat - -If you prefer working in a browser, you can load the full CRE documentation into an AI chat session. Context files are available for both SDKs: - -- **TypeScript**: -- **Go**: - -Copy a starter prompt below, replace the placeholder at the end with your use case, and paste it into your preferred AI chat. - -### TypeScript - -``` -I'm building a Chainlink CRE workflow using the TypeScript SDK. - -Here is the full CRE TypeScript documentation: -https://docs.chain.link/cre/llms-full-ts.txt - -Please fetch and read that file. After you've read it, please: -- Help me build a CRE workflow based on what I describe -- Answer any questions I have about the CRE TypeScript SDK -- Guide me through implementation step by step - -I want to build: [describe your use case] -``` - - - Open in ChatGPT - -| - - Open in Claude - - -### Go - -``` -I'm building a Chainlink CRE workflow using the Go SDK. - -Here is the full CRE Go documentation: -https://docs.chain.link/cre/llms-full-go.txt - -Please fetch and read that file. After you've read it, please: -- Help me build a CRE workflow based on what I describe -- Answer any questions I have about the CRE Go SDK -- Guide me through implementation step by step - -I want to build: [describe your use case] -``` - - - Open in ChatGPT - -| - - Open in Claude - From 206d5a076990b9fbca58693f1b736e34a4ed8928 Mon Sep 17 00:00:00 2001 From: devin distefano Date: Thu, 19 Mar 2026 14:03:49 -0500 Subject: [PATCH 5/5] various changes, references to docs, more info --- src/config/sidebar.ts | 2 +- .../cre/getting-started/build-with-ai-go.mdx | 84 +++++++++++++------ .../cre/getting-started/build-with-ai-ts.mdx | 84 +++++++++++++------ src/content/cre/llms-full-go.txt | 61 ++++++++++---- src/content/cre/llms-full-ts.txt | 61 ++++++++++---- 5 files changed, 209 insertions(+), 83 deletions(-) diff --git a/src/config/sidebar.ts b/src/config/sidebar.ts index de1a94126a9..e5fe5d26dd2 100644 --- a/src/config/sidebar.ts +++ b/src/config/sidebar.ts @@ -146,7 +146,7 @@ export const SIDEBAR: Partial> = { highlightAsCurrent: ["cre/getting-started/before-you-build-ts", "cre/getting-started/before-you-build-go"], }, { - title: "Build with AI", + title: "Build with AI (Skill, Prompting)", url: "cre/getting-started/build-with-ai", highlightAsCurrent: ["cre/getting-started/build-with-ai-ts", "cre/getting-started/build-with-ai-go"], }, diff --git a/src/content/cre/getting-started/build-with-ai-go.mdx b/src/content/cre/getting-started/build-with-ai-go.mdx index caada9bc750..6f746e59e6b 100644 --- a/src/content/cre/getting-started/build-with-ai-go.mdx +++ b/src/content/cre/getting-started/build-with-ai-go.mdx @@ -1,55 +1,99 @@ --- section: cre date: Last Modified -title: "Build with AI" +title: "Build with AI (Skill, Prompting)" pageId: "getting-started-build-with-ai" sdkLang: "go" metadata: - description: "Use AI-powered tools to build CRE workflows in Go — install the CRE skill for code editors or load CRE context into AI web chat." + title: "Build CRE Workflows with AI (Skill, Prompting) | Chainlink CRE" + description: "Use AI coding assistants to build Chainlink CRE workflows in Go. Install the CRE agent skill for Cursor, Claude Code, and Codex, or use LLM prompting to generate workflows, debug issues, and explore the SDK." + keywords: + [ + "CRE skill", + "agent skill", + "AI coding assistant", + "LLM prompting", + "Cursor skill", + "Claude Code skill", + "Chainlink CRE Go", + "CRE workflow generation", + "AI workflow builder", + "Codex skill", + "Gemini skill", + ] datePublished: "2026-03-19" lastModified: "2026-03-19" --- import { Aside, CopyText } from "@components" -You can use AI-powered tools to generate, debug, and explore CRE workflows. There are two approaches: install a skill in your code editor or paste a starter prompt into AI web chat. +You can use AI coding assistants to generate, debug, and explore CRE workflows. There are two approaches: install a skill in your code editor agent or load CRE context into any LLM chat and prompt from there. -## Code editor +## Code editor skill + +Agent skills are structured instruction sets that give an AI coding agent domain-specific knowledge and a defined approach for a task. When you install a skill, your agent reads it at the start of a session and uses it to guide how it fetches docs, generates code, and debugs — without you having to repeat that context every time. See the [Agent Skills specification](https://agentskills.io/specification) for the full format and best practices. + +### Supported agent tools + +The skill works with any agent-capable AI coding tool that implements the [Agent Skills specification](https://agentskills.io/specification). Verified with Claude Code, Cursor, Codex, Gemini, Copilot, and Cline. ### Install the skill Run the following command to add the CRE skill to your code editor agent: ```shell -npx skills add https://github.com/smartcontractkit/chainlink-agent-skill --skill cre-skills +npx skills add https://github.com/smartcontractkit/chainlink-agent-skills --skill cre-skills ``` ### Prompt your agent -Once installed, reference the skill in your prompt: +Once installed, your agent will automatically discover and activate the skill based on your task. For best results across tools, explicitly reference it in your prompt: ``` Use the /cre-skills skill and [describe what you want to build] ``` -### What you can do +In Claude Code, you can invoke it directly as a slash command: `/cre-skills`. + +### What the skill covers + +The skill is organized into focused reference areas, each covering a specific part of CRE. When you ask a question, your agent matches it to the most relevant area and fetches only what it needs — so you get a targeted answer without the agent reading the entire SDK. The areas the skill covers: -- Generate complete CRE workflows in Go -- Get help with onboarding, project setup, and account configuration -- Debug issues with simulation, secrets, triggers, and deployment -- Look up CLI commands, SDK APIs, and capability details +| Topic | What it helps with | +| ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [Getting started](/cre/getting-started/overview) | [CLI installation](/cre/getting-started/cli-installation), [project setup](/cre/getting-started/part-1-project-setup), tutorial walkthrough | +| [Account setup](/cre/account) | [Creating accounts](/cre/account/creating-account), [CLI login](/cre/account/cli-login), [managing authentication](/cre/account/managing-auth) | +| Workflow building | [Secrets](/cre/guides/workflow/secrets), [triggers](/cre/guides/workflow/using-triggers/overview) (cron/HTTP/EVM log), [HTTP client](/cre/guides/workflow/using-http-client), [EVM client](/cre/guides/workflow/using-evm-client/overview), onchain read/write | +| [SDK reference](/cre/reference/sdk/overview) | [Core SDK](/cre/reference/sdk/core), [consensus/aggregation](/cre/reference/sdk/consensus), [EVM client](/cre/reference/sdk/evm-client), [HTTP client](/cre/reference/sdk/http-client), [trigger APIs](/cre/reference/sdk/triggers/overview) | +| [CLI reference](/cre/reference/cli) | [Accounts](/cre/reference/cli/account), [authentication](/cre/reference/cli/authentication), [secrets](/cre/reference/cli/secrets), [workflows](/cre/reference/cli/workflow), [utilities](/cre/reference/cli/utilities) | +| [Capabilities](/cre/capabilities) | [EVM read/write](/cre/capabilities/evm-read-write), [HTTP](/cre/capabilities/http), [triggers overview](/cre/capabilities/triggers) | +| Operations | [Deploying](/cre/guides/operations/deploying-workflows), [simulating](/cre/guides/operations/simulating-workflows), [monitoring](/cre/guides/operations/monitoring-workflows), [activating/pausing](/cre/guides/operations/activating-pausing-workflows), [updating](/cre/guides/operations/updating-deployed-workflows), [deleting workflows](/cre/guides/operations/deleting-workflows) | +| Concepts | [Consensus computing](/cre/concepts/consensus-computing), [finality](/cre/concepts/finality), [non-determinism](/cre/concepts/non-determinism) | +| [Templates](/cre/templates) | CRE workflow templates and usage | -### Works with +### Workflow generation -Claude Code, Cursor, Codex, Gemini, Copilot, Cline +When you ask the skill to build a workflow, it will: -## AI Webchat +1. Confirm whether you want Go or TypeScript +2. Ask whether HTTP requests should use regular or Confidential HTTP (for privacy-preserving API calls via enclave execution) +3. Generate the complete workflow scaffold immediately — no speculative fetching +4. Give you a `cre workflow simulate` command to test it +5. Iterate on errors by fetching exactly what the error names, fixing it, and asking you to re-run -If you prefer working in a browser, you can load the full CRE Go documentation into an AI chat session. +### Debugging + +When diagnosing errors, the skill identifies the capability involved, fetches the relevant doc page, checks repo examples if needed, and proposes a fix based on CRE-specific constraints — not general programming assumptions. + +## Prompting + +If you prefer to work directly in an AI assistant, you can load the full CRE Go documentation into the context window and prompt from there. This is useful for broad exploration, but loads the entire SDK reference upfront — the skill approach above keeps your context window focused on your current task. **Context file**: -Copy the starter prompt below, replace the placeholder at the end with your use case, and paste it into your preferred AI chat. +Alternatively, you can click the "Copy Page" button in the top right corner of any Chainlink docs page to load the full page content into the context window of your preferred AI assistant. Loading a single page — for example, just the triggers reference or the EVM client page — rather than the entire SDK consumes fewer tokens (lower cost per request for pay-per-token APIs), keeps you within the limits of smaller context windows, and gives the model more relevant signal to attend to, which tends to produce more accurate output. + +Copy the starter prompt below, replace the placeholder at the end with your use case, and paste it into your preferred AI assistant. ``` I'm building a Chainlink CRE workflow using the Go SDK. @@ -64,11 +108,3 @@ Please fetch and read that file. After you've read it, please: I want to build: [describe your use case] ``` - - - Open in ChatGPT - -| - - Open in Claude - diff --git a/src/content/cre/getting-started/build-with-ai-ts.mdx b/src/content/cre/getting-started/build-with-ai-ts.mdx index 68da74f5c4f..7c82b27c4a5 100644 --- a/src/content/cre/getting-started/build-with-ai-ts.mdx +++ b/src/content/cre/getting-started/build-with-ai-ts.mdx @@ -1,55 +1,99 @@ --- section: cre date: Last Modified -title: "Build with AI" +title: "Build with AI (Skill, Prompting)" pageId: "getting-started-build-with-ai" sdkLang: "ts" metadata: - description: "Use AI-powered tools to build CRE workflows in TypeScript — install the CRE skill for code editors or load CRE context into AI web chat." + title: "Build CRE Workflows with AI (Skill, Prompting) | Chainlink CRE" + description: "Use AI coding assistants to build Chainlink CRE workflows in TypeScript. Install the CRE agent skill for Cursor, Claude Code, and Codex, or use LLM prompting to generate workflows, debug issues, and explore the SDK." + keywords: + [ + "CRE skill", + "agent skill", + "AI coding assistant", + "LLM prompting", + "Cursor skill", + "Claude Code skill", + "Chainlink CRE TypeScript", + "CRE workflow generation", + "AI workflow builder", + "Codex skill", + "Gemini skill", + ] datePublished: "2026-03-19" lastModified: "2026-03-19" --- import { Aside, CopyText } from "@components" -You can use AI-powered tools to generate, debug, and explore CRE workflows. There are two approaches: install a skill in your code editor or paste a starter prompt into AI web chat. +You can use AI coding assistants to generate, debug, and explore CRE workflows. There are two approaches: install a skill in your code editor agent or load CRE context into any LLM chat and prompt from there. -## Code editor +## Code editor skill + +Agent skills are structured instruction sets that give an AI coding agent domain-specific knowledge and a defined approach for a task. When you install a skill, your agent reads it at the start of a session and uses it to guide how it fetches docs, generates code, and debugs — without you having to repeat that context every time. See the [Agent Skills specification](https://agentskills.io/specification) for the full format and best practices. + +### Supported agent tools + +The skill works with any agent-capable AI coding tool that implements the [Agent Skills specification](https://agentskills.io/specification). Verified with Claude Code, Cursor, Codex, Gemini, Copilot, and Cline. ### Install the skill Run the following command to add the CRE skill to your code editor agent: ```shell -npx skills add https://github.com/smartcontractkit/chainlink-agent-skill --skill cre-skills +npx skills add https://github.com/smartcontractkit/chainlink-agent-skills --skill cre-skills ``` ### Prompt your agent -Once installed, reference the skill in your prompt: +Once installed, your agent will automatically discover and activate the skill based on your task. For best results across tools, explicitly reference it in your prompt: ``` Use the /cre-skills skill and [describe what you want to build] ``` -### What you can do +In Claude Code, you can invoke it directly as a slash command: `/cre-skills`. + +### What the skill covers + +The skill is organized into focused reference areas, each covering a specific part of CRE. When you ask a question, your agent matches it to the most relevant area and fetches only what it needs — so you get a targeted answer without the agent reading the entire SDK. The areas the skill covers: -- Generate complete CRE workflows in TypeScript -- Get help with onboarding, project setup, and account configuration -- Debug issues with simulation, secrets, triggers, and deployment -- Look up CLI commands, SDK APIs, and capability details +| Topic | What it helps with | +| ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [Getting started](/cre/getting-started/overview) | [CLI installation](/cre/getting-started/cli-installation), [project setup](/cre/getting-started/part-1-project-setup), tutorial walkthrough | +| [Account setup](/cre/account) | [Creating accounts](/cre/account/creating-account), [CLI login](/cre/account/cli-login), [managing authentication](/cre/account/managing-auth) | +| Workflow building | [Secrets](/cre/guides/workflow/secrets), [triggers](/cre/guides/workflow/using-triggers/overview) (cron/HTTP/EVM log), [HTTP client](/cre/guides/workflow/using-http-client), [EVM client](/cre/guides/workflow/using-evm-client/overview), onchain read/write | +| [SDK reference](/cre/reference/sdk/overview) | [Core SDK](/cre/reference/sdk/core), [consensus/aggregation](/cre/reference/sdk/consensus), [EVM client](/cre/reference/sdk/evm-client), [HTTP client](/cre/reference/sdk/http-client), [trigger APIs](/cre/reference/sdk/triggers/overview) | +| [CLI reference](/cre/reference/cli) | [Accounts](/cre/reference/cli/account), [authentication](/cre/reference/cli/authentication), [secrets](/cre/reference/cli/secrets), [workflows](/cre/reference/cli/workflow), [utilities](/cre/reference/cli/utilities) | +| [Capabilities](/cre/capabilities) | [EVM read/write](/cre/capabilities/evm-read-write), [HTTP](/cre/capabilities/http), [triggers overview](/cre/capabilities/triggers) | +| Operations | [Deploying](/cre/guides/operations/deploying-workflows), [simulating](/cre/guides/operations/simulating-workflows), [monitoring](/cre/guides/operations/monitoring-workflows), [activating/pausing](/cre/guides/operations/activating-pausing-workflows), [updating](/cre/guides/operations/updating-deployed-workflows), [deleting workflows](/cre/guides/operations/deleting-workflows) | +| Concepts | [Consensus computing](/cre/concepts/consensus-computing), [finality](/cre/concepts/finality), [non-determinism](/cre/concepts/non-determinism), [TypeScript WASM runtime](/cre/concepts/typescript-wasm-runtime) | +| [Templates](/cre/templates) | CRE workflow templates and usage | -### Works with +### Workflow generation -Claude Code, Cursor, Codex, Gemini, Copilot, Cline +When you ask the skill to build a workflow, it will: -## AI Webchat +1. Confirm whether you want Go or TypeScript +2. Ask whether HTTP requests should use regular or Confidential HTTP (for privacy-preserving API calls via enclave execution) +3. Generate the complete workflow scaffold immediately — no speculative fetching +4. Give you a `cre workflow simulate` command to test it +5. Iterate on errors by fetching exactly what the error names, fixing it, and asking you to re-run -If you prefer working in a browser, you can load the full CRE TypeScript documentation into an AI chat session. +### Debugging + +When diagnosing errors, the skill identifies the capability involved, fetches the relevant doc page, checks repo examples if needed, and proposes a fix based on CRE-specific constraints — not general programming assumptions. + +## Prompting + +If you prefer to work directly in an AI assistant, you can load the full CRE TypeScript documentation into the context window and prompt from there. This is useful for broad exploration, but loads the entire SDK reference upfront — the skill approach above keeps your context window focused on your current task. **Context file**: -Copy the starter prompt below, replace the placeholder at the end with your use case, and paste it into your preferred AI chat. +Alternatively, you can click the "Copy Page" button in the top right corner of any Chainlink docs page to load the full page content into the context window of your preferred AI assistant. Loading a single page — for example, just the triggers reference or the EVM client page — rather than the entire SDK consumes fewer tokens (lower cost per request for pay-per-token APIs), keeps you within the limits of smaller context windows, and gives the model more relevant signal to attend to, which tends to produce more accurate output. + +Copy the starter prompt below, replace the placeholder at the end with your use case, and paste it into your preferred AI assistant. ``` I'm building a Chainlink CRE workflow using the TypeScript SDK. @@ -64,11 +108,3 @@ Please fetch and read that file. After you've read it, please: I want to build: [describe your use case] ``` - - - Open in ChatGPT - -| - - Open in Claude - diff --git a/src/content/cre/llms-full-go.txt b/src/content/cre/llms-full-go.txt index 1a0f0ed9c7d..6a8b0d39de9 100644 --- a/src/content/cre/llms-full-go.txt +++ b/src/content/cre/llms-full-go.txt @@ -9458,48 +9458,77 @@ Dive deeper into concepts from this guide: --- -# Build with AI +# Build with AI (Skill, Prompting) Source: https://docs.chain.link/cre/getting-started/build-with-ai-go Last Updated: 2026-03-19 -You can use AI-powered tools to generate, debug, and explore CRE workflows. There are two approaches: install a skill in your code editor or paste a starter prompt into AI web chat. +You can use AI coding assistants to generate, debug, and explore CRE workflows. There are two approaches: install a skill in your code editor agent or load CRE context into any LLM chat and prompt from there. -## Code editor +## Code editor skill + +Agent skills are structured instruction sets that give an AI coding agent domain-specific knowledge and a defined approach for a task. When you install a skill, your agent reads it at the start of a session and uses it to guide how it fetches docs, generates code, and debugs — without you having to repeat that context every time. See the [Agent Skills specification](https://agentskills.io/specification) for the full format and best practices. + +### Supported agent tools + +The skill works with any agent-capable AI coding tool that implements the [Agent Skills specification](https://agentskills.io/specification). Verified with Claude Code, Cursor, Codex, Gemini, Copilot, and Cline. ### Install the skill Run the following command to add the CRE skill to your code editor agent: ```shell -npx skills add https://github.com/smartcontractkit/chainlink-agent-skill --skill cre-skills +npx skills add https://github.com/smartcontractkit/chainlink-agent-skills --skill cre-skills ``` ### Prompt your agent -Once installed, reference the skill in your prompt: +Once installed, your agent will automatically discover and activate the skill based on your task. For best results across tools, explicitly reference it in your prompt: ``` Use the /cre-skills skill and [describe what you want to build] ``` -### What you can do +In Claude Code, you can invoke it directly as a slash command: `/cre-skills`. + +### What the skill covers + +The skill is organized into focused reference areas, each covering a specific part of CRE. When you ask a question, your agent matches it to the most relevant area and fetches only what it needs — so you get a targeted answer without the agent reading the entire SDK. The areas the skill covers: -- Generate complete CRE workflows in Go -- Get help with onboarding, project setup, and account configuration -- Debug issues with simulation, secrets, triggers, and deployment -- Look up CLI commands, SDK APIs, and capability details +| Topic | What it helps with | +| ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [Getting started](/cre/getting-started/overview) | [CLI installation](/cre/getting-started/cli-installation), [project setup](/cre/getting-started/part-1-project-setup), tutorial walkthrough | +| [Account setup](/cre/account) | [Creating accounts](/cre/account/creating-account), [CLI login](/cre/account/cli-login), [managing authentication](/cre/account/managing-auth) | +| Workflow building | [Secrets](/cre/guides/workflow/secrets), [triggers](/cre/guides/workflow/using-triggers/overview) (cron/HTTP/EVM log), [HTTP client](/cre/guides/workflow/using-http-client), [EVM client](/cre/guides/workflow/using-evm-client/overview), onchain read/write | +| [SDK reference](/cre/reference/sdk/overview) | [Core SDK](/cre/reference/sdk/core), [consensus/aggregation](/cre/reference/sdk/consensus), [EVM client](/cre/reference/sdk/evm-client), [HTTP client](/cre/reference/sdk/http-client), [trigger APIs](/cre/reference/sdk/triggers/overview) | +| [CLI reference](/cre/reference/cli) | [Accounts](/cre/reference/cli/account), [authentication](/cre/reference/cli/authentication), [secrets](/cre/reference/cli/secrets), [workflows](/cre/reference/cli/workflow), [utilities](/cre/reference/cli/utilities) | +| [Capabilities](/cre/capabilities) | [EVM read/write](/cre/capabilities/evm-read-write), [HTTP](/cre/capabilities/http), [triggers overview](/cre/capabilities/triggers) | +| Operations | [Deploying](/cre/guides/operations/deploying-workflows), [simulating](/cre/guides/operations/simulating-workflows), [monitoring](/cre/guides/operations/monitoring-workflows), [activating/pausing](/cre/guides/operations/activating-pausing-workflows), [updating](/cre/guides/operations/updating-deployed-workflows), [deleting workflows](/cre/guides/operations/deleting-workflows) | +| Concepts | [Consensus computing](/cre/concepts/consensus-computing), [finality](/cre/concepts/finality), [non-determinism](/cre/concepts/non-determinism) | +| [Templates](/cre/templates) | CRE workflow templates and usage | -### Works with +### Workflow generation -Claude Code, Cursor, Codex, Gemini, Copilot, Cline +When you ask the skill to build a workflow, it will: -## AI Webchat +1. Confirm whether you want Go or TypeScript +2. Ask whether HTTP requests should use regular or Confidential HTTP (for privacy-preserving API calls via enclave execution) +3. Generate the complete workflow scaffold immediately — no speculative fetching +4. Give you a `cre workflow simulate` command to test it +5. Iterate on errors by fetching exactly what the error names, fixing it, and asking you to re-run -If you prefer working in a browser, you can load the full CRE Go documentation into an AI chat session. +### Debugging + +When diagnosing errors, the skill identifies the capability involved, fetches the relevant doc page, checks repo examples if needed, and proposes a fix based on CRE-specific constraints — not general programming assumptions. + +## Prompting + +If you prefer to work directly in an AI assistant, you can load the full CRE Go documentation into the context window and prompt from there. This is useful for broad exploration, but loads the entire SDK reference upfront — the skill approach above keeps your context window focused on your current task. **Context file**: https\://docs.chain.link/cre/llms-full-go.txt -Copy the starter prompt below, replace the placeholder at the end with your use case, and paste it into your preferred AI chat. +Alternatively, you can click the "Copy Page" button in the top right corner of any Chainlink docs page to load the full page content into the context window of your preferred AI assistant. Loading a single page — for example, just the triggers reference or the EVM client page — rather than the entire SDK consumes fewer tokens (lower cost per request for pay-per-token APIs), keeps you within the limits of smaller context windows, and gives the model more relevant signal to attend to, which tends to produce more accurate output. + +Copy the starter prompt below, replace the placeholder at the end with your use case, and paste it into your preferred AI assistant. ``` I'm building a Chainlink CRE workflow using the Go SDK. @@ -9515,8 +9544,6 @@ Please fetch and read that file. After you've read it, please: I want to build: [describe your use case] ``` -| - --- # Part 1: Project Setup & Simulation diff --git a/src/content/cre/llms-full-ts.txt b/src/content/cre/llms-full-ts.txt index d8b9109c84f..36bdf1bd39f 100644 --- a/src/content/cre/llms-full-ts.txt +++ b/src/content/cre/llms-full-ts.txt @@ -8935,48 +8935,77 @@ Dive deeper into concepts from this guide: --- -# Build with AI +# Build with AI (Skill, Prompting) Source: https://docs.chain.link/cre/getting-started/build-with-ai-ts Last Updated: 2026-03-19 -You can use AI-powered tools to generate, debug, and explore CRE workflows. There are two approaches: install a skill in your code editor or paste a starter prompt into AI web chat. +You can use AI coding assistants to generate, debug, and explore CRE workflows. There are two approaches: install a skill in your code editor agent or load CRE context into any LLM chat and prompt from there. -## Code editor +## Code editor skill + +Agent skills are structured instruction sets that give an AI coding agent domain-specific knowledge and a defined approach for a task. When you install a skill, your agent reads it at the start of a session and uses it to guide how it fetches docs, generates code, and debugs — without you having to repeat that context every time. See the [Agent Skills specification](https://agentskills.io/specification) for the full format and best practices. + +### Supported agent tools + +The skill works with any agent-capable AI coding tool that implements the [Agent Skills specification](https://agentskills.io/specification). Verified with Claude Code, Cursor, Codex, Gemini, Copilot, and Cline. ### Install the skill Run the following command to add the CRE skill to your code editor agent: ```shell -npx skills add https://github.com/smartcontractkit/chainlink-agent-skill --skill cre-skills +npx skills add https://github.com/smartcontractkit/chainlink-agent-skills --skill cre-skills ``` ### Prompt your agent -Once installed, reference the skill in your prompt: +Once installed, your agent will automatically discover and activate the skill based on your task. For best results across tools, explicitly reference it in your prompt: ``` Use the /cre-skills skill and [describe what you want to build] ``` -### What you can do +In Claude Code, you can invoke it directly as a slash command: `/cre-skills`. + +### What the skill covers + +The skill is organized into focused reference areas, each covering a specific part of CRE. When you ask a question, your agent matches it to the most relevant area and fetches only what it needs — so you get a targeted answer without the agent reading the entire SDK. The areas the skill covers: -- Generate complete CRE workflows in TypeScript -- Get help with onboarding, project setup, and account configuration -- Debug issues with simulation, secrets, triggers, and deployment -- Look up CLI commands, SDK APIs, and capability details +| Topic | What it helps with | +| ------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [Getting started](/cre/getting-started/overview) | [CLI installation](/cre/getting-started/cli-installation), [project setup](/cre/getting-started/part-1-project-setup), tutorial walkthrough | +| [Account setup](/cre/account) | [Creating accounts](/cre/account/creating-account), [CLI login](/cre/account/cli-login), [managing authentication](/cre/account/managing-auth) | +| Workflow building | [Secrets](/cre/guides/workflow/secrets), [triggers](/cre/guides/workflow/using-triggers/overview) (cron/HTTP/EVM log), [HTTP client](/cre/guides/workflow/using-http-client), [EVM client](/cre/guides/workflow/using-evm-client/overview), onchain read/write | +| [SDK reference](/cre/reference/sdk/overview) | [Core SDK](/cre/reference/sdk/core), [consensus/aggregation](/cre/reference/sdk/consensus), [EVM client](/cre/reference/sdk/evm-client), [HTTP client](/cre/reference/sdk/http-client), [trigger APIs](/cre/reference/sdk/triggers/overview) | +| [CLI reference](/cre/reference/cli) | [Accounts](/cre/reference/cli/account), [authentication](/cre/reference/cli/authentication), [secrets](/cre/reference/cli/secrets), [workflows](/cre/reference/cli/workflow), [utilities](/cre/reference/cli/utilities) | +| [Capabilities](/cre/capabilities) | [EVM read/write](/cre/capabilities/evm-read-write), [HTTP](/cre/capabilities/http), [triggers overview](/cre/capabilities/triggers) | +| Operations | [Deploying](/cre/guides/operations/deploying-workflows), [simulating](/cre/guides/operations/simulating-workflows), [monitoring](/cre/guides/operations/monitoring-workflows), [activating/pausing](/cre/guides/operations/activating-pausing-workflows), [updating](/cre/guides/operations/updating-deployed-workflows), [deleting workflows](/cre/guides/operations/deleting-workflows) | +| Concepts | [Consensus computing](/cre/concepts/consensus-computing), [finality](/cre/concepts/finality), [non-determinism](/cre/concepts/non-determinism), [TypeScript WASM runtime](/cre/concepts/typescript-wasm-runtime) | +| [Templates](/cre/templates) | CRE workflow templates and usage | -### Works with +### Workflow generation -Claude Code, Cursor, Codex, Gemini, Copilot, Cline +When you ask the skill to build a workflow, it will: -## AI Webchat +1. Confirm whether you want Go or TypeScript +2. Ask whether HTTP requests should use regular or Confidential HTTP (for privacy-preserving API calls via enclave execution) +3. Generate the complete workflow scaffold immediately — no speculative fetching +4. Give you a `cre workflow simulate` command to test it +5. Iterate on errors by fetching exactly what the error names, fixing it, and asking you to re-run -If you prefer working in a browser, you can load the full CRE TypeScript documentation into an AI chat session. +### Debugging + +When diagnosing errors, the skill identifies the capability involved, fetches the relevant doc page, checks repo examples if needed, and proposes a fix based on CRE-specific constraints — not general programming assumptions. + +## Prompting + +If you prefer to work directly in an AI assistant, you can load the full CRE TypeScript documentation into the context window and prompt from there. This is useful for broad exploration, but loads the entire SDK reference upfront — the skill approach above keeps your context window focused on your current task. **Context file**: https\://docs.chain.link/cre/llms-full-ts.txt -Copy the starter prompt below, replace the placeholder at the end with your use case, and paste it into your preferred AI chat. +Alternatively, you can click the "Copy Page" button in the top right corner of any Chainlink docs page to load the full page content into the context window of your preferred AI assistant. Loading a single page — for example, just the triggers reference or the EVM client page — rather than the entire SDK consumes fewer tokens (lower cost per request for pay-per-token APIs), keeps you within the limits of smaller context windows, and gives the model more relevant signal to attend to, which tends to produce more accurate output. + +Copy the starter prompt below, replace the placeholder at the end with your use case, and paste it into your preferred AI assistant. ``` I'm building a Chainlink CRE workflow using the TypeScript SDK. @@ -8992,8 +9021,6 @@ Please fetch and read that file. After you've read it, please: I want to build: [describe your use case] ``` -| - --- # Part 1: Project Setup & Simulation