.agents/skills/chainlink-cre-skill/SKILL.md
Enable developers to learn and use Chainlink Runtime Environment (CRE) quickly by referencing filtered CRE docs. Trigger when user wants onboarding, CRE workflow generation (in TypeScript or Golang or other supported languages), workflow guidance, CRE CLI and/or SDK help, runtime operations advice, or capability selection
npx skillsauth add fabianferno/caas-1213 chainlink-cre-skillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Assist developers working with the Chainlink Runtime Environment (CRE) by looking up the latest documentation at runtime.
⚠️ IMPORTANT — AGENTS MUST READ BEFORE FETCHING ANYTHING: WebFetch may return an empty shell (nav/metadata only, no prose or code) for some URLs. After every WebFetch call, assess quality before using the content.
After every WebFetch, ask: Does the response contain actual prose and/or code blocks with more than ~1000 chars of useful content?
Full fetch cascade — follow in order:
- WebFetch → assess content quality → proceed if substantial
- Bash curl (if WebFetch returned a shell) — works on Windows 10+, Linux, and Mac →
curl -s -L -A "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" "<url>"- Tell the user → if both fail, report the URL and suggest they open it directly
Apply this cascade to ALL fetches — doc pages, GitHub URLs, and text dumps.
When a user asks a CRE-related question:
// NEED: exact consensus tag for uint256) → fetch that one thing → fill it in → continue⚠️ Do not fetch as preparation. Fetch as resolution. Only fetch when you can state the exact piece of information you need. If you can't name it precisely, don't fetch.
CRE has runtime-specific constraints (e.g. WASM environment, encoding requirements) that differ from standard assumptions. When a specific gap involves CRE behaviour you are uncertain about, fetch to resolve it — do not guess.
When looking for code examples or implementation details, use the most targeted source first. Apply the fetch cascade above to any URL you fetch:
repo-*.md) — Use when the doc page lacks sufficient code, or the user explicitly wants a working implementation (templates, SDK examples, demo apps).llms-full-ts.txt / llms-full-go.txt) — 35,000-word plain-text dumps linked from general.md. Use only when you can't identify a specific doc page or need broad coverage.How to work through this list:
When looking up CRE CLI commands, flags, or usage:
cre <command> --help locally — Most authoritative and version-accurate. Use this first if the CLI is installed.repo-cre-cli.md — Auto-generated markdown for every command. Use if the above don't cover the query.How to work through this list:
| File | Topic | When to use | |------|-------|-------------| | account-setup.md | Account setup | Creating accounts, CLI login, managing authentication | | getting-started.md | Getting started | CLI installation, project setup, tutorial walkthrough (Go & TypeScript) | | capabilities.md | Capabilities | EVM read/write, HTTP capability, triggers overview | | workflow-building.md | Workflow building | Secrets, time, randomness, triggers (cron/HTTP/EVM log), HTTP client, EVM client, onchain read/write, report generation | | cli-reference.md | CLI reference | CLI commands for accounts, auth, project setup, secrets, workflows, utilities | | sdk-reference.md | SDK reference | SDK core, consensus/aggregation, EVM client, HTTP client, trigger APIs (Go & TypeScript) | | operations.md | Operations | Deploying, simulating, monitoring, activating, pausing, updating, deleting workflows, multi-sig wallets | | concepts.md | Concepts | Consensus computing, finality, non-determinism, TypeScript WASM runtime | | organization.md | Organization | Org management, inviting members, linking wallet keys | | general.md | General | CRE overview, key terms, demos, Gelato migration, project configuration, supported networks, release notes, service quotas, support | | templates.md | Templates | CRE workflow templates overview and usage |
Follow these additional steps when generating or scaffolding a new workflow (not just answering questions):
// NEED: exact consensus tag for uint256, // NEED: verify project.yaml structure).cre workflow simulate. Then loop:
Repo reference files are a reliable source for working code implementations. Use them when individual doc pages lack sufficient code examples, or when the user explicitly wants a template or runnable implementation.
| File | Repo | When to use | |------|------|-------------| | repo-cre-templates.md | cre-templates | Starter templates, building blocks, example workflow patterns | | repo-cre-sdk-typescript.md | cre-sdk-typescript | TypeScript SDK source, HTTP trigger package, SDK examples | | repo-cre-sdk-go.md | cre-sdk-go | Go SDK source, capability implementations, consensus code | | repo-cre-prediction-market-demo.md | cre-gcp-prediction-market-demo | Prediction market demo app, end-to-end workflow example | | repo-cre-cli.md | cre-cli | CRE CLI source code and auto-generated command reference docs |
Follow these steps when diagnosing errors or fixing broken CRE code:
repo-*.md reference file. If still insufficient, fetch the llms-full text dump from general.md.Problem: Secret resolution fails with "secret not found" if the env var name in secrets.yaml is a substring or prefix of the secret name (the YAML key). For example, secret name GEMINI_API_KEY_SECRET with env var GEMINI_API_KEY fails because GEMINI_API_KEY is a prefix of GEMINI_API_KEY_SECRET.
Workaround: Ensure the env var name is never a substring/prefix of the secret name. Use a suffix like _VAR on the env var (e.g., GEMINI_API_KEY_VAR).
Observed in: CRE CLI v1.1.0
Verification test: Create a secrets.yaml with a secret name that contains the env var as a prefix (e.g., key MY_SECRET_NAME, env var MY_SECRET). Run simulation. If it fails with "secret not found", the bug still exists. If it succeeds, the bug is fixed and this issue can be removed.
workflow-building.md, and supplement with sdk-reference.md for API details.getting-started.md then account-setup.md.assets/cre-docs-index.md for deeper search if reference file descriptions aren't sufficient.development
Guides integration and answers about the Ethereum Name Service using official ENS documentation. Use when working with ENS, .eth names, resolvers, reverse resolution, primary names, text records, multichain ENS, CCIP Read, Name Wrapper, ENSIPs, SIWE with ENS, subgraphs, or ENS DAO governance docs.
development
Integrate 0G decentralized storage using Go/TypeScript SDKs. Use when uploading, downloading, or managing files and key-value data on 0G Storage.
testing
Entry point for the 0G (Zero Gravity) decentralized AI stack. Use when the user mentions 0G, 0g labs, Galileo testnet, 0g chain, 0g storage, 0g compute, 0g DA, INFT, ERC-7857, DePIN, or alignment nodes; route to the focused skill below or official docs.
development
Build INFTs (Intelligent NFTs) with ERC-7857 for tokenizing AI agents. Use when creating, transferring, or integrating AI agent NFTs with encrypted intelligence.