Chuyển đến nội dung
Skillpedia
Agent81k · #1618

deepseek-reason

Skill này làm gì

Skill này nhờ model suy luận của DeepSeek xử lý một tác vụ khó hơn và hiển thị phần suy luận tách biệt khỏi câu trả lời. Nó dành cho người cần công việc nhiều bước cẩn thận và muốn thấy cách có được câu trả lời.

Khi nào nên dùng

  • ✓Khi một tác vụ cần suy luận từng bước, như lập kế hoạch hoặc phân tích nguyên nhân gốc.
  • ✓Khi bạn muốn kiểm tra cách suy nghĩ của model trước khi tin vào câu trả lời.
  • ✓Khi một câu trả lời chat đơn giản không đủ chi tiết cho một vấn đề khó.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-deepseek-harness/skills/deepseek-reason/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy phân tích từng bước vì sao báo cáo ban đêm của chúng tôi bị lỗi, và cho tôi xem lý do của bạn.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Skill gửi prompt của bạn tới model suy luận của DeepSeek và đọc cả văn bản suy luận lẫn câu trả lời cuối. Đầu ra JSON luôn có phần suy luận, còn chế độ bảng thì không.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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
  }
}
Câu hỏi thường gặp

Vì sao cái này chậm hơn chat thường?

Model suy luận đi qua nhiều bước hơn, nên tốn thêm thời gian và token so với một model chat thông thường.

Các cài đặt của tôi có áp dụng cho model suy luận không?

Một số cài đặt lấy mẫu bị model suy luận bỏ qua, nên skill không truyền chúng đi.

Dữ liệu của tôi có an toàn ở đây không?

Prompt được gửi tới DeepSeek, một bên thứ ba, nên hãy giữ bí mật và mã riêng tư ra khỏi đó.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
81k
Vị trí xếp hạng
#1618
Giấy phép
MIT
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự