mstar-compound-refresh
Knowledge maintenance 与项目知识 bootstrap:审查/更新/合并/清理 `{KNOWLEDGE_DIR}` 文档,或从代码库提炼 CONCEPTS.md 与基线 knowledge。触发:可合并文档、定期维护、stale scaffolding、显式 bootstrap/refresh。
Skill by btspoony
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/btspoony-mstar-compound-refresh
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/mstar-compound-refresh
What's inside
- Skill name
mstar-compound-refresh- Description
- Knowledge maintenance 与项目知识 bootstrap:审查/更新/合并/清理 `{KNOWLEDGE_DIR}` 文档,或从代码库提炼 CONCEPTS.md 与基线 knowledge。触发:可合并文档、定期维护、stale scaffolding、显式 bootstrap/refresh。
- License
- MIT
- Instructions
- 152 lines in SKILL.md · view on GitHub
Agent Skills spec issues
- files: referenced but missing: references/concepts-vocabulary.md, references/artifact-storage-paths.md
Files (2)
- SKILL.md
- project-knowledge-bootstrap.md · references/
SKILL.md (first lines)
# 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
| Trigger | Example |
|---------|---------|
| `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 refactored | After a major module rewrite |
| Explicit user request | `/pm compound-refresh performance-issues` |
| **Project knowledge bootstrap** | No/stale/partial `STRATEGY.md`, `CONCEPTS.md`, or `{KNOWLEDGE_DIR}` — see below |
## Bootstrap vs refresh
| Mode | When | Procedure |
|------|------|-----------|
| **Refresh** | `{KNOWLEDGE_DIR}` exists; audit accuracy, merge overlaps, delete stale docs | This skill § Process (Phases 1–6) |
| **Bootstrap** | No knowledge scaffolding, or artifacts are absent/stale enough to warrant full distillation from codebase | **`references/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:
| Outcome | Meaning | Default action |
|---------|---------|----------------|
| **Keep** | Still accurate and useful | No edit; report reviewed |
| **Update** | Core solution correct, references drifted | In-place edits (paths, module names, code snippets) |
| **Consolidate** | Two+ docs overlap heavily, both correct | Merge unique content into canonical doc, delete subsumed |
| **Replace** | Old doc is misleading; known better replacement exists | Create trustworthy successor, then delete old |
| **Delete** | No longer useful, applicable, or distinct | Delete — 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:From btspoony/mstar-harness, MIT.
More from btspoony/mstar-harness
- 0.672score
mstar-use-cli
btspoony
Use when choosing, running or interpreting `mstar`/`mstar-harness` CLI commands: family selection, semantic preconditions (control root, cwd, identity…
SkillAFreshness: A★ 64Claude Code +9 - 0.669score
mstar-compound
btspoony
知识结晶 (compound):把已解决的问题沉淀为 `{KNOWLEDGE_DIR}` 下的结构化知识文档,迭代收口时提升 specs/guides;双轨 Bug/Knowledge,含重叠与可发现性检查。无结晶时以 reasoned `skipped` 结束。
SkillAFreshness: A★ 64Claude Code +9 - 0.669score
mstar-roles
btspoony
Role prompt hub and single load-selection authority: identity-first `references/<role>.md`, PM-activated skill presets, the none/named-preset/resume decision.
SkillAFreshness: A★ 64Claude Code +9 - 0.669score
mstar-skill-authoring
btspoony
Agent skill 撰写 / 重写 / 优化规范(SkillsBench 实验门控)。在新建任意 skill、大改 SKILL.md、改写 description 触发契约、压缩过长 body、评审 skill 结构、或判断某段行为塑形文案是否值得保留时读取。适用于任何领域的…
SkillAFreshness: A★ 64Claude Code +9 - 0.669score
mstar-design-md
btspoony
DESIGN.md 设计系统规范:创建/审计/维护 design tokens、三级完整性清单、light/dark 双主题(DESIGN.dark.md)。用户提到 DESIGN.md / design tokens / design system,或实现、审查 UI 时读取。
SkillAFreshness: A★ 64Claude Code +9 - 0.669score
mstar-audit
btspoony
Audit or survey a codebase into an evidence-backed, prioritized review report (read-only): bugs, security, perf, test gaps, tech debt, DX, a PR/branch/diff…
SkillAFreshness: A★ 64Claude Code +9 - 0.669score
mstar-engine-legacy
btspoony
Engine-absent safety and historical-field archive: field history, checkout/atomic safety, dispatch/QC invariants.
SkillAFreshness: A★ 64Claude Code +9 - 0.666score
good-skill
btspoony
Use when the gated-session e2e proves relative bundledSkillDir resolution against the launch cwd.
SkillAFreshness: A★ 64Claude Code +9 - 0.665score
mstar-dispatch-gates
btspoony
Dispatch gates: PM-only leaf dispatch, executor/delegation identity, anti-recursion, parallel readiness, SDD QC tri-review, inline single-seat exceptions.
SkillAFreshness: A★ 64Claude Code +9 - 0.665score
mstar-branch-worktree
btspoony
Branch authorization, control/integration/source checkout isolation, L1/L2 writable-task isolation, QC/QA checkout alignment, guarded worktree/branch cleanup…
SkillAFreshness: A★ 64Claude Code +9 - 0.665score
mstar-conventions
btspoony
harness 路径约定:`{HARNESS_DIR}`/`{PLAN_DIR}`/`{SDD_DIR}`/`{ITERATION_DIR}`/`{KNOWLEDGE_DIR}`/`{SPECS_DIR}`/`{REVIEW_DIR}` 等符号的发现与初始化、docs 与 harness 子树边界、Spec…
SkillAFreshness: A★ 64Claude Code +9 - 0.665score
mstar-artifacts
btspoony
Plan artifacts: main plans, durable review summaries, QC/QA bundles, workflow state/config/progress/evidence, issue capture, residual severity.
SkillAFreshness: A★ 64Claude Code +9
Signals
- Stars
- 64
- Forks
- 4
- Open issues
- 6
- Last commit (this folder)
- Oct 21, 2026 (7 days ago)
- Last release
- Oct 24, 2026 (4 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/btspoony/mstar-harness
- Website
- mstar.page/#harness
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from btspoony
- 0.672score
mstar-use-cli
btspoony
Use when choosing, running or interpreting `mstar`/`mstar-harness` CLI commands: family selection, semantic preconditions (control root, cwd, identity…
SkillAFreshness: A★ 64Claude Code +9 - 0.669score
mstar-roles
btspoony
Role prompt hub and single load-selection authority: identity-first `references/<role>.md`, PM-activated skill presets, the none/named-preset/resume decision.
SkillAFreshness: A★ 64Claude Code +9 - 0.669score
mstar-compound
btspoony
知识结晶 (compound):把已解决的问题沉淀为 `{KNOWLEDGE_DIR}` 下的结构化知识文档,迭代收口时提升 specs/guides;双轨 Bug/Knowledge,含重叠与可发现性检查。无结晶时以 reasoned `skipped` 结束。
SkillAFreshness: A★ 64Claude Code +9 - 0.669score
mstar-design-md
btspoony
DESIGN.md 设计系统规范:创建/审计/维护 design tokens、三级完整性清单、light/dark 双主题(DESIGN.dark.md)。用户提到 DESIGN.md / design tokens / design system,或实现、审查 UI 时读取。
SkillAFreshness: A★ 64Claude Code +9 - 0.669score
mstar-audit
btspoony
Audit or survey a codebase into an evidence-backed, prioritized review report (read-only): bugs, security, perf, test gaps, tech debt, DX, a PR/branch/diff…
SkillAFreshness: A★ 64Claude Code +9 - 0.669score
mstar-engine-legacy
btspoony
Engine-absent safety and historical-field archive: field history, checkout/atomic safety, dispatch/QC invariants.
SkillAFreshness: A★ 64Claude Code +9
Cite this page
mstar-compound-refresh skill. Agent Mart. https://agentmart.dev/skills/btspoony-mstar-compound-refresh (last updated 2026-10-24)