SuperAPI AI 工具集

API Documentation Lookup

编程与开发

查看项目

更新于 10-15 19:56

技能介绍

用途:当用户要求查找 Effect-TS 的 API、确认函数签名或了解某模块包含哪些函数时,使用该技能从官方文档站点 https://effect-ts.github.io/effect/ 检索信息。

主要能力:通过 WebFetch 按固定 URL 模式访问文档页面。核心模块使用 https://effect-ts.github.io/effect/effect/{Module}.ts.html,例如 Effect 模块为 https://effect-ts.github.io/effect/effect/Effect.ts.html,Schema、Stream、Layer、Context、Schedule 等同理。作用域包使用 https://effect-ts.github.io/effect/{package-name}/{Module}.ts.html,例如 @effect/platform 的 HttpClient 为 https://effect-ts.github.io/effect/platform/HttpClient.ts.html,@effect/cli 的 Command 与 @effect/sql 的 SqlClient 也遵循该模式。可查询的模块涵盖 Effect、Schema、Stream、Layer、Context、Schedule、Fiber、Queue、Ref、Scope、Option、Either、Chunk、HashMap、HashSet、Duration、Config、Match、Data、Cause、Exit、Random、Clock、Tracer、Metric、Logger、Sink、PubSub、Deferred、Semaphore、Request、Cache、TestClock、Runtime 等。

使用方式:先判断 API 属于哪个模块(如 Effect.map 属 Effect,Schema.Struct 属 Schema),再构造对应 URL,然后用 WebFetch 配合针对性提示词抓取,提示词可指定要签名、重载、参数、使用示例、相关函数或模块概览。查不到模块时可先访问 https://effect-ts.github.io/effect/ 索引页。更多教程类文档参考 ${CLAUDE_PLUGIN_ROOT}/references/llms-full.txt。

限制:依赖官方文档站点可用性;具体支持能力与效果暂未提供。