Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计异常

ileapileap 搜索

Agent Skill

ileap 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

424

周安装

17

GitHub Stars

3

下载量

137
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/way-platform/skills --skill ileap

简介

ileap 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词或任务场景快速定位候选结果。
  • 可通过 npx skills add 命令从指定仓库安装并使用该技能。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网或文件读写操作。
  • 可结合来源仓库和原始 README 进一步核验具体用法和功能边界。

SKILL.md

iLEAP Technical Specifications

iLEAP extends the PACT Data Exchange Protocol with logistics emissions data types conforming to ISO 14083 and the GLEC Framework v3.1.

Implementation Order

  1. PACT base: Authentication (OpenID discovery + OAuth2 Client Credentials), GET /2/footprints, GET /2/footprints/{id}, POST /2/events. See references/pact-implementation-guide.md.
  2. iLEAP extensions: Embed ShipmentFootprint, TOC, HOC as DataModelExtensions in ProductFootprints.
  3. TAD endpoint: GET /2/ileap/tad with filtering and pagination.
  4. Conformance: Run ACT against your server.

Architecture Overview

Roles

RoleDescription
Transport Service UserPurchases transport (e.g., shipper)
Transport Service OrganizerProvides transport, subcontracts operations (e.g., LSP)
Transport OperatorCarries out transport (e.g., carrier)

Key invariant

All numeric values are Decimal -- JSON strings matching ^-?\d+(\.\d+)?$. Never use JSON numbers for iLEAP numeric fields.

Data Transactions

DTData typeProviderConsumerEndpoint
DT#1ShipmentFootprint (TCEs)Operator/OrganizerService UserGET /2/footprints
DT#2TOC or HOCOperator/OrganizerOrganizer/UserGET /2/footprints
DT#3TADOperatorOrganizer/UserGET /2/ileap/tad
  • DT#1: TCE-level emissions for a single shipment, wrapped in a ShipmentFootprint
  • DT#2: Emission intensity data at TOC (transport) or HOC (hub) cluster level
  • DT#3: Raw activity data (distance, mass, energy) for parties that cannot yet calculate emissions

Data Model Quick Reference

ShipmentFootprint

PropertyTypeReqDescription
massDecimalMFreight mass in kg
volumeDecimalOFreight volume in CBM
shipmentIdStringMShipment identifier
tcesTCE[]MNon-empty array of TCEs

TCE (Transport Chain Element)

PropertyTypeReqDescription
tceIdStringMUnique TCE id
prevTceIdsString[]OIDs of preceding TCEs (ordering)
tocIdStringM*TOC id (*one of tocId/hocId required)
hocIdStringM*HOC id (*one of tocId/hocId required)
shipmentIdStringMShipment id
massDecimalMFreight mass in kg
distanceGLECDistanceMOrigin-destination distance
transportActivityDecimalMTransport activity in tkm
co2eWTWDecimalMWTW GHG emissions in kgCO2e
co2eTTWDecimalMTTW GHG emissions in kgCO2e

TOC (Transport Operation Category)

PropertyTypeReqDescription
tocIdStringMUnique TOC id
modeTransportModeMTransport mode
energyCarriersEnergyCarrier[]MEnergy carriers (shares must sum to 1)
co2eIntensityWTWDecimalMWTW intensity per transportActivityUnit
co2eIntensityTTWDecimalMTTW intensity per transportActivityUnit
transportActivityUnitStringM"tkm" or "TEUkm"

HOC (Hub Operation Category)

PropertyTypeReqDescription
hocIdStringMUnique HOC id
hubTypeHubTypeMHub type
energyCarriersEnergyCarrier[]MEnergy carriers (shares must sum to 1)
co2eIntensityWTWDecimalMWTW intensity per hubActivityUnit
co2eIntensityTTWDecimalMTTW intensity per hubActivityUnit
hubActivityUnitStringM"tonnes" or "TEU"

EnergyCarrier

PropertyTypeReqDescription
energyCarrierEnergyCarrierTypeMEnum value
emissionFactorTTWDecimalMkgCO2e per unit
emissionFactorWTWDecimalMkgCO2e per unit
relativeShareDecimalMFraction of total energy (0–1). Must be "1" if only one carrier.

TAD (Transport Activity Data)

PropertyTypeReqDescription
activityIdStringMUnique activity id
consignmentIdsString[]MConsignment identifiers
distanceGLECDistanceMOrigin-destination distance
originLocationMOrigin location
destinationLocationMDestination location
departureAtDateTimeMISO 8601 UTC departure
arrivalAtDateTimeMISO 8601 UTC arrival
modeTransportModeMTransport mode

Enum values

  • TransportMode: Road, Rail, Air, Sea, InlandWaterway
  • HubType: Transshipment, StorageAndTransshipment, Warehouse, LiquidBulkTerminal, MaritimeContainerTerminal
  • EnergyCarrierType: Diesel, HVO, Petrol, CNG, LNG, LPG, HFO, MGO, Aviation fuel, Hydrogen, Methanol, Electric
  • PackagingOrTrEqType: Box, Pallet, Container-TEU, Container-FEU, Container
  • Feedstock: Fossil, Natural gas, Grid, Renewable electricity, Cooking oil

JSON schemas

Located at references/ileap-data-model/schemas/:

  • shipment-footprint.json, toc.json, hoc.json, tad.json
  • pcf-shipment-footprint.json, pcf-toc.json, pcf-hoc.json, pcf-tad.json

PACT Integration Rules

These are the most error-prone mappings when embedding iLEAP data into PACT ProductFootprints.

Common rules (all iLEAP types)

  • productCategoryCpc: MUST always be "83117"
  • packagingEmissionsIncluded: MUST be false
  • biogenicCarbonContent: SHOULD be "0"
  • extensions[].specVersion: MUST be "2.0.0"
  • One iLEAP extension per ProductFootprint (cannot mix SF + TOC etc.)

Per-type mapping

FieldShipmentFootprintTOCHOC
productIdsurn:...:shipment:{shipmentId}urn:...:toc:{tocId}urn:...:hoc:{hocId}
declaredUnit"ton kilometer""ton kilometer""kilogram"
unitaryProductAmountsum(tces[].transportActivity)"1""1000"
pCfExcludingBiogenicsum(tces[].co2eWTW)co2eIntensityWTWco2eIntensityWTW
dataSchema URL.../shipment-footprint.json.../toc.json.../hoc.json

productIds URN format

urn:pathfinder:product:customcode:vendor-assigned:{type}:{id}
urn:pathfinder:product:customcode:buyer-assigned:{type}:{id}

Where {type} is shipment, toc, or hoc.

dataSchema URLs

TypeURL
ShipmentFootprinthttps://api.ileap.sine.dev/shipment-footprint.json
TOChttps://api.ileap.sine.dev/toc.json
HOChttps://api.ileap.sine.dev/hoc.json

See references/pact-integration-examples.md for complete annotated JSON examples of each type.

HTTP API

Authentication

  1. Discover token endpoint: GET /.well-known/openid-configuration
  2. Obtain token: POST /auth/token with Basic Auth + grant_type=client_credentials
  3. Use token: Authorization: Bearer {token} on all API calls

See references/pact-implementation-guide.md for the full auth contract including request/response formats.

PACT endpoints

MethodPathDescription
GET/2/footprintsList ProductFootprints (with iLEAP extensions)
GET/2/footprints/{id}Get single ProductFootprint
POST/2/eventsAsync event notifications

Supports $filter query parameter (OData v4 subset) and limit pagination with Link header.

Required filterable fields (GET /2/footprints):

FieldOperators
productCategoryCpceq
productIds/any(id:(id eq '...'))any/eq
companyIds/any(id:(id eq '...'))any/eq
pcf/geographyCountryeq
createdgt, lt
updatedgt, lt

