← 返回 Skills 市场
bovinphang

Browser Storage

作者 Bovin Phang · GitHub ↗ · v2.5.0 · MIT-0
cross-platform ✓ 安全检测通过
23
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install fec-browser-storage
功能描述
Use when choosing, implementing, or reviewing browser storage such as localStorage, sessionStorage, IndexedDB, cookies, client persistence, offline data, sec...
使用说明 (SKILL.md)

浏览器存储

Purpose

根据数据大小、安全要求和生命周期选择合适的客户端存储方案。

Procedure

  1. 先判断数据敏感度、体积、生命周期、是否需要跨 Tab、是否需要随请求发送。
  2. 小量非敏感偏好用 localStorage;Tab 级临时数据用 sessionStorage;大量结构化数据或离线缓存用 IndexedDB;认证态优先 httpOnly cookie。
  3. 封装统一 key 前缀、JSON parse/stringify、异常处理、过期清理和 quota 兜底。
  4. 敏感数据按安全规则处理,不把明文 token、密码、信用卡信息放进可被 JS 读取的存储。
  5. 审查隐私模式、存储配额、清理策略和跨浏览器兼容性。

Detailed References

涉及存储选型表、localStorage/sessionStorage 封装、IndexedDB 示例、Cookie 辅助方法和敏感数据规则时,加载 references/storage-patterns.md

Constraints

  • localStorage/sessionStorage 是同步 API,大数据读写会阻塞主线程。
  • 除 httpOnly cookie 外,客户端存储都可被 XSS 读取。
  • Cookie 每次请求自动携带,不适合大数据。
  • IndexedDB 配额和隐私模式行为有浏览器差异。
  • URL 中不要传 token 或敏感数据。

Expected Output

产出统一的 storage/cookie/db 封装,key 有命名空间,数据有过期或清理策略,敏感数据只进入合适的安全边界。

安全使用建议
Safe to install based on the available evidence. Treat it as general browser-storage guidance, and be deliberate when using it for cookies, auth tokens, session data, or client-side secrets.
能力评估
Purpose & Capability
The supplied evidence points to browser-storage-related assistance, and the noted storage scope is coherent with that purpose.
Instruction Scope
The activation description appears broad enough to trigger on many storage-related requests, including adjacent token or cache topics, but this is a scoping caution rather than evidence of abuse.
Install Mechanism
No install hooks, package scripts, or automatic command execution were evidenced in the supplied scan context; VirusTotal telemetry was clean.
Credentials
No evidence shows access to browser profiles, session stores, credentials, local files, or external data transfer beyond the apparent storage-guidance purpose.
Persistence & Privilege
No background workers, privilege escalation, persistent local indexing, or credential/session handling were evidenced.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install fec-browser-storage
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /fec-browser-storage 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.5.0
- Added detailed guidance on selecting and implementing browser storage solutions, including localStorage, sessionStorage, IndexedDB, and cookies. - Emphasized security best practices for sensitive data and outlined storage limitations. - Introduced standard procedures for abstraction, key management, error handling, and cleanup strategies. - Included Chinese triggers for broader accessibility. - Linked to further references for practical examples and storage patterns.
元数据
Slug fec-browser-storage
版本 2.5.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Browser Storage 是什么?

Use when choosing, implementing, or reviewing browser storage such as localStorage, sessionStorage, IndexedDB, cookies, client persistence, offline data, sec... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 23 次。

如何安装 Browser Storage?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install fec-browser-storage」即可一键安装,无需额外配置。

Browser Storage 是免费的吗?

是的,Browser Storage 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Browser Storage 支持哪些平台?

Browser Storage 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Browser Storage?

由 Bovin Phang(@bovinphang)开发并维护,当前版本 v2.5.0。

💬 留言讨论