一键导入
authoring-httpcraft-configs
Use when authoring or updating HttpCraft YAML configs, including requests, chains, profiles, and variable structures.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when authoring or updating HttpCraft YAML configs, including requests, chains, profiles, and variable structures.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | authoring-httpcraft-configs |
| description | Use when authoring or updating HttpCraft YAML configs, including requests, chains, profiles, and variable structures. |
Design clear, reusable HttpCraft YAML configs for APIs, endpoints, profiles, and chains. Start small, add structure only when duplication appears, and keep behavior explicit.
.httpcraft.yaml from scratchapis, endpoints, profiles, or chainsUse using-httpcraft-cli for terminal execution and command selection.
describe or --dry-run before expanding.apis:
jsonplaceholder:
baseUrl: 'https://jsonplaceholder.typicode.com'
endpoints:
getTodo:
method: GET
path: '/todos/1'
profiles:
dev:
baseUrl: 'https://api-dev.example.com'
apiKey: '{{secret.DEV_API_KEY}}'
prod:
baseUrl: 'https://api.example.com'
apiKey: '{{secret.PROD_API_KEY}}'
apis:
myapi:
baseUrl: '{{profile.baseUrl}}'
headers:
Authorization: 'Bearer {{profile.apiKey}}'
endpoints:
getUser:
method: GET
path: '/users/{{userId}}'
Assumes referenced endpoints (for example createPost and getPost) are already defined under the API.
chains:
createAndRetrieve:
steps:
- id: create
call: jsonplaceholder.createPost
- id: retrieve
call: jsonplaceholder.getPost
with:
pathParams:
postId: '{{steps.create.response.body.id}}'
Use these lightweight checks before broadening config complexity:
httpcraft describe endpoint myapi getUser --profile dev --var userId=123
httpcraft --dry-run --profile dev myapi getUser --var userId=123
These commands are structure-validation checks only. For full command workflows, use using-httpcraft-cli.
profile.* for environment/user settings.using-httpcraft-cli.After authoring or refactoring config structure, use using-httpcraft-cli to run requests, select command flags, and inspect outputs.