Community生产力与协作github.com

tderoussel/session-log

将工作会话的持久记录写入项目笔记——包括构建内容、根因分析或已交付成果。当用户说“记录本次会话”、“写会话日志”、“记录下来”,或当一项重要工作刚刚完成并需要交接给未来的会话时使用。

session-log 是什么?

该技能(session-log)旨在生成一份持久的工作会话记录,作为未来接手者(包括六周后的你)的“事实依据”。其核心强调准确性而非文采,适用于构建、修复、审计或研究任务完成之后,用于记录关键状态、根因分析结果以及未完成事项。 技能支持所有基于markdown笔记系统的项目(如`docs/sessions/`目录、笔记库、wiki等),要求文件名包含日期和简短描述(例如`YYYY-MM-DD Short Description.md`)。 工作流程包括:1. 收集事实(PR号、SHA、时间戳等),而非仅凭记忆;2. 按照固定模板撰写正文(包括机制、证据、修复步骤和DO-NOT规则);3. 强制包含“剩余事项”和“链接”两个常被遗漏的章节;4. 在线标记每个声明的状态(VERIFIED或ASSUMED);5. 在保存前验证每个链接的有效性;6. 更新项目主文档中的状态;7. 将用户指出的错误反馈到持久规则中。 技能还规定了严格的禁止行为:不得覆盖已有日志、不得写入机器生成的目录、不得在笔记旁创建临时文件或构建输出。

兼容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/tderoussel/agent-skills/tree/main/skills/session-log

Installed? Explore more 生产力与协作 skills: steipete/gemini, steipete/gh-issues, steipete/skill-creator · View all 6 →

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

会话日志

写入一份持久的工作会话记录。这些日志会被后续阅读者(包括六周后、已失去所有当前上下文的你)视为事实依据。准确性比文采更重要。

何时运行此技能

  • 构建、修复、审计或研究阶段刚刚完成
  • 会话即将结束,且存在下一个会话需要了解的状态
  • 已找到根因,且其机制值得保留

对于琐碎工作不要运行此技能。一行代码的修复不需要日志。

记录存放位置

项目保存会话记录的位置——例如 docs/sessions/ 目录、笔记库、wiki。如果不明显,先询问一次,之后保持一致。

文件名包含日期和简短描述便于排序和扫描:YYYY-MM-DD Short Description.md。

步骤

1. 撰写前先收集事实

不要仅凭对话记忆撰写。 收集:

  • PR编号、提交SHA、迁移时间戳、部署ID
  • 实际验证了什么、通过什么命令验证
  • 哪些操作失败、哪些问题仍未关闭
  • 任何仅能由人类完成的事项

如果某项事实无法确认,应标记为“未确认”,而不是放弃或断言。

2. 撰写正文

# YYYY-MM-DD — <根因分析或交付的内容>

<简要说明工作如何运行:谁规划、谁构建、谁审查。>

## 发生了什么

- 首先是机制。说明为什么会发生,而不仅仅是发生了什么。
- 具体证据:PR编号、SHA、时间戳、行数、日志行。
- 明确区分已证明与推断的内容。

## 修复

1. 编号步骤。每一步说明已验证的内容及其验证方式。

## 永久禁止规则
<仅在会话产生了禁止性规则时使用。每条规则需基于引发该规则的事件。>

## 剩余事项——需要人工处理

- [ ] 仅能由人类完成的事项

链接:<相关文档>

如果笔记系统使用frontmatter,请包含 outcome 字段:一个完整的句子,说明现在为真而之前不为真的内容。 这是文件中阅读最多的行。请使其成为真实的断言,而非标签。

3. 两个每个人都会遗漏的章节

## 剩余事项 和链接页脚是必填项。 它们是承载未来价值的两个章节,也是经常被省略的——在一个包含230条现有日志的笔记库中,它们分别只出现在约21%和28%的日志中。

每次都写这两个章节。如果确实没有需要人工处理的事项,请写“无——没有任何事项被保留。”而不是删除标题。

4. 在线标记每个声明

在线为每个声明添加标签:VERIFIED(如何验证) 或 ASSUMED(为何未检查)。不要模糊处理。

“已验证”意味着由人类或命令实际确认。关于生产环境的声明需要针对生产环境执行查询——而不是通过测试、合入的PR或成功的部署。

