mstar-compound

mstar-compound is a skill for Claude Code from btspoony/mstar-harness. It costs 134 tokens per session (2,346 once invoked), scanned A, original, MIT.

A process for saving useful lessons from completed development work as organized project documents. The documents are stored where future planning and debugging can find them.

In plain words
What is it for?
Use it after solving a difficult or reusable problem, during iteration close, or when recording bug-related and engineering knowledge for later work.
Why use it?
Important knowledge often disappears when a coding session ends, or becomes hard to reuse when it is poorly organized. This process checks whether a lesson is worth recording and helps avoid duplicate notes.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions CLAUDE.md; mentions subagents; mentions AGENTS.md.

Part of the morning-star-harness plugin — 23 skills, 5 commands, 14 agents, 2 hooks shipped together

Good fit Use it after solving a difficult or reusable problem, during iteration close, or when recording bug-related and engineering knowledge for later work.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/btspoony/mstar-harness/mstar-compound
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add btspoony/mstar-harness --skill mstar-compound
Clone the repo
git clone --depth 1 https://github.com/btspoony/mstar-harness

Made for: Claude Code.

Or install morning-star-harness, the plugin that ships this one along with the rest of its 23 skills, 5 commands, 14 agents, 2 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mstar-compound

README.md
[![agentmods](https://agentmods.dev/badge/skills/btspoony/mstar-harness/mstar-compound/github.svg)](https://agentmods.dev/skills/btspoony/mstar-harness/mstar-compound)
Your own site
<a href="https://agentmods.dev/skills/btspoony/mstar-harness/mstar-compound"><img src="https://agentmods.dev/badge/skills/btspoony/mstar-harness/mstar-compound/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mstar-compound

Your own site · 80×15
<a href="https://agentmods.dev/skills/btspoony/mstar-harness/mstar-compound"><img src="https://agentmods.dev/badge/skills/btspoony/mstar-harness/mstar-compound.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 134 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,346 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00134 $0.02346
Opus 5 $0.00067 $0.01173
Sonnet 5 $0.00027 $0.00469
Haiku 4.5 $0.00013 $0.00235

Measured 11d ago against content hash 6d1d2ed86226, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

mstar-compound scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/mstar-compound/SKILL.md · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.

mstar-compound(知识结晶)

Load order

Read mstar-harness-core first. Path symbols ({KNOWLEDGE_DIR}, {HARNESS_DIR}) → mstar-conventions. On conflict, mstar-harness-core wins.

Purpose

After solving a non-trivial problem, mstar-compound captures the learning as a structured document in {KNOWLEDGE_DIR}, so future plan research, debugging, and implementation can find and reuse it.

In the mstar lifecycle, compound is triggered at iteration-close (mstar-iteration § Phase 3), not per-plan Done. It can also be invoked standalone for ad-hoc captures outside formal iterations.

Knowledge that isn't captured evaporates when the session ends. Knowledge that is captured but not discoverable is equally lost. This skill addresses both.

产物存储位置

SSOT: mstar-conventions/references/artifact-storage-paths.md。本 skill 不重定义路径;知识文档 → {HARNESS_DIR}/knowledge/<category>/<slug>.md,CONCEPTS.md → <repo-root>/CONCEPTS.md<category> 取值见 references/category-mapping.md

是否值得结晶(自检门禁)

调用本 skill 前,PM(或触发方)必须对候选问题逐条自检 Q1–Q8(诊断耗时 / 非显而易见性 / 可复用性 / 项目特异性 / 既有重叠 / 架构影响 / 失败尝试价值 / 跨模块)。完整问题表、决策矩阵(Yes≥4 强烈建议;Yes=3 Lightweight;Yes≤2 跳过;Q5=Yes 高重叠不新建)与示例判定 → references/compound-workflow.md「是否值得结晶」。

快判:Q5 高重叠 → 更新已有文档,不新建;其余按决策矩阵 Yes 数。

Integration with mstar lifecycle

Compound 在迭代收口时触发(mstar-iteration § iteration-close),不在 per-plan Done 后单独执行:iteration-start → [plan lifecycle × N] → iteration-close → mstar-compound(per-iteration round)→ {KNOWLEDGE_DIR} → feeds next iteration's specify/plan。迭代内所有 plan Done 后,PM 回顾整轮迭代可结晶知识,批量 compound。per-plan Done 是 per-plan 闭环终点;compound 是迭代级收口活动。

Iteration package promotion(iteration-close 强制盘点)

正式迭代收口时,compound plan 实现/debug/review 素材外,必须盘点当前迭代 package。

路径{ITERATION_DIR}/<iteration-id>/**(含 guides/specs/、扁平 .md默认排除 delivery-compass.md 除非 PM 显式纳入。Legacy 根目录 *-delivery-compass.md 同理排除)。

步骤 动作
1. Inventory 列出 package 下全部 .md(除默认排除 compass);读各文件 + package README.md(若有)
2. Triage 每篇:Promote / Keep snapshot / Skip(理由写入 compound 摘要)
3. Promote 值得跨迭代复用 → 走 Q1–Q8(或轻量判定)→ Phase 2 重叠检测 → Phase 3–6 结构化重写{KNOWLEDGE_DIR}/禁止无改写整文件复制)
4. Trace 源文件顶栏或 package README:Promoted to: <knowledge-path>{KNOWLEDGE_DIR}/README.md 的 Source 可记 iteration:<iteration-id>/<relpath>
5. Summary PM 写入 compass ## Compound Round Summary:提升篇数、保留快照、跳过及原因

Read the full file on GitHub · 110 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 110 lines · 134 tokens per session scan A 6d1d2ed86226

Subscribe to this mod's changes

mstar-compound is a skill published in the GitHub repository btspoony/mstar-harness (58 stars, last pushed today), licensed MIT. It adds 134 tokens to every session and 2,346 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.