Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

context-fetch上下文获取

Agent Skill

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

总安装

143

周安装

6

GitHub Stars

825

下载量

50
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/toonight/get-shit-done-for-antigravity --skill context-fetch

简介

先搜索后读取,避免盲目加载完整文件。context-fetch 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 通过关键词提取和路径定位快速缩小目标范围。
  • 适用于登录端点、缓存机制等具体技术问题的排查。
  • 整个过程不修改任何文件,相对安全但需网络访问权限。
  • 搜索结果依赖项目结构,松散组织的项目可能返回偏差结果。

SKILL.md

Context Fetch Skill

Core principle: Search first, read targeted sections, never load full files blindly.


When to Use

Activate this skill before:

  • Starting any coding task
  • Beginning a refactor
  • Investigating a bug
  • Understanding unfamiliar code

Process

Step 1: Define the Question

What are you trying to find or understand?

Examples:

  • "Where is the login endpoint defined?"
  • "How does the caching layer work?"
  • "What calls the processPayment function?"

Step 2: Identify Keywords

Extract searchable terms:

QuestionKeywords
Login endpointlogin, auth, POST.*login
Caching layercache, redis, memoize
Payment callsprocessPayment, payment

Step 3: Search Before Reading

PowerShell:

# Simple pattern search
Select-String -Path "src/**/*.ts" -Pattern "login" -Recurse

# With ripgrep (if available)
rg "login" --type ts

Bash:

# With ripgrep (recommended)
rg "login" --type ts

# With grep
grep -r "login" src/ --include="*.ts"

Step 4: Evaluate Results

From search results, identify:

  1. Primary candidates — Files directly matching your question
  2. Secondary candidates — Files that reference primary candidates
  3. Ignore list — Files with keyword but unrelated context

Step 5: Targeted Reading

Only read what's justified:

# Read specific line range (PowerShell)
Get-Content "src/auth/login.ts" | Select-Object -Skip 49 -First 30

# Read specific function (with view_code_item tool)
# view_code_item: src/auth/login.ts -> handleLogin

Inputs

When invoking this skill, provide:

InputDescriptionExample
QuestionWhat you're trying to find"Where is user validation?"
ScopeDirectory or file patternsrc/, *.service.ts
KeywordsTerms to search forvalidate, user, schema

Outputs

After executing this skill, report:

  1. Candidate files — Ranked by relevance
  2. Relevant extracts — Key snippets found
  3. Next reads — Specific files/line-ranges to read next
  4. Skip list — Files searched but not relevant

Anti-Patterns

❌ Loading Everything First

# BAD: Reading 5 full files to "understand context"
Read: src/auth/login.ts (500 lines)
Read: src/auth/register.ts (400 lines)
Read: src/auth/types.ts (200 lines)

✅ Search Then Target

# GOOD: Search first, read only what's needed
Search: "validatePassword" in src/auth/
Found: login.ts:45, register.ts:78
Read: login.ts lines 40-60

❌ Broad Searches

# BAD: Searching for common terms
Search: "function" → 10,000 results

✅ Specific Searches

# GOOD: Searching for specific identifiers
Search: "validateUserCredentials" → 3 results

Context Efficiency Metrics

Track your efficiency:

MetricGoodPoor
Files searched10+<5
Files fully read<310+
Lines read<2001000+
Targeted sectionsYesNo

Integration with GSD

This skill supports GSD's context management:

  • Prevents context pollution — Less irrelevant code loaded
  • Supports wave execution — Each wave starts with minimal context
  • Enables model switching — Less context = easier handoff

Quick Reference

1. Define question     → What am I looking for?
2. Extract keywords    → What terms to search?
3. Search codebase     → rg/grep/Select-String
4. Evaluate results    → Which files matter?
5. Read targeted       → Specific lines only
6. Report findings     → Candidates + extracts

*Part of GSD methodology. See PROJECT_RULES.md for search-first discipline rules.*

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

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

平台分布

Codex

38.16%
按下载量换算19

Claude

27.23%
按下载量换算14

Cursor

18.5%
按下载量换算9

Gemini CLI

10.03%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills