Logo van Mstar Compound Refresh

Mstar Compound Refresh

Community
btspoony
mstar-compound-refresh

Knowledge-onderhoud en bootstrap van projectkennis: beoordeel, werk `{KNOWLEDGE_DIR}`-documenten bij, voeg ze samen of ruim ze op, of haal CONCEPTS.md en basiskennis uit een codebase. Triggers: samenvoegbare documenten, periodiek onderhoud, verouderde scaffolding, expliciete bootstrap/refresh.

Add to TypingMind

Overzicht

Uitgeverbtspoony
Repositorymstar-harness
Skillnaammstar-compound-refresh
Sterren
67
Forks
4
Meegeleverde bestanden
1
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 1

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door btspoony op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Mstar Compound Refresh in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/btspoony/mstar-harness/tree/main/skills/mstar-compound-refresh
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

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
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Mstar Compound Refresh in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Mstar Compound Refresh automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Mstar Compound Refresh niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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)

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Mstar Compound Refresh?

Knowledge-onderhoud en bootstrap van projectkennis: beoordeel, werk `{KNOWLEDGE_DIR}`-documenten bij, voeg ze samen of ruim ze op, of haal CONCEPTS.md en basiskennis uit een codebase. Triggers: samenvoegbare documenten, periodiek onderhoud, verouderde scaffolding, expliciete bootstrap/refresh.

Waarom Mstar Compound Refresh gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Mstar Compound Refresh bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Mstar Compound Refresh in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/btspoony/mstar-harness/tree/main/skills/mstar-compound-refresh. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Mstar Compound Refresh gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Mstar Compound Refresh gebruiken?

Zoveel als je wilt. Je kunt Mstar Compound Refresh gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Mstar Compound Refresh gratis?

Ja. Deze skill is door btspoony op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