pdlc-api-mock SKILL.md skillA
pdlc-api-mock from kanfu-panda/pdlc-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add kanfu-panda/pdlc-skills/pdlc-api-mock@git:20261012.035af0dPins git:20261012.035af0d in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- kanfu-panda/pdlc-skills
- Path
skills/pdlc-api-mock/SKILL.md- Versions recorded
- 4
- Latest version
- git:20261012.035af0d, committed Oct 12, 2026
- First version recorded
- May 7, 2026
- Size
- 3,372 bytes
- Repository stars
- 18
- License
- MIT
按 API 设计文档生成 Mock 数据与 Mock 服务配置,供前端联调.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# API Mock 数据生成
<!-- @include templates/prompts/iron-law-tool.md(已内联于下方,无需另读) -->
⛔ **IRON LAW · 不可违反的硬门禁(工具型命令)**
本命令不是主链路上的阶段:**不追加 `history`,不改 `current_stage` / `next_step` / `last_phase_result`**,也不为此分配功能ID。以下规则不可协商:
1. **文件必须落盘**:正文要求创建的文件必须作为实际文件写入磁盘,不可仅在对话中输出(只要求在对话里输出的,照正文办)。
2. **自检必须执行**:产出后按本命令的自检项逐项核对,不得以"已经很好了"为由跳过。
3. **防循环**:修复只做一次,不递归。修不了的问题记进报告,继续往下走。
**违反任一条 = 立即中止当前命令,输出违规详情,等待人工介入。**
<!-- @include-end templates/prompts/iron-law-tool.md -->
根据 API 设计文档生成 Mock 数据和 Mock 服务配置,供前端联调使用。
## 工作流程
1. **阅读 API 设计**: 阅读 `docs/02_design/api/` 下的 API 设计文档
2. **生成 Mock 数据**: 为每个接口生成符合数据模型的 Mock 响应
3. **生成 Mock 配置**: 根据技术栈生成对应的 Mock 服务文件
4. **输出到指定位置**: 前端应用的 `mock/` 或 `src/services/__mocks__/` 目录
## Mock 数据要求
- 数据要贴近真实场景,不要用 "test1"、"aaa" 之类的无意义数据
- 列表接口至少生成 5-10 条数据
- 覆盖各种状态:正常数据、边界数据、空数据
- 包含分页信息
- 错误响应也要生成 Mock
## 输出格式
```json
{
"code": 0,
"message": "成功",
"data": { ... }
}
```
## 要求
- Mock 数据中的中文内容要有实际含义
- 时间字段使用合理的时间范围
- ID 字段使用合理的格式(UUID/数字)
- 生成完成后告知前端同学如何启用 Mock 服务
目标接口: $ARGUMENTS
<!-- @include templates/prompts/handoff.md(已内联于下方,无需另读) -->
## 段四:交接(Handoff)
命令完成后必须输出以下格式的最终消息:
```
✅ <阶段名> 完成:<主要产出物路径>
📊 自检:<通过数>/<总数> 通过(若有未通过,附要点)
…Read the whole file at its exact version.
How to install
mdr add kanfu-panda/pdlc-skills/pdlc-api-mock@sha256:bb1f808ff7458ab4The line at the top of this page pins the label git:20261012.035af0d, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_uhrhxus5dvecgiyr)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 4 versions of this file, between May 7, 2026 and Oct 12, 2026, about one every 53 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261012.035af0d latest | 2026-10-12 | 035af0d | 3,372 B | A | view · diff |
| git:20261008.f546207 | 2026-10-08 | f546207 | 3,370 B | A | view · diff |
| git:20260923.6b87696 | 2026-09-23 | 6b87696 | 3,761 B | A | view · diff |
| git:20260507.ba956b7 | 2026-05-07 | ba956b7 | 1,580 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3372 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
kanfu-panda/pdlc-skills · 18 stars · license MIT · pushed 2026-10-13 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_uhrhxus5dvecgiyr GET https://markdownregistry.com/api/v1/resolve?ref=kanfu-panda/pdlc-skills/pdlc-api-mock GET https://markdownregistry.com/api/v1/blob/bb1f808ff7458ab4a39304d1cb862bb586c4549aa9641e347a7ca6c97fed6229
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.