Token导航 LogoToken导航TokenDH.com
运维和基础设施需要联网github未标认证来源可访问clear审计提醒

decisionsdecisions 命令行

Agent Skill

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

总安装

847

周安装

36

GitHub Stars

41

下载量

297
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/maragudk/skills --skill decisions

简介

维护项目重要决策的时序记录,捕捉架构与设计的取舍细节。

  • 主动建议在重大技术选型时添加文档条目,形成知识资产。
  • 记录理由而非仅保存结论,确保未来团队理解上下文。
  • 适用于需要长期维护技术债务与演进历史的开发项目。
  • decisions 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Decisions

Overview

This skill maintains a chronological record of significant project decisions in docs/decisions.md. It captures important architectural and design decisions, especially those involving tradeoffs, to create a permanent record of why key choices were made.

When to Use This Skill

Proactive (Conservative): Suggest recording decisions only when there is a clearly significant architectural choice, such as:

  • Choosing between database systems (e.g., SQLite vs PostgreSQL)
  • Selecting major frameworks or libraries
  • Deciding on core architectural patterns (e.g., monolith vs microservices, rendering approach)
  • Making fundamental design choices that will shape the project long-term

Do NOT proactively suggest for:

  • Minor implementation details
  • Routine coding decisions
  • Small refactoring choices
  • Trivial technical choices

Manual: Record decisions when explicitly requested by the user with phrases like:

  • "Record this decision"
  • "Document this in the decision log"
  • "Add this to decisions.md"

Recording a Decision

Step 1: Identify the Decision

From the conversation context, identify:

  • What decision was made
  • Why it was needed (context)
  • What alternatives were considered (if applicable)
  • Key tradeoffs evaluated (if applicable)
  • Rationale for the final choice

Step 2: Determine Detail Level

Adapt the level of detail based on decision complexity:

Brief (simple decisions):

  • Title and 1-2 sentence summary
  • Example: Choosing a well-established library

Moderate (typical decisions):

  • Decision description
  • Brief context (why it was needed)
  • The choice made

Detailed (complex decisions):

  • Decision description
  • Context and motivation
  • Alternatives considered
  • Key tradeoffs evaluated
  • Rationale for final choice

Step 3: Format the Entry

Use this format:

## YYYY-MM-DD: [Decision Title]

[Description paragraph(s) adapted to the complexity level]

Example (brief):

## 2025-10-23: Use httprouter for HTTP routing

Chose httprouter for its simplicity and performance. It's a well-established library that fits our needs without unnecessary complexity.

Example (detailed):

## 2025-10-23: Choose SQLite for primary database

After evaluating PostgreSQL and SQLite, we chose SQLite for the following reasons:

Context: Need a reliable database for the application that handles moderate traffic (< 1000 concurrent users) and simple relational data.

Alternatives considered:
- PostgreSQL: More features and better for high concurrency, but adds operational complexity
- SQLite: Simpler deployment, embedded database, sufficient performance for our scale

Tradeoffs: SQLite has limitations with high write concurrency and some advanced features, but offers zero-configuration deployment and excellent read performance. Given our expected load and preference for operational simplicity, these tradeoffs favor SQLite.

Decision: Use SQLite with WAL mode enabled for improved concurrency. We can migrate to PostgreSQL later if scaling needs change.

Step 4: Write to File

  1. Check if docs/ directory exists; create it if needed
  2. Check if docs/decisions.md exists:

- If not, create it with this header: # Project Decisions This document records significant architectural and design decisions made throughout the project's development. - If it exists, read the current content

  1. Append the new decision entry to the bottom of the file
  2. Ensure proper spacing (blank line before the new entry)

Step 5: Confirm with User

After recording the decision, briefly confirm what was recorded. For example:

  • "Recorded the decision to use SQLite in docs/decisions.md"
  • "Added the routing decision to the decision log"

Proactive Suggestion Pattern

When detecting a significant architectural decision during conversation, suggest recording it:

This seems like a significant architectural decision. Would you like me to record it in docs/decisions.md?

Wait for user confirmation before recording.

Important Notes

  • Always append to the bottom (chronological order from oldest to newest)
  • Use today's date (YYYY-MM-DD format) for new entries
  • Maintain formatting consistency with existing entries
  • Don't create duplicate entries for the same decision
  • Create docs/ directory if it doesn't exist
  • Avoid recording trivial decisions that don't have long-term architectural impact

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Antigravity

29.19%
按下载量换算87

Claude Code

23.76%
按下载量换算71

Codex

16.61%
按下载量换算49

Gemini CLI

13.08%
按下载量换算39

OpenCode

7.84%
按下载量换算23

trae

3.52%
按下载量换算10

安全审计

Gen Agent Trust Hub

可疑

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills