en un clic
http-generate
// Generates HTTP request examples for Spring Boot Web interfaces according to task specification and saves them as .http files in module-generate.md directories
// Generates HTTP request examples for Spring Boot Web interfaces according to task specification and saves them as .http files in module-generate.md directories
Generates comprehensive README.md files for Spring Boot modules based on task specification requirements
Search arXiv preprint repository for papers in physics, mathematics, computer science, quantitative biology, and related fields, Instructions for searching arXiv papers using Python script and shell tool. Read SKILL.md to learn the workflow.
Guide for creating effective skills that extend agent capabilities with specialized knowledge, workflows, or tool integrations. Use this skill when the user asks to: (1) create a new skill, (2) make a skill, (3) build a skill, (4) set up a skill, (5) initialize a skill, (6) scaffold a skill, (7) update or modify an existing skill, (8) validate a skill, (9) learn about skill structure, (10) understand how skills work, or (11) get guidance on skill design patterns. Trigger on phrases like "create a skill", "new skill", "make a skill", "skill for X", "how do I create a skill", or "help me build a skill".
Use this skill for requests related to web research; it provides a structured approach to conducting comprehensive web research
| name | http-generate |
| description | Generates HTTP request examples for Spring Boot Web interfaces according to task specification and saves them as .http files in module-generate.md directories |
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.
Use this skill when you need to:
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]
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 modulesoutput_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
The skill automatically detects and generates requests for:
@GetMapping - Query operations@PostMapping - Create operations@PutMapping - Update operations@DeleteMapping - Delete operations@RequestParam with default values@RequestParam without default values@PathVariable for path parameters@RestController - JSON API endpoints@Controller - MVC controllers@RequestMapping - Base path mappingThe skill generates .http files according to the task specification format:
# {Controller类名}的{方法名}方法
{HTTP_METHOD} {完整URL路径}?{参数键值对}
###
# {Controller类名}的{方法名}方法
{HTTP_METHOD} {完整URL路径}?{参数键值对}
# 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=你好,很高兴认识你,能简单介绍一下自己吗?
Each generated HTTP request includes:
# Controller类名的方法名方法? and &### used to separate different interfacesThe skill automatically:
Controller.java@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=你好,很高兴认识你,能简单介绍一下自己吗?
@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
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
{module_name}/{module_name}.httpchat.http, tool.http)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
The generated files strictly follow the task specification:
.http 后缀 ✅# Controller类名的方法名方法 ✅### 分隔不同接口 ✅The generated .http files work seamlessly with:
Perfect for:
Edit scripts/http_generator.py to customize:
http://localhost:8080Add support for:
all parameterController.javaCommon issues and solutions:
*Controller.java filesall parameter to auto-discover modules with controllers