一键导入
redaxios
HTTP clients with redaxios. Use when making HTTP requests, building API clients, or fetching external services in TypeScript.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
HTTP clients with redaxios. Use when making HTTP requests, building API clients, or fetching external services in TypeScript.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | redaxios |
| description | HTTP clients with redaxios. Use when making HTTP requests, building API clients, or fetching external services in TypeScript. |
Import as axios. Always call with one object argument, never .get() / .post().
import axios from "redaxios";
const { data } = await axios<ResponseType>({
method: "GET",
baseURL: "https://api.example.com",
url: "/endpoint",
params: { key: "value" },
headers: { Authorization: "Bearer token" },
});
Inline response generics are fine for trivial responses. Use a named type when the response has domain meaning, is reused, has nested objects/lists, or no longer fits as a short one-line shape.
// Good
const { data } = await axios<SearchResponse>({ ... });
type SearchResponse = {
results: { id: number; title: string; year: number }[];
total: number;
};
// Bad: complex response inline in the generic
const { data } = await axios<{
results: { id: number; title: string; year: number }[];
total: number;
}>({ ... });
Skill writing principles. Use when creating, editing, or reviewing any SKILL.md.
Skill rule extraction and creation. Use when the user says /learn.
Kysely database queries. Use when writing, reviewing, or debugging Kysely selects, mutations, joins, transactions, filters, or aggregates.
Frontend components and Tailwind. Use when creating, reviewing, refactoring, splitting, or organizing React components, shared components, component folders, or Tailwind classes.
TanStack Query in React. Use when implementing or reviewing queries, mutations, invalidation, or query hooks.
Lint and optimize existing skills. Use when the user says /skill-linter.