deepseek-reason
它能做什么
这项技能让 DeepSeek 的推理模型处理更复杂的任务,并将其推理过程与答案分开展示。适合需要细致的多步骤工作,并想了解答案如何得出的人。
适用场景
- ✓当任务需要逐步推理时,例如规划或根本原因分析。
- ✓当你想在相信答案之前检查模型的思考过程时。
- ✓当普通的对话回答不足以应对复杂问题时。
技能链接
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-deepseek-harness/skills/deepseek-reason/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请逐步分析为什么我们的夜间报告会失败,并把你的推理过程展示给我。”
每周 5 个新技能,1 分钟读完。
工作原理
这项技能把你的提示发送给 DeepSeek 的推理模型,并同时读取推理文本和最终答案。JSON 输出始终包含推理过程,而表格视图则不包含。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Wraps DeepSeek's reasoning model so ruflo callers can get an explicit
chain-of-thought back with the final answer, without having to parse it
out of the message content. Same subprocess-invocation shape as the sibling
deepseek-chat skill.
When to use
- Multi-step reasoning tasks: proofs, plans, root-cause analysis, hard bug triage.
- You want to see the model's thinking (for audit, for training data, or to sanity-check its final answer).
- You can tolerate the higher latency and token cost of a reasoner vs
deepseek-chat.
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/reason.mjs.
- Read
DEEPSEEK_API_KEYfrom env. Degrade gracefully when missing. - POST to
/v1/chat/completionswith{ model: 'deepseek-reasoner', messages, max_tokens? }. Per DeepSeek's docs,temperature/top_pare ignored for reasoner models — this script does not forward them. - Extract
choices[0].message.contentANDchoices[0].message.reasoning_content. - JSON output always includes
reasoning; table mode omits it unless--show-reasoningis passed. reasoningTokens(fromusage.completion_tokens_details.reasoning_tokens) is surfaced separately so callers can attribute cost.
Example
node plugins/ruflo-deepseek-harness/scripts/reason.mjs \
--prompt "Prove that sqrt(2) is irrational." \
--format table --show-reasoning
Table output shows the reasoning block, then the answer. JSON mode returns:
{
"status": "ok",
"model": "deepseek-reasoner",
"content": "sqrt(2) is irrational because …",
"reasoning": "Assume for contradiction that sqrt(2) = p/q in lowest terms …",
"finishReason": "stop",
"usage": {
"promptTokens": 14,
"completionTokens": 812,
"reasoningTokens": 640,
"totalTokens": 826
}
}
常见问题
为什么它比普通对话慢?
推理模型会处理更多步骤,与普通对话模型相比,会增加时间和令牌成本。
我的设置会应用到推理模型上吗?
推理模型会忽略某些采样设置,因此这项技能不会将它们传递过去。
我的数据在这里安全吗?
提示会发送给第三方 DeepSeek,因此请不要在其中包含机密和私人代码。
详情
作者的原始描述
Reasoning completion against DeepSeek's `deepseek-reasoner` (R1), returning the chain of thought apart from the answer. Use when a task needs step-by-step reasoning from DeepSeek. Reads DEEPSEEK_API_KEY; returns status:degraded when unset or unreachable.
repo: ruvnet/ruflo
热度
- GitHub 星标
- 81k
- 排名
- #1618
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-adaptive-coordinator
81k帮你的智能体在工作量变化时拆分和重新平衡一组 AI 智能体,并选择适合任务的分工方式。
agent-agent
81k教你的智能体把一个大目标拆成有顺序的行动计划,并在情况变化时重新规划。
agent-agentic-payments
81k帮你的智能体管理 AI 购物的消费授权,包括消费上限、时间窗口、商户规则和签名审批。
agent-analyze-code-quality
81k帮你的智能体检查代码质量,找出代码异味、技术债务和重构建议,且不改动文件。