Token导航 LogoToken导航TokenDH.com
开发敏感数据github未标认证来源可访问许可证需确认审计提醒

gsdl-document-decisionsgsdl 文件决定

Agent Skill

gsdl-document-decisions 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

447

周安装

19

GitHub Stars

3

下载量

157
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/nsantini/gsdl --skill gsdl-document-decisions

简介

gsdl-document-decisions 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态、代码变更或协作事项进行整理时使用。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

GSDL Document Decisions

Analyzes what was built during a GSDL project, captures the key decisions and architecture changes, saves them to a markdown file, and optionally publishes to Slite or Notion.

Inputs

  • PROJECT_NAME — the project name (kebab-case)
  • WORKSPACE_ROOT — absolute path to workspace root
  • PRD_PATH — relative path to the PRD file (from progress.md)
  • TASKS_PATH — relative path to the task list file (from progress.md)

Step 1 — Gather Project Context

Read the following files from disk:

  1. [WORKSPACE_ROOT]/[PRD_PATH] — the original PRD (goals, requirements, non-goals)
  2. [WORKSPACE_ROOT]/[TASKS_PATH] — the completed task list (what was planned and built)

Step 2 — Analyze Git History

Run the following to get commits made during this project. Use the task list to estimate the date range (oldest unchecked task → most recent commit), or simply retrieve all commits from the first gsdl commit for this project onward.

git log --oneline --no-merges

Then for each commit that is part of this project (identified by the [N.0] prefix in the commit message or by matching the project's parent task titles), run:

git show --stat [COMMIT_HASH]

Collect:

  • Commit messages and their bullet points
  • Files created, modified, or deleted

Also run:

git diff HEAD~[N] HEAD --name-status

where N is the number of project commits, to get the full file-change summary across the entire project.


Step 3 — Extract Decisions and Changes

Using the PRD, task list, commit messages, and file diffs, synthesize the following:

Decisions

Identify decisions made during implementation that deviate from or elaborate on the PRD, or that represent a meaningful architectural/design choice. Look for:

  • Libraries or frameworks chosen (and why, if evident from commit messages or code)
  • Patterns adopted (e.g., "used repository pattern", "chose REST over GraphQL")
  • Trade-offs or constraints honored
  • Things explicitly NOT done (non-goals honored, scope cuts)
  • Any tasks that were modified, added, or skipped during execution

Architecture Changes

Identify structural changes to the codebase:

  • New directories or modules created
  • New dependencies added (check package.json, requirements.txt, go.mod, etc.)
  • New configuration files introduced
  • Significant refactors to existing structure
  • Integration points added (APIs, services, databases)

Step 4 — Generate the Document

Write a structured markdown file to:

[WORKSPACE_ROOT]/.planning/[PROJECT_NAME]/decisions-[PROJECT_NAME].md

Use this format:

# [Project Name] — Decisions & Architecture

> Generated by GSDL on [YYYY-MM-DD]
> PRD: [prd file name]
> Tasks: [tasks file name]

## Summary

[2–4 sentences describing what was built, the core approach taken, and any major constraints honored.]

## Key Decisions

### [Decision Title]
**What:** [What was decided]
**Why:** [Rationale, if evident from code/commits/PRD]
**Impact:** [Files, modules, or behaviors affected]

[Repeat for each significant decision — aim for 3–8 decisions]

## Architecture Changes

### New Structure
[Bulleted list of new directories, modules, or files created with one-line descriptions]

### Dependencies Added
[Bulleted list of new packages/libraries added, with purpose]

### Integration Points
[Any new APIs, services, databases, or external integrations introduced]

## What Was Not Built

[Bulleted list of PRD requirements or tasks explicitly skipped or deferred, with brief reason if known]

## Files Changed

| File | Change |
|------|--------|
| [path] | Created / Modified / Deleted |

[Table listing all files changed during the project, sorted by most significant first]

Omit sections that have no content (e.g., if no dependencies were added, omit "Dependencies Added").


Step 5 — Show Document Preview

Display the generated document to the user and say:

✅ Decisions document saved to: .planning/[PROJECT_NAME]/decisions-[PROJECT_NAME].md

Would you like to publish this to Slite or Notion?
- Type "slite [URL or note ID]" to publish as a child doc in Slite
- Type "notion [URL or page ID]" to publish as a child page in Notion
- Type "no" or press Enter to skip

Paste the URL of the parent doc/page where this should live, or skip.

Step 6 — Publish to Slite (if requested)

If the user provides a Slite URL or note ID:

Extract the Note ID

URL formats:

  • https://slite.com/app/docs/{NOTE_ID}/{title} — extract NOTE_ID after /docs/
  • https://{workspace}.slite.com/p/{NOTE_ID}/{title} — extract NOTE_ID after /p/
  • https://slite.com/p/{NOTE_ID}/{title} — extract NOTE_ID after /p/
  • Bare note ID (no URL prefix) — use directly

Method A — MCP (preferred)

Check if a Slite MCP server is configured:

  • Look in ~/.cursor/mcp.json or .cursor/mcp.json for a server with slite in the name or command
  • If found, use create-note with:

- title: [Project Name] — Decisions & Architecture - parentNoteId: the extracted note ID - markdown: the full content of the generated document

Method B — Slite REST API

If MCP is not available, check for $SLITE_API_KEY environment variable.

POST https://api.slite.com/v1/notes
Authorization: Bearer $SLITE_API_KEY
Content-Type: application/json

{
  "title": "[Project Name] — Decisions & Architecture",
  "parentNoteId": "[PARENT_NOTE_ID]",
  "markdown": "[document content]"
}

On Success

Report the created note's URL to the user:

✅ Published to Slite: [note URL]

On Failure

Tell the user what failed and suggest they copy the markdown from .planning/[PROJECT_NAME]/decisions-[PROJECT_NAME].md manually.


Step 7 — Publish to Notion (if requested)

If the user provides a Notion URL or page ID:

Extract the Page ID

URL formats:

  • https://www.notion.so/{workspace}/{Page-Title}-{PAGE_ID} — extract the 32-char hex suffix
  • https://www.notion.so/{PAGE_ID} — use directly
  • https://{workspace}.notion.site/{Page-Title}-{PAGE_ID} — extract the 32-char hex suffix
  • Bare page ID — use directly

Normalize by removing hyphens if present.

Method A — MCP (preferred)

Check if a Notion MCP server is configured:

  • Look in ~/.cursor/mcp.json or .cursor/mcp.json for a server with notion in the name or command
  • If found, use the appropriate MCP tool to create a child page:

- Parent: the extracted page ID - Title: [Project Name] — Decisions & Architecture - Content: the full markdown document

Method B — Notion REST API

If MCP is not available, check for $NOTION_TOKEN environment variable.

Create a new child page:

POST https://api.notion.com/v1/pages
Authorization: Bearer $NOTION_TOKEN
Notion-Version: 2022-06-28
Content-Type: application/json

{
  "parent": { "page_id": "[PARENT_PAGE_ID]" },
  "properties": {
    "title": {
      "title": [{ "text": { "content": "[Project Name] — Decisions & Architecture" } }]
    }
  },
  "children": [
    // Convert the markdown document into Notion block objects
    // Map headings → heading_2/heading_3 blocks
    // Map paragraphs → paragraph blocks
    // Map bullet lists → bulleted_list_item blocks
    // Map tables → table blocks
    // Map bold text → rich_text with bold annotation
  ]
}

Markdown to Notion Block Conversion

Convert the document sections as follows:

MarkdownNotion Block Type
# Headingheading_1
## Headingheading_2
### Headingheading_3
> blockquotequote
- bullet itembulleted_list_item
Regular paragraphparagraph
`table
**bold**rich_text with bold: true annotation

Keep each text block under 2000 characters (Notion's limit per rich_text object).

On Success

Report the created page's URL to the user:

✅ Published to Notion: [page URL]

On Failure

Tell the user what failed and suggest they copy the markdown from .planning/[PROJECT_NAME]/decisions-[PROJECT_NAME].md manually.


Rules

  1. Always save the markdown file first — even if the user skips publishing, the document must exist on disk
  2. Never overwrite an existing decisions file — if .planning/[PROJECT_NAME]/decisions-[PROJECT_NAME].md already exists, append a timestamp suffix: decisions-[PROJECT_NAME]-[YYYYMMDD].md
  3. Focus on decisions, not implementation details — the document is for future developers and stakeholders, not a code review
  4. Keep the tone factual — describe what was done and why, avoid editorial commentary
  5. If git history is ambiguous, note uncertainty rather than guessing (e.g., "library choice not evident from commits — see PRD for context")

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.22%
按下载量换算52

Claude

28.67%
按下载量换算45

Cursor

18.7%
按下载量换算29

Gemini CLI

9.5%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills