Token导航 LogoToken导航TokenDH.com
前端设计执行命令github未标认证来源可访问许可证需确认审计提醒

fdk-file-fetcherfdk 文件获取器

Agent Skill

fdk-file-fetcher 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

367

周安装

15

GitHub Stars

公开资料未说明

下载量

118
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/avesh-h/fdk_file_fetcher --skill fdk-file-fetcher

简介

fdk-file-fetcher 从 GitHub 精准获取指定文件,支持多种模式与输出格式转换。

  • 适用于拉取远程源码、配置或资源文件并在本地安全处理,避免混合本地与远程逻辑。
  • 通过 npx skills add 命令安装,脚本仅访问 api.github.com 与 raw.githubusercontent.com。
  • 使用前应校验输入路径与网络权限,防止越权访问私有仓库或触发速率限制。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

FDK File Fetcher

Architecture

Target flow:

  1. User gives input (file path, extension, call path, mode, optional output).
  2. Agent runs the script with those inputs.
  3. Script fetches the file from GitHub only (no local fallback).
  4. Script writes the result to stdout (chat: source or JSON; create: JSON).
  5. Agent reads stdout and returns the fetched response to the user.

All source is always fetched from GitHub; the script does not read from local files or node_modules for content.

Requirements

  • The script requires network access to:

- api.github.com - raw.githubusercontent.com - registry.npmjs.org (optional, for package metadata)

  • If the agent runs in a sandboxed environment where network is blocked, the script will fail (e.g. ENOTFOUND). In that case the agent must:

- Report the error from stderr to the user. - Mention that the script needs outbound network; suggest running the command locally in a terminal, or enabling network for the agent when running this skill.

When to Use

Use this skill when the user provides:

  • File path
  • Extension
  • Call path
  • mode (chat or create)
  • optional Output (create mode)

Execution Marker

Before running the command, explicitly print in the agent response:

Using skill: fdk-file-fetcher

The script logs to stderr in this format: [fdk-file-fetcher]...

Input Mapping

  • File path -> --file-path

- Full package import path to fetch. - Example: @gofynd/theme-template/page-layouts/single-checkout/shipment/single-page-shipment

  • Extension -> --extension
  • Call path -> --call-path

- Local storefront file where that import is used. - Example: theme/page-layouts/single-checkout/checkout/checkout.jsx

  • mode -> --mode (chat | create)
  • Output -> --output (create mode only; optional)
  • Optional: --output-format json (chat mode only; recommended when the agent runs the script — see below)
  • Optional overrides: --repo, --ref, --prefer-latest, --source-prefix

Agent Behavior After Running the Command

  1. Run the script (from project root) with the user’s inputs mapped to flags.
  2. Capture stdout and stderr. Note the exit code.
  3. If exit code is 0 (success):

- Chat mode - If you used --output-format json: stdout is one JSON object. Parse it. It has content, repoPath, ref, repo, packageName, importPath. Return the content to the user in a code block with the language set from the extension (e.g. jsx, ts, less). You may briefly mention source: e.g. “From repo at ref, path repoPath.” - If you used default (raw): stdout is the raw file content. Return it to the user in a code block with the correct language. - Create mode: stdout is JSON. Parse it and tell the user the file was created at outputFile and, if present, show suggestedLocalImport for the caller file.

  1. If exit code is non-zero (failure):

- Report the stderr content to the user as the error message. - If the error mentions network or resolution failure, add that the script needs network access to GitHub (and optionally npm). Suggest running the command locally or enabling network for this skill.

Command Templates

Chat mode (recommended for agent: use --output-format json so you can parse and present reliably):

node scripts/fdk_file_fetcher.js \
  --file-path "@gofynd/theme-template/page-layouts/single-checkout/shipment/single-page-shipment" \
  --extension "less" \
  --call-path "theme/page-layouts/single-checkout/checkout/checkout.jsx" \
  --mode "chat" \
  --output-format "json" \
  --prefer-latest

Chat mode (raw stdout, for terminal use):

node scripts/fdk_file_fetcher.js \
  --file-path "@gofynd/theme-template/page-layouts/single-checkout/shipment/single-page-shipment" \
  --extension "less" \
  --call-path "theme/page-layouts/single-checkout/checkout/checkout.jsx" \
  --mode "chat" \
  --prefer-latest

Create mode:

node scripts/fdk_file_fetcher.js \
  --file-path "@gofynd/theme-template/page-layouts/single-checkout/shipment/single-page-shipment" \
  --extension "jsx" \
  --call-path "theme/page-layouts/single-checkout/checkout/checkout.jsx" \
  --mode "create" \
  --output "theme/page-layouts/single-checkout"

Notes

  • One file per call. Source is always from GitHub; no local fallback.
  • Resolves package/repo from: package-lock.json, installed package.json, then npm registry.
  • Default mode is chat. In create mode, default output is project root.
  • Supported extensions: jsx, tsx, js, ts, less, css, scss, sass.
  • If required details are missing or invalid, show the expected input format (file path, extension, call path, mode, optional output).

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.96%
按下载量换算42

Claude

28.35%
按下载量换算33

Cursor

19.34%
按下载量换算23

Gemini CLI

10.44%
按下载量换算12

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/avesh-h/fdk_file_fetcher --skill fdk-file-fetcher 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills