pdlc-design

pdlc-design is a skill for Claude Code from kanfu-panda/pdlc-skills. It costs 20 tokens per session (1,488 once invoked), scanned A, original, MIT.

A technical design document generator that turns an existing product requirements document into API, architecture, or database designs. A product requirements document explains what a feature should do before implementation begins.

In plain words
What is it for?
Use it to create design documents in the appropriate docs directory, based on a requirements file or a feature name, while following project templates and standards.
Why use it?
It keeps technical decisions connected to the stated requirements and checks that the required requirements document exists first. This reduces the risk of designing a feature from incomplete or undocumented needs.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the pdlc plugin — 38 skills shipped together

Good fit Use it to create design documents in the appropriate docs directory, based on a requirements file or a feature name, while following project templates and standards.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kanfu-panda/pdlc-skills/pdlc-design
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 kanfu-panda/pdlc-skills --skill pdlc-design
Clone the repo
git clone --depth 1 https://github.com/kanfu-panda/pdlc-skills

Made for: Claude Code.

Or install pdlc, the plugin that ships this one along with the rest of its 38 skills.

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 pdlc-design

README.md
[![agentmods](https://agentmods.dev/badge/skills/kanfu-panda/pdlc-skills/pdlc-design/github.svg)](https://agentmods.dev/skills/kanfu-panda/pdlc-skills/pdlc-design)
Your own site
<a href="https://agentmods.dev/skills/kanfu-panda/pdlc-skills/pdlc-design"><img src="https://agentmods.dev/badge/skills/kanfu-panda/pdlc-skills/pdlc-design/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 pdlc-design

Your own site · 80×15
<a href="https://agentmods.dev/skills/kanfu-panda/pdlc-skills/pdlc-design"><img src="https://agentmods.dev/badge/skills/kanfu-panda/pdlc-skills/pdlc-design.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,488 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.00020 $0.01488
Opus 5 $0.00010 $0.00744
Sonnet 5 $0.00004 $0.00298
Haiku 4.5 $0.00002 $0.00149

Measured 11d ago against content hash b5def76dd262, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

pdlc-design 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 11d 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.

skills/pdlc-design/SKILL.md · 117 lines

How it starts

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

创建设计文档

根据已有的需求文档,在 docs/02_design/ 对应子目录下创建技术设计文档。

输入解析

$ARGUMENTS 中判断输入类型:

  • 文件路径(以 /./ 开头,或以 .md.txt.pdf 结尾,或实际存在的文件):直接读取该文件作为需求来源,跳过 PRD 搜索
  • 功能名关键词(默认):按下方守卫检查搜索 PRD

PDLC 前置检查(必须执行,不可跳过)

  1. 若输入为文件路径,直接读取文件内容作为需求,提取功能名和功能ID(如有),跳到步骤 4
  2. 从用户输入中提取功能名称关键词
  3. docs/01_requirements/prd/ 目录下搜索包含该关键词的 PRD 文档
    • 匹配新格式:F<日期>-<编号>-*<关键词>*-prd.md
    • 匹配旧格式:YYYYMMDD-*<关键词>*-prd.md
    • 同时检查文件内容中是否包含该关键词
  4. 未找到 → 输出以下信息后立即停止,不继续执行
    ⛔ PDLC 守卫:未找到与「<功能名>」相关的 PRD 文档。
    设计文档必须基于已有的 PRD。请先运行:
    👉 /pdlc-prd <需求描述>
    
  5. 找到 → 提取功能ID(如 F20260326-090000),读取该 PRD 内容,继续执行

输出位置

  • API 设计 → docs/02_design/api/
  • 架构设计 → docs/02_design/architecture/
  • 数据库设计 → docs/02_design/database/

要求

  1. 先阅读找到的 PRD 文档,全面理解需求
  2. 参考 templates/api-design-template.md 获取 API 设计模板格式
  3. 参考 docs/00_standards/ 目录了解项目规范(未命中 → 提示 consider /pdlc-standard add <category>/<topic>
  4. 文件名格式: <功能ID>-<功能名>-<类型>.md(如 F20260326-090000-user-auth-api.md),类型可以是 api / arch / db
    • 若 PRD 为旧格式无功能ID,则使用旧格式 YYYYMMDD-<功能名>-<类型>.md
  5. 文档顶部必须包含 PDLC 追溯头
    <!-- PDLC-TRACE -->
    <!-- 功能ID: F20260326-090000 -->
    <!-- 功能名称: user-auth -->
    <!-- 阶段: 设计 -->
    <!-- 前置文档: docs/01_requirements/prd/F20260326-090000-user-auth-prd.md -->
    
  1. 必须包含:概述、接口/架构/表结构定义、错误码/异常处理、数据模型

  2. API 设计需遵循 RESTful 规范,统一响应格式 { code, message, data }

  3. 设计文档自审与自动修复(每份设计文档创建后立即执行,不可跳过):

    • 重新阅读刚创建的设计文档,对照 PRD 逐项检查以下质量门禁:

    PRD 一致性检查

    • PRD 中每条 P0/P1 功能是否都有对应的设计覆盖(接口/表结构/架构组件)
    • 接口的入参/出参是否与 PRD 描述的功能行为一致
    • 错误码是否覆盖了 PRD 中列出的异常场景

    API 设计检查(如有 API 文档):

    • 接口 URL 命名是否遵循 RESTful 规范(名词复数、层级清晰)
    • 请求/响应结构是否完整(无缺失字段)
    • 统一响应格式 { code, message, data } 是否一致执行
    • 分页接口是否有 page/pageSize/total 参数
    • 鉴权方式是否明确说明

    数据库设计检查(如有 DB 文档):

    • 每张表是否有主键定义
    • 外键关系是否与 ER 图一致
    • 常用查询字段是否有索引设计
    • 是否有 created_atupdated_at 等审计字段
    • 迁移 DDL 是否完整可执行

Read the full file on GitHub · 117 lines

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. 11d ago First seen · 117 lines · 20 tokens per session scan A b5def76dd262

Subscribe to this mod's changes

pdlc-design is a skill published in the GitHub repository kanfu-panda/pdlc-skills (13 stars, last pushed yesterday), licensed MIT. It adds 20 tokens to every session and 1,488 once invoked, about $0.0001 per session on Opus 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-08-31.

Related

Other skills, from other repositories

postgres-database-migration

Use this skill for planning, testing, and safely executing PostgreSQL schema migrations — especially when working with production data or shared databases. Trigger when user asks to: Test a schema migration before applying it to production Add, remove, or rename columns safely on a live table Change a column's data…

timescale/pg-aiguide · 220 tokens

setup-timescaledb-hypertables

Use this skill when creating database schemas or tables for Timescale, TimescaleDB, TigerData, or Tiger Cloud, especially for time-series, IoT, metrics, events, or log data. Use this to improve the performance of any insert-heavy table. Trigger when user asks to: Create or design SQL schemas/tables AND…

timescale/pg-aiguide · 219 tokens

design-postgis-tables

Comprehensive PostGIS spatial table design reference covering geometry types, coordinate systems, spatial indexing, and performance patterns for location-based applications.

timescale/pg-aiguide · 31 tokens

migrate-postgres-tables-to-hypertables

Use this skill to migrate identified PostgreSQL tables to Timescale/TimescaleDB hypertables with optimal configuration and validation. Trigger when user asks to: Migrate or convert PostgreSQL tables to hypertables Execute hypertable migration with minimal downtime Plan blue-green migration for large tables Validate…

timescale/pg-aiguide · 181 tokens

pgvector-semantic-search

Use this skill for setting up vector similarity search with pgvector for AI/ML embeddings, RAG applications, or semantic search. Trigger when user asks to: Store or search vector embeddings in PostgreSQL Set up semantic search, similarity search, or nearest neighbor search Create HNSW or IVFFlat indexes for vectors…

timescale/pg-aiguide · 190 tokens

find-hypertable-candidates

Use this skill to analyze an existing PostgreSQL database and identify which tables should be converted to Timescale/TimescaleDB hypertables. Trigger when user asks to: Analyze database tables for hypertable conversion potential Identify time-series or event tables in an existing schema Evaluate if a table would…

timescale/pg-aiguide · 184 tokens