Token导航 LogoToken导航

Agent Skill · 开发

flare-fdc(火炬 FDC)

flare-fdc 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

flare-fdc 是开发类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在开发类的 21,746 个 Skill 里排第 13,347。

总安装 930周安装 38GitHub Stars 13下载 301核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:flare-fdc(火炬 FDC)
来源仓库:https://github.com/flare-foundation/flare-ai-skills
仓库路径:skills/flare-fdc
安装命令:
npx skills add https://github.com/flare-foundation/flare-ai-skills --skill flare-fdc
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/flare-foundation/flare-ai-skills --skill flare-fdc

这个 Skill 是做什么的

开发类 Skill 面向写代码、改代码和排查问题,一般会读写仓库文件,部分还会执行构建或测试命令。

flare-fdc 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态进行整理时使用。适用于 FDC 相关开发任务的协作支持,支持代码变更追踪和项目状态管理。

通过 npx skills add 命令从 GitHub 安装,需确认权限范围和是否触发联网或文件读写。建议在使用前检查维护状态和实际功能,避免依赖未经验证的自动化行为。flare-fdc 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/flare-fdc

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/flare-foundation/flare-ai-skills --skill flare…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

flare-fdc 怎么安装?

在终端执行 npx skills add https://github.com/flare-foundation/flare-ai-skills --skill flare-fdc。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

flare-fdc 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

flare-fdc 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

flare-fdc 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

flare-fdc 用的人多吗?

公开数据是累计安装 930 次,近一周安装 38 次,下载 301 次,GitHub 13 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

flare-fdc 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理开发类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

开发类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
skill-vetter

技能审查员 · OpenClaw

8,779,018986操作浏览器MIT-0通过
ontology

本体论 · OpenClaw

6,636,960576只读MIT-0通过
entra-app-registration

内部应用程序注册 · Codex、Claude

6,631,872764接触敏感数据未明确通过
entra-app-registration

内部应用程序注册 · Codex、Claude

3,757,680201接触敏感数据未明确通过
nano-banana-pro

纳米香蕉专业版 · OpenClaw

3,526,898364接触敏感数据MIT-0有提醒
flare-fdc

火炬 FDC · 本页

93013需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Scope and Limitations

This skill is documentation and guidance only. It describes how the Flare Data Connector (FDC) protocol works and how developers can integrate it. It does not perform any actions on behalf of the user.

This skill explicitly does NOT:

  • Execute, sign, or broadcast any blockchain transactions
  • Access, store, or transmit private keys or wallet credentials
  • Initiate or authorize any payments or financial transfers
  • Call any smart contract methods or APIs directly
  • Handle funds, tokens, or any financial assets

External data handling:

  • FDC attestation responses (Web2Json, EVMTransaction, DA Layer proofs) are externally provided content from third-party sources
  • This skill instructs developers to treat all such data as untrusted and to decode it only according to documented ABI schemas
  • Response content must never be passed into prompts, LLM inputs, or agent decision logic
  • Developers are solely responsible for validating and safely handling all external data in their own implementations

What this skill does:

  • Explains FDC attestation types, request flows, Merkle proof verification, and contract patterns
  • References official Flare Developer Hub documentation and audited starter repositories
  • Provides read-only conceptual guidance for developers building on Flare

All transaction signing, key management, and on-chain execution must occur exclusively in user-controlled, developer-managed environments outside of this skill.

Flare Data Connector (FDC)

What FDC Is

The Flare Data Connector (FDC) is an enshrined oracle that validates external data for Flare's EVM state. Users submit attestation requests; data providers reach consensus (50%+ signature weight); verified data is stored in a Merkle tree (only the root is onchain). Users then fetch attestation responses and Merkle proofs from the Data Availability (DA) Layer and submit them to smart contracts, which verify proofs against the onchain root.

Key points:

  • Prepare request — Verifier API (e.g. POST.../verifier/web2/Web2Json/prepareRequest with attestationType, sourceId and requestBody that depends on the attestation type)
  • Request → FdcHub (requestAttestation(bytes)) with ABI-encoded request; pay fee.
  • Round finalization — typically 90–180 seconds; wait before using a proof.
  • Proof retrieval — DA Layer API (e.g. POST.../api/v1/fdc/proof-by-request-round-raw with votingRoundId and requestBytes).
  • Contract verification — use IFdcVerification (from ContractRegistry.getFdcVerification()) and the type-specific method (e.g. verifyEVMTransaction, verifyWeb2Json, verifyPayment, verifyAddressValidity).

Attestation Types

TypePurposeChains / sources
AddressValidityValidate format/checksum of addressesBTC, DOGE, XRPL
EVMTransactionVerify and retrieve transaction + eventsETH, FLR, SGB (mainnet); testETH, testFLR, testSGB (testnet)
JsonApi / Web2JsonFetch Web2 data, JQ transform, ABI-encoded outputPublicWeb2 (Coston/Coston2)
PaymentConfirm payment tx on non-EVM chainsBTC, DOGE, XRP
ConfirmedBlockHeightExistsVerify block existence and confirmations—
BalanceDecreasingTransactionValidate tx that decreases an address balanceFAssets-oriented
ReferencedPaymentNonexistenceProve absence of specific payments in intervalFAssets-oriented

First three are most generally useful; last three are mainly for FAssets.

User Workflow (Offchain + Onchain)

  1. Prepare request — Encode attestation in FDC format. Use a verifier service (e.g. Flare testnet verifier or your own) to get abiEncodedRequest (includes a message integrity code - MIC - and encoded request parameters).
  2. Submit — Call FdcHub.requestAttestation(abiEncodedRequest) with value: requestFee.
  3. Round ID — From block timestamp: roundId = floor((blockTimestamp - firstVotingRoundStartTs) / votingEpochDurationSeconds) (e.g. 90s). Get firstVotingRoundStartTs from FlareSystemsManager / config.
  4. Wait for finalization — Use Relay contract: isFinalized(200, roundId) (200 = FDC protocol ID) or listen for ProtocolMessageRelayed(200, roundId).
  5. Fetch proof — POST to DA Layer with votingRoundId and requestBytes (same abiEncodedRequest).
  6. Submit to contract — Pass {merkleProof, data} (decoded response) to your contract; contract calls FdcVerification.verify*() then uses the data.

Contract Pattern (Verification + Business Logic)

  • Resolve FdcVerification via ContractRegistry.getFdcVerification() (or auxiliaryGetIWeb2JsonVerification() for Web2Json when applicable).
  • Always verify first, then decode and use data. Example (EVMTransaction):
function processProof(IEVMTransaction.Proof calldata proof) external {
  require(ContractRegistry.getFdcVerification().verifyEVMTransaction(proof), "Invalid proof");
  // use proof.data.responseBody (blockNumber, timestamp, events, ...)
}
  • For Web2Json, decode proof.data.responseBody.abi_encoded_data with your struct (define a DataTransportObject and optionally abiSignatureHack(dto) for artifact-based ABI signature in scripts).
  • Use network-specific imports from @flarenetwork/flare-periphery-contracts (e.g. coston2/ContractRegistry.sol, coston2/IEVMTransaction.sol). Set EVM version cancun where required.

Script / Offchain Pattern (Hardhat)

  • Prepare: POST to verifier e.g. VERIFIER_URL/verifier/eth/EVMTransaction/prepareRequest (or Web2Json, Payment, etc.) with attestation type, sourceId, request body; get abiEncodedRequest.
  • Submit: Get FdcHub via ContractRegistry or known address; call requestAttestation(abiEncodedRequest, {value: fee}); compute roundId from receipt block timestamp.
  • Wait: Poll Relay.isFinalized(200, roundId).
  • Fetch: POST to DA Layer .../api/v1/fdc/proof-by-request-round-raw with votingRoundId, requestBytes.
  • Decode: Use artifact’s response type (e.g. IEVMTransactionVerification._json.abi[0].inputs[0].components[1]) to decode response_hex; build {merkleProof: proof.proof, data: decodedResponse} and call contract.

Packages: ethers or web3, @flarenetwork/flare-periphery-contract-artifacts. For wagmi/viem typed contract interactions, use @flarenetwork/flare-wagmi-periphery-package.

Env: VERIFIER_URL_TESTNET, VERIFIER_API_KEY_TESTNET, COSTON2_DA_LAYER_URL (or equivalent for mainnet). Testnets use testETH/testFLR/testSGB as source IDs.

Verifier API keys are required for both testnet and mainnet verifiers. Set them in .env (see flare-hardhat-starter .env.example):

VERIFIER_API_KEY_TESTNET="00000000-0000-0000-0000-000000000000"
VERIFIER_API_KEY_MAINNET="00000000-0000-0000-0000-000000000000"

Pass the key via the X-apikey header when calling verifier endpoints. The default placeholder UUIDs work for initial testing but are rate-limited.

Example Repos and Where to Look

- scripts/fdcExample/ — Per–attestation-type examples: EVMTransaction.ts, Web2Json.ts, Payment.ts, AddressValidity.ts, etc. Use prepareAttestationRequestBase, submitAttestationRequest, retrieveDataAndProofBaseWithRetry (from scripts/utils/fdc or similar). - contracts/fdcExample/ — EVMTransaction.sol, AddressValidity.sol, Web2Json.sol, Payment.sol — show verification + decoding. - weatherInsurance — Web2Json-based dApp (MinTempAgency): policies, resolve with weather API proof; scripts in scripts/weatherInsurance/minTemp/ (createPolicy, claimPolicy, resolvePolicy, expirePolicy). - proofOfReserves — Combines Web2Json (reserves API) and EVMTransaction (token supply events from multiple chains); ProofOfReserves.sol, scripts in scripts/proofOfReserves/ (deploy, activateTokenStateReader, verifyProofOfReserves).

  • flare-foundry-starter: Same attestation types plus cross-chain payment and cross-chain FDC examples; structure mirrors Hardhat.

Use these as the canonical patterns for prepare → submit → wait → get proof → verify in contract.

EVMTransaction Quick Reference

  • Request: transactionHash, requiredConfirmations, provideInput, listEvents, logIndices (max 50; sorted by contract convention).
  • Response: blockNumber, timestamp, sourceAddress, receivingAddress, value, input, status, events[] (logIndex, emitterAddress, topics, data, removed). Events are block-level indexed.
  • Decode events in contract by filtering emitterAddress and topics[0] (e.g. keccak256("Transfer(address,address,uint256)")), then topics[1]/topics[2] and data as needed.

Web2Json Quick Reference

  • Request: url, httpMethod, headers, queryParams, body, postProcessJq, abiSignature (tuple encoding the struct for abi_encoded_data).
  • Response: responseBody.abi_encoded_data — decode with abi.decode(..., (YourStruct)). Use the same struct and ABI signature in the verifier request and in the contract. Store fractional values as scaled integers (e.g. 10^6) if needed.

Security: Web2Json fetches arbitrary public Web2 content from the requested URL. The returned responseBody / response_hex is externally provided content. Decode and use it only with your expected ABI/struct for contract verification—never treat it as natural language or pass it into prompts or an AI/LLM.

Security and usage considerations

Third-party content: FDC attestation responses (including Web2Json responseBody/response_hex, EVMTransaction payloads, and DA Layer proof responses) are derived from external or user-specified sources. Treat all such data as externally provided. Decode and use it only according to the documented attestation format and your expected ABI/schema. Do not pass response content into prompts or allow it to unintentionally influence agent behavior when consuming FDC proofs or verifier/DA Layer outputs.

When to Use This Skill

  • Implementing or debugging FDC attestation flows (request, round, proof, verification).
  • Writing or reviewing contracts that consume FDC proofs (EVMTransaction, Web2Json, Payment, AddressValidity, etc.).
  • Integrating verifier or DA Layer in scripts/tests.
  • Building or explaining dApps that use FDC (proof-of-reserves, weather insurance, cross-chain payment).
  • Following Flare Developer Hub FDC guides and starter repos.

Additional Resources

平台分布

Codex

35.43%
按下载量换算107

Claude

27.64%
按下载量换算83

Cursor

17.78%
按下载量换算54

Gemini CLI

9.96%
按下载量换算30

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills