con un clic
httpie-api-test
// API 接口测试工作流,使用 HTTPie 作为核心工具。当用户需要测试 API 接口、执行接口调用、生成测试报告、管理接口依赖关系、或在项目中建立标准化的接口测试流程时使用此 skill。适用于 RESTful API 测试、接口联调、回归测试等场景。
// API 接口测试工作流,使用 HTTPie 作为核心工具。当用户需要测试 API 接口、执行接口调用、生成测试报告、管理接口依赖关系、或在项目中建立标准化的接口测试流程时使用此 skill。适用于 RESTful API 测试、接口联调、回归测试等场景。
交互式生成 GitHub Copilot agents.md 文件的工作流。当用户请求创建代理、构建自定义 Copilot 代理、生成 agents.md 或需要帮助配置 GitHub Copilot 自定义代理时使用。触发短语包括"创建代理"、"生成 agent.md"、"做一个文档代理"、"生成测试代理"等涉及 GitHub Copilot 代理配置的请求。
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
交互式配置 GitHub Actions 通过 SSH 密钥连接 VPS 的向导。当用户需要设置 GitHub Actions 部署到 VPS、配置 CI/CD SSH 连接、生成部署 workflow 时使用此 skill。通过问答方式收集必要信息后生成完整配置。
Framework for building AI agents that work effectively across multiple context windows on complex, long-running tasks. Use when building agents for multi-hour/multi-day projects, implementing persistent coding workflows, creating systems that need state management across sessions, or when an agent needs to make incremental progress on large codebases. Provides initializer and coding agent patterns, progress tracking, feature management, and session handoff strategies.
Specification-Driven Development (SDD) methodology for building software where specifications are executable and drive code generation. Use when users want to: (1) Create feature specifications with /speckit.specify, (2) Generate implementation plans with /speckit.plan, (3) Create executable tasks with /speckit.tasks, (4) Follow test-first, library-first development, or (5) Implement constitutional architecture principles. Essential for structured AI-assisted development workflows.
通过 bird CLI 发布和管理 Twitter/X 内容。使用此 skill 当用户需要:(1) 发布推文或帖子,(2) 回复推文,(3) 读取或获取推文内容,(4) 搜索推文,(5) 查看 mentions/bookmarks/likes,(6) 附带图片或视频发推。触发词包括:发推、tweet、发帖、回复推文、读取推文、Twitter、X 平台。
| name | httpie-api-test |
| description | API 接口测试工作流,使用 HTTPie 作为核心工具。当用户需要测试 API 接口、执行接口调用、生成测试报告、管理接口依赖关系、或在项目中建立标准化的接口测试流程时使用此 skill。适用于 RESTful API 测试、接口联调、回归测试等场景。 |
使用 HTTPie 进行 API 测试的标准化工作流。
HTTPie 比 curl 更优雅。安装:
# macOS
brew install httpie
# Ubuntu/Debian
apt install httpie
# pip
pip install httpie
在项目根目录创建 api-registry.md 作为接口测试的神经中枢。完整格式见 references/api-registry.md。
# API Registry
## Environment
| Name | Value |
|------|-------|
| BASE_URL | https://api.example.com |
| TOKEN | Bearer xxx |
## Endpoints
### [GET] /users - 获取用户列表
- Status: tested
- Depends: none
- Last tested: 2024-01-15
**Request:**
http GET $BASE_URL/users Authorization:$TOKEN
**Expected:** 200, 返回用户数组
---
### [POST] /users - 创建用户
- Status: pending
- Depends: none
**Request:**
http POST $BASE_URL/users Authorization:$TOKEN \
name="张三" email="test@example.com"
**Expected:** 201, 返回新用户对象
在项目根目录创建 api-registry.md,定义环境变量和接口列表。
读取注册表,按依赖顺序执行:
# 设置环境变量
export BASE_URL="https://api.example.com"
export TOKEN="Bearer your-token"
# GET
http GET $BASE_URL/users Authorization:$TOKEN
# POST with JSON body
http POST $BASE_URL/users Authorization:$TOKEN \
name="测试" email="test@example.com"
# 保存响应
http GET $BASE_URL/users Authorization:$TOKEN > response.json
测试完成后更新注册表中的 Status 和 Last tested 字段。
python scripts/generate_report.py api-registry.md -o test-report.md
# Headers
http url Header:Value
# 认证
http -a user:pass url
# 表单提交
http -f POST url field=value
# 仅显示 headers
http --headers url
# 详细模式
http --verbose url
用 Depends 字段声明依赖关系:
### [DELETE] /users/{id} - 删除用户
- Status: pending
- Depends: POST /users
测试时按依赖拓扑排序执行。
| Status | 含义 |
|---|---|
| pending | 待测试 |
| tested | 已通过 |
| failed | 测试失败 |
| blocked | 被阻塞 |
| deprecated | 已废弃 |