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

decision-log决策日志

Agent Skill

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

总安装

964

周安装

41

GitHub Stars

公开资料未说明

下载量

338
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/bjg4/decision-log-skill --skill decision-log

简介

decision-log 用于自动维护决策记录,适合在 Codex、Claude、Cursor、Gemini CLI 中需要系统化追踪和管理各类决策时使用。

  • 适用场景包括项目规划、需求评审、架构选型及技术债务处理等需要留存决策依据的场景。
  • 核心能力是自动扫描未记录的决策并写入 decisions/ 目录下的独立 markdown 文件,同时生成 _index.md 索引供快速查阅。
  • 使用方式为完全自主执行,无需用户确认即可静默写入所有未记录的决策,仅输出最终结果。
  • 安装前应检查权限边界,确保不会误写文件或越权访问敏感信息,避免破坏现有工作流。

SKILL.md

Decision Log Skill

Maintain a decisions/ directory where each decision is a standalone markdown file with YAML frontmatter. An _index.md manifest is regenerated on every invocation for fast scanning.

Critical Behavior Rule

This skill is fully autonomous. When invoked:

  • Do NOT ask the user which decisions to log. Log all unlogged decisions found.
  • Do NOT present candidates for confirmation. Just write them.
  • Do NOT narrate your phases or telegraph your process. Execute silently, then show results.
  • The only output the user should see is the final result: the logged entries themselves.

Directory Structure

decisions/
  _index.md        # Auto-generated manifest — never hand-edit
  DEC-0001.md      # One file per decision
  DEC-0002.md

Instructions

Step 1 — Assess State

  1. Check if decisions/ directory exists. If not, create it.
  2. List existing DEC-*.md files to determine the next ID (highest number + 1, zero-padded to 4 digits).
  3. Read _index.md if it exists to know which decisions are already logged.
  4. Scan the current conversation for any decisions not already captured.

Step 2 — Extract and Classify

For each unlogged decision, determine:

FieldValues
domainA short descriptive label for the area this decision belongs to. Infer from context. Examples: Architecture, Product, Design, Operations, Strategy, Data Engineering, Security, Research, Finance, Health, Creative, Legal, Education, Workflow, Relationships, Career, Music, Science, Writing — any domain is valid. Use whatever fits the decision. Prefer reusing domains already present in existing decisions for consistency, but create new ones freely when the context demands it.
statusActive, Proposed, Superseded, Revisited, Deprecated
methodanalysis, discussion, constraint, default, research, prototype, stakeholder-input

Method definitions:

  • analysis — decided by weighing data, benchmarks, or structured comparison
  • discussion — emerged from back-and-forth conversation
  • constraint — forced by a technical, budget, or time limitation
  • default — accepted a sensible default without active deliberation
  • research — decided after investigating documentation, articles, or prior art
  • prototype — decided after building and evaluating a proof of concept
  • stakeholder-input — directed by a stakeholder, client, or external party

When the method is ambiguous, pick the one that best describes the *primary* driver. Default to discussion if genuinely unclear.

Also capture: decision statement, options considered (with pros/cons), rationale, expected outcome, related DEC-XXXX IDs, 2-5 lowercase tags, and context (summary, conversation highlights, actions performed, artifacts).

Step 3 — Write Decision Files

Create a file per decision using the schema in references/templates.md. File naming: decisions/DEC-XXXX.md (zero-padded to 4 digits). Write all files in a single pass.

Step 4 — Regenerate Index

Read all DEC-*.md files in decisions/, extract frontmatter, regenerate decisions/_index.md using the index template in references/templates.md. The index is always rebuilt from disk — it self-heals.

Step 5 — Show Results

Present a clean summary table:

Logged 3 decisions:

IDDomainDecisionStatus
DEC-0001ArchitecturePer-file decision tracking with YAML frontmatterActive
DEC-0002ResearchUse longitudinal study design over cross-sectionalActive
DEC-0003CreativeAnalog synth palette for album intro tracksActive

Updated: ./decisions/

Edge Cases

Explicit single decision ("log this decision: X"): Extract only that decision. Do not scan for others.

Supersession ("we changed our mind on DEC-0003"): Create new file with supersedes: DEC-XXXX. Edit prior file's frontmatter to status: Superseded. Regenerate index. Output:

Logged 1 decision:

IDDomainDecisionStatus
DEC-0004CreativeSwitch to FM synthesis for album intro tracksActive

Superseded: DEC-0003 → Superseded

Updated: ./decisions/

Review request ("what decisions have we made"): Read _index.md, present it.

Context lookup ("tell me more about DEC-0003"): Read decisions/DEC-0003.md, present it.

Status update ("mark DEC-0003 as Deprecated"): Edit frontmatter, regenerate index.

Security

Decision files capture conversation context. When extracting decisions, omit credentials, API keys, tokens, passwords, and other secrets that may have appeared in the conversation. If a decision references a secret (e.g., "we chose AWS as our provider"), log the decision but redact the actual credential values. Frontmatter tags should never contain sensitive identifiers.

Error Handling

No decisions found in conversation: Tell the user: "No unlogged decisions found in this conversation." Do not create empty files or fabricate decisions.

Malformed existing DEC file: If a DEC-*.md file has broken frontmatter, skip it during index regeneration and warn: "Skipped DEC-XXXX.md — invalid frontmatter." Do not delete or overwrite it.

Ambiguous decision boundary: When it's unclear whether something is one decision or two, prefer fewer, broader decisions. One well-scoped decision is better than two overlapping ones.

Referenced DEC file missing: If a supersession or related reference points to a non-existent file, write the reference anyway but add an open question: "Referenced DEC-XXXX not found — may have been removed or renamed."

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

39.57%
按下载量换算134

Claude

29.24%
按下载量换算99

Cursor

17.88%
按下载量换算60

Gemini CLI

9.18%
按下载量换算31

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills