Token导航 LogoToken导航

Agent Skill · 研究检索

hike(hike 搜索)

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

hike 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为可写文件;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 69,522。

总安装 218周安装 9GitHub Stars 2下载 71核验 2026-05-01

安装说明

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

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/code-hike/hike --skill hike

这个 Skill 是做什么的

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

用于查找、检索和筛选相关信息。hike 属于研究检索类 Skill,可作为该场景下的辅助能力补充。适合根据关键词或任务场景快速定位候选结果。可结合来源仓库和原始 README 核验具体用法。安装前建议确认权限范围和维护状态。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。注意是否会触发联网、命令执行或文件读写。

来源仓库内路径:skills/hike

上手步骤

4 步
  1. 1

    确认自己的宿主工具

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

  2. 2

    拿到安装命令

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

  3. 3

    安装后重启宿主

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

  4. 4

    按最小权限试用

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

常见问题

6 条

hike 怎么安装?

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

hike 支持哪些 AI 工具?

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

hike 需要什么权限?

权限级别是可写文件。该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

hike 是免费的吗?

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

hike 用的人多吗?

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

hike 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

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

值得选的地方

  • 同时适配 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调用外部服务未明确有提醒
hike

hike 搜索 · 本页

2182可写文件未明确未通过

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

SKILL.md 原文

Write a narrative explaining what happened in this coding session.

Phase 1: Gather context

Build a clear picture of what changed and why. Use whatever sources are available — pick the ones that fill in the gaps:

  • Conversation history — the richest source when present. Extract the intent, pivots, decisions, and aha moments. Skip noise (retries, dead ends, routine tool output).
  • Git — git diff, git status, git log. Essential when the conversation is thin or absent.
  • File reads — read key changed files when the diff alone doesn't make the change legible.

By the end of this phase you should know:

  • Session goal — what was the intent?
  • Files changed — which files were touched?
  • Behavior changes — what's different now?
  • Notable decisions — what tradeoffs were made?

Discard dead ends. Only the final state matters.

Phase 2: Decide Explanation Order

Look at all the files changed and think about the best order to present them. This is a teaching order, not the chronological order of the session.

  • Foundation before usage — if file A defines a helper that file B uses, explain A first.
  • Setup before dependent logic — config, types, schemas before the code that relies on them.
  • Core mechanism before edge cases — the happy path first, error handling after.
  • Split a file across multiple <Walk> blocks when it helps — if a file has many changes or changes that serve different purposes, explain each group in a separate <Walk> placed where it fits in the narrative. Don't force everything into one block just because it's the same file.

The goal is that at every point in the narrative, the reader already has the context they need for what comes next. If a file change depends on understanding another file's change, the dependency comes first.

Phase 3: Build the Steps for Each File

The goal is to split each file's diff into multiple small steps that make the changes easy to follow. The UI animates transitions between steps, so the reader only needs to notice what changed — not re-read the whole block.

Go through the ordered files one at a time. For each file, think about how to break the diff into steps.

How to split

  • Hard limit: no more than 5 lines changed between consecutive steps. "Changed" means lines that are different when comparing step N to step N-1 (for the first step in a Walk, all lines count). Collapsing previously-introduced code into a comment doesn't count as a changed line. If a step exceeds 5, split it — no exceptions. Count literally.
  • If you're wondering whether to split — split.
  • If it's a new file, start very small.
  • Keep some shared code between consecutive steps so the reader has an anchor for the transition. If two steps share no code at all, they probably belong in separate <Walk> blocks.
  • When stepping through sibling functions in the same file, collapse the previous function and show the new function below it. This gives the reader a visual anchor for the transition. If the functions are truly unrelated, use separate <Walk> blocks instead.
  • Freeze context code between steps. Code carried over from a previous step for orientation must not change — don't silently add, modify, or reorder lines in it. (Collapsing multiple lines into a comment is fine — that reduces noise.) If the reader sees the context shift, their attention splits between the context change and the new code you're actually introducing. If you need to change that code too, do it in its own step first.

What to include in each step

  • Only the code that matters. Filler code or unimportant classnames distract the reader from the important parts. Trim Tailwind class strings to only the classes relevant to the explanation (e.g., if the callout is about print:hidden, show className="... print:hidden" — don't include the full "fixed bottom-0 left-0 right-0 bg-white/90 dark:bg-zinc-900/90 backdrop-blur..." string). Omit the className prop entirely when no class is relevant.
  • Always include parent scope. Every snippet must show all enclosing scopes up to the top-level declaration (function, class, component) so the reader knows *where* in the file the code lives. Never show floating lines without their surrounding structure.
  • If some code isn't used until a later step, wait until that step to introduce it. Don't preload imports, helpers, or variables.
  • If needed, use comments to signal collapsed code, code that will be introduced later, or code from earlier steps that is no longer relevant to the current step.
  • Add a !callout to every step. Callouts guide the reader's attention and help them parse the step faster. Carefully pick the most important line in the step to place the callout — it should point to the key change.
  • Max one !callout per step. If a step needs more than one callout, it's probably better to split into more steps.
  • Mark changes. Wrap contiguous new/changed lines with !mark-start and !mark-end. The callout target can be inside the range — that's fine. Marks are mandatory whenever a step mixes context code with new/changed code — they're the only way the reader knows what changed. Skip marks only when most lines in the step would be marked (marks add no signal in that case).
  • For extra information, use !tooltip — supplementary info shown on demand.

Walk syntax

Each group of related changes gets one <Walk> block with a filename attribute (a file may have multiple <Walk> blocks if its changes are unrelated — see Phase 2). Inside it, each step is a code fence with "!!" in the metastring. Tooltip content goes in ##!id headings after the steps.

<Walk filename="app/api/mtime/route.ts">

// !tooltip[/force-dynamic/m] dynamic export const dynamic = "force-dynamic";

export async function GET(request: NextRequest) { const fileName = request.nextUrl.searchParams.get("file"); const filePath = getFilePath(fileName); // !callout[/statSync/m] Read modified time from file system const stat = fs.statSync(filePath); return NextResponse.json({ mtime: stat.mtimeMs }); }

// !tooltip[/force-dynamic/m] dynamic export const dynamic = "force-dynamic";

export async function GET(request: NextRequest) { const fileName = request.nextUrl.searchParams.get("file");

// !mark-start if (!fileName) { // !callout[/NextResponse/m] Handle missing file return NextResponse.json({ error: "Missing file" }, { status: 400 }); } // !mark-end

const filePath = getFilePath(fileName); const stat = fs.statSync(filePath); return NextResponse.json({ mtime: stat.mtimeMs }); }


## !dynamic

Next.js caches route handlers by default; `force-dynamic` ensures every poll gets a fresh stat.

</Walk>

Annotation reference:

  • !callout[/regex/m] message — explains intent at a regex match. The m flag searches forward through the step to find the match.
  • !tooltip[/regex/m] id — on-demand detail at a regex match.
  • !mark-start / !mark-end — highlights all lines between the two markers (visual emphasis, no message).
  • !diff - — marks the next line as removed (struck-through / red). Use when highlighting a deletion is important for the explanation.
  • Match comment style to language, for example:

- TS/JS: //!callout[/regex/m] - JSX/TSX blocks: {/*!callout[/regex/m] */}

Common Pitfalls

Parent scope

Every snippet must show all enclosing scopes up to the top-level declaration. Never show floating lines.

Bad — shows the inner function but not where it lives:

function handleDelete() {
  // ...
}

Good — full nesting visible:

function UserCard() {
  function handleDelete() {
    // ...
  }
  // ...
}

Bad — floating JSX, no enclosing component:

<button onClick={handleDelete}>
  <Trash2 className="size-4" />
</button>

Good — component scope visible:

function UserCard() {
  return (
    <div>
      <button onClick={handleDelete}>
        <Trash2 className="size-4" />
      </button>
    </div>
  );
}
Mark usage

Use !mark-start before the first changed line and !mark-end after the last changed line to bracket contiguous ranges. For non-contiguous changes, use separate pairs.

Bad — no marks, changed lines buried in context:

export async function GET(request: NextRequest) {
  const fileName = request.nextUrl.searchParams.get("file");
  const filePath = getFilePath(fileName);
  if (!fileName) {
    return NextResponse.json({ error: "Missing param" }, { status: 400 });
  }
  const normalized = path.normalize(filePath);
  // !callout[/startsWith/m] Prevent path traversal
  if (!normalized.startsWith(BASE_DIR)) {
    return NextResponse.json({ error: "Forbidden" }, { status: 403 });
  }
  const stat = fs.statSync(filePath);
  return NextResponse.json({ mtime: stat.mtimeMs });
}

Good — contiguous changed lines bracketed with !mark-start/!mark-end:

export async function GET(request: NextRequest) {
  const fileName = request.nextUrl.searchParams.get("file");
  const filePath = getFilePath(fileName);
  // !mark-start
  if (!fileName) {
    return NextResponse.json({ error: "Missing param" }, { status: 400 });
  }
  const normalized = path.normalize(filePath);
  // !callout[/startsWith/m] Prevent path traversal
  if (!normalized.startsWith(BASE_DIR)) {
    return NextResponse.json({ error: "Forbidden" }, { status: 403 });
  }
  // !mark-end
  const stat = fs.statSync(filePath);
  return NextResponse.json({ mtime: stat.mtimeMs });
}
Collapsing code

When trimming unimportant code, always use valid syntax. Use comments (//...) to collapse lines. Never use bare ... as code — it's not valid in most languages and breaks JSX/TSX parsing.

Bad — bare ... is not valid syntax:

<text x={x} ...>x</text>
function foo(...) { }

Good — just omit unimportant props, no placeholder needed:

<text x={x}>x</text>

For function args or other expressions, use a comment:

function foo(/* ... */) {}

When collapsing multiple lines inside a block, use a single-line comment:

function UserCard() {
  // ...
}
Comment syntax

Annotation comments must use the comment syntax of the surrounding context AND appear in a valid position for that syntax.

Bad — // comments inside JSX:

function UserCard() {
  // !mark-start
  const name = "Alice";
  return (
    <div>
      // !mark-end
      <button onClick={handleClick}>Save</button>
    </div>
  );
}

Good — // in JS context, {/* */} in JSX context:

function UserCard() {
  // !mark-start
  const name = "Alice";
  return (
    <div>
      {/* !mark-end */}
      <button onClick={handleClick}>Save</button>
    </div>
  );
}

Bad — {/* */} between JSX element attributes (not a valid position):

<iframe
  {/* !callout[/print:hidden/m] Hidden on print */}
  className="... print:hidden"
/>

Good — annotation on its own line before the element:

{
  /* !callout[/print:hidden/m] Hidden on print */
}
<iframe className="... print:hidden" />;

Note: {/* */} annotations are only valid as JSX children (inside an element's opening/closing tags), never between attributes, and never as bare expressions in ternary branches like condition? ({/*!mark-start */} <div>...</div>):.... Place them inside the nearest enclosing element instead.

Phase 3.1: Self-review

After building all steps for a file, re-read each step and verify:

  1. Does it show the enclosing function/class/block? If not, add parent scope.
  2. Is there filler code that doesn't serve the explanation? Long Tailwind class strings with irrelevant classes? If so, trim it.
  3. Does it introduce code that isn't relevant until a later step? If so, move it.
  4. Count lines changed from the previous step (or all lines for the first step). More than 5? Split it.
  5. Do consecutive steps share enough code for the reader to stay oriented? If not, add shared context.
  6. If the step isn't self-evident, does it have a !callout? If not, add one.
  7. Are contiguous new/changed lines bracketed with !mark-start/!mark-end? If not, add them. Only skip marks with good reason (e.g., most lines in the step are changed).
  8. Compare each step's context code to the previous step. Is any carried-over code different (other than collapsing multiple lines into a comment)? If so, freeze it or move the change to its own step.
  9. Are all annotation comments (!callout, !mark-start, !mark-end, !tooltip, !diff) using the correct comment syntax for their context (// in JS/TS, {/* */} in JSX) AND placed in valid positions? (No {/* */} between element attributes or as bare ternary expressions.)
  10. Is all code valid syntax? No bare ... as expressions, props, or arguments — use comments to collapse code instead.

Fix any violations before moving to the next file.

Phase 4: Structure the Narrative Around the <Walk>

Now assemble the full MDX file. The <Walk> blocks are the backbone — the prose exists to connect and contextualize them.

Start with the problem statement: One sentence. What's broken or missing, where it shows up, why the change is needed. This comes before any code.

Then alternate between <Walk> and prose transitions:

  • Between <Walk> blocks (different files), add a short prose transition if the connection isn't obvious. State the intent ("now wire the limiter into the route") not the implementation details the reader is about to see.
  • If a non-trivial flow connects two files, consider a Mermaid diagram (``` `mermaid ```) — but only if multiple actors or branches make prose hard to follow. For linear flows, prose is better.

Prose style: Short sentences. Front-load the key point. Bold sparingly for scanning. Inline code as *symbol*. End with a colon when directly introducing a code block. Don't repeat what's visible in the snippet.

Comment syntax for annotations: TS/JS → //!callout[/regex/m], JSX → {/*!callout[/regex/m] */}. Annotations (!mark-start/!mark-end, !callout, !diff, !tooltip) only work inside <Walk>-managed code blocks. Outside them, use standard fenced code blocks with short prose.

Close with completeness: The final steps should show the complete working mechanism.

Finishing touches

Add frontmatter at the top of the file. Get the current timestamp by running date +%Y-%m-%dT%H:%M:%S:

---
title: "Human-readable session title"
date: "YYYY-MM-DDTHH:MM:SS"
version: "<version from this skill's frontmatter>"
---

Check for missing context. Re-read the map and the narrative side by side. If there's any important information from the map that didn't make it into the narrative — a key decision, a tradeoff, a non-obvious reason for a change — find the right place and way to include it.

Phase 5: Append Raw Thought Process

Important: do this as you work, not after. During Phases 1–4, whenever you're thinking through a decision — ordering files, splitting steps, deciding what to cut — write those thoughts down immediately in a scratch area. Don't wait until the end to reconstruct your reasoning; that produces rationalization, not the real process. Log when you transition between phases (e.g., "--- moving to Phase 3 ---") so the decision trail is easy to follow.

After the hike file is complete, append all of those raw notes to the end of the file inside a fenced code block so raw content doesn't break MDX parsing:

## Thought Process

(raw notes here)

This should be unedited stream-of-consciousness — the messy real-time reasoning, not a clean retrospective. Include false starts, uncertainties, things you almost did differently. The goal is to preserve the actual decision trail so the author can later understand what really happened during generation.

Phase 6: Store and Display

Before writing, check for secrets. Scan the full output for API keys, tokens, passwords, credentials, or private URLs. Redact or omit any that appear.

Write to .hike/<descriptive-slug>.mdx. Derive the slug from session content (e.g., add-dark-mode-toggle.mdx, fix-auth-redirect-loop.mdx, refactor-api-client.mdx). Create .hike/ if it doesn't exist. If the file already exists, append -2, -3, etc. (e.g., add-dark-mode-toggle-2.mdx).

Skip this step in non-interactive mode (Claude Code's -p/--print flag) — there's no browser to open.

Otherwise, run npx @code-hike/hike@^<version> <filename> in the background to open a browser preview. <version> is the version from this skill's frontmatter, prefixed with ^ for compatible versions. Use run_in_background: true so the user can review at their own pace without blocking the conversation. Run the command in the user's current working directory (not inside .hike/).

npx @code-hike/hike@^<version> <slug>.mdx

平台分布

Codex

34.84%
按下载量换算25

Claude

31.71%
按下载量换算23

Cursor

17.83%
按下载量换算13

Gemini CLI

9.94%
按下载量换算7

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

未通过

权限和风险

可写文件

该 Skill 可能写入或修改本地文件,使用前需要确认目标目录和修改范围。

安装前确认

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

继续浏览同类 Skills