Todo tracker safe

From LeoYeAI/openclaw-master-skills · View interactive version

Todo tracker safe is an AI agent skill from the GitHub repository LeoYeAI/openclaw-master-skills. Secure TODO tracker with input validation and safe file operations. Use for task management across sessions.

How to use this skill

Skill file

📋 TODO Tracker (安全版本)

安全的跨会话任务追踪工具,带有输入验证和安全文件操作。

安全改进

相比原始版本,此版本包含以下安全增强:

  1. 输入验证 - 所有用户输入经过 sanitize_input() 过滤
  2. 固定字符串匹配 - 使用 grep -F 避免正则注入
  3. 文件权限检查 - 验证 TODO 文件权限不过于宽松
  4. 无动态执行 - 不使用 eval 或命令替换执行用户输入
  5. 错误处理 - 使用 set -euo pipefail 严格模式
  6. 长度限制 - 输入限制为 200 字符

用法

# 添加任务
todo.sh add high "完成项目报告"
todo.sh add medium "回复邮件"
todo.sh add low "整理文件"

# 标记完成
todo.sh done "项目报告"

# 删除任务
todo.sh remove "整理文件"

# 列出任务
todo.sh list          # 全部
todo.sh list high     # 高优先级
todo.sh list done     # 已完成

# 摘要(用于 heartbeat)
todo.sh summary

配置

触发条件

当用户说:

安全审计

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.