Agent skill

HTTP Generate

by Juncai22 in Juncai22/spring-ai-agent-learning

Generates HTTP request examples for Spring Boot Web interfaces according to task specification and saves them as .http files in module-generate.md directories

Apache-2.0Auto-check passedBackend & APIs

Install HTTP Generate

skills CLI
$ npx skills add Juncai22/spring-ai-agent-learning --skill http-generate -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Juncai22/spring-ai-agent-learning http-generate --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Juncai22/spring-ai-agent-learning.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/http-generate .claude/skills/http-generate && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
http-generate
GitHub stars
123
Token cost
~2.2k tokens
SKILL.md length
642 words
Files
2 (incl. scripts)
Skills in repo
4
Repo updated
First seen
Licence
Apache-2.0

At a glance

Generates HTTP request examples for Spring Boot Web interfaces according to task specification and saves them as .http files in module-generate.md directories

  • Works in 6 steps: Discovers Modules: Scans project… → Identifies Controllers: Files ending… → Analyzes Annotations: Extracts mapping… → …
  • Tasks that involve Backend development
  • SKILL.md covers When to Use, How to Use, File Organization (Task… and Integration with Development…, plus 3 more sections
  • Runs Python scripts from its folder; calls python

What it does

HTTP Generate is an agent skill from Juncai22/spring-ai-agent-learning. Generates HTTP request examples for Spring Boot Web interfaces according to task specification and saves them as .http files in module-generate.md directories

Its SKILL.md is about 2.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/http_generator.py`).

It sits in Backend & APIs, covering Backend development and Frontend development. It works with Spring Boot. The licence is Apache-2.0.

When your agent uses it

  • Tasks that involve Backend development
  • Tasks that involve Frontend development

Example prompts

  • “Use the http-generate skill to generate HTTP request examples for Spring Boot Web interfaces according to task specification and saves them as .http…”
  • “/http-generate”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  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

What it can do on your machine

Read from SKILL.md and the folder at commit ba09fd5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

HTTP Generate loads about 2.2k tokens when it runs. Until then it costs about 43 tokens; SKILL.md has 642 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~43
When it runs · the whole SKILL.md, loaded when a task matches
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from Juncai22/spring-ai-agent-learning at commit ba09fd5, republished under its Apache-2.0 licence (© Juncai22). 642 words, ~2,245 tokens.

Download SKILL.mdSave it as .claude/skills/http-generate/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
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

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:

bash
python .Codex/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:

bash
python .Codex/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:

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

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

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

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

# Generate for different modules
python .Codex/skills/http-generate/scripts/http_generator.py basic/tool
python .Codex/skills/http-generate/scripts/http_generator.py basic/image
python .Codex/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
http
# {Controller类名}的{方法名}方法
{HTTP_METHOD} {完整URL路径}?{参数键值对}

###
# {Controller类名}的{方法名}方法
{HTTP_METHOD} {完整URL路径}?{参数键值对}
Generated Example
http
# 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
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:

http
# ChatController类的callChat方法
GET http://localhost:8080/basic/chat/call?query=你好,很高兴认识你,能简单介绍一下自己吗?
Example 2: Complex Parameters
java
@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:

http
# 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:

http
# 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)

Show full SKILL.md (267 more words)Show less
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

© Juncai22, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in .agents/skills/http-generate of Juncai22/spring-ai-agent-learning.

  • SKILL.md
  • scripts/http_generator.py

Open the folder on GitHubat commit ba09fd5

Compare with similar skills

HTTP Generate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

HTTP Generate compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
HTTP Generate this skillJuncai22/spring-ai-agent-learning123—~2.2kAutomated safety check: PassApache-2.0
Spring Bootpiomin/claude-ai-spring-boot1.3k—~2kAutomated safety check: PassApache-2.0
Dr Jskilljdubois/dr-jskill342—~4.6kAutomated safety check: NotesApache-2.0
Avoid AI Designsunkaifei/FlyCms656—~3.5kAutomated safety check: PassMIT
WxJava Integration Guidebinarywang/WxJava33k—~123Automated safety check: PassApache-2.0
Grails Developer Guideapache/grails-core2.9k—~4.9kAutomated safety check: PassApache-2.0

Similar skills

  • Spring Boot

    piomin/claude-ai-spring-boot

    Spring Boot 3.x development - REST APIs, JPA, Security, Testing, and Cloud-native patterns.

    1.3k GitHub stars~2k tokensUpdated 5 mo ago
    Backend & APIsAuto-check passed
  • Dr Jskill

    jdubois/dr-jskill

    Creates Java + Spring Boot projects: Web applications, full-stack apps with Vue.js or Angular or React or vanilla JS, PostgreSQL, REST APIs, and Docker.

    342 GitHub stars~4.6k tokensUpdated 9 days ago
    Backend & APIsAuto-check: notes
  • Avoid AI Design

    sunkaifei/FlyCms

    Audit and rewrite frontend UI to remove generic AI design patterns ("AI slop"), both the first-order defaults (purple gradients, Inter, a centered hero over three cards, untouched shadcn) and the…

    656 GitHub stars~3.5k tokensUpdated yesterday
    Frontend & DesignAuto-check passed
  • WxJava Integration Guide

    binarywang/WxJava

    Plans a WxJava setup for Java, Spring Boot or Solon projects that call WeChat services, from module and BOM choice to config and a minimal working call.

    33k GitHub stars~123 tokensUpdated today
    Backend & APIsAuto-check passed
  • Grails Developer Guide

    apache/grails-core

    Guides building Grails web applications and REST APIs with GORM, controllers, services, views, plugins and Spock and Geb testing.

    2.9k GitHub stars~4.9k tokensUpdated today
    Backend & APIsAuto-check passed
  • Flycms Dev

    sunkaifei/FlyCms

    FlyCms 项目(backend/ Spring Boot 4.1.1 + frontend/ vue-vben-admin v5)的架构地图与开发规范总纲。凡在本仓库做任何开发——写后端接口、新增/修改模块、管理页面、数据库变更、修 bug、重构——都要先加载本 skill 再动手,即使用户只说"改一下""加个功能";前端登录/菜单/权限专项另见…

    656 GitHub stars~827 tokensUpdated yesterday
    Backend & APIsAuto-check passed

More from Juncai22/spring-ai-agent-learning

  • Web Research

    Juncai22/spring-ai-agent-learning

    A skill your agent uses for requests related to web research; it provides a structured approach to conducting comprehensive web research

    123 GitHub starsUsed in 2 repos~1.1k tokens
    Auto-check passed
  • Arxiv Search

    Juncai22/spring-ai-agent-learning

    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…

    123 GitHub starsUsed in 2 repos~911 tokens
    Auto-check passed
  • Readme Generate

    Juncai22/spring-ai-agent-learning

    Generates comprehensive README.md files for Spring Boot modules based on task specification requirements

    123 GitHub stars~2.2k tokensUpdated 2 mo ago
    Auto-check passed

Works with

Categories

Questions about HTTP Generate

What does HTTP Generate do?

Generates HTTP request examples for Spring Boot Web interfaces according to task specification and saves them as .http files in module-generate.md directories. HTTP Generate is an agent skill from Juncai22/spring-ai-agent-learning.

When should I use HTTP Generate?

HTTP Generate fits situations like: tasks that involve Backend development; tasks that involve Frontend development.

How do I install HTTP Generate in Claude Code?

Run `npx skills add Juncai22/spring-ai-agent-learning --skill http-generate -a claude-code`. Or copy the skill folder (.agents/skills/http-generate in Juncai22/spring-ai-agent-learning) into .claude/skills/http-generate in your project. Claude Code loads it when a task matches its description.

How do I install HTTP Generate in Codex?

Run `npx skills add Juncai22/spring-ai-agent-learning --skill http-generate -a codex`. Or copy the skill folder (.agents/skills/http-generate in Juncai22/spring-ai-agent-learning) into .agents/skills/http-generate in your project. Codex loads it when a task matches its description.

Can I use HTTP Generate in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Juncai22/spring-ai-agent-learning --skill http-generate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/http-generate, .gemini/skills/http-generate, .github/skills/http-generate and .opencode/skills/http-generate in your project.

What does HTTP Generate need to run?

Going by SKILL.md and its folder, HTTP Generate needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3.

Does HTTP Generate access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is HTTP Generate safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does HTTP Generate use?

HTTP Generate is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does HTTP Generate use?

About 2.2k tokens (SKILL.md is roughly 9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to HTTP Generate?

Skills that share tags, products or a category with HTTP Generate: Spring Boot (piomin/claude-ai-spring-boot, 1.3k stars), Dr Jskill (jdubois/dr-jskill, 342 stars), Avoid AI Design (sunkaifei/FlyCms, 656 stars) and WxJava Integration Guide (binarywang/WxJava, 33k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains HTTP Generate?

Juncai22 (a GitHub user) maintains it in Juncai22/spring-ai-agent-learning, which has 123 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on July 17, 2026.

Source: Juncai22/spring-ai-agent-learning on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.