What is aptx-api-core?
使用 @aptx/api-core 进行 HTTP 请求的指导。用于:创建和配置 RequestClient、实现 middleware/plugin、替换核心组件(Transport/Decoder 等)、处理错误、监听事件、使用 Context Bag、测试扩展。当代码需要理解或修改 @aptx/api-core 的架构、扩展机制、最佳实践时触发。 Source: haibaraaiaptx/aptx-skill.
使用 @aptx/api-core 进行 HTTP 请求的指导。用于:创建和配置 RequestClient、实现 middleware/plugin、替换核心组件(Transport/Decoder 等)、处理错误、监听事件、使用 Context Bag、测试扩展。当代码需要理解或修改 @aptx/api-core 的架构、扩展机制、最佳实践时触发。
Quickly install aptx-api-core AI skill to your development environment via command line
Source: haibaraaiaptx/aptx-skill.
| 创建客户端 | new RequestClient() | 见上方模板 | | 创建客户端(函数式) | createClient() | 见创建客户端工厂函数 | | 发送请求 | client.fetch() | await client.fetch("/user", { method: "GET" }) | | 发送请求(高级) | client.request() | 见request() - 高级入口 | | 添加 middleware | client.use() | client.use(loggingMiddleware) | | 应用 plugin | client.apply() | client.apply(authPlugin) |
| 请求/响应修改 | Middleware | middleware-patterns.md | | 替换核心组件 | Plugin | plugin-patterns.md | | 中间件间共享状态 | Context Bag | context-bag.md | | 自定义传输/解码器等 | Extension Points | extension-points.md | | 测试扩展 | Testing | testing-guide.md | | 查看默认实现 | Defaults | defaults.md |
| 简单请求 | fetch() | API 简洁,自动处理 URL 解析 | | 需要复用 Request 对象 | request() | 更灵活,Request 对象可传递 | | 需要在 middleware 间传递状态 | request() | Request 对象可携带更多信息,详见 context-bag.md | | 需要显式控制请求构建 | request() | 完全控制 Request 创建过程 |
Stable fields and commands for AI/search citations.
npx skills add https://github.com/haibaraaiaptx/aptx-skill --skill aptx-api-core使用 @aptx/api-core 进行 HTTP 请求的指导。用于:创建和配置 RequestClient、实现 middleware/plugin、替换核心组件(Transport/Decoder 等)、处理错误、监听事件、使用 Context Bag、测试扩展。当代码需要理解或修改 @aptx/api-core 的架构、扩展机制、最佳实践时触发。 Source: haibaraaiaptx/aptx-skill.
Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/haibaraaiaptx/aptx-skill --skill aptx-api-core Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code, Cursor, or OpenClaw
https://github.com/haibaraaiaptx/aptx-skill