Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

sdd-initSDD 初始化

Agent Skill

sdd-init 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

269

周安装

11

GitHub Stars

20

下载量

87
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:sdd-init(SDD 初始化)
来源仓库:https://github.com/sivaprasadreddy/sdd-skills
仓库路径:skills/sdd-init
安装命令:
npx skills add https://github.com/sivaprasadreddy/sdd-skills --skill sdd-init
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sivaprasadreddy/sdd-skills --skill sdd-init

简介

sdd-init 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 确认具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 注意该技能当前分类为研究检索,实际功能以来源仓库文档为准。

SKILL.md

SDD: Init docs/project.md

You are a senior software architect analysing a project to produce its context document.

Pre-conditions

Check whether docs/project.md already exists.

If it exists: Ask the user:

"docs/project.md already exists. Do you want to regenerate it? This will overwrite the current file."

Wait for confirmation. If the user says no, stop and tell them to edit the file manually. If the user confirms, proceed with the full process below.

If it does not exist: Proceed immediately.


Process

1. Detect the Tech Stack

Scan the project root and source tree for build and configuration files to auto-detect as much as possible:

What to findWhere to look
Language & versionpom.xml (<java.version>), build.gradle/build.gradle.kts (jvmToolchain, sourceCompatibility), .java-version, pyproject.toml, package.json (engines), go.mod, Cargo.toml
Frameworkpom.xml / build.gradle dependencies — Spring Boot, Quarkus, Micronaut, FastAPI, Express, Django, Rails, etc.
Build toolPresence of pom.xml (Maven), gradlew (Gradle), package.json (npm/yarn/pnpm), Makefile, pyproject.toml (Poetry/Hatch)
DatabaseDependencies or config files — spring.datasource in application.properties/application.yml, DATABASE_URL in .env.example, docker-compose services
ORM / data accessDependencies — Hibernate/JPA, Spring Data, SQLAlchemy, Prisma, TypeORM, GORM, Diesel
MigrationsDependencies or directories — Flyway, Liquibase, Alembic, db/migrate/ (Rails), Prisma migrate
MessagingDependencies or docker-compose services — Kafka, RabbitMQ, SQS, Redis Streams
Testing librariesTest-scope dependencies — JUnit 5, Mockito, Testcontainers, RestAssured, pytest, Jest, Vitest, RSpec
Other librariesRemaining notable dependencies — Spring Security, MapStruct, Lombok, Resilience4j, OpenAPI, etc.

Read docker-compose.yml or docker-compose.yaml if present — it often reveals the database, messaging, and cache stack.

2. Detect Architecture & Conventions

Explore the source tree structure:

  • Identify the top-level source layout (e.g., src/main/java, src/, app/, lib/)
  • Infer the architecture pattern from package/directory names:

- Packages named controller, service, repository → Layered - Packages named domain, application, infrastructure, adapter → Hexagonal / Clean - Packages named after business modules (e.g., order, payment, user) each containing layers → Modular Monolith - Multiple top-level services each with their own build file → Microservices

  • Identify the base package name (e.g., com.example.myapp)
  • Look for a centralised error handler (e.g., GlobalExceptionHandler, middleware, error boundary, or equivalent)
  • Look for a base REST path prefix in controllers or config (e.g., /api/v1)
  • Note any security config (e.g., SecurityConfig, auth annotations, JWT setup)

3. Ask Clarifying Questions

Some information cannot be reliably detected. Ask the user the following questions in a single grouped message — do not ask them one at a time:

I've analysed the project. Before I write docs/project.md, I need a few details:

1. **Project name and mission:** What does this application do, and who uses it?
   (1-2 sentences is enough — this is the "why we exist" paragraph.)

2. **Architecture pattern:** Based on the source layout, I think this uses [detected pattern].
   Is that right, or would you describe it differently?

3. **Key conventions:** Are there any conventions AI Agent should follow that aren't obvious from the code?
   For example: naming rules, auth requirements per endpoint, error response format, pagination style.

4. **Approved dependencies:** Are there any constraints on what libraries can be added?
   (If not, I'll list the detected dependencies as approved by default.)

Adjust or omit questions 2–4 if you already have high confidence from the codebase scan.

Wait for the user's answers before writing the file.

4. Write docs/project.md

Create docs/ if it does not exist. Write docs/project.md with this structure, filled in from your analysis and the user's answers:

# Project: <Name>

## Mission
<One paragraph on what this application does and who it serves.>

## Tech Stack
- Language: <language and version>
- Framework: <framework and version>
- Build tool: <tool>
- Database: <database and version if known>
- ORM: <ORM / data access library>
- Migrations: <migration tool, or "none">
- Messaging: <messaging system, or "none">
- Testing: <testing libraries>
- Other: <other notable libraries>

## Architecture
<Describe the pattern: Layered / Hexagonal / DDD / Modular Monolith / Microservices>
<Describe the package structure with an example, e.g.:>
<  com.example.<module>.<layer>  →  com.example.user.controller, com.example.user.service>

## Conventions
- Package naming: <convention>
- REST base path: <base path, e.g. /api/v1>
- Error handling: <mechanism, e.g. centralised exception handler, error middleware, global error boundary>
- Authentication: <default auth requirement, e.g. all endpoints require auth unless annotated @Public>
- <Any other conventions the user provided>

## Approved Dependencies
<Bulleted list of libraries approved for use. Anything outside this list requires a flag before adding.>

Do not leave any placeholder text (angle-bracket tokens) in the output — fill every field or omit the line if genuinely unknown.

5. Confirm

After writing the file:

  • Show the user a summary of what was detected automatically vs. what they provided
  • Tell them to review docs/project.md and update anything that looks wrong
  • Remind them to keep this file up to date as the stack evolves — it is the primary input for all other SDD skills
  • Prompt them to run /sdd-feature <feature description> to start their first feature

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.79%
按下载量换算31

Claude

29.85%
按下载量换算26

Cursor

21.04%
按下载量换算18

Gemini CLI

10.2%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills