material-retrieve SKILL.md skillA

material-retrieve from simonwong/skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add simonwong/skills/material-retrieve@v1.1.0

Pins v1.1.0 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
simonwong/skills
Path
in-progress/material-retrieve/SKILL.md
Versions recorded
1
Latest version
v1.1.0, committed Sep 8, 2026
Size
3,113 bytes
Repository stars
9
License
none declared

从素材库中按主题、标签、类型检索可复用的写作素材。当用户说"找素材""查素材""关于XX的素材""检索素材库""有没有关于XX的东西""翻翻素材库"时使用此技能。当用户在写作过程中需要支撑材料时也应主动建议使用。.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# 素材检索

从素材库中按条件检索相关素材。

## 数据路径

素材库位于 `./writing-workspace/materials/`:
- `index.jsonl` — 素材索引(JSONL 格式,每行一条 {id, summary, tags, type, source_title, reusability})
- `entries/{id}.json` — 素材完整内容

## 执行流程

### 1. 读取索引

读取 `./writing-workspace/materials/index.jsonl`。

- 如果文件不存在或为空:告诉用户"素材库还是空的,可以用 material-ingest 技能先入库一些文章。"然后结束。
- 如果有内容:继续检索。

### 2. 解析用户查询

从用户输入中提取检索条件,支持以下维度的任意组合:

| 维度 | 示例 |
|------|------|
| 关键词 | "关于创业的素材" → 关键词"创业" |
| 标签 | "标签是AI的" → 标签匹配"AI" |
| 类型 | "找一些案例" → type=case |
| 情绪 | "有没有比较犀利的观点" → sentiment=provocative |
| 复用度 | "找那些可以直接用的" → reusability=high |

如果用户只给了一个主题词,同时按关键词和标签两个维度匹配。

### 3. 多维匹配

遍历 index.jsonl 中的所有条目,按以下逻辑匹配:

**关键词匹配**(模糊):
- 检查 summary 和 tags 中是否包含查询词或其近义词
- "创业"应匹配"初创公司""创业者""startup"
- "AI"应匹配"人工智能""大模型""LLM"

**标签匹配**(精确 + 模糊):
- 精确匹配优先
- 同义标签也算匹配(如上)

**类型/情绪/复用度匹配**(精确):
- 直接对比字段值

### 4. 排序

匹配结果按以下优先级排序:
1. 相关度(匹配维度越多越靠前)
2. 可复用程度(high > medium > low)
3. 时间(新的优先)

### 5. 读取完整内容

对排序后的前 10 条结果,读取 `entries/{id}.json` 获取完整 content。

### 6. 展示结果

```
## 素材检索结果

查询:关于"创业"的素材
匹配:共 X 条

| # | ID | 类型 | 摘要 | 标签 | 复用度 |
|---|-----|------|------|------|--------|
| 1 | mat_xxx | viewpoint | ... | 创业, AI | high |
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add simonwong/skills/material-retrieve@sha256:0033163f3417a412

The line at the top of this page pins the label v1.1.0, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_565zrsymiw7xjcj6.svg)](https://markdownregistry.com/a/art_565zrsymiw7xjcj6)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Sep 8, 2026.

versioncommittedcommitsizeaudit
v1.1.0 latest2026-09-08 705238f 3,113 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (3113 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

simonwong/skills · 9 stars · license none declared · pushed 2026-10-28 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_565zrsymiw7xjcj6
GET https://markdownregistry.com/api/v1/resolve?ref=simonwong/skills/material-retrieve
GET https://markdownregistry.com/api/v1/blob/0033163f3417a4121cd8874c0d4a04146d3fa5e712b71112aafd1251440a0634

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from simonwong/skills

AGENTS.md AGENTS.md file
simonwong/skills · AGENTS.md
git:20260923.a187f06 · audit A · 9 stars
CLAUDE.md CLAUDE.md file
simonwong/skills · CLAUDE.md
git:20260914.95c2646 · audit A · 9 stars
AGENTS.md@in-progress AGENTS.md file
simonwong/skills · in-progress/AGENTS.md
git:20260930.4e73ed5 · audit A · 9 stars
compose SKILL.md skill
simonwong/skills · in-progress/compose/SKILL.md · 基于主题或参考文章进行中文创作。自动检索素材库、加载主力风格档案,产出符合个人风格的文章。支持公众号、Twitter、小红书、博客等多种场景。当用户说"写一篇关于XX的文章""围绕XX创作""基于这篇文章写一篇""参考这篇英文写个中文版""…
v1.1.0 · audit A · 9 stars
material-ingest SKILL.md skill
simonwong/skills · in-progress/material-ingest/SKILL.md · 拆解文章,提取可复用的素材(观点、数据、案例、金句、类比、方法论),分类标注后存入素材库。当用户说"拆解素材""入库""收集这篇文章""提取素材""分析这篇文章的要点"或投喂文章希望留存有价值内容时使用此技能。即使用户只是分享文章并表达"这…
v1.2.0 · audit A · 9 stars
rewrite SKILL.md skill
simonwong/skills · in-progress/rewrite/SKILL.md · 润色和改写文章,去除 AI 感,按主力风格档案调整文风。当用户说"润色""改稿""去 AI 感""打磨一下""修改文风""帮我改改""这篇读起来太像 AI…
v1.0.0 · audit A · 9 stars
style-extract SKILL.md skill
simonwong/skills · in-progress/style-extract/SKILL.md · 分析文章的写作风格特征,提取风格维度存入风格素材库。可融合多篇风格素材生成或更新主力风格档案(my_style.json)。当用户说"分析风格""提取写作风格""学习这个语气""分析我的文风""吸收这个风格""更新我的风格"时使用此技能。即…
v1.2.0 · audit A · 9 stars
title-gen SKILL.md skill
simonwong/skills · in-progress/title-gen/SKILL.md · 为文章生成多个候选标题,覆盖不同策略类型,标注适用平台。当用户说"帮我起个标题""生成标题""取标题""想个标题""这个标题不好,换几个"时使用此技能。当用户刚完成创作并需要标题时也应主动建议使用。
v1.0.0 · audit A · 9 stars
wechat-publish SKILL.md skill
simonwong/skills · in-progress/wechat-publish/SKILL.md · 本地预览 Markdown 文章的公众号排版(含微信暗色模式),一键上传图片和封面并同步到公众号草稿箱。用于“预览公众号排版”“发到公众号草稿”“同步草稿箱”“调公众号样式”。
v0.1.0 · audit A · 9 stars
code-simplifier SKILL.md skill
simonwong/skills · skills/engineering/code-simplifier/SKILL.md · Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses…
v1.0.0 · audit A · 9 stars
ship-pr SKILL.md skill
simonwong/skills · skills/engineering/ship-pr/SKILL.md · Commit outstanding work in batches, then open, merge, and clean up a pull request.
git:20260910.ff19eb3 · audit A · 9 stars
claude-dispatch SKILL.md skill
simonwong/skills · skills/misc/claude-dispatch/SKILL.md · Keep coordination and verification in the main thread; dispatch tasks to Sonnet or Opus subagents by difficulty.
git:20261028.cecb393 · audit A · 9 stars

Every file in simonwong/skills

Browse by kind, by grade A, or by owner.