ワンクリックで
fetch-api-data
This skill covers patterns for fetching and managing API data. Trigger: When working with API interactions in the frontend.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
This skill covers patterns for fetching and managing API data. Trigger: When working with API interactions in the frontend.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Four quality gate checklists for frontend: baseline visual, accessibility, metadata/SEO, and motion performance. Post-implementation quality gates. Trigger: When reviewing UI changes, before merging frontend PRs, during sdd-verify.
Browser-based UI verification using Playwright. Page Object Model, selector best practices, visual regression, network interception, and MCP integration. Trigger: When writing E2E tests, verifying UI changes, or setting up Playwright.
Interactive tutorial-style lessons for custom skills. Invoke /powerup <skill> for a guided walkthrough with examples, exercises, and knowledge checks. Trigger: When user says "powerup", "tutorial", "teach me", or wants to learn a skill interactively.
Self-installing markdown recipes for skills. Each skill can include an INSTALL.md that an agent reads and executes to set up dependencies, MCP servers, or config. Trigger: When installing a skill with INSTALL.md, or creating skills with setup requirements.
This skill covers the implementation of authentication routes. Trigger: When setting up auth-related endpoints in the backend.
This skill covers AES-256-GCM encryption for provider API keys. Trigger: Load this skill when handling crypto operations for API keys.
| name | fetch-api-data |
| description | This skill covers patterns for fetching and managing API data. Trigger: When working with API interactions in the frontend. |
| license | Apache-2.0 |
| metadata | {"author":"repoforge","version":"1.0","complexity":"medium","token_estimate":350,"dependencies":[],"related_skills":[],"load_priority":"high"} |
This skill covers patterns for fetching and managing API data.
Trigger: When working with API interactions in the frontend.
| Task | Pattern |
|---|---|
| Fetch API data | fetchApi |
| Start a generation process | startGeneration |
fetchApi to retrieve data from the API.startGeneration to initiate a data generation process.Use fetchApi to retrieve data from the API, handling errors with ApiError.
import { fetchApi, ApiError } from './lib/api';
async function getData() {
try {
const data = await fetchApi('/endpoint');
console.log(data);
} catch (error) {
if (error instanceof ApiError) {
console.error('API Error:', error.message);
}
}
}
Utilize startGeneration to initiate a data generation process, allowing for real-time updates.
import { startGeneration } from './lib/api';
function initiateGeneration() {
startGeneration({ type: 'example' })
.then(response => console.log('Generation started:', response))
.catch(error => console.error('Error starting generation:', error));
}
docker-compose up
python repoforge/cli.py fetch-data
Ignoring ApiError can lead to unhandled exceptions and poor user experience.
// BAD
async function getData() {
const data = await fetchApi('/endpoint'); // No error handling
console.log(data);
}