Logo Mstar Compound Refresh

Mstar Compound Refresh

Cộng đồng
btspoony
mstar-compound-refresh

Bảo trì tri thức và khởi tạo tri thức dự án: rà soát/cập nhật/hợp nhất/dọn dẹp tài liệu `{KNOWLEDGE_DIR}`, hoặc trích xuất CONCEPTS.md và tri thức nền từ codebase. Dùng khi có tài liệu cần hợp nhất, bảo trì định kỳ, scaffolding lỗi thời hoặc yêu cầu khởi tạo/làm mới rõ ràng.

Add to TypingMind

Tổng quan

Nhà phát hànhbtspoony
Kho mãmstar-harness
Tên kỹ năngmstar-compound-refresh
Sao
67
Bản fork
4
Tệp đi kèm
1
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được btspoony công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Mstar Compound Refresh trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/btspoony/mstar-harness/tree/main/skills/mstar-compound-refresh
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/btspoony/mstar-harness.git /tmp/mstar-harness
mkdir -p .claude/skills
cp -r /tmp/mstar-harness/skills/mstar-compound-refresh .claude/skills/mstar-compound-refresh
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Mstar Compound Refresh trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Mstar Compound Refresh ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Mstar Compound Refresh với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

mstar-compound-refresh(知识维护)

Load order

Read mstar-harness-core first. Path symbols → mstar-conventions. On conflict, mstar-harness-core wins.

Purpose

Knowledge documents in {KNOWLEDGE_DIR} age. Code changes, conventions evolve, patterns become obsolete. mstar-compound-refresh audits the knowledge store against the current codebase and makes it trustworthy again.

产物与操作路径

SSOT: mstar-conventions/references/artifact-storage-paths.md。本 skill 仅操作 {HARNESS_DIR}/knowledge/**/*.md + {HARNESS_DIR}/knowledge/README.md(散文,见 Phase 4)+ <repo-root>/CONCEPTS.md;知识关联经 mstar catalog link,不写 status/snapshot metadata。禁止操作 docs/、{PLAN_DIR}/、{ITERATION_DIR}/、{SPECS_DIR}/。

Engine check (when available): run mstar compound validate <doc-path> --knowledge-dir <dir> (or import { scopeGuard, compoundRefreshScope } from "@mstar-harness/engine" in a host hook) to resolve the allowed scope above ({HARNESS_DIR}/knowledge/**, knowledge/README.md, <repo-root>/CONCEPTS.md) and guard every write against it; this scope never authorizes ACTIVE status/snapshot writes. On fail -> do not proceed; fix and re-run. Skill text below remains authoritative when the runtime is absent.

When to use

TriggerExample
mstar-compound detected overlapping docs"Two docs cover N+1 queries — consider refresh"
Scheduled maintenance"It's been a quarter, let's audit knowledge"
Domain refactoredAfter a major module rewrite
Explicit user request/pm compound-refresh performance-issues
Project knowledge bootstrapNo/stale/partial STRATEGY.md, CONCEPTS.md, or {KNOWLEDGE_DIR} — see below

Bootstrap vs refresh

ModeWhenProcedure
Refresh{KNOWLEDGE_DIR} exists; audit accuracy, merge overlaps, delete stale docsThis skill § Process (Phases 1–6)
BootstrapNo knowledge scaffolding, or artifacts are absent/stale enough to warrant full distillation from codebasereferences/project-knowledge-bootstrap.md (7-phase: survey → STRATEGY.md → CONCEPTS.md → baseline knowledge → indexing → harness init → commit)

Read the bootstrap reference on demand; do not paste its body into this SKILL.md.

Maintenance outcomes

For each candidate document, classify into one of five outcomes:

OutcomeMeaningDefault action
KeepStill accurate and usefulNo edit; report reviewed
UpdateCore solution correct, references driftedIn-place edits (paths, module names, code snippets)
ConsolidateTwo+ docs overlap heavily, both correctMerge unique content into canonical doc, delete subsumed
ReplaceOld doc is misleading; known better replacement existsCreate trustworthy successor, then delete old
DeleteNo longer useful, applicable, or distinctDelete — git history preserves it

Guardrail — rejected approaches: a captured rejected approach stays only while the losing idea remains a tempting, meaningful mistake; delete it once obsolete or no longer plausible. Calibration: first real run of this axis — 9 size-divergent knowledge docs (36–78 lines) under {KNOWLEDGE_DIR}/architecture-patterns/ classified at fold time, all kept by future value (evidence: the knowledge-prose-folds plan ## Review Gate Summary → Task evidence); length proved not to be a criterion.

Core rules

  1. Evidence over opinion. Signals are inputs, not a scorecard. Use engineering judgment.
  2. Prefer no-write Keep. Do not update a doc just to leave a review breadcrumb.
  3. Match docs to reality. When code differs from doc, update the doc — not ask whether the code change was "intentional."
  4. Be decisive. When evidence is clear (file renamed, class moved), apply. Only ask PM when genuinely ambiguous.
  5. Avoid low-value churn. Don't edit for typos, polish, or cosmetic changes that don't improve accuracy.
  6. Delete, don't archive — except formal iteration-start §1.6 corpus hygiene (mstar-iteration/references/iteration-corpus-hygiene.md), which moves superseded/redundant knowledge/specs to {HARNESS_DIR}/archived/knowledge|specs/. Outside that gate, git history is the archive; git log --diff-filter=D -- <path> finds deleted docs.

    Not adopted: frozen-archive seal machinery, Archived: triplets, or a verifier — they contradict rule 6 (delete, don't archive; git history is the archive); do not reintroduce.

  7. Evaluate document-set design. Check whether two+ docs overlap and should be consolidated. Redundant docs silently drift apart.

Scope selection

Default: user-guided

  1. Ask PM for scope: "All knowledge docs, a specific category, or a keyword?"
  2. If category: narrow to {KNOWLEDGE_DIR}/<category>/.
  3. If keyword: search frontmatter (module:, tags:, problem_type:) and filenames.

PM-directed: specific scope

PM provides a scope hint (directory name, filename, module name, or keyword). Match in this order:

  1. Directory match under {KNOWLEDGE_DIR}/
  2. Frontmatter field match
  3. Filename match
  4. Content search

Process

Phase 1: Inventory

  1. List all .md files under {KNOWLEDGE_DIR}/ (excluding README.md and index files).
  2. Read frontmatter of each candidate.
  3. Group by category / module for impact clustering.

Phase 2: Assess per doc

For each doc, check:

  1. Referenced code still exists? — grep for file paths, class names, function names mentioned.
  2. Referenced conventions still match? — check against current AGENTS.md, CONCEPTS.md, lint configs.
  3. Solution still the recommended approach? — has a newer pattern superseded it?
  4. Overlap with other docs? — search for same module/tags to find duplicates.
  5. Future decision value? — rationale / alternatives considered / negative guarantees / reintroduction conditions that would still guide a future change → Keep, regardless of length. A completed decision whose body has no future leverage left (one-off fix detail, superseded mechanics) enters the Delete candidate pool. Word count and age remain discovery aids, never criteria.

Phase 3: Classify and act

Classify each doc → Keep / Update / Consolidate / Replace / Delete. Apply changes.

Phase 4: Reconcile the catalog

  1. For every doc whose verdict changed its metadata or lifecycle (Update / Consolidate / Replace / Delete), update its catalog row: mstar catalog update for title/description/path/source hash and for the catalog lifecycle (active / archived / superseded), and mstar catalog link for provenance/supersession relations (identity is never patched; the revision guard is in --help). A doc deleted outside the iteration-start §1.6 archive gate leaves git history as its record — set/keep its catalog lifecycle so the row is not a silent dangling claim.
  2. A knowledge body with no catalog row is a completeness gap, not a pass: register it (mstar catalog register, or reviewed mstar catalog discover + mstar catalog import) or report it. {KNOWLEDGE_DIR}/README.md index tables are not maintained as a register — README is prose.
  3. The knowledge-association carrier is catalog relations (mstar catalog link). Snapshot plans[].metadata.knowledge_refs and root status knowledge metadata are legacy read-only, not write targets.

Phase 5: Report

Produce a maintenance report:

  • Docs reviewed (count)
  • Docs kept (count)
  • Docs updated (list with what changed)
  • Docs consolidated (list with which canonical doc merged into)
  • Docs replaced (list with successor path)
  • Docs deleted (list with reason)
  • Docs flagged for PM review (ambiguous cases)

Phase 6: CONCEPTS.md reconciliation

If CONCEPTS.md exists, reconcile it with the refreshed knowledge:

  • Terms mentioned in updated/replaced docs may need updating in CONCEPTS.md
  • Terms no longer referenced may be candidates for removal

If CONCEPTS.md doesn't exist but knowledge docs contain qualifying domain terms, propose bootstrapping it (full repo-wide seed). Use references/concepts-vocabulary.md from mstar-compound for rules (read on demand — cross-skill path resolution via skill directory).

Cross-skill coordination

mstar-compound-refresh reads vocabulary rules from mstar-compound's references. At runtime, resolve the path from the loaded skill directory:

The CONCEPTS.md vocabulary rules are in the mstar-compound skill at:
references/concepts-vocabulary.md
Read that file from the mstar-compound skill directory before Phase 6.

NOT to do

  • Do not delete docs without checking for inbound links
  • Do not "archive" — delete instead
  • Do not ask PM about mechanical updates (path fixes, renamed modules)
  • Do not change code to match outdated docs — update docs to match code
  • Do not run without PM approval for destructive actions (Delete, Replace)

Evidence

正确结果 = 每篇候选文档有明确 verdict(Keep / Update / Consolidate / Replace / Delete)并落到产物:文档改动 + catalog 行对账(Phase 4:mstar catalog update / register,生命周期 active / archived / superseded)+ catalog relations 知识关联(mstar catalog link;status/snapshot knowledge_refs 仅 legacy 只读) + 维护报告(Phase 5:reviewed / kept / updated / consolidated / replaced / deleted / flagged)+ CONCEPTS.md 对账(Phase 6)。

References

  • 捕获侧规则与 CONCEPTS.md vocabulary 规则 → mstar-compound(Phase 6 前读 references/concepts-vocabulary.md)
  • 路径符号与产物存储 SSOT → mstar-conventions(references/artifact-storage-paths.md)

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Mstar Compound Refresh làm được gì?

Bảo trì tri thức và khởi tạo tri thức dự án: rà soát/cập nhật/hợp nhất/dọn dẹp tài liệu `{KNOWLEDGE_DIR}`, hoặc trích xuất CONCEPTS.md và tri thức nền từ codebase. Dùng khi có tài liệu cần hợp nhất, bảo trì định kỳ, scaffolding lỗi thời hoặc yêu cầu khởi tạo/làm mới rõ ràng.

Vì sao nên dùng Mstar Compound Refresh trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Mstar Compound Refresh là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Mstar Compound Refresh trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/btspoony/mstar-harness/tree/main/skills/mstar-compound-refresh. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Mstar Compound Refresh?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Mstar Compound Refresh với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Mstar Compound Refresh với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Mstar Compound Refresh có miễn phí không?

Có. Kỹ năng này được btspoony phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