Token导航 LogoToken导航TokenDH.com
研究检索external-serviceclawhub未标认证来源可访问clear审计提醒

fragmentsfragments 搜索

Agent Skill

fragments 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,681

周安装

114

GitHub Stars

公开资料未说明

下载量

939
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:fragments(fragments 搜索)
来源仓库:https://github.com/hx-w/fragments
安装命令:
openclaw skills install fragments
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install fragments

简介

fragments 提供备忘录式碎片化工作记录与想法捕捉工具。

  • 支持创建、搜索、更新、删除及评论等完整生命周期管理。
  • 集成每日日志功能,结构化记录工作内容与反思要点。fragments 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 数据存储于本地或指定存储后端,需定期备份防丢失。
  • 建议按项目或时间维度分类标签以便快速检索历史记录。

SKILL.md

name
fragments
version
1.0.0
description
>
Daily-log
structured work journal in .plan format.

Fragments

Setup Check

  1. Read ~/.config/fragments.json (Windows: %USERPROFILE%\.config\fragments.json).
  2. If file missing → first install. Detect current platform, read the matching setup guide:

- Claude Code → references/setup-claude-code.md - OpenCode → references/setup-opencode.md - OpenClaw → references/setup-openclaw.md

  1. If file exists → verify MCP is configured. If incomplete → read the matching setup guide.
  2. All good → proceed to normal usage.

Platform Detection

Detect the current platform by checking for platform-specific markers:

PlatformDetection Marker
Claude Code~/.claude/ directory exists
OpenCode~/.config/opencode/ directory exists
OpenClaw~/.openclaw/ directory exists

Modes

memo — Full Lifecycle Management

Create, search, update, delete, and comment on memos via MCP tools.

Workflows:

  • Create & dedup → references/memo-capture.md
  • Update & delete → references/memo-capture.md#lifecycle
  • Comments → references/memo-comments.md

Write operations require user confirmation before calling.

daily-log — Daily Work Journal

One structured log per user per day. Content follows .plan format enforced by the Memos server.

Format rules, diff-merge logic, and hook trigger workflow: → references/daily-log.md

search — Semantic Search

Server-side full-text retrieval via MCP, optional client-side TF-IDF + LSA rerank for semantic/fuzzy queries.

Pipeline details and tuning parameters: → references/search-strategy.md

Retrieval Strategy

Data volume can be large. Always prefer targeted retrieval over bulk listing.

Memos

  1. Search first: memos_search_memos(query=...) — use when the user has

any intent, keyword, or topic. Returns bounded results.

  1. Get by ID: memos_get_memo(name=...) — use when you already know the

memo name. Expand full content only for shortlisted results.

  1. List as fallback: memos_list_memos(page_size=10) — use only for

explicit "show recent" requests. Always set a small page_size.

  1. Client-side rerank: pipe search results through scripts/fragments_search.py

for semantic ranking when server-side results need refinement.

Comments

  • List comments: memos_list_memo_comments(name=...) — retrieve all comments

on a memo. Comments inherit the parent memo's visibility.

Daily Logs

  1. Get by date: memos_get_daily_log(date=YYYY-MM-DD) — single log lookup.

Pass creator="users/{id}" to view another user's log (PROTECTED visibility).

  1. List with date range: memos_list_daily_logs(start_date, end_date, page_size=10)

— use only for explicit "show this week/month" requests. Always bound the range.

Tags

  • memos_list_tags — lightweight, use to discover available tags for filtering.

No read operations require user confirmation.

Write Operations

All write operations require explicit user confirmation before calling. Read operations need no confirmation. Never echo PAT tokens to the conversation.

Memo Writes

OperationMCP ToolWhen to Use
Creatememos_create_memoNew idea, note, snippet
Updatememos_update_memoModify content, visibility, pin
Deletememos_delete_memoRemove memo (irreversible)
Add commentmemos_create_memo_commentAppend discussion to memo

Daily Log Writes

  • memos_save_daily_log(date=..., content=...) — full replacement save.

Always include complete content (existing + new lines).

Hook Workflow (Passive Trigger)

When triggered by agent task completion:

  1. Assess whether this session performed meaningful work. Skip if trivial.
  2. Call memos_get_daily_log for today's date.
  3. Format new entries in .plan style.
  4. Diff against existing content. Skip if no new information.
  5. Long-form content → suggest creating a memo first, reference in daily log.
  6. Show user the full merged log (existing + new). Wait for confirmation.
  7. Call memos_save_daily_log with complete content (full replacement).

适合场景

01

研究助手

02

事实核查

03

知识库问答

04

带来源的搜索总结

能力概览

能力 1

组合搜索和大模型调用

能力 2

支持多来源检索和总结

能力 3

强调引用来源和事实核查

能力 4

适合研究型 Agent 流程

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

79.55%
按下载量换算747

安全审计

VirusTotal

未展示

ClawScan

可疑

Static analysis

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills