secondbrain-freshness
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseFreshness Report
新鲜度报告
Generate a comprehensive freshness report for all secondbrain entities.
为所有secondbrain实体生成全面的新鲜度报告。
Prerequisites
前置条件
Verify secondbrain is initialized:
- Check for
.claude/data/config.yaml - If not found, indicate no secondbrain project found
确认secondbrain已初始化:
- 检查是否存在
.claude/data/config.yaml - 若未找到,提示未发现secondbrain项目
Workflow
工作流
Step 1: Load Configuration
步骤1:加载配置
Read to get:
.claude/data/config.yaml- All enabled entities
- Freshness thresholds per entity
- Monthly partitioning settings
读取 以获取:
.claude/data/config.yaml- 所有已启用的实体
- 每个实体的新鲜度阈值
- 月度分区设置
Step 2: Analyze Each Entity
步骤2:分析每个实体
For each enabled entity:
- Load all records
- Check date fields (created, date, date_updated)
- Compare against freshness threshold
- Categorize by staleness level:
- Critical (2x threshold): Needs immediate attention
- Stale (1x threshold): Should be reviewed
- Warning (0.75x threshold): Approaching staleness
针对每个已启用的实体:
- 加载所有记录
- 检查日期字段(created、date、date_updated)
- 与新鲜度阈值进行对比
- 按过时程度分类:
- 严重(2倍阈值):需立即处理
- 过时(1倍阈值):应进行审核
- 警告(0.75倍阈值):即将过时
Step 3: Generate Report
步骤3:生成报告
Format by entity and urgency:
undefined按实体和紧急程度格式化:
undefinedFreshness Report
Freshness Report
Generated: 2026-01-15 10:30
Generated: 2026-01-15 10:30
Summary
Summary
| Entity | Critical | Stale | Warning | OK |
|---|---|---|---|---|
| ADRs | 2 | 5 | 3 | 12 |
| Tasks | 0 | 8 | 4 | 15 |
| Notes | 1 | 3 | 6 | 25 |
| Discussions | 0 | 2 | 1 | 10 |
Total needing attention: 30 items
| Entity | Critical | Stale | Warning | OK |
|---|---|---|---|---|
| ADRs | 2 | 5 | 3 | 12 |
| Tasks | 0 | 8 | 4 | 15 |
| Notes | 1 | 3 | 6 | 25 |
| Discussions | 0 | 2 | 1 | 10 |
Total needing attention: 30 items
Critical (Needs Immediate Attention)
Critical (Needs Immediate Attention)
ADRs (2 items)
ADRs (2 items)
| ID | Title | Status | Age |
|---|---|---|---|
| ADR-0003 | API Gateway Selection | proposed | 95 days |
| ADR-0007 | Database Migration | draft | 78 days |
| ID | Title | Status | Age |
|---|---|---|---|
| ADR-0003 | API Gateway Selection | proposed | 95 days |
| ADR-0007 | Database Migration | draft | 78 days |
Notes (1 item)
Notes (1 item)
| ID | Title | Age |
|---|---|---|
| 2025-10-01-legacy-system | Legacy System Overview | 106 days |
| ID | Title | Age |
|---|---|---|
| 2025-10-01-legacy-system | Legacy System Overview | 106 days |
Stale (Should Review)
Stale (Should Review)
Tasks (8 items)
Tasks (8 items)
| ID | Title | Status | Priority | Age |
|---|---|---|---|---|
| TASK-0012 | Update documentation | in_progress | medium | 45 days |
| TASK-0015 | Fix login bug | todo | high | 42 days |
| ... |
| ID | Title | Status | Priority | Age |
|---|---|---|---|---|
| TASK-0012 | Update documentation | in_progress | medium | 45 days |
| TASK-0015 | Fix login bug | todo | high | 42 days |
| ... |
Recommended Actions
Recommended Actions
-
ADR-0003: 95 days in "proposed" status
- Action: Review and move to admitted/rejected
-
ADR-0007: 78 days in "draft" status
- Action: Complete draft or cancel
-
TASK-0012: 45 days in progress
- Action: Check if blocked, update status
-
2025-10-01-legacy-system: 106 days old note
- Action: Archive or update content
undefined-
ADR-0003: 95 days in "proposed" status
- Action: Review and move to admitted/rejected
-
ADR-0007: 78 days in "draft" status
- Action: Complete draft or cancel
-
TASK-0012: 45 days in progress
- Action: Check if blocked, update status
-
2025-10-01-legacy-system: 106 days old note
- Action: Archive or update content
undefinedStep 4: Offer Remediation
步骤4:提供补救建议
For each critical/stale item, offer specific actions:
- Draft ADRs: Complete or cancel
- Proposed ADRs: Review and decide
- In-progress tasks: Check if blocked
- Old notes: Archive or refresh
- Stale discussions: Mark resolved or schedule follow-up
针对每个严重/过时条目,提供具体操作建议:
- 草稿ADRs: 完成或取消
- 待审核ADRs: 审核并决策
- 进行中任务: 检查是否受阻
- 旧笔记: 归档或更新内容
- 过时讨论: 标记为已解决或安排跟进
Step 5: Update Last Check
步骤5:更新最后检查时间
Update :
.claude/data/config.yamlyaml
meta:
last_freshness_check: 2026-01-15T10:30:00更新 :
.claude/data/config.yamlyaml
meta:
last_freshness_check: 2026-01-15T10:30:00Staleness Thresholds
过时阈值
Default thresholds (configurable per entity):
| Entity | Default | Critical |
|---|---|---|
| ADRs | 30 days | 60 days |
| Tasks | 14 days | 28 days |
| Notes | 30 days | 60 days |
| Discussions | 7 days | 14 days |
默认阈值(可按实体配置):
| Entity | Default | Critical |
|---|---|---|
| ADRs | 30 days | 60 days |
| Tasks | 14 days | 28 days |
| Notes | 30 days | 60 days |
| Discussions | 7 days | 14 days |
Status Exceptions
状态例外
Skip items with terminal statuses:
- ADRs: implemented, tested, rejected, canceled
- Tasks: done, completed, canceled
- Notes: archived
- Discussions: archived
跳过处于终态的条目:
- ADRs: implemented、tested、rejected、canceled
- Tasks: done、completed、canceled
- Notes: archived
- Discussions: archived
Output Formats
输出格式
Summary Only
仅摘要
undefinedundefinedFreshness Summary
Freshness Summary
- Critical: 3 items need immediate attention
- Stale: 18 items should be reviewed
- Warning: 13 items approaching staleness
Run with for full breakdown.
--detailedundefined- Critical: 3 items need immediate attention
- Stale: 18 items should be reviewed
- Warning: 13 items approaching staleness
Run with for full breakdown.
--detailedundefinedFull Report
完整报告
Complete breakdown with tables and recommendations (default).
包含表格和建议的完整明细(默认格式)。
JSON Export
JSON导出
json
{
"generated": "2026-01-15T10:30:00",
"summary": {
"critical": 3,
"stale": 18,
"warning": 13,
"ok": 62
},
"by_entity": {
"adrs": { "critical": 2, "stale": 5, ... },
...
},
"items": [...]
}json
{
"generated": "2026-01-15T10:30:00",
"summary": {
"critical": 3,
"stale": 18,
"warning": 13,
"ok": 62
},
"by_entity": {
"adrs": { "critical": 2, "stale": 5, ... },
...
},
"items": [...]
}Tips
提示
- Run weekly — Set calendar reminder for freshness reviews
- Address critical first — Focus on oldest items
- Archive liberally — Better to archive than ignore
- Update thresholds — Adjust based on your workflow pace
- Check after sprints — Good time to clean up stale items
- 每周运行一次 — 设置日历提醒进行新鲜度审核
- 优先处理严重条目 — 聚焦最旧的内容
- 大胆归档 — 归档好过忽略
- 更新阈值 — 根据你的工作节奏调整
- Sprint后检查 — 清理过时条目的好时机