Contact Book
Productivity toolkit for managing contacts and relationships — add entries, plan follow-ups, track interactions, set reminders, tag contacts, and generate reports. All data stays local.
Commands
| Command | Description |
|---|
| INLINECODE0 | Add a new contact or entry |
| INLINECODE1 |
Record a follow-up plan for a contact |
|
contact-book track <input> | Log an interaction or touchpoint |
|
contact-book review <input> | Record a review note for a contact or relationship |
|
contact-book streak <input> | Track communication streaks with contacts |
|
contact-book remind <input> | Set a reminder for a contact-related task |
|
contact-book prioritize <input> | Mark a contact or task as high priority |
|
contact-book archive <input> | Archive a contact or old entry |
|
contact-book tag <input> | Add a tag or label to a contact |
|
contact-book timeline <input> | Record a timeline event for a contact |
|
contact-book report <input> | Generate a report entry |
|
contact-book weekly-review <input> | Log a weekly relationship review |
|
contact-book stats | Show summary statistics: entry counts per command, total, data size |
|
contact-book export <fmt> | Export all data in
json,
csv, or
txt format |
|
contact-book search <term> | Search across all logs for a keyword |
|
contact-book recent | Show the 20 most recent activity entries |
|
contact-book status | Health check: version, data dir, entry count, disk usage, last activity |
|
contact-book help | Show help with all available commands |
|
contact-book version | Show current version |
Command Behavior
- - With arguments: Each command logs the input with a timestamp to its own dedicated log file (e.g.,
add.log, plan.log, tag.log) - Without arguments: Each command displays the 20 most recent entries from its respective log file
Data Storage
- - Default data directory: INLINECODE25
- Per-command logs:
$DATA_DIR/<command>.log (e.g., add.log, plan.log, remind.log) - History log:
$DATA_DIR/history.log — master timeline of all activity - Export files:
$DATA_DIR/export.<fmt> — generated by the export command - All data is local plain-text. No cloud, no sync, no network calls.
Requirements
- - Bash 4+ (uses
set -euo pipefail) - No external dependencies or API keys required
- Works entirely offline — your data stays on your machine
When to Use
- 1. Building a personal CRM — Use
add, tag, and track to maintain a lightweight contact database with interaction history - Planning follow-ups — Use
plan and remind to schedule and track outreach to important contacts - Maintaining communication streaks — Track how consistently you stay in touch with key people using INLINECODE39
- Weekly relationship reviews — Run
weekly-review to reflect on your networking activity and identify gaps - Exporting contact data — Use
export json or export csv to produce structured data for other tools or spreadsheets
Examples
CODEBLOCK0
How It Works
Each command maintains its own log file in the data directory. Entries are stored as timestamp|value lines. The stats command aggregates counts across all log files. The export command merges all logs into a single file in your chosen format (JSON, CSV, or TXT). Every action is also recorded in history.log as a master audit trail.
Tips
- - Run any command without arguments to review its recent entries — quick way to check history
- Use
contact-book recent for a cross-command activity timeline - Combine
search with shell tools: INLINECODE49 - The
prioritize command helps surface your most important relationship-building tasks - Run
contact-book help at any time for the complete command reference
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com
技能名称: contact-book
详细描述:
通讯录
用于管理联系人和关系的高效工具包——添加条目、规划跟进、追踪互动、设置提醒、标记联系人以及生成报告。所有数据均保存在本地。
命令
| 命令 | 描述 |
|---|
| contact-book add <输入> | 添加新联系人或条目 |
| contact-book plan <输入> |
记录对联系人的跟进计划 |
| contact-book track <输入> | 记录一次互动或接触点 |
| contact-book review <输入> | 记录对联系人或关系的评估备注 |
| contact-book streak <输入> | 追踪与联系人的沟通连续性 |
| contact-book remind <输入> | 设置与联系人相关的任务提醒 |
| contact-book prioritize <输入> | 将联系人或任务标记为高优先级 |
| contact-book archive <输入> | 归档联系人或旧条目 |
| contact-book tag <输入> | 为联系人添加标签或分类 |
| contact-book timeline <输入> | 记录联系人的时间线事件 |
| contact-book report <输入> | 生成报告条目 |
| contact-book weekly-review <输入> | 记录每周关系回顾 |
| contact-book stats | 显示汇总统计:每个命令的条目数、总数、数据大小 |
| contact-book export <格式> | 以 json、csv 或 txt 格式导出所有数据 |
| contact-book search <关键词> | 在所有日志中搜索关键词 |
| contact-book recent | 显示最近20条活动条目 |
| contact-book status | 健康检查:版本、数据目录、条目数、磁盘使用量、最近活动 |
| contact-book help | 显示所有可用命令的帮助信息 |
| contact-book version | 显示当前版本 |
命令行为
- - 带参数时:每个命令将输入及其时间戳记录到其专属的日志文件中(例如 add.log、plan.log、tag.log)
- 不带参数时:每个命令显示其对应日志文件中最近20条条目
数据存储
- - 默认数据目录:~/.local/share/contact-book/
- 按命令划分的日志:$DATADIR/<命令>.log(例如 add.log、plan.log、remind.log)
- 历史日志:$DATADIR/history.log——所有活动的主时间线
- 导出文件:$DATA_DIR/export.<格式>——由 export 命令生成
- 所有数据均为本地纯文本。无云端、无同步、无网络调用。
要求
- - Bash 4+(使用 set -euo pipefail)
- 无需外部依赖或API密钥
- 完全离线工作——您的数据保留在您的机器上
使用场景
- 1. 构建个人CRM——使用 add、tag 和 track 维护一个轻量级联系人数据库,包含互动历史
- 规划跟进——使用 plan 和 remind 安排并追踪对重要联系人的外联
- 维持沟通连续性——使用 streak 追踪您与关键人物保持联系的规律性
- 每周关系回顾——运行 weekly-review 反思您的社交活动并找出差距
- 导出联系人数据——使用 export json 或 export csv 生成结构化数据,供其他工具或电子表格使用
示例
bash
添加新联系人
contact-book add Alice Chen — Acme Corp 项目经理 — alice@acme.com
规划跟进
contact-book plan 周五前跟进Alice关于合作提案的事宜
追踪互动
contact-book track 与Bob喝了咖啡,讨论了Q2路线图
标记联系人
contact-book tag Alice Chen: 投资人, 优先
设置提醒
contact-book remind 3月25日给Carol寄生日贺卡
记录每周回顾
contact-book weekly-review 联系了5位联系人,3位回复,1次会议已安排
在所有日志中搜索
contact-book search Alice
以CSV格式导出所有数据
contact-book export csv
查看汇总统计
contact-book stats
检查系统状态
contact-book status
显示最近活动
contact-book recent
工作原理
每个命令在数据目录中维护自己的日志文件。条目以 时间戳|值 的格式存储。stats 命令汇总所有日志文件中的计数。export 命令将所有日志合并为一个文件,格式为您选择的JSON、CSV或TXT。每个操作也会记录在 history.log 中,作为主审计追踪。
提示
- - 运行任何不带参数的命令以查看其最近条目——快速检查历史记录的方法
- 使用 contact-book recent 查看跨命令的活动时间线
- 将 search 与shell工具结合使用:contact-book search 2025 | grep plan
- prioritize 命令有助于突出显示您最重要的关系建设任务
- 随时运行 contact-book help 获取完整的命令参考
由 BytesAgain 提供支持 | bytesagain.com | hello@bytesagain.com