Web Artifacts Builder
anthropics/skills
Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.
在本模板项目中新增或修改 API 接口、类型定义与 vite-plugin-mock 模拟数据。涉及 getBaseApi、http、baseAPI、mock 目录、分页响应格式时使用。
$ npx skills add lin-97/gi-demo --skill api-mock -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install lin-97/gi-demo api-mock --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/lin-97/gi-demo.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/api-mock .claude/skills/api-mock && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "api-mock" agent skill from https://github.com/lin-97/gi-demo/tree/master/.agents/skills/api-mock into .claude/skills/api-mock/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-mock", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/lin-97/gi-demo/tree/master/.agents/skills/api-mockType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add lin-97/gi-demo --skill api-mock -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install lin-97/gi-demo api-mock --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lin-97/gi-demo.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/api-mock .agents/skills/api-mock && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "api-mock" agent skill from https://github.com/lin-97/gi-demo/tree/master/.agents/skills/api-mock into .agents/skills/api-mock/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-mock", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add lin-97/gi-demo --skill api-mock -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install lin-97/gi-demo api-mock --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lin-97/gi-demo.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/api-mock .cursor/skills/api-mock && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "api-mock" agent skill from https://github.com/lin-97/gi-demo/tree/master/.agents/skills/api-mock into .cursor/skills/api-mock/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-mock", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/lin-97/gi-demo.git --path .agents/skills/api-mock--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add lin-97/gi-demo --skill api-mock -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install lin-97/gi-demo api-mock --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lin-97/gi-demo.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/api-mock .gemini/skills/api-mock && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "api-mock" agent skill from https://github.com/lin-97/gi-demo/tree/master/.agents/skills/api-mock into .gemini/skills/api-mock/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-mock", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install lin-97/gi-demo api-mockInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add lin-97/gi-demo --skill api-mock -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/lin-97/gi-demo.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/api-mock .github/skills/api-mock && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "api-mock" agent skill from https://github.com/lin-97/gi-demo/tree/master/.agents/skills/api-mock into .github/skills/api-mock/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-mock", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add lin-97/gi-demo --skill api-mock -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install lin-97/gi-demo api-mock --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/lin-97/gi-demo.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/api-mock .opencode/skills/api-mock && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "api-mock" agent skill from https://github.com/lin-97/gi-demo/tree/master/.agents/skills/api-mock into .opencode/skills/api-mock/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "api-mock", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
api-mock在本模板项目中新增或修改 API 接口、类型定义与 vite-plugin-mock 模拟数据。涉及 getBaseApi、http、baseAPI、mock 目录、分页响应格式时使用。
API Mock is an agent skill from lin-97/gi-demo. 在本模板项目中新增或修改 API 接口、类型定义与 vite-plugin-mock 模拟数据。涉及 getBaseApi、http、baseAPI、mock 目录、分页响应格式时使用。
Its SKILL.md is about 820 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It works with Vite. The repository describes itself as: A Vue3 Admin Template. The licence is Apache-2.0.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit d1e310a. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
API Mock loads about 824 tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 137 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check noted patterns worth knowing about, such as sudo or a known installer.
- 开发环境 `.env.development`:`VITE_API_PREFIX = '/mock'`Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from lin-97/gi-demo at commit d1e310a, republished under its Apache-2.0 licence (© lin-97). 137 words, ~824 tokens.
.claude/skills/api-mock/SKILL.md (or your agent's skills folder).每个业务模块一个文件,例如 src/apis/system/user.ts:
import { getBaseApi } from '@/apis/base'
import http from '@/utils/http'
export interface ListItem {
id: string
name: string
status: Status
createTime: string
// ...
}
/** 标准 CRUD */
export const baseAPI = getBaseApi<ListItem>({ baseUrl: '/system/user' })
/** 非标准接口单独声明 */
export function getDictDataList(params: { code: string } & Pagination) {
return http.get<PageRes<DictDataItem[]>>('/system/dict/getDictDataList', params)
}| 方法 | HTTP | 路径 |
|---|---|---|
| getList | GET | {baseUrl}/getList |
| getDetail | GET | {baseUrl}/getDetail |
| add | POST | {baseUrl}/add |
| update | POST | {baseUrl}/update |
| delete | POST | {baseUrl}/delete |
列表参数:{ page, size, ...filters }
删除参数:{ ids: string[] }
// 单条/布尔
interface ApiRes<T> {
code: number
data: T
message: string
success: boolean
}
// 分页列表 data 结构
interface PageRes<T> {
records: T
total: number
}useTable 同时兼容 data 为数组或 PageRes 两种形态。
src/utils/http.ts,baseURL = import.meta.env.VITE_API_PREFIX.env.development:VITE_API_PREFIX = '/mock'token 字段(getToken())success === false 时 Message/Notification 提示并 reject/loginimport http from '@/utils/http'
http.get<PageRes<Item[]>>('/path', { page: 1, size: 10 })
http.post<boolean>('/path', { ids: ['1'] })在 mock/_data/ 下维护 JSON/TS 数据,如 system_dict.ts。
在 mock/system/(或对应模块)新建文件:
import { defineMock } from '../_base'
import { getBaseApi, getDelayTime, resultError, resultSuccess } from '../_utils'
export default defineMock([
...getBaseApi({
baseUrl: '/system/xxx',
getListData: () => resultSuccess({ total: list.length, records: list }),
getDetailData: (query) => {
const obj = list.find((i) => i.id === query.id)
return obj ? resultSuccess(obj) : resultError(null, '未找到', 400)
}
}),
{
url: '/system/xxx/customAction',
method: 'get',
timeout: getDelayTime(),
response: ({ query }) => {
// 筛选、分页后返回
return resultSuccess({ total, records })
}
}
])| 函数 | 用途 |
|---|---|
resultSuccess(data) | { code:200, success:true, data, message } |
resultError(data, message, code?) | 失败响应 |
getDelayTime() | 50–300ms 随机延迟 |
getBaseApi({ baseUrl, getListData, ... }) | 生成标准 CRUD mock |
defineMock 会自动给 url 加前缀 /mock,与 VITE_API_PREFIX 对应。
确保 mock 文件被 mock/index 或同级聚合引入(遵循现有 mock/system/*.ts 模式)。
src/apis/{module}/{name}.ts:类型 + baseAPI 或自定义方法mock/{module}/{name}.ts:与接口路径一致{ total, records }Status、Gender 等全局类型对齐useTable({ listAPI, deleteAPI }) 接入useTable({
listAPI: (page) => getDictDataList({
...page,
code: dictCode.value,
name: query.name || undefined,
status: query.status === '' ? undefined : query.status
}),
immediate: false
})immediate: false 用于依赖左侧选中项后再 search() 的场景。
© lin-97, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/api-mock of lin-97/gi-demo.
Open the folder on GitHubat commit d1e310a
API Mock next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| API Mock this skilllin-97/gi-demo | 188 | — | ~824 | Automated safety check: Notes | Apache-2.0 | |
| Web Artifacts Builderanthropics/skills | 180k | 41 repos | ~769 | Automated safety check: Pass | Apache-2.0 | |
| React Router Developmentremix-run/react-router | 57k | 1 repos | ~1.5k | Automated safety check: Pass | MIT | |
| Chakra UI v3 Builderchakra-ui/chakra-ui | 41k | — | ~3.1k | Automated safety check: Pass | MIT | |
| Vuetify Playgroundvuetifyjs/vuetify | 41k | — | ~730 | Automated safety check: Pass | Custom licence | |
| Creative Tim UI Blockscreativetimofficial/ui | 12k | — | ~2.1k | Automated safety check: Notes | MIT |
anthropics/skills
Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.
remix-run/react-router
Guides work on React Router apps by first identifying whether the app uses Framework, Data or Declarative mode, then loading the matching reference and the installed package docs.
chakra-ui/chakra-ui
Builds responsive, accessible Chakra UI v3 components and layouts, sets up Chakra in new or existing projects, and designs themes with tokens, semantic tokens and recipes.
vuetifyjs/vuetify
Maintains the Vuetify repo's local Playground.vue so contributors get a realistic reproduction and a short demo they can paste into a pull request description.
creativetimofficial/ui
Helps install, generate and review Creative Tim UI blocks: shadcn/ui-based React and Tailwind sections that follow a restrained, production-minded design philosophy.
supabase/supabase
Vitest API and config reference (Jest-compatible) — mocking with vi., spies, fake timers, coverage configuration, fixtures, snapshots, and test filtering.
Works with
在本模板项目中新增或修改 API 接口、类型定义与 vite-plugin-mock 模拟数据。涉及 getBaseApi、http、baseAPI、mock 目录、分页响应格式时使用。. API Mock is an agent skill from lin-97/gi-demo.
Run `npx skills add lin-97/gi-demo --skill api-mock -a claude-code`. Or copy the skill folder (.agents/skills/api-mock in lin-97/gi-demo) into .claude/skills/api-mock in your project. Claude Code loads it when a task matches its description.
Run `npx skills add lin-97/gi-demo --skill api-mock -a codex`. Or copy the skill folder (.agents/skills/api-mock in lin-97/gi-demo) into .agents/skills/api-mock in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add lin-97/gi-demo --skill api-mock -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/api-mock, .gemini/skills/api-mock, .github/skills/api-mock and .opencode/skills/api-mock in your project.
SKILL.md names no scripts, command-line tools or credentials: API Mock is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.
API Mock is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 824 tokens (SKILL.md is roughly 3.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with API Mock: Web Artifacts Builder (anthropics/skills, 180k stars), React Router Development (remix-run/react-router, 57k stars), Chakra UI v3 Builder (chakra-ui/chakra-ui, 41k stars) and Vuetify Playground (vuetifyjs/vuetify, 41k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
lin-97 (a GitHub user) maintains it in lin-97/gi-demo, which has 188 GitHub stars. The repository holds 3 skills in this directory. The repository was last updated on June 12, 2026.
Source: lin-97/gi-demo on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.