npx skills add https://github.com/brsbl/ottonomous --skill summary作用范围: $ARGUMENTS
| 参数 | 需要总结的文件 |
|---|---|
(无) 或 branch | 分支差异: git diff main...HEAD --name-only |
staged | 暂存区的更改: git diff --cached --name-only |
| 阶段 | 目的 |
|---|---|
| 1. 分析 | 获取更改的文件和差异 |
| 2. 读取 | 读取更改的文件及其差异 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
| 3. 综合 | 从代码和差异中创建语义化叙述 |
| 4. 生成 | 转换为 HTML,在浏览器中打开 |
使用作用范围命令获取更改的文件。如果未发现更改,则报告:"没有需要总结的更改。"
git diff main...HEAD --name-only
对于每个更改的文件,读取文件内容和差异:
git diff main...HEAD -- <file>
当仅凭差异不足以理解更改时,读取完整文件以获取上下文。
获取仓库信息以生成链接:
git remote get-url origin
解析以获取用于 GitHub 链接的 {org}/{repo}。
生成语义化总结,遵循以下格式:
# {分支名称}
## 概述
{2-3 句话:从业务/功能角度描述此分支实现了什么}
### 技术实现
{集成点、架构决策、使用的关键模式}
### 关键审查区域
{审查者应关注的重点、潜在风险、需要仔细关注的领域}
### 更改内容
{功能变更的高级总结及其重要性}
## 按组件的语义变更
### [src/auth/users.ts](https://github.com/{org}/{repo}/blob/{branch}/src/auth/users.ts)
- **变更目的:** 解决了什么问题或添加了什么功能?
- **行为变更:** 行为与之前有何不同?
- **数据流影响:** 这些变更如何影响系统中的数据流?
- **性能考量:** 扫描频率、读写模式、潜在瓶颈的变更
- **细微错误风险:** 引入的竞态条件、陈旧数据、缓存失效、时序问题
- **受影响的依赖项:** 代码库的其他哪些部分可能会受到影响?
### [src/api/routes.ts](https://github.com/{org}/{repo}/blob/{branch}/src/api/routes.ts)
- **变更目的:** ...
- **行为变更:** ...
- **数据流影响:** ...
- **性能考量:** ...
- **细微错误风险:** ...
- **受影响的依赖项:** ...
## 破坏性变更
{如果存在 - 前后对比,迁移路径。如果不存在,则完全省略此部分。}
## 已更改的文件
<details>
<summary>{count} 个文件</summary>
| 文件 | 总结 |
|------|---------|
| [src/auth/users.ts](https://github.com/{org}/{repo}/blob/{branch}/src/auth/users.ts) | 添加了个人资料 CRUD |
| [src/api/routes.ts](https://github.com/{org}/{repo}/blob/{branch}/src/api/routes.ts) | 新的个人资料端点 |
**列出每个文件 — 不使用通配符。** 计数必须与表格行数匹配。
</details>
关键原则:
创建目录:
mkdir -p .otto/summaries
保存 markdown 到 .otto/summaries/{branch}-{date}.md
转换为 HTML,使用 md-to-html 脚本:
node skills/summary/scripts/md-to-html.js .otto/summaries/{branch}-{date}.md .otto/summaries/{branch}-{date}.html
在浏览器中打开:
open .otto/summaries/{branch}-{date}.html
报告:
总结已生成: .otto/summaries/{branch}-{date}.html
每周安装次数
1
仓库
GitHub 星标数
10
首次出现
今天
安全审计
安装于
amp1
cline1
opencode1
cursor1
kimi-cli1
codex1
Scope: $ARGUMENTS
| Argument | Files to summarize |
|---|---|
(none) or branch | Branch diff: git diff main...HEAD --name-only |
staged | Staged changes: git diff --cached --name-only |
| Phase | Purpose |
|---|---|
| 1. Analyze | Get changed files and diffs |
| 2. Read | Read changed files and their diffs |
| 3. Synthesize | Create semantic narrative from code and diffs |
| 4. Generate | Convert to HTML, open in browser |
Get changed files using scope command. If no changes found, report: "No changes to summarize."
git diff main...HEAD --name-only
For each changed file, read the file content and diff:
git diff main...HEAD -- <file>
Read the full file for context when the diff alone isn't sufficient to understand the change.
Get repo info for links:
git remote get-url origin
Parse to get {org}/{repo} for GitHub links.
Generate semantic summary following this format:
# {Branch Name}
## Overview
{2-3 sentences: what this branch accomplishes from a business/feature perspective}
### Technical Implementation
{Integration points, architecture decisions, key patterns used}
### Key Review Areas
{What reviewers should focus on, potential risks, areas needing careful attention}
### What Changed
{High-level summary of functionality changes and why they matter}
## Semantic Changes by Component
### [src/auth/users.ts](https://github.com/{org}/{repo}/blob/{branch}/src/auth/users.ts)
- **Purpose of changes:** What problem does this solve or what feature does it add?
- **Behavioral changes:** How does the behavior differ from before?
- **Data flow impact:** How do these changes affect data flow through the system?
- **Performance considerations:** Changes to scan frequency, read/write patterns, potential bottlenecks
- **Subtle bug risks:** Race conditions, stale data, cache invalidation, timing issues introduced
- **Dependencies affected:** What other parts of the codebase might be impacted?
### [src/api/routes.ts](https://github.com/{org}/{repo}/blob/{branch}/src/api/routes.ts)
- **Purpose of changes:** ...
- **Behavioral changes:** ...
- **Data flow impact:** ...
- **Performance considerations:** ...
- **Subtle bug risks:** ...
- **Dependencies affected:** ...
## Breaking Changes
{If any exist - before/after comparison, migration path. Omit section entirely if none.}
## Files Changed
<details>
<summary>{count} files</summary>
| File | Summary |
|------|---------|
| [src/auth/users.ts](https://github.com/{org}/{repo}/blob/{branch}/src/auth/users.ts) | Added profile CRUD |
| [src/api/routes.ts](https://github.com/{org}/{repo}/blob/{branch}/src/api/routes.ts) | New profile endpoints |
**List every file individually — no wildcards.** Count must match table rows.
</details>
Key principles:
Create directories:
mkdir -p .otto/summaries
Save markdown to .otto/summaries/{branch}-{date}.md
Convert to HTML using the md-to-html script:
node skills/summary/scripts/md-to-html.js .otto/summaries/{branch}-{date}.md .otto/summaries/{branch}-{date}.html
Open in browser:
open .otto/summaries/{branch}-{date}.html
Report:
Summary generated: .otto/summaries/{branch}-{date}.html
Weekly Installs
1
Repository
GitHub Stars
10
First Seen
Today
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
amp1
cline1
opencode1
cursor1
kimi-cli1
codex1
agent-browser 浏览器自动化工具 - Vercel Labs 命令行网页操作与测试
147,400 周安装