5. 保存前解析每个链接

在写入前,对照真实文件检查每个链接目标。笔记系统很快会积累大量失效引用,而充满死链接的日志没人会信任。

6. 更新项目状态

如果工作改变了项目状态,在项目主文档中添加一个带日期的状态节——新内容放在最前面,只添加,绝不覆盖历史。

如果工作推进了一个带有交接文档的项目,请就地更新,以便下一个会话正确获取。

7. 反馈教训

如果用户在会话过程中纠正了某些内容,请将教训写入持久位置——规则文件、记忆存储或本技能本身。这样纠正措施才不会重复发生。

文体规范

  • 具体且可证伪。模糊的总结比没有更糟。
  • 永远不要声明状态而不说明如何检查。
  • 先写坏消息。不要将其掩藏。
  • 为没有你任何上下文的读者撰写。

禁止行为

  • 不要覆盖现有日志。先读取,然后编辑。
  • 不要写入机器生成的目录。
  • 不要在笔记旁边创建临时文件或构建输出。

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

tderoussel/codebase-audit

Runs a ranked, evidence-backed audit of a product, codebase, or subsystem, ending in a verify list that separates proven findings from inferred ones. Use when the user asks for an audit, a gap analysis, a deep read, a bug hunt, a readiness check, a re-audit, a state reconciliation, or asks what they are not seeing. Trigger phrases include "audit", "gap analysis", "what am I missing", "deep audit", "readiness", "bug hunt", "review the whole thing". Produces findings and a verify list; does not fix.

tderoussel/competitive-teardown

Researches a competing product against your own and produces a ranked build-or-ignore verdict, plus optional comparison-page copy. Use when the user names a competitor or asks how their product stacks up against one. Trigger phrases include "vs us", "competitor", "what does X have", "should we copy", "competitive gap", "teardown", "are we behind". Produces a ranked verdict with effort estimates and an explicit not-worth-copying list.

tderoussel/decision-council

Run a structured multi-perspective review of a decision instead of getting one agreeable answer. Use when the user says run a council, get me perspectives on this, should I do X, stress-test this decision, or is this a good idea.

tderoussel/fleet-brief

Authors a workstream brief for dispatching multiple parallel build agents across one codebase, with per-lane file ownership, shared-ground warnings, and a derived DO-NOT list. Use whenever work is about to be split across concurrent agents, workers, lanes, or waves — even if the user does not say "write a brief". Trigger phrases include "fan out", "parallel agents", "orchestrate this", "split into lanes", "workstreams", "run these in parallel", "review-gated build". Produces the brief; does not dispatch.

tderoussel/inbox-triage

Triage an email inbox — sort what needs a reply, draft the replies, flag what needs a decision, and surface what can be ignored or unsubscribed. Use when the user says triage my inbox, do my email, what's in my inbox, or clean up my email.

tderoussel/overnight-build

Composes an autonomous unattended Claude Code build prompt that survives usage-limit resets via BUILD_LOG.md checkpointing, plus the launcher that restarts it. Use when the user asks for an overnight build, an autonomous build, a build to run while they sleep, an unattended or unsupervised session, or any long build they will not be monitoring. Trigger phrases include "overnight build", "run overnight", "build while I sleep", "autonomous build", "let it run", "unattended". Produces a single copyable prompt; does not run the build.

tderoussel/ship-gate

Verification gate for a Next.js-on-Vercel + Supabase + GitHub Actions stack, to run before claiming anything is shipped, deployed, live, merged, passing, or done. Use before saying a change is in production, before merging a PR, before reporting CI green, and before writing any status into a document — even if the user does not ask for verification. Trigger phrases include "is it live", "did it deploy", "ship it", "merge it", "is CI green", "confirm prod", "did that work". Encodes traps where the obvious check returns a false pass.

tderoussel/vault-doctor

Audits and repairs an Obsidian vault's structural health — broken [[wikilinks]], ambiguous duplicate filenames, missing or malformed frontmatter, stale status markers, and hub notes whose state sections have gone cold. Use when the user asks about vault health, broken links, vault cleanup, dead links, orphan notes, tag consistency, or says the vault feels messy or out of date. Trigger phrases include "vault health", "broken links", "clean up the vault", "audit the vault", "is the vault current". Read-only by default; every repair is proposed before it is made.

相关技能