Token导航 LogoToken导航

Agent Skill · 研究检索

local-ref(本地参考)

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

local-ref 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 72,323。

总安装 188周安装 8GitHub Stars 公开资料未说明下载 66核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:local-ref(本地参考)
来源仓库:https://github.com/aivokone/ak-skills
仓库路径:skills/local-ref
安装命令:
npx skills add https://github.com/aivokone/ak-skills --skill local-ref
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/aivokone/ak-skills --skill local-ref

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

local-ref 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。适用于需要根据关键词或任务场景从本地资源中获取信息的场景。通过安装命令添加到宿主环境后,可结合原始 README 核验具体用法。

安装前需确认权限范围、维护状态,避免触发联网或文件读写操作。local-ref 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

来源仓库内路径:skills/local-ref

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/aivokone/ak-skills --skill local-ref;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

local-ref 怎么安装?

在终端执行 npx skills add https://github.com/aivokone/ak-skills --skill local-ref。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

local-ref 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

local-ref 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

local-ref 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

local-ref 用的人多吗?

公开数据是累计安装 188 次,近一周安装 8 次,下载 66 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

local-ref 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
local-ref

本地参考 · 本页

188—需要联网未明确有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Local Reference

Cache library documentation locally so every session reads from disk instead of re-fetching from external sources. Local docs load via Read tool (free, instant) instead of API calls (tokens + latency).

Sources

Fetch documentation from any of these, in order of preference:

  1. Context7 API — curated library docs with code examples. See references/context7-api.md.
  2. WebFetch — official documentation sites (e.g., developer.wordpress.org, getbootstrap.com)
  3. Manual — user-provided docs, internal wikis, or CLI --help output

Commands

Init — local-ref init

Set up local documentation cache for a project.

  1. Detect project technologies from these sources:

- package.json (JS/Node dependencies) - composer.json (PHP dependencies) - AGENTS.md / CLAUDE.md (mentioned frameworks) - requirements.txt / pyproject.toml (Python) - Gemfile (Ruby) - go.mod (Go)

  1. Confirm with user which technologies to cache. Suggest the top 3-5 most relevant. Skip generic/obvious ones (e.g., don't cache "JavaScript" docs for a JS project).
  2. For each technology: a. Scan project code to identify which APIs/patterns are actually used b. Fetch documentation from best available source (see Sources above) c. Filter fetched content to patterns relevant to this project
  3. Write project-specific docs to docs/reference/<topic>.md:

- Start each file with the standard header (see File Header Format below) - Include only patterns relevant to this project's actual code - Cross-reference actual project files when possible (e.g., "Used in lib/acf.php") - Target 100-200 lines per file — enough to be useful, small enough to read quickly

  1. Update AGENTS.md — add a ## Local Reference Documentation section with verbal references (NOT @-references) to the docs: ` ## Local Reference Documentation The docs/reference/ directory contains project-specific API references. Check these files before using external documentation tools: - docs/reference/<file>.md — <brief description> `

Update — local-ref update

Refresh existing local docs.

  1. Read docs/reference/ to find existing doc files
  2. For each file, parse the <!-- source="..." --> header to determine source type and parameters (libraryId/query for context7, url for webfetch)
  3. Re-fetch based on source type:

- context7 — re-fetch using libraryId and query - webfetch — re-fetch from url - manual — skip (flag for user review if stale)

  1. Merge new content while preserving project-specific annotations and cross-references
  2. Update the <!-- cached="..." --> date
  3. Report what changed (updated, skipped manual, failed)

Lookup — local-ref lookup <topic>

Find documentation, local-first.

  1. Check docs/reference/ for a matching file (grep for topic keywords)
  2. If found, read the local file and quote/apply the relevant sections to the current task
  3. If not found, fetch from external source, then ask user if the result should be saved locally

Save — local-ref save (opportunistic, mid-project)

When working on a project and you fetch documentation from an external source (Context7, WebFetch, etc.) that would be useful across sessions:

  1. After using the fetched docs to complete the current task, offer: "This documentation could be useful in future sessions. Save to docs/reference/?"
  2. If user agrees, write a project-specific version (not raw dump) to docs/reference/<topic>.md with the standard header (see File Header Format)
  3. Add the new file to the AGENTS.md ## Local Reference Documentation bullet list so future sessions discover it
  4. Continue with the original task

This keeps docs growing organically as the project evolves, without requiring explicit init or update runs.

Passive Behavior (via AGENTS.md)

The init command adds a ## Local Reference Documentation section to AGENTS.md. This section loads every session (~80 tokens) and tells Claude to check docs/reference/ before external lookups. This passive guidance works without loading the skill itself.

File Header Format

Every cached doc file MUST start with this machine-readable header. The update command depends on it.

# Vite Asset Pipeline — Project Reference
<!-- source="context7" libraryId="/vitejs/vite" query="build manifest plugin configuration" -->
<!-- cached="2026-02-16" -->

Content here...

Header fields:

FieldRequiredValues
sourceyescontext7, webfetch, manual
libraryIdif context7Context7 library ID
urlif webfetchSource URL
queryif applicableQuery used to fetch content
cachedyesISO date (YYYY-MM-DD) of last fetch

For manually created docs, use source="manual":

# Internal Auth API — Project Reference
<!-- source="manual" cached="2026-02-16" -->

When NOT to Cache

Skip local caching when:

  • Rapidly evolving APIs — bleeding-edge or pre-1.0 libraries where docs change weekly
  • One-off lookups — if you only need one fact, fetching is cheaper than maintaining a file
  • Already in AGENTS.md — if the project's agent instructions already cover the topic

When in doubt, cache. Stale docs are better than no docs — update can refresh context7 and webfetch sources automatically (manual sources are flagged for review).

Key Design Rules

  • Verbal references only — never add @docs/reference/... to AGENTS.md (would bloat system prompt). Use plain text descriptions so Claude reads files on-demand.
  • Project-specific over generic — don't dump raw API output. Tailor examples to the project's actual code, file structure, and patterns.
  • Cross-reference project files — mention where patterns are used (e.g., "see lib/assets.php for implementation").
  • One file per topic — keep docs modular. Don't create one giant reference file.
  • 100-200 lines per file — see target in init command above.

File Naming Convention

Use descriptive kebab-case names:

docs/reference/
├── acf-patterns.md
├── vite-asset-pipeline.md
├── wordpress-cpt-taxonomy.md
├── bootstrap-grid-components.md
└── react-hooks-patterns.md

External Source References

See references/context7-api.md for Context7 API endpoints and common library IDs.

平台分布

Codex

36.07%
按下载量换算24

Claude

29.88%
按下载量换算20

Cursor

17.58%
按下载量换算12

Gemini CLI

9.07%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills