pdlc-arch

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

An architecture review and overview generator for a software project. It examines services, communication, databases, monitoring, dependencies, and scaling, then maintains one current ARCHITECTURE.md overview.

In plain words
What is it for?
Use it to review backend and frontend architecture, inspect service relationships and call paths, identify issues such as unclear ownership or circular dependencies, and update docs/ARCHITECTURE.md.
Why use it?
It gives the team a single place to understand how the system is currently arranged and where risks may exist. It also separates the current overview from feature-specific design records and flags old archived analyses.

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 review backend and frontend architecture, inspect service relationships and call paths, identify issues such as unclear ownership or circular dependencies, and update docs/ARCHITECTURE.md.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kanfu-panda/pdlc-skills/pdlc-arch
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-arch
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-arch

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/kanfu-panda/pdlc-skills/pdlc-arch"><img src="https://agentmods.dev/badge/skills/kanfu-panda/pdlc-skills/pdlc-arch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,002 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00030 $0.01002
Opus 5 $0.00015 $0.00501
Sonnet 5 $0.00006 $0.00200
Haiku 4.5 $0.00003 $0.00100

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

Security

Grade A, and why

pdlc-arch 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-arch/SKILL.md · 102 lines

What it actually says

架构分析

对当前项目架构进行全面分析,输出架构评估报告。

分析维度

1. 服务拆分合理性

  • 各微服务的职责边界是否清晰
  • 是否存在循环依赖
  • 服务粒度是否合适(过大/过小)
  • 数据归属是否明确

2. 通信机制

  • 服务间通信方式(同步REST/gRPC、异步消息队列)
  • 是否存在分布式事务问题
  • 接口版本管理策略
  • 错误传播和容错机制

3. 数据架构

  • 数据库拆分策略(每服务独立数据库 vs 共享)
  • 数据一致性方案
  • 缓存策略
  • 数据备份与恢复

4. 可观测性

  • 日志规范(结构化日志、链路追踪ID)
  • 监控指标(RED指标:Rate/Errors/Duration)
  • 告警策略
  • 分布式追踪

5. 可扩展性

  • 水平扩展能力
  • 负载均衡策略
  • 容量规划

工作流程

架构总览是 surface 型产物docs/ARCHITECTURE.md 描述"系统当前长什么样",就地覆盖更新,不按日期累积多份文件。演进历史靠 git log docs/ARCHITECTURE.md 追溯。这与 per-feature 的 docs/02_design/architecture/F-xxx-arch.md(ledger 型,记录"为某个 feature 为什么改架构")分工互补。

  1. 扫描 backend/frontend/ 下的所有服务和应用
  2. 阅读 docs/02_design/architecture/ 下的 per-feature 架构 ledger(若有)
  3. 分析代码中的依赖关系和调用链路
  4. 遗留检测:若发现旧版按日期命名的 *-arch-analysis.md(散落在 docs/02_design/architecture/ 或旧 review 目录,即 v1.0 的 v1..v5 累积模式),提示并移到 docs/.archive/architecture/,以最新一份作为 ARCHITECTURE.md 的起点
  5. 【必须创建/更新文件】 就地生成/覆盖 docs/ARCHITECTURE.md(参考 templates/architecture-overview-template.md

⚠️ 必须写入磁盘,不可仅在对话中输出。

输出格式

文件路径:docs/ARCHITECTURE.md(固定,就地覆盖)

文档顶部包含 PDLC 追溯头 + surface 标记

<!-- artifact_type: surface -->
<!-- PDLC-TRACE -->
<!-- 功能名称: 架构总览 -->
<!-- 阶段: design -->
<!-- 创建时间: <执行时的实际 ISO 8601 时间戳> -->

报告内容

  • 架构全景图(文本描述 / mermaid)
  • 服务拆分 / 通信 / 数据 / 可观测性 / 可扩展性 各维度评分(1-5)
  • 问题清单与改进建议

创建后验证:确认 docs/ARCHITECTURE.md 已存在且为本次内容

要求

  • 评价要客观,给出依据
  • 建议要可操作,标注优先级
  • surface 铁律:不创建带日期/版本号的架构文件,永远就地覆盖 ARCHITECTURE.md

$ARGUMENTS

本命令的 handoff 输出:

✅ 架构总览已更新:docs/ARCHITECTURE.md
📦 surface 型就地覆盖(历史见 git log docs/ARCHITECTURE.md)
👉 下一步:(本次流程结束,无后续)
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 · 102 lines · 30 tokens per session scan A cc1bee2d4ea1

Subscribe to this mod's changes

pdlc-arch is a skill published in the GitHub repository kanfu-panda/pdlc-skills (13 stars, last pushed yesterday), licensed MIT. It adds 30 tokens to every session and 1,002 once invoked, about $0.0002 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