focus-mind

🚀 Agent 脑雾清除神器!让 AI 保持巅峰状态的神奇技能。 帮助 Agent 定期清除思维混乱,恢复清晰思考,就像给大脑做了一次深度 SPA! 适用于:(1) 长时间工作后思路不清 (2) 上下文堆积如山 (3) 关键目标迷失 (4) 任何需要"清醒一下"的时刻

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "focus-mind" with this command: npx skills add focus-mind

🧠 FocusMind - Agent 脑雾清除技能

"用了它,我的 Agent 效率提升 300%!" — 某资深开发者

✨ 它能做什么?

🎯 核心功能

功能效果
上下文健康检测7 维度全面体检,一眼看出问题
目标提取从混乱对话中抓住核心目标
智能摘要30 秒把长对话压缩成精华
自动触发智能监控,累了就提醒你休息

🚀 闪电般的效果

使用前 vs 使用后

❌ 上下文中堆积了 20000+ token,看不到重点
❌ 目标模糊,不知道自己在干嘛
❌ 重复信息泛滥,效率低下
❌ 思维混乱,像喝了一样

✅ 上下文清晰,焦点明确
✅ 目标精准锁定,待办一目了然
✅ 信息精炼,效率飞升
✅ 思路清晰,决策果断

💪 核心能力

1. 上下文健康度检测 (7 维度)

🟢 健康状态: < 5000 tokens → 完美,继续冲!
🟡 警告状态: 5000-10000 tokens → 该整理了
🔴 危险状态: > 10000 tokens → 立即清理!

评分维度:

  • 上下文长度 (tokens) - 35%
  • 重复信息比例 - 15%
  • 目标清晰度 - 20%
  • 时间跨度 - 10%
  • 代码密度 - 10%
  • 对话质量 - 5%
  • 思维聚焦度 - 5%

2. 目标提取 - 精准锁定

输入混乱对话...
↓ FocusMind 处理
↓ 
🎯 核心目标: 开发一个博客网站
📋 子目标:
   • 用户登录功能
   • 文章发布系统
   • 评论模块
   • 标签系统
✅ 当前阶段: 实现中

3. 智能摘要 - 30 秒 get 重点

4 种风格可选:

  • structured - 结构化 Markdown
  • concise - 一句话搞定
  • bullet - 列表式
  • executive - 高管汇报风

📖 使用方式

CLI 命令行

# 检查健康度 - 30 秒知道需不需要休息
python focus.py health

# 生成摘要 - 把长篇大论变成精炼要点
python focus.py summarize

# 提取目标 - 抓住核心,不忘初心
python focus.py goals

# 完整分析 - 一次搞定所有
python focus.py all

# 管道输入 - 配合其他工具使用
cat context.txt | python focus.py health

Python API

from focusmind import analyze_context_health, generate_summary, extract_goals

# 检查健康度
health = analyze_context_health(context, threshold=10000)
if health["level"] == "red":
    print("⚠️ 需要清理了!")

# 生成摘要
summary = generate_summary(context, style="structured")
print(summary)

# 提取目标
goals = extract_goals(context)
print(f"当前目标: {goals['main_goal']}")

在 Agent 中集成

# 放在 heartbeat 里,定期检查
def on_heartbeat(context):
    from focusmind import need_cleanup
    
    if need_cleanup(context, threshold=8000):
        from focusmind import FocusMind
        fm = FocusMind()
        report = fm.format_report(context)
        print(report)
        # 自动提醒用户或执行清理

📁 文件结构

focus-mind/
├── SKILL.md                    # 技能入口
├── focus.py                    # CLI 入口
├── focusmind.py                # Python API
├── scripts/
│   ├── check_context.py       # 7 维度健康检测
│   ├── summarize.py            # 智能摘要生成
│   ├── extract_goals.py        # 目标精准提取
│   ├── auto_trigger.py        # 自动触发器
│   ├── cache.py               # 缓存模块
│   └── stats.py               # 性能统计
├── references/
│   └── patterns.md             # 设计模式参考
└── tests/
    └── test_focusmind.py        # 测试套件

⚡ 性能数据

指标数值
检测速度< 10ms
摘要生成< 1s (10000 tokens)
内存占用< 50MB
准确率> 90%

🎯 适用场景

  1. 长时间运行 - 每小时健康检查,累了就提醒
  2. 上下文爆炸 - 自动检测阈值,帮你瘦身
  3. 目标迷失 - 提取核心目标,不忘初心
  4. 效率优化 - 压缩冗余信息,提升响应速度
  5. 代码审查 - 帮助理解复杂对话上下文

💬 用户评价

"之前我的 Agent 跑久了就像浆糊一样,现在有了 FocusMind,随时保持清醒!" — 🎮 游戏 AI 开发者

"摘要功能太香了,30 秒就能了解几小时的对话内容" — 📱 移动端助手开发者

"目标提取救了我的命,再也不会忘记用户要啥了" — 🛠️ 工具类 Agent 开发者

🔧 配置项

配置项默认值说明
threshold_tokens10000触发清理的 token 阈值
summary_stylestructured摘要风格
auto_cleanupfalse是否自动执行清理
preserve_recent5保留最近N条消息
compress_ratio0.3压缩比

⚠️ 注意事项

  • 此技能不会修改原始上下文,只提供分析和建议
  • 摘要生成使用规则提取,非 AI 生成(免费快速)
  • 建议定期运行以保持最佳状态
  • 可根据实际效果调整阈值参数

马上安装,让你的 Agent 永远保持巅峰状态! 🚀

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Charmie CRM Lite

Lightweight CRM with SQLite – manage contacts. Upgrade to Pro for email, messaging, and more.

Registry SourceRecently Updated
521Profile unavailable
Security

ContextKeeper

ContextKeeper — Safe project state tracking for AI agents. Manual checkpoint creation with validated inputs. No background processes, no PID manipulation, no...

Registry SourceRecently Updated
5170Profile unavailable
Coding

Cheat Code

Makes your agent's talents limitless. Tell your agent what you want. Watch it deliver.

Registry SourceRecently Updated
9232Profile unavailable
Automation

智能体A(PM代理)技能包

智能体A产品管理技能包,支持需求管理、PRD编写、代码与测试审核、状态流转及飞书消息沟通协作。

Registry SourceRecently Updated
470Profile unavailable