smithery/valec3

frontend-data-http-axios

Standardized guidelines and patterns for Frontend Data Http Axios.

Installation

$ npx skills add smithery/valec3 --skill frontend-data-http-axios

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/valec3 · top by installs.

npx skills add smithery/valec3

Browse all from smithery/valec3

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,090 B
  • docs SUMMARY.md 98 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

Frontend Data Http Axios

When to use this skill

  • Making HTTP requests
  • Configuring Axios
  • Handling request/response

Workflow

  • Create axios instance
  • Add interceptors
  • Handle errors globally
  • Type responses
  • Cancel requests when needed

Instructions

Instance

const api = axios.create({
  baseURL: '/api',
  timeout: 10000
});

Request Interceptor

api.interceptors.request.use(
  (config) => {
    const token = getToken();
    if (token) config.headers.Authorization = `Bearer ${token}`;
    return config;
  },
  (error) => Promise.reject(error)
);

Response Interceptor

api.interceptors.response.use(
  (response) => response,
  (error) => {
    if (error.response?.status === 401) {
      // Logout
    }
    return Promise.reject(error);
  }
);

Resources

  • Use instances for different APIs
  • Add auth token in interceptors
  • Handle common errors globally