backend-gap-mock-plan

backend-gap-mock-plan is a skill for Claude Code, Codex from willnie9/agent-skills. It costs 90 tokens per session (1,858 once invoked), scanned A, original, MIT.

A planning guide that compares a requested feature with existing project code to identify missing server fields, endpoints, database work, shared values, and upload settings. It also defines a mock-first handoff, where the frontend uses temporary responses before connecting to the real server.

In plain words
What is it for?
Use it to turn a feature request or design handoff into an endpoint plan, locate the affected frontend modules, and plan the move from mock data to real APIs.
Why use it?
It reduces duplicate endpoints and prevents invented assumptions about the backend. It makes unclear fields and ownership visible before implementation begins.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to turn a feature request or design handoff into an endpoint plan, locate the affected frontend modules, and plan the move from mock data to real APIs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/willnie9/agent-skills/backend-gap-mock-plan
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add willnie9/agent-skills --skill backend-gap-mock-plan
Clone the repo
git clone --depth 1 https://github.com/willnie9/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for backend-gap-mock-plan

README.md
[![agentmods](https://agentmods.dev/badge/skills/willnie9/agent-skills/backend-gap-mock-plan/github.svg)](https://agentmods.dev/skills/willnie9/agent-skills/backend-gap-mock-plan)
Your own site
<a href="https://agentmods.dev/skills/willnie9/agent-skills/backend-gap-mock-plan"><img src="https://agentmods.dev/badge/skills/willnie9/agent-skills/backend-gap-mock-plan/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for backend-gap-mock-plan

Your own site · 80×15
<a href="https://agentmods.dev/skills/willnie9/agent-skills/backend-gap-mock-plan"><img src="https://agentmods.dev/badge/skills/willnie9/agent-skills/backend-gap-mock-plan.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,858 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.01858
Opus 5.5 $0.00036 $0.00743
Sonnet 5.5 $0.00018 $0.00372
Haiku 4.5 $0.00009 $0.00186

Measured 13d ago against content hash c3e2a1eeb4f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

backend-gap-mock-plan scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

backend-gap-mock-plan/SKILL.md · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.

后端缺口分析 + Mock-First 交付

独立触发与编排

本 skill 可直接读取需求和项目代码,不必先运行 MasterGo 或 module-flow。用户只要方案时,交付 Markdown 即结束;只有用户要求实现时才继续开发。module-flow 可在“设计出包 → 后端方案”或 Mock 开发前置流程中调用。

Purpose

把"一个新功能/新需求"落成可执行的后端接口方案,并约定前后端协作节奏:

  1. 第一步(通常已由别的 skill 完成):设计交付包(MasterGo 用 mastergo-subdsl-package),或用户直接给的需求描述。
  2. 第二步(本 skill):结合项目现有模块代码,逐需求分析后端缺什么,产出一份整合方案 MD,做到"一个需求一个需求地推进"。
  3. 实现节奏:前期前端自己写 mock 跑通页面;后期真实后端接口进来后批量重构(不是打补丁)——因为自写 mock 的字段名/接口路径/结构都可能和真实后端不一致。

本 skill 不臆造后端事实:分不清的地方标"待确认",不硬编字段。

Required Input

以下任一即可开始:

  • 一个设计交付包目录(含 manifest.json / ai-page-context.md / 交互原文),或
  • 一段新需求描述 + 涉及的模块/页面。

Mandatory Workflow

1. 收集改动点,保留原文

从设计包的 ai-page-context.md「交互说明/关联交互说明」区块或 manifest.json 抽取每个改动点的交互原文,逐字保留(不改写、不润色、不猜测)。没有设计包时,把用户需求拆成编号改动点。给每个改动点记下来源图层 ID / 链接(若有)。

2. 定位现有模块代码(避免重复造接口)

用 Explore / Grep / Read 找到相关前端代码,重点看:

  • 优先读取项目配置和现有目录,确定接口、类型、页面的位置;配置缺失时从源码定位,不能把下列示例路径当作所有项目的固定结构。
  • 接口目录(如 src/cache/**/api.ts):现有接口路径与函数签名(哪些能力已存在,别重复提"新接口")。
  • 类型目录(如 src/cache/**/define.ts):现有类型/字段/枚举/常量映射。
  • 页面目录(如 src/views/**):改动点落在哪个页面/弹窗组件。

列出"现状"再谈"改动",方案里要能指到具体文件与字段。

3. 判定后端归属(关键,别搞错改谁)

分清改动落在哪个后端:

  • 本仓库后端:从实际源码确认框架、分层、时间单位、删除策略和数据库约束。例如某项目可能采用 Fastify + route → controller → service → repository,但不能默认其他项目也如此。
  • 外部服务:依据请求封装、代理配置和后端路由判断归属。本仓库没有对应实现时,"后端改动"= 提给外部服务团队的接口变更需求。

判定方法:查 vite.config.* 的 proxy、.env* 里的 host 变量、以及本仓库 backend 是否有对应路由/表。方案开头必须写明这个前提。

4. 逐需求映射到后端方案

每个改动点归类并给出具体规格:

  • 纯前端(无后端/接口/DB/字典改动)——明确写"无后端改动"。
  • 改字段(现有接口请求/响应加字段、语义变更)。
  • 新接口(给出 method + path + req/res 结构)。
  • 新表 / 加列(外部服务或本仓库 DB)。
  • 字典(从项目中查明现有查询函数、接口和编码;区分复用已有码 vs 新增码)。
  • 上传/配置(从项目中查明上传通道、预签名接口和文件类型限制)。

每条尽量给字段名、类型、单位、必填性、示例 JSON。分不清的进"待确认项",并写清阻塞了哪一步。

5. 产出整合方案 MD

写到设计包目录(如 <package>/backend-interface-plan.md),或项目约定位置。结构见 references/plan-template.md:

  1. 关键前提(后端归属、字典/上传通道等)。
  2. 改动点分类速览表(每行:需求 | 前端 | 后端接口 | 新接口 | DB | 字典)。
  3. 建议实施顺序(先做地基类需求,如字段/字典扩展)。
  4. 逐需求详情(交互原文要点 → 前端改动 → 后端接口变更 → DB → 字典 → 待确认)。
  5. 后端改动汇总清单(交给后端的一页纸:改字段/改逻辑、新接口、新表、字典、配置)。

Read the full file on GitHub · 110 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 110 lines · 90 tokens per session scan A c3e2a1eeb4f9

Subscribe to this mod's changes

backend-gap-mock-plan is a skill published in the GitHub repository willnie9/agent-skills (2 stars, last pushed 14d ago), licensed MIT. It adds 90 tokens to every session and 1,858 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-21.

Related

backend-gap-mock-plan compared with skills from other repositories

backend-gap-mock-plan next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
backend-gap-mock-planwillnie9/agent-skillsSkill214d agoMITA90Claude Code, Codex
agent-crdt-synchronizerruvnet/rufloSkill83ktodayMITA25Claude Code
agent-quorum-managerruvnet/rufloSkill83ktodayMITA18Claude Code
agent-raft-managerruvnet/rufloSkill83ktodayMITA18Claude Code
tradecraft-librarysamugit83/redamonSkill3.6ktodayMITA176Claude Code, Codex
architecture-patternsforyourhealth111-pixel/Vibe-SkillsSkill3.9k25d agoApache-2.0A40Claude Code, Codex
proxy-config-skillzeenie-ai/OpenCompanySkill1.1k3d agoMITA20Claude Code