Combined filters using and must also be supported.

iLEAP endpoint

GET /2/ileap/tad?[filter params]&limit={n}
  • Filtering: query parameters as key-value pairs (e.g., ?mode=Road)
  • Pagination: limit param + Link: <url>; rel="next" header
  • Response: {"data": [TAD,...]}

Error codes

CodeHTTP StatusDescription
AccessDenied403Invalid or missing token
TokenExpired401Expired access token
BadRequest400Malformed request
NoSuchFootprint404Footprint ID not found
NotImplemented400Unsupported filter or feature

See references/known-issues.md for error code gotchas (e.g., NotImplemented is HTTP 400 not 501).

Conformance Testing & ACT

For a comprehensive guide on conformance tests, definitions, and requirements, please refer to the dedicated document: references/conformance-tests.md

Conformance levels

  1. Emissions Data Conformance: DT#1 + DT#2 (ShipmentFootprint, TOC, HOC via /2/footprints)
  2. Activity Data Conformance: DT#3 (TAD via /2/ileap/tad)

iLEAP Test cases

TCDescriptionEndpointExpected
TC001Get ProductFootprint with ShipmentFootprintGET /2/footprints200 + valid SF extension
TC002Get ProductFootprint with TOCGET /2/footprints200 + valid TOC extension
TC003Get ProductFootprint with HOCGET /2/footprints200 + valid HOC extension
TC004Get all TransportActivityDataGET /2/ileap/tad200 + valid TAD list
TC005Get filtered TADGET /2/ileap/tad?mode=Road200 + filtered results
TC006Get limited TADGET /2/ileap/tad?limit=1200 + max 1 result
TC007TAD with invalid tokenGET /2/ileap/tad403 AccessDenied
TC008TAD with expired tokenGET /2/ileap/tad401 TokenExpired
TC008 note: TC008 requires the server to issue short-lived tokens so ACT can wait for expiry. Most test servers skip this by issuing long-lived tokens — TC008 will then time out or fail.

PACT Test Cases (TC1-TC21)

The ACT tool also runs complementary PACT conformance test cases alongside iLEAP tests. Refer to references/pact-conformance-service/v2-test-cases-expected-results.md for full definitions.

Testability Classification:

  • Locally testable (13 tests): TC1-TC8, TC15-TC16, TC18-TC20. Can run against local mock servers (httptest.NewServer).
  • Deployment-only (5 tests): TC9-TC11, TC17, TC21. Verify HTTPS enforcement; only apply to real deployments.
  • Callback-dependent (3 tests): TC12-TC14. Require the server to POST back to a webhook URL, needing a mock listener.

Edge Cases:

  • TC15 (Published Event): Requires a valid CloudEvent format (type: "org.wbcsd.pathfinder.ProductFootprint.Published.v1", specversion: "1.0", with data.pfIds).
  • TC20 (OData $filter): The + character must be used as a space separator in the query string (not %20), as some implementations are sensitive to encoding.

Implementation Strategy: Unit Test Suite

When building an iLEAP-conformant API, strongly consider implementing the conformance test cases (TC001-TC008) and the PACT Required Test Cases (TC1-TC21) as a standalone integration or unit test suite within your language's native testing framework (e.g., go test, pytest, Jest).

Numbering Distinction: iLEAP and PACT test cases use separate numbering schemes. To avoid confusion, local Go tests use:

  • TestTC001_... through TestTC008_... for iLEAP TCs
  • TestPACT_TC01_... through TestPACT_TC20_... for PACT TCs

Why this matters:

  • Regression Protection: Ensures that changes to core routing, auth, and data modeling don't accidentally break conformity before running the official ACT tool.
  • SFC Certification: Conformance test cases are central to achieving SFC Certification. Automating these tests locally drastically shortens the feedback loop.
  • Mocking: Building local test suites allows you to mock database layers and quickly test HTTP handler edge cases (e.g., pagination behaviors, token expiration, OData filtering) without spinning up the entire stack.

ACT (Automated Conformance Testing)

  • Web UI: https://act.sine.dev
  • CLI: references/act/act.sh -- downloads and runs binary for current architecture (arm64/x86_64)
# Run against demo API (Check SINE Foundation Demo API for current credentials)
curl -sSf https://raw.githubusercontent.com/sine-fdn/act/main/act.sh |\
  bash -s -- test -b "https://api.ileap.sine.dev" -u "<demo-user>" -p "<demo-password>"
# Run against your own API
curl -sSf https://raw.githubusercontent.com/sine-fdn/act/main/act.sh |\
  bash -s -- test -b "<your-url>" -u "<user>" -p "<password>"

GitHub Actions integration:

act_test:
  name: ACT Test
  runs-on: ubuntu-latest
  steps:
    - uses: actions/checkout@v2
    - name: Run ACT
      run: |
        set -o pipefail
        curl -sSf https://raw.githubusercontent.com/sine-fdn/act/main/act.sh |\
        bash -s -- test \
        -b "${{ secrets.API_URL }}" \
        -u "${{ secrets.ACT_USER }}" \
        -p "${{ secrets.ACT_PASSWORD }}"

Important ACT constraints:

  • Public URL Requirement: PACT tests require a publicly reachable server. ACT delegates PACT tests to an external service that must reach the API over the internet. Local httptest servers cannot be tested with ACT directly.
  • No iLEAP-only flag — ACT always runs both PACT and iLEAP test suites
  • Known Failures:

- TC18/TC19 (OIDC): ACT crashes with a panic on local URLs. These tests pass on remote deployments. - TC8 (Expired token): ACT's handling is unreliable; the equivalent logic is covered by iLEAP TC008. PACT TC8 and TC18 are known failures even on the SINE reference API (api.ileap.sine.dev).

See references/act/README.md for full CLI options and coverage details.

Certification

SFC Certification Scheme extension for iLEAP Tool Providers

  • Eligibility: must be SFC Certified + implemented DT#1 and DT#2
  • Testing: ACT runs both PACT tests and iLEAP-specific tests
  • Mandatory: DT#1 and DT#2 tests must pass
  • Optional: DT#3 tests (recommended)
  • Remediation: up to 3 attempts at 2-week intervals
  • Validity: matches SFC Certification validity period

See references/pilot-certification.md for full certification process details.

Verification with SINE Demo API

The SINE Foundation hosts a public iLEAP-conformant server for testing.

Base URL

https://api.ileap.sine.dev

Credentials

Demo API credentials for the SINE reference server (including role-based accounts like transport_service_user and transport_service_organizer) are published in the SINE Foundation Demo API GitHub Repository.

Step-by-step verification

# 1. Discover OpenID configuration
curl -s https://api.ileap.sine.dev/.well-known/openid-configuration | jq .

# 2. Obtain access token
TOKEN=$(curl -s -X POST https://api.ileap.sine.dev/auth/token \
  -u "<demo-user>:<demo-password>" \
  -H "Content-Type: application/x-www-form-urlencoded" \
  -d "grant_type=client_credentials" | jq -r .access_token)

# 3. List all footprints
curl -s https://api.ileap.sine.dev/2/footprints \
  -H "Authorization: Bearer $TOKEN" | jq .

# 4. Get a specific footprint by ID
curl -s https://api.ileap.sine.dev/2/footprints/91715e5e-fd0b-4d1c-8fab-76290c46e6ed \
  -H "Authorization: Bearer $TOKEN" | jq .

# 5. List transport activity data
curl -s https://api.ileap.sine.dev/2/ileap/tad \
  -H "Authorization: Bearer $TOKEN" | jq .

# 6. Filter TAD by transport mode
curl -s "https://api.ileap.sine.dev/2/ileap/tad?mode=Road" \
  -H "Authorization: Bearer $TOKEN" | jq .

Navigating the Specs

iLEAP spec

The normative iLEAP spec is at references/ileap-extension/specs/index.bs (Bikeshed format, 3291 lines).

SectionTopicLines
#introductionOverview, PACT interop23-120
#definitionsISO14083 and auxiliary terms125-237
#business-casesBusiness cases 1-3239-312
#txnsData transactions DT#1-DT#3315-387
#data-modelData types (SF, TCE, TOC, HOC, TAD)624-1507
#dt-utility-sectionGLECDistance, Location, enums1510-1897
#http-rest-apiTAD endpoint, filtering, pagination1899-2050
#pcf-mappingPACT integration rules2052-2597
#conformanceConformance levels2600-2730
#appendix-bExample JSON (SF, TOC, HOC)2807-3049
#appendix-cConformance test cases TC001-TC0083050-3244

PACT spec

The PACT v2.1.0 spec is at references/pact-spec-v2/index.bs (Bikeshed format, 2520 lines).

SectionTopicLines
#introIntroduction, scope16-70
#terminologyTerm definitions73-121
#data-modelData model overview138-161
#dt-pfProductFootprint properties163-334
#dt-carbonfootprintCarbonFootprint properties337-646
#dt-datamodelextensionDataModelExtension827-852
#dt-declaredunitDeclaredUnit enum1089-1121
#api-authAuthentication flow1539-1564
#api-action-authAction Authenticate1591-1703
#api-action-listAction ListFootprints1706-1861
#api-action-getAction GetFootprint1863-1922
#api-action-eventsAction Events1925-2134
#api-error-responsesError codes table2135-2277

Grep patterns

# iLEAP: find a data type definition
grep -n '<dfn element>' references/ileap-extension/specs/index.bs

# iLEAP: find all required properties for a type
grep -n -A2 '<td>M$' references/ileap-extension/specs/index.bs

# iLEAP: find PACT mapping rules
grep -n 'MUST be set to\|MUST equal\|MUST contain' references/ileap-extension/specs/index.bs

# PACT: find property definitions
grep -n '<dfn>' references/pact-spec-v2/index.bs | head -40

# PACT: find all mandatory properties
grep -n '<td>M$' references/pact-spec-v2/index.bs

# PACT: find error codes
grep -n 'dfn>.*Denied\|dfn>.*Request\|dfn>.*Expired' references/pact-spec-v2/index.bs

Reference Files

Internal Skill References

FilePurpose
references/conformance-tests.mdiLEAP and PACT conformance tests definitions
references/pact-conformance-service/v2-test-cases-expected-results.mdPACT Conformance Service – V2 Test Cases & Expected Results
references/ileap-extension/specs/index.bsNormative iLEAP spec (Bikeshed source)
references/pact-spec-v2/index.bsPACT v2.1.0 spec (Bikeshed source)
references/pact-implementation-guide.mdPACT implementation steps (auth, endpoints, data model)
references/known-issues.mdImplementation gotchas and workarounds
references/demo-api-guide.mdiLEAP server implementation patterns
references/openapi.jsonOpenAPI contract (non-normative)
references/ileap-data-model/schemas/*.jsonJSON schemas for all iLEAP data types
references/pact-data-model/schema/data-model-schema.jsonPACT base data model schema
references/pact-integration-examples.mdAnnotated PACT integration JSON examples
references/act/README.mdACT CLI usage, test coverage
references/act/act.shACT runner script (detects arch, downloads binary)
references/pilot-certification.mdSFC certification process for iLEAP
references/whitepaper-v1.mdStrategic context only (not useful for implementation)

External References

LinkPurpose
SINE Foundation Demo APIExternal reference server implementation (Rust/Rocket)
Way Platform iLEAP GoWay's iLEAP implementation in Go

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.93%
按下载量换算49

Claude

30.64%
按下载量换算42

Cursor

16.92%
按下载量换算23

Gemini CLI

8.02%
按下载量换算11

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills