Token导航 LogoToken导航

Agent Skill · 开发

afp-product-builder(法新社产品构建者)

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

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

总安装 225周安装 9GitHub Stars 2下载 73核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:afp-product-builder(法新社产品构建者)
来源仓库:https://github.com/autonity/afp-sdk
仓库路径:skills/afp-product-builder
安装命令:
npx skills add https://github.com/autonity/afp-sdk --skill afp-product-builder
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/autonity/afp-sdk --skill afp-product-builder

这个 Skill 是做什么的

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

用于生成符合 Forecastathon 竞赛要求的完整产品规范文档,支持 IPFS 存储。适合时间序列或事件型预测产品的设计与元数据封装,包含价格带与合约地址约束。通过 npx 命令从 GitHub 安装,需指定网络环境(主网或测试网)和注册 builder 地址。

严格遵循比赛规则,包括 oracle 地址、抵押资产等固定参数不可更改。afp-product-builder 属于开发类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/afp-product-builder

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

afp-product-builder 怎么安装?

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

afp-product-builder 支持哪些 AI 工具?

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

afp-product-builder 需要什么权限?

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

afp-product-builder 是免费的吗?

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

afp-product-builder 用的人多吗?

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

afp-product-builder 安全吗?

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

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

值得选的地方

  • 同时适配 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有提醒
afp-product-builder

法新社产品构建者 · 本页

2252需要联网未明确有提醒

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

SKILL.md 原文

AFP Product Builder

Use this skill to produce a complete, valid product specification for the Forecastathon competition, including extended metadata that can be pinned to IPFS as a DAG-CBOR encoded DAG.

Inputs to gather first

  • Network: bakerloo or mainnet.
  • Builder address (Forecastathon-registered).
  • Product type: time series (scalar) or event (binary or ternary).
  • Data source: public API URL and fields to extract.
  • Start time and earliest FSP submission time (UTC ISO 8601).
  • Min and max price band (unleveraged products only).
  • Symbol and description.

Forecastathon constraints (must enforce)

  • Required contract addresses:

- Bakerloo: oracleAddress 0x72EeD9f7286292f119089F56e3068a3A931FCD49, collateralAsset 0xDEfAaC81a079533Bf2fb004c613cc2870cF0A5b5. - Mainnet: oracleAddress 0x06CaDDDf6CC08048596aE051c8ce644725219C73, collateralAsset 0xAE2C6c29F6403fDf5A31e74CC8bFd1D75a3CcB8d.

  • Builder must be a registered Forecastathon participant.
  • startTime must be at least two full working days after PR submission.
  • Products are unleveraged and must define minPrice and maxPrice.
  • Extended metadata must be pinned on IPFS and conform to standard schemas.
  • API source must be valid and freely accessible.

Build the on-chain product (PredictionProductV1)

Use camelCase field names inside product:

  • product.base.metadata.builder (EVM checksum address)
  • product.base.metadata.symbol (A-Z0-9, 1-16 chars)
  • product.base.metadata.description
  • product.base.oracleSpec.oracleAddress (required per network)
  • product.base.oracleSpec.fsvDecimals, fspAlpha, fspBeta, fsvCalldata
  • product.base.collateralAsset (required per network)
  • product.base.startTime (UTC ISO 8601, Z)
  • product.base.pointValue
  • product.base.priceDecimals
  • product.base.extendedMetadata (CID, filled after pinning)
  • product.expirySpec.earliestFSPSubmissionTime (UTC ISO 8601, Z)
  • product.expirySpec.tradeoutInterval
  • product.minPrice < product.maxPrice

Build extended metadata (snake_case)

Extended metadata fields are outcome_space, outcome_point, oracle_config, and oracle_fallback. These are pinned on IPFS and referenced by CID.

Outcome space and point

Time series (scalar):

  • outcome_space: OutcomeSpaceTimeSeries

- fsp_type: "scalar" - description - base_case.condition and base_case.fsp_resolution - edge_cases (optional) - units, source_name, source_uri - frequency: daily, weekly, fortnightly, semimonthly, monthly, quarterly, yearly - history_api_spec (optional for backing data)

  • outcome_point: OutcomePointTimeSeries

- fsp_type: "scalar" - observation.reference_date and observation.release_date (YYYY-MM-DD)

Event (binary or ternary):

  • outcome_space: OutcomeSpace

- fsp_type: "binary" or "ternary" - description - base_case.condition and base_case.fsp_resolution - edge_cases (optional)

  • outcome_point: OutcomePointEvent

- fsp_type: "binary" or "ternary" - outcome (specific candidate or yes/no outcome)

Template variables in conditions must resolve against outcome_point fields. Example: {outcome} for events, {observation.release_date} for time series.

Oracle config

Manual resolution:

  • oracle_config: OracleConfig

- description - project_url (optional)

API-backed resolution:

  • oracle_config: OracleConfigPrototype1

- description - project_url (optional) - evaluation_api_spec: ApiSpecJSONPath - spec_variant: "product-fsv" - url, date_path, value_path - date_format_type: iso_8601 | unix_timestamp | custom - timestamp_scale if unix timestamps are ms - auth_param_location: none | query | header - auth_param_name / auth_param_prefix if needed

For time series, history_api_spec (OutcomeSpaceTimeSeries) should use spec_variant: "underlying-history" when you include it.

Oracle fallback

  • oracle_fallback.fallback_time must be at least 7 days after earliestFSPSubmissionTime.
  • oracle_fallback.fallback_fsp must be within [minPrice, maxPrice].

API spec guidance

  • Use JSONPath strings that select parallel arrays for dates and values.
  • Prefer APIs that return ISO 8601 dates or UNIX timestamps to avoid custom parsing.
  • Verify the URL is reachable (HEAD request succeeds).
  • Prefer no-auth or free-access endpoints for Forecastathon.
  • See references/api-sources.md for vetted examples.

IPFS pinning (DAG-CBOR required)

Extended metadata must be pinned as a DAG-CBOR DAG, not a single JSON blob. The AFP SDK handles this automatically by encoding and pinning each component and the root DAG:

import afp

app = afp.AFP(
    rpc_url=AUTONITY_RPC_URL,
    authenticator=afp.PrivateKeyAuthenticator(PRIVATE_KEY),
    ipfs_api_url=IPFS_API_URL,
    ipfs_api_key=IPFS_API_KEY,
)
product_api = app.Product()

spec = product_api.validate(product_dict)
pinned = product_api.pin(spec)  # builds and pins DAG-CBOR

If you build the DAG manually, ensure you store it as dag-cbor (e.g., ipfs dag put default store codec) and include schema CIDs for each component.

Validation and output

  1. Use Product.validate or Product.validate_json to enforce schemas.
  2. Ensure business rules and Forecastathon constraints pass.
  3. Use Product.dump_json for canonical JSON output.
import afp

product_api = afp.AFP(...).Product()
spec = product_api.validate(product_dict)
pinned = product_api.pin(spec)
product_json = product_api.dump_json(pinned)

Deliverables

  • Complete product JSON with extendedMetadata CID filled in.
  • Clear explanation of outcome_space resolution and data source.
  • Validation checklist confirmation (see references/validation-checklist.md).

References

  • Public API options and JSONPath examples: references/api-sources.md
  • Validation checklist and constraints: references/validation-checklist.md

平台分布

Codex

37.96%
按下载量换算28

Claude

29.17%
按下载量换算21

Cursor

19.54%
按下载量换算14

Gemini CLI

9.81%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills