本文へスキップ
Skillpedia
エージェント81k · #1618

deepseek-reason

できること

このスキルは、より難しいタスクを DeepSeek の推論モデルに解かせ、その推論を答えとは別に示します。慎重に複数の段階を踏む作業が必要で、答えがどう導かれたかを確認したい人向けです。

使う場面

  • ✓計画や根本原因の分析など、段階的な推論が必要なタスクのとき。
  • ✓答えを信頼する前に、モデルの思考を確認したいとき。
  • ✓通常のチャットの答えでは、難しい問題に十分な詳しさがないとき。

スキルのリンク

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

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-deepseek-harness/skills/deepseek-reason/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

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.

  1. Read DEEPSEEK_API_KEY from env. Degrade gracefully when missing.
  2. POST to /v1/chat/completions with { model: 'deepseek-reasoner', messages, max_tokens? }. Per DeepSeek's docs, temperature/top_p are ignored for reasoner models — this script does not forward them.
  3. Extract choices[0].message.content AND choices[0].message.reasoning_content.
  4. JSON output always includes reasoning; table mode omits it unless --show-reasoning is passed.
  5. reasoningTokens (from usage.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

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル