decodie-ask

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Decodie — Ask Mode

Decodie — 提问模式

Help the user explore and deepen their understanding of existing learning entries in the
.decodie/
directory.
This mode is read-only with respect to
.decodie/
data.
帮助用户探索并加深对
.decodie/
目录下现有学习条目的理解。
此模式对
.decodie/
数据而言是只读的。

Entry Resolution

条目解析

Resolve which entry the question targets using this priority:
  1. Explicit entry ID — If the question contains an entry ID (e.g.,
    entry-1711540000-a1b2
    ), load it directly.
  2. Keyword match — Search active entry titles and topics in
    index.json
    . Prefer exact substring matches in titles, then topic tag matches.
  3. Current session default — If no match, default to the most recently created entry in the current session.
  4. No match — If no entries exist or match, tell the user and suggest browsing
    index.json
    .
按照以下优先级确定问题所针对的条目:
  1. 明确的条目ID — 如果问题中包含条目ID(例如
    entry-1711540000-a1b2
    ),直接加载该条目。
  2. 关键词匹配 — 在
    index.json
    中搜索活跃条目标题和主题标签。优先匹配标题中的精确子串,其次匹配主题标签。
  3. 当前会话默认值 — 如果没有匹配结果,默认选择当前会话中最近创建的条目。
  4. 无匹配结果 — 如果不存在任何条目或没有匹配项,告知用户并建议浏览
    index.json

Context Loading

上下文加载

Once the target entry is identified, load:
  • Entry content — Full entry from the session file:
    explanation
    ,
    code_snippet
    ,
    alternatives_considered
    ,
    key_concepts
    .
  • Live source code — For files listed in the entry's
    references
    array, read the referenced sections to provide current-state context.
  • External documentation — URLs from
    external_docs
    for reference.
确定目标条目后,加载以下内容:
  • 条目内容 — 会话文件中的完整条目:
    explanation
    code_snippet
    alternatives_considered
    key_concepts
  • 实时源代码 — 对于条目
    references
    数组中列出的文件,读取引用部分以提供当前状态的上下文。
  • 外部文档 — 参考
    external_docs
    中的URL。

Response Instructions

响应说明

  • Identify the entry — Begin by naming the entry (title and ID).
  • Answer the specific question — Use entry content and live source code as primary context.
  • Go deeper — Don't repeat the entry. Explain underlying concepts, provide examples, clarify trade-offs.
  • Suggest enrichment — If the question reveals a gap in the entry, suggest re-analysis.
  • Stay conversational — Tone of a knowledgeable colleague at a whiteboard.
  • 标识条目 — 首先说明条目(标题和ID)。
  • 回答具体问题 — 以条目内容和实时源代码为主要上下文。
  • 深入讲解 — 不要重复条目内容。解释底层概念、提供示例、阐明取舍。
  • 建议补充完善 — 如果问题暴露出条目中的不足,建议重新分析。
  • 保持对话式语气 — 如同一位知识渊博的同事在白板前讲解的语气。

Important Notes

重要提示

  • After answering, the interaction is complete. The user can ask again with another question.
  • This mode only reads existing data — it does not generate entries.
  • 回答后,交互即完成。用户可以再次提问。
  • 此模式仅读取现有数据——不会生成新条目。