Token导航 LogoToken导航

Agent Skill · 研究检索

http-generate(http 生成)

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

http-generate 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证为 MIT,暂无第三方扫描结果,按安装量在研究检索类的 73,675 个 Skill 里排第 65,896。

总安装 272周安装 11GitHub Stars 公开资料未说明下载 85核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add spring-ai-alibaba/examples --skill "http-generate"

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

发现并安装 AI 代理技能的通用搜索工具。适用于在主流 AI 平台扩展 Agent 功能集。通过关键词匹配推荐可用技能模块。http-generate 属于研究检索类 Skill,可作为该场景下的辅助能力补充。依赖 npx 命令安装,注意宿主环境支持情况。建议查看原始仓库获取技能清单与使用示例。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/http-generate

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add spring-ai-alibaba/examples --skill "http-generate";命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

http-generate 怎么安装?

在终端执行 npx skills add spring-ai-alibaba/examples --skill "http-generate"。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

http-generate 支持哪些 AI 工具?

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

http-generate 需要什么权限?

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

http-generate 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

http-generate 用的人多吗?

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

http-generate 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

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

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 许可证明确为 MIT,商用和分发边界好判断。

先想清楚的地方

  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

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

不太适合

  • 要求有安全扫描结论才肯安装的团队。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

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

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
http-generate

http 生成 · 本页

272—需要联网MIT未收录

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

SKILL.md 原文

HTTP Generator

This skill automatically analyzes Spring Boot Web controllers and generates HTTP request examples for all REST endpoints, saving them as .http files in their respective module directories according to the task specification.

When to Use

Use this skill when you need to:

  • Generate API documentation for testing
  • Create HTTP request examples for new modules
  • Document existing Spring Boot REST controllers
  • Provide ready-to-use request samples for developers
  • Automate API testing setup
  • Create interface specifications for team collaboration

How to Use

Generate HTTP Requests for a Single Module

Execute the HTTP generator script to create request examples for all controllers in a module:

python .claude/skills/http-generate/scripts/http_generator.py <module_path> [output_file]

Generate HTTP Requests for All Modules

Use the all parameter to automatically discover and generate HTTP files for all modules with controllers:

python .claude/skills/http-generate/scripts/http_generator.py all

Parameters:

  • module_path (required): Path to the Spring Boot module directory, or all to process all modules
  • output_file (optional): Custom output file path (default: {module_name}.http)

Examples:

# Generate for chat module-generate.md (creates basic/chat/chat.http)
python .claude/skills/http-generate/scripts/http_generator.py basic/chat

# Generate for all modules automatically
python .claude/skills/http-generate/scripts/http_generator.py all

# Generate for graph module-generate.md (creates graph/graph.http)
python .claude/skills/http-generate/scripts/http_generator.py graph/parallel

# Generate with custom output file
python .claude/skills/http-generate/scripts/http_generator.py basic/chat custom-api.http

# Generate for different modules
python .claude/skills/http-generate/scripts/http_generator.py basic/tool
python .claude/skills/http-generate/scripts/http_generator.py basic/image
python .claude/skills/http-generate/scripts/http_generator.py graph/stream

Supported Controller Patterns

The skill automatically detects and generates requests for:

HTTP Methods
  • GET @GetMapping - Query operations
  • POST @PostMapping - Create operations
  • PUT @PutMapping - Update operations
  • DELETE @DeleteMapping - Delete operations
Parameter Types
  • @RequestParam with default values
  • @RequestParam without default values
  • @PathVariable for path parameters
  • URL encoding for Chinese characters and special values
Controller Annotations
  • @RestController - JSON API endpoints
  • @Controller - MVC controllers
  • @RequestMapping - Base path mapping

Output Format (Task Specification)

The skill generates .http files according to the task specification format:

Basic Format
# {Controller类名}的{方法名}方法
{HTTP_METHOD} {完整URL路径}?{参数键值对}

###
# {Controller类名}的{方法名}方法
{HTTP_METHOD} {完整URL路径}?{参数键值对}
Generated Example
# ChatController类的callChat方法
GET http://localhost:8080/basic/chat/call?query=你好,很高兴认识你,能简单介绍一下自己吗?

###
# ChatController类的streamChat方法
GET http://localhost:8080/basic/chat/stream?query=你好,很高兴认识你,能简单介绍一下自己吗?

###
# ChatController类的callOption方法
GET http://localhost:8080/basic/chat/call/option?query=你好,很高兴认识你,能简单介绍一下自己吗?

Generated Request Features

Each generated HTTP request includes:

  • Method Documentation: Comment format # Controller类名的方法名方法
  • Complete URL: Full endpoint URL with base path
  • Default Parameters: All @RequestParam values with defaults
  • Proper Encoding: URL encoding for Chinese characters
  • Query String: Properly formatted parameter strings with ? and &
  • Separators: ### used to separate different interfaces
  • File Organization: Grouped by controller and module

Module Discovery

The skill automatically:

  1. Discovers Modules: Scans project directories for modules containing controllers
  2. Identifies Controllers: Files ending with Controller.java
  3. Analyzes Annotations: Extracts mapping annotations
  4. Extracts Parameters: Finds @RequestParam configurations
  5. Builds URLs: Constructs complete request URLs
  6. Generates Examples: Creates ready-to-use HTTP requests

Supported Spring Boot Patterns

Example 1: Simple GET Controller
@RestController
@RequestMapping("/basic/chat")
public class ChatController {

    @GetMapping("/call")
    public String callChat(
        @RequestParam(value = "query",
                    defaultValue = "你好,很高兴认识你,能简单介绍一下自己吗?",
                    required = false) String query) {
        return chatClient.prompt(query).call().content();
    }
}

Generated Request:

# ChatController类的callChat方法
GET http://localhost:8080/basic/chat/call?query=你好,很高兴认识你,能简单介绍一下自己吗?
Example 2: Complex Parameters
@GetMapping("/expand-translate")
public Map<String, Object> expandAndTranslate(
        @RequestParam(value = "query", defaultValue = "你好", required = false) String query,
        @RequestParam(value = "expander_number", defaultValue = "3", required = false) Integer expanderNumber,
        @RequestParam(value = "translate_language", defaultValue = "english", required = false) String translateLanguage) {
    // implementation
}

Generated Request:

# ParallelController类的expandAndTranslate方法
GET http://localhost:8080/graph/parallel/expand-translate?query=你好&expander_number=3&translate_language=english
Example 3: Multiple Controllers

For modules with multiple controllers, the skill generates requests for all with ### separators:

# TimeController类的call方法
GET http://localhost:8080/basic/tool/time/call?query=请告诉我现在北京时间几点了

###
# TimeController类的callToolFunction方法
GET http://localhost:8080/basic/tool/time/call/function?query=请告诉我现在北京时间几点了

###
# SearchController类的search方法
GET http://localhost:8080/basic/tool/search?query=Spring+AI

File Organization (Task Specification)

Output Location

  • Default: {module_name}/{module_name}.http
  • File Naming: Uses module name as filename (e.g., chat.http, tool.http)
  • Custom: User-specified path
  • Encoding: UTF-8 for Chinese characters

Directory Structure Example

basic/
├── chat/
│   ├── chat.http          ← Generated file
│   └── src/main/java/.../ChatController.java
├── tool/
│   ├── tool.http          ← Generated file
│   └── src/main/java/.../TimeController.java
└── image/
    ├── image.http         ← Generated file
    └── src/main/java/.../ImageController.java

Task Specification Compliance

The generated files strictly follow the task specification:

  1. 文件命名: 以模块名称命名,使用 .http 后缀 ✅
  2. 文件位置: 放置在对应模块的根目录下 ✅
  3. 内容来源: 基于 Controller 类中的接口方法生成 ✅
  4. 注释格式: 使用 # Controller类名的方法名方法 ✅
  5. 分隔符: 使用 ### 分隔不同接口 ✅
  6. 参数处理: 正确处理查询参数拼接 ✅

Integration with Development Workflow

Use with IDE HTTP Client

The generated .http files work seamlessly with:

  • IntelliJ IDEA HTTP Client
  • VS Code REST Client
  • Postman Import
  • curl commands

Automated Documentation

Perfect for:

  • API documentation generation
  • Testing automation
  • Developer onboarding
  • Contract testing
  • Integration testing setup

Customization Options

Modify Script Behavior

Edit scripts/http_generator.py to customize:

  • Base URL: Change from http://localhost:8080
  • Output Format: Modify request template according to specification
  • Parameter Handling: Add support for other annotations
  • File Patterns: Change controller detection logic
  • Encoding: Adjust URL encoding rules

Extend Functionality

Add support for:

  • POST body parameters
  • Header handling
  • Authentication headers
  • Multi-parameter requests
  • File upload examples

Notes

  • The script automatically discovers all modules with controllers when using all parameter
  • Only processes files ending with Controller.java
  • Supports UTF-8 encoding for Chinese parameters
  • Requires Python 3 and no external dependencies
  • Handles complex Spring Boot annotation patterns
  • Preserves parameter defaults from source code
  • Groups requests by controller for clarity
  • Follows task specification format exactly

Error Handling

Common issues and solutions:

  • No controllers found: Ensure module contains *Controller.java files
  • Missing @RequestMapping: Controllers without base mapping will use root path
  • Complex parameters: Some advanced parameter types may need manual adjustment
  • Encoding issues: Chinese characters are automatically URL-encoded
  • Module discovery: Use all parameter to auto-discover modules with controllers

平台分布

kilo

30.3%
按下载量换算26

OpenCode

26.15%
按下载量换算22

Claude Code

18.28%
按下载量换算16

cline

13.21%
按下载量换算11

qoder

7.04%
按下载量换算6

Cursor

3.62%
按下载量换算3

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

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

安装前确认

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

继续浏览同类 Skills