Skip to content
Development
Skill

/pdlc-add-service

添加新的微服务

From plugin
pdlc
1538 skills
Install
$ npx -y skills add kanfu-panda/pdlc-skills --skill pdlc-add-service --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/pdlc-add-service

Context preview

The summary Claude sees to decide when to auto-load this skill.

添加新的微服务

SKILL.md

pdlc-add-service.SKILL.md
name: pdlc-add-service
description: 添加新的微服务
argument-hint: <服务名>
allowed-tools: Read, Write, Edit, Glob, Grep, Bash
layer: 3
stage: engineering
produces:
  - backend/services/<service-name>/**
requires: []
next_step: null
terminal_state: null

添加新的微服务

<!-- @include templates/prompts/iron-law.md -->

在项目中添加一个新的后端微服务,并生成完整的目录结构和初始文档。

工作流程

1. 运行 `make new-service` 或直接在 `backend/services/` 下创建服务目录 2. 根据技术栈生成标准目录结构 3. 创建服务的 README.md、CHANGELOG.md 4. 在 `backend/services/<服务名>/docs/` 下创建 api-design.md 初始文档 5. 更新项目 CLAUDE.md 中的服务列表(如需要)

支持的技术栈

  • java/spring: Maven + Spring Boot 标准结构
  • go: Go 标准项目布局(cmd/internal/pkg)
  • python: FastAPI/Flask 项目结构
  • node: Express/NestJS 项目结构

要求

<!-- @include templates/prompts/output-language.md -->

  • 服务名使用小写英文 + 连字符(如 user-service)
  • 创建完成后提示用户下一步编写 API 设计文档

$ARGUMENTS

<!-- @include templates/prompts/handoff.md -->

**本命令的 handoff 输出:**

✅ 新微服务 完成
📦 产出:backend/services/<service-name>/
👉 下一步:(本次流程结束,无后续)
Ships withpdlc

Author: kanfu-panda Repo: github.com/kanfu-panda/pdlc-skills License: MIT pdlc-skills turns AI software engineering into an auditable, on-disk state machine.

Get the whole plugin
Stats
15
Stars
2
Forks
Active
Maintenance
Shell
Language
MIT
License
8d ago
Last commit
4mo ago
Created

Repo: kanfu-panda/pdlc-skills

Other skills on pdlc.