跳到正文
Skillpedia
智能体81k · #1617

deepseek-chat

它能做什么

这项技能向 DeepSeek 的对话模型发送一次请求,并把回答以数据形式返回。适合希望用快速、低成本的模型完成简单一步任务的人。

适用场景

  • ✓当你想用快速的非推理模型为一段文字生成简短摘要时。
  • ✓当你需要在一次请求中完成快速分类或提取时。
  • ✓当你想在简单任务上比较 DeepSeek 与其他模型的回答时。

技能链接

https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-deepseek-harness/skills/deepseek-chat/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-deepseek-harness/skills/deepseek-chat/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请用 DeepSeek 把这段文字概括为两句话。”

每周 5 个新技能,1 分钟读完。

工作原理

这项技能使用你 shell 中保存的密钥,通过网络把你的提示发送给 DeepSeek,然后返回回复和用量数字。如果缺少密钥或无法连接服务,它会报告降级状态,而不是直接失败。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Wraps DeepSeek's chat/completions endpoint in the same subprocess-invocation shape as the other ruflo-*-harness skills (see ruflo-metaharness's harness-score for the reference). No library import on ruflo's boot path.

When to use

  • You want a cheap, fast completion from a non-reasoning model.
  • The task fits in a single request/response — no multi-turn context.
  • You want the raw content back as JSON so downstream tooling can consume it.
  • For reasoning-heavy tasks (proofs, multi-step planning, hard debugging), use deepseek-reason instead — same plugin, different model.

Data handling

The prompt and any --system text are sent over the network to api.deepseek.com, a third party. Do not put secrets, credentials, personal data or proprietary code you are not allowed to share into them. The API key is read from DEEPSEEK_API_KEY in your shell only; never paste it into a prompt, a file or a command line.

Algorithm

Implementation: scripts/chat.mjs.

  1. Read DEEPSEEK_API_KEY from env. If missing, emit { status: 'degraded', reason: 'DEEPSEEK_API_KEY is not set', ... } and exit 0 (ADR-150-style graceful degradation).
  2. POST to https://api.deepseek.com/v1/chat/completions with { model, messages, temperature?, max_tokens? }. 60s hard timeout.
  3. Extract choices[0].message.content and usage counters.
  4. --format table prints only the content (for piping); --format json (default) returns the full envelope.
  5. --alert-on-error exits 1 on any degraded/error status (CI-friendly).

Example

node plugins/ruflo-deepseek-harness/scripts/chat.mjs \
  --prompt "In one sentence: what is HNSW?" \
  --temperature 0.2

Sample output:

{
  "status": "ok",
  "model": "deepseek-chat",
  "content": "HNSW is a graph-based approximate nearest neighbor …",
  "finishReason": "stop",
  "usage": { "promptTokens": 12, "completionTokens": 34, "totalTokens": 46 }
}
常见问题

我的文字是保密的吗?

不是。提示会发送给第三方 DeepSeek,因此请不要包含你无权分享的机密或私人数据。

API 密钥应放在哪里?

它从你 shell 中的环境变量读取。密钥绝不应粘贴到提示或文件中。

什么时候应改用推理版本?

对于规划或复杂调试等多步骤思考,单独的 deepseek-reason 技能更合适。

详情

作者的原始描述

One-shot chat completion against DeepSeek's `deepseek-chat` model. Use for non-reasoning tasks such as summarization, extraction or quick classification. Reads DEEPSEEK_API_KEY; returns status:degraded when the key is missing or the API is unreachable.

repo: ruvnet/ruflo

热度

GitHub 星标
81k
排名
#1617
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能