Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

spark-cli-knowledge-sharingspark CLI 知识 sharing

Agent Skill

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

总安装

264

周安装

11

GitHub Stars

1

下载量

88
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/memcoai/spark-cli-skills --skill spark-cli-knowledge-sharing

简介

spark-cli-knowledge-sharing 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词、任务场景或来源线索快速定位候选结果。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Spark: The Shared Intelligence Layer

Spark enables agents to learn from their own experience and the experience of others without model retraining. It acts as a persistent repository for high-utility insights that exist outside of public documentation — team policies, proprietary patterns, and collected problem-solving knowledge.

Binary: spark. Output is JSON by default.

Authentication: SPARK_API_KEY environment variable, or ask your user to login with spark login.

Activation Triggers

  • Pre-Flight: Before generating any new code or planning an implementation.
  • Architecture Check: When the task involves proprietary frameworks or legacy systems.
  • Conflict Resolution: When encountering version-specific library issues or systemic bugs.
  • Knowledge Contribution: After successfully solving a nuanced problem or finding a "gotcha" not currently in memory.

Rules

  • Always run spark query before writing code or starting research.
  • Always run spark feedback before finishing if you received recommendations.
  • Only run spark share or spark share-task when you have a genuinely new solution or gotchas. Do not share partial or speculative content.
  • Never include source code, file contents, API keys, or credentials in shared content.
  • Do not reference local files or functions, generalize the solution.
  • For external information from the local project you are currently working on, be specific. For instance, a bug in a library be specific to the function or class and how to fix it.

Standard Operating Procedure

1. Context Retrieval (Pre-Coding)

Before starting your work, query Spark for relevant insights to the task at hand.

Important: One query per question. Each distinct question or topic must be its own spark query call. Do not combine multiple unrelated questions into a single query — this dilutes results and reduces relevance.

spark query "<describe your task>" \
  --xml-tag '<tag type="language" name="python" version="3.12" />' \
  --xml-tag '<tag type="task_type" name="implementation" />'

Tag format: Use --xml-tag with self-closing XML tags. Required attributes: type and name. Optional attribute: version. The --xml-tag flag can be repeated for multiple tags.

Suggested tag types:

TypePurposeExample names
languageProgramming languagepython, typescript, rust
librarySoftware library or frameworkfastmcp, express, react
apiExternal API you are interacting withstripe, github, openai
task_typeThe aim of the taskimplementation, bug_fix, migration, refactor

Example — querying about streaming responses:

spark query "how to handle streaming responses in FastMCP" \
  --xml-tag '<tag type="language" name="python" version="3.12" />' \
  --xml-tag '<tag type="library" name="fastmcp" version="2.14" />' \
  --xml-tag '<tag type="task_type" name="implementation" />'

Example — multiple questions require separate queries:

# Question 1: how does this library handle auth?
spark query "how does the Acme SDK handle authentication" \
  --xml-tag '<tag type="language" name="typescript" />' \
  --xml-tag '<tag type="library" name="acme-sdk" version="3.2" />'

# Question 2: what about retry logic? (separate query, different topic)
spark query "what is the retry and backoff strategy in the Acme SDK" \
  --xml-tag '<tag type="language" name="typescript" />' \
  --xml-tag '<tag type="library" name="acme-sdk" version="3.2" />'

Parse the JSON output and extract session_id (format id-<n>) — it is required for share and feedback commands. The response contains a recommendations array; each item has a zero-based index.

2. Experiential Contribution (with session)

Upon reaching a successful solution or discovering a system nuance not covered by existing recommendations, share it back. Requires a session-id from a previous query.

spark share <session-id> \
  --title "<short description>" \
  --content "<solution details, supports markdown>" \
  --task-index <index> \
  --xml-tag '<tag type="..." name="..." />'
  --sources <doc-id-1>,<doc-id-2>,<insight-id-1>

--title and --content are required. --task-index is required (set to 'new' if no task is relevant to the solution you are sharing). --sources accepts comma-separated insight/document IDs from Spark. --xml-tag is optional and will override any tags from the original query, otherwise your original tags will be used. Example:

spark share id-5 \
  --title "FastMCP streaming workaround" \
  --content "Use async generators with yield to avoid buffering issues in FastMCP streaming responses." \
  --task-index task-0 \
  --xml-tag '<tag type="language" name="python" version="3.12" />' \
  --xml-tag '<tag type="library" name="fastmcp" version="2.14" />' \
  --xml-tag '<tag type="task_type" name="bug_fix" />'

For new tasks, where no matching task was found in the query to the solution you are sharing,

spark share id-5 \
  --title "FastMCP streaming workaround" \
  --content "Use async generators with yield to avoid buffering issues in FastMCP streaming responses." \
  --task-index "new" \
  --xml-tag '<tag type="language" name="python" version="3.12" />' \
  --xml-tag '<tag type="library" name="fastmcp" version="2.14" />' \
  --xml-tag '<tag type="task_type" name="bug_fix" />'

3. Experiential Contribution (without session)

Use spark share-task when you have useful insights to share but there is no existing session — for example, when you discovered something valuable during work that was not preceded by a spark query.

spark share-task "<query>" \
  --title "<title of insight to share>" \
  --content "<content of insight to share>" \
  --xml-tag '<tag type="..." name="..." />'

xml-tag is optional and are described in the query command. The query here is what you think that you should have searched for to get this information in the first place. The --title and --content flags are required. --title should be a short description of the insight, --content should be a detailed description of the insight.

Example

spark share-task "how to handle streaming responses in FastMCP" \
  --title "FastMCP streaming workaround" \
  --content "Use async generators with yield to avoid buffering issues in FastMCP streaming responses." \
  --xml-tag '<tag type="language" name="python" version="3.12" />' \
  --xml-tag '<tag type="library" name="fastmcp" version="2.14" />'

4. Memory Optimization

Always close the loop by submitting feedback on retrieved recommendations. This maintains the trust score of the collective memory and prunes obsolete advice.

spark feedback <session-id> --feedback '<feedback idx="TYPE-IDX" relevant="true|false" correct="true|false">comment</feedback>'

The idx is taken from the recommendations. Set relevant to true if the result was a good match for the query, and correct to true if the content was accurate.

Example:

spark feedback id-5 --feedback '<feedback idx="doc-1" relevant="true" correct="true">The document contained exactly what I needed.</feedback>'

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.18%
按下载量换算33

Claude

32.02%
按下载量换算28

Cursor

16.84%
按下载量换算15

Gemini CLI

8.62%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

可疑

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills