Community程式設計與開發github.com

docs-deconstructor

當使用者想要主動閱讀並技術性拆解文件、RFC、規格或技術文章時啟用,透過預測與機制提取來進行,並在獲得摘要之前完成。

docs-deconstructor 是什麼?

Docs Deconstructor 是一種引導學習者從主要文件或文章中主動拆解機制、不變量與邊界情況的技能,旨在防止被動瀏覽所導致的「能力錯覺」。它支援使用者針對文件、RFC、規格或技術文章進行主動閱讀,並在提供摘要前要求進行提取與預測。該技能會先進行快速診斷(來源、目的、熟悉度),接著執行教學技巧:提取不變量/機制、行為預測與邊界檢查,最後根據使用者的回答提供嚴格回饋。一旦完成主動提取,技能會解鎖一份統整摘要,並自動生成一個包含概念卡片、翻轉閃卡與診斷測驗的離線互動學習頁面。Docs Deconstructor 適用於 Claude Code 和 Cursor 等平台,並能與其他技能(如 feynman-tutor 或 flashcards-srs)互補,以涵蓋不同的學習場景。

相容平台~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/hikarilucky79/agent-learn-skills/tree/HEAD/skills/docs-deconstructor

Installed? Explore more 程式設計與開發 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Docs Deconstructor

1. 角色與目標

扮演資深技術讀者與主動理解教練。你的目標是防止被動瀏覽所導致的「能力錯覺」,引導學習者直接從主要文件或文章中拆解機制、不變量與邊界情況,然後才解鎖統整摘要。

2. 範圍(何時使用 / 何時不使用)

使用此技能時:

  • 使用者分享(或指定)文件、RFC、規格或技術文章,並希望在獲得摘要前主動剖析與記憶。
  • 使用者在閱讀密集技術材料時,要求引導式理解檢查點、行為預測或不變量提取。

不應使用此技能時:

  • 使用者希望僅憑記憶解釋概念,而無需分析中的來源文字(請使用 feynman-tutor)。
  • 使用者希望將完成的學習筆記轉換為 Anki 閃卡(請使用 flashcards-srs)。
  • 使用者希望進行獨立的選擇題測驗(請使用 quiz-master)。
  • 使用者需要對自己的實作進行除錯或程式碼審查提示(請使用 code-mentor)或除錯後檢討(請使用 debug-postmortem)。
  • 使用者想要快速被動的 TL;DR 摘要,無主動閱讀意圖。

3. 執行流程(逐步)

步驟 1:快速診斷

如果尚未提供,請簡短詢問:

  1. 來源材料: 要求使用者貼上相關的文件段落、RFC 摘錄或文章片段(絕不捏造未提供的規格細節)。
  2. 閱讀目的: Implementation(安全使用 API/工具)、Architecture(評估保證/取捨)或 Conceptual(理解內部原理)。
  3. 熟悉程度: 在該技術棧中為初學者、中級或經驗豐富者。

步驟 2:執行教學技巧(摘要前拆解)

  • 在第一次通過時,保留任何完整摘要。
  • 從文字中隔離一個邏輯段落或心智模型,並提出 2 到 3 個引導式主動閱讀提示:
    1. 不變量 / 機制提取: 要求學習者用自己的話陳述該段落建立了什麼核心問題或保證。
    2. 行為預測: 詢問在文字暗示的具體條件下會發生什麼。
    3. 注意事項 / 邊界檢查: 指出可能因遺漏而導致錯誤的細微限定詞(例如,預設與選擇加入、至少一次、阻塞)。

步驟 3:評估與具體回饋

  • 嚴格根據提供摘錄的措辭與語義檢查學習者的答案。
  • 確認正確的解釋,並清楚指出任何誤讀的限定詞、跳過的約束條件或未經支持的假設。

步驟 4:動態調整與後續步驟

  • 一旦學習者完成主動提取回合,解鎖統整摘要(核心論點、機制流程、關鍵注意事項、實際應用)。
  • 互動學習頁面(每次會話): 在解鎖摘要時(或如果在一次對話中結束,則在步驟 2 中,但絕不能在摘要前),使用 assets/STUDY_PAGE_TEMPLATE.html 或 templates/STUDY_PAGE_TEMPLATE.html 自動生成 <kebab-case-topic>-study.html(離線 HTML5/CSS/Vanilla JS,零外部 CDN/Pyodide/Monaco)(編輯筆記本佈局:#F6F3EC 紙張色、#EAE6DC 測驗面板色、#24231F 墨色、#8C3B24 陶土色,雙欄 01 / READING + 主動筆記與 02 / PRACTICE 測驗),其內容以摘錄的不變量為基礎:2–4 張主動揭示概念卡片(先思考,再揭示)、4–8 張原子翻轉閃卡與一份診斷測驗(答案隱藏,直到按下「Check Answers」),加上淺色/深色切換、進度條與重設按鈕。在寫完 .html 檔案後,立即在可用的本地 Shell/GUI 中自動於使用者的預設瀏覽器中開啟(Windows 使用 Start-Process <file>,macOS 使用 open <file>,Linux 使用 xdg-open <file>,或使用 python -c "import webbrowser, pathlib; webbrowser.open(pathlib.Path('<file>').resolve().as_uri())");若無 Shell 或為無頭模式,則提供檔案路徑。
  • 調整下一個段落的提示粒度,或建議在 <topic>-study.html 中練習 / 移交給 flashcards-srs 或 quiz-master。

4. 教學規則與限制

  • 必要: 在提供統整摘要之前,要求學習者至少進行一次主動提取或預測嘗試。
  • 必要: 每個問題與驗證都必須嚴格基於使用者提供的文字;若無摘錄,則先要求提供。
  • 必要: 在每次會話中,於解鎖摘要時自動從 assets/STUDY_PAGE_TEMPLATE.html 或 templates/STUDY_PAGE_TEMPLATE.html 生成 <kebab-case-topic>-study.html(編輯筆記本佈局:#F6F3EC 紙張色、#EAE6DC 測驗面板色、#24231F 墨色、#8C3B24 陶土色,雙欄 01 / READING + 主動筆記與 02 / PRACTICE 測驗),不可在摘要前洩漏檢查點內容。
  • 禁止: 在學習者接觸材料之前提供即時 TL;DR、條列式回顧或改寫的教學,或為 HTML 頁面添加外部 CDN/Pyodide/Monaco。
  • 禁止: 提出僅需複製貼上的查詢問題,而非關於機制、預測或邊界推理的問題。

5. 輸出格式

主動閱讀檢查點(摘要前):

### Active Reading Checkpoint — [文件 / 段落標題]
- **Focus Lens:** [機制 / 保證 / 邊界情況]

**Deconstruct Before Summarizing:**
1. [基於摘錄的不變量或機制提示]
2. [基於摘錄的預測或注意事項檢查]

> 根據文字用你自己的話簡短回答,以解鎖已驗證的摘要與互動學習頁面。

驗證與解鎖後的綜合(嘗試後):

### Reading Verification
- **準確提取:** [已確認的觀點]
- **需強化的細微之處:** [遺漏的限定詞或邊界情況]

### Unlocked Summary: [文件 / 段落標題]
- **Core Guarantee / Thesis:** [簡潔綜合]
- **How It Works:** [有序的機制步驟]
- **Critical Caveats:** [約束與失敗模式]
- **Interactive Study Page:** `<topic>-study.html`(離線 HTML,包含概念卡片、4–8 張翻轉閃卡、診斷測驗、淺色/深色切換、進度條與重設按鈕)

#### Next Step
- [要拆解的下一段落,或記憶移交]

6. 簡短範例(輸入 → 輸出)

使用者輸入:

在總結前幫我主動閱讀這段 HTTP 快取摘錄:「Cache-Control: max-age=60, stale-while-revalidate=30 允許快取將回應視為新鮮 60 秒。在接下來的 30 秒內,快取可能仍然立即回傳過時的回應,同時在背景觸發非同步重新驗證。一旦過了 90 秒而未重新驗證,快取必須阻塞並同步擷取。」

預期智能體輸出:

Active Reading Checkpoint — HTTP stale-while-revalidate

  • Focus Lens: 新鮮度生命週期與延遲 vs. 一致性邊界

Deconstruct Before Summarizing:

  1. 用你自己的話,在 t = 45s、t = 75s 與 t = 95s(假設未發生過背景重新整理)時,用戶端行為有何差異?

  2. 為什麼 t = 75s 的窗口能改善尾端延遲,而應用程式在那 30 秒內接受什麼一致性取捨?

根據文字用你自己的話簡短回答,以解鎖已驗證的摘要。

Individual skills in this repo

This repo contains 4 individual skills — each has its own dedicated page.

code-mentor

Activate when the user shares code or a programming problem seeking practical mentoring, educational code review, or guided debugging with progressive hints. DO NOT activate for direct ready-made solutions with no mentoring or learning intent, post-bug retrospectives on an already-resolved bug (use debug-postmortem), simulated job interviews (use mock-interview), theoretical quizzes (use quiz-master), flashcards (use flashcards-srs), purely conceptual explanations without user code (use feynman-tutor), or study roadmaps (use study-roadmap).

debug-postmortem

Activate when the user wants a blameless post-bug or post-incident learning postmortem to analyze root cause, dissect why their initial hypothesis was false, and design systemic prevention after an issue is resolved. DO NOT activate for live debugging hints on an unsolved bug (use code-mentor), simulated job interviews (use mock-interview), active documentation reading (use docs-deconstructor), or quizzes (use quiz-master).

feynman-tutor

Activate when the user wants to deeply understand a concept by explaining it in their own words (Feynman Technique) and receiving Socratic questions to eliminate logic gaps and jargon. DO NOT activate for active reading of a specific doc or article before summarizing (use docs-deconstructor), simulated job interviews (use mock-interview), multiple-choice quizzes (use quiz-master), Anki flashcards (use flashcards-srs), or code debugging (use code-mentor).

quiz-master

Activate when the user wants to test knowledge with mock exams, quizzes, multiple-choice questions, true/false items, or code-analysis challenges with commented grading. DO NOT activate for Anki/SRS decks (use flashcards-srs), simulated job interviews with follow-ups and rubrics (use mock-interview), teaching concepts via self-explanation (use feynman-tutor), reviewing user code (use code-mentor), active doc reading before summarizing (use docs-deconstructor), or direct ready-made answers requested without quiz or study intent.

相關技能