mstar-coding-behavior

mstar-coding-behavior is a skill for Claude Code from btspoony/mstar-harness. It costs 42 tokens per session (1,493 once invoked), scanned A, original, MIT.

A set of coding guidelines for implementation, debugging, refactoring, and code review. It emphasizes understanding the code first, making small focused changes, reproducing bugs before fixing them, and checking feedback with evidence.

In plain words
What is it for?
Use it when changing, debugging, refactoring, or reviewing non-trivial code. It guides how to state assumptions, search for all affected call sites, write a reproducing test, and keep changes traceable.
Why use it?
It reduces common agent mistakes such as guessing silently, changing unrelated code, fixing symptoms instead of causes, or modifying code before reproducing a problem. It also points to separate rules for workflow gates and branch handling.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

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

Good fit Use it when changing, debugging, refactoring, or reviewing non-trivial code. It guides how to state assumptions, search for all affected call sites, write a reproducing test, and keep changes traceable.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/btspoony/mstar-harness/mstar-coding-behavior
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-coding-behavior
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 27 skills, 8 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-coding-behavior

README.md
[![agentmods](https://agentmods.dev/badge/skills/btspoony/mstar-harness/mstar-coding-behavior/github.svg)](https://agentmods.dev/skills/btspoony/mstar-harness/mstar-coding-behavior)
Your own site
<a href="https://agentmods.dev/skills/btspoony/mstar-harness/mstar-coding-behavior"><img src="https://agentmods.dev/badge/skills/btspoony/mstar-harness/mstar-coding-behavior/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-coding-behavior

Your own site · 80×15
<a href="https://agentmods.dev/skills/btspoony/mstar-harness/mstar-coding-behavior"><img src="https://agentmods.dev/badge/skills/btspoony/mstar-harness/mstar-coding-behavior.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,493 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.00042 $0.01493
Opus 5.5 $0.00017 $0.00597
Sonnet 5.5 $0.00008 $0.00299
Haiku 4.5 $0.00004 $0.00149

Measured 6d ago against content hash 848766be0723, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mstar-coding-behavior 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 6d 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-coding-behavior/SKILL.md · 71 lines

How it starts

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

Coding Behavior

Start from the user's original outcome, not from the machinery already built.

Workflow

  1. Plan from the need. Identify the requested outcome, current acceptance criteria, non-goals, and actual constraints. Use first principles to separate what must be true from inherited implementation choices. State material assumptions; resolve questions from available evidence before asking for missing decisions.
  2. Read the affected flow. Inspect the changed code, direct contracts, nearby behavior tests, and relevant project guidance. Before editing, map affected callers, tests, fixtures, configuration, and exports; identify data that could be destroyed or exposed and consumers that could break. Check API signatures against source or documentation. Existing artifacts are evidence, not additional requirements.
  3. Do the smallest complete change. Choose the first fully working option in the reuse ladder below. Fix the root cause at the narrowest responsible point; finish affected consumers, tests, fixtures, configuration, exports, and documentation, removing paths made obsolete by the change. Preserve unrelated work and avoid opportunistic cleanup.
  4. Check the outcome. Within the authorized verification scope, exercise the affected consumer behavior and meaningful boundaries. For a bug, use the reported failure or a minimal reproduction to guide diagnosis; change one causal factor at a time. Reuse unaffected evidence rather than rerunning unrelated checks.
  5. Act on evidence. Compare results with acceptance criteria, diagnose any remaining failure, and refine only what is necessary. Assess review feedback against actual contracts and behavior; apply justified fixes or explain disagreement with evidence. Stop when the requested outcome is evidenced.

Decision Rules

Requirement-first simplicity

  • Apply Occam's razor and YAGNI: prefer fewer concepts, moving parts, and assumptions that fully satisfy current requirements. Small does not mean incomplete, temporary, symptom-only, or cleverly compressed; a one-liner that needs decoding is not simpler. Between equally simple options, choose the one correct at the affected boundaries.
  • Do not grow a design from existing layers just because they exist. Keep useful patterns, but replace a bad abstraction when the requested outcome requires it; do not preserve it solely for consistency.
  • Never add imagined future features, extension frameworks, configuration knobs, compatibility wrappers, or speculative error handling. Each addition must answer a current requirement or a demonstrated risk in a supported workflow. Keep values in their existing form unless the contract requires conversion; do not add layers or wrappers merely to reshape them.
  • Do not add validation, confirmation, or preflight gates for unsupported or hypothetical conditions. Retain trust-boundary validation, required authorization, security, data-loss prevention, accessibility, necessary hardware calibration, and requested behavior. Moving or merging code preserves its validation and error handling.
  • Take the first option that fully works, not the shortest incomplete diff:
    1. Reuse a valid project helper, component, service, or pattern as surrounding code does; a suitable house component takes precedence over a native replacement.
    2. Use a standard-library or platform feature when no suitable house solution exists.
    3. Use an installed dependency; check its documentation and types before assuming it lacks the capability.
    4. Otherwise write the minimum readable direct solution. Add an established, well-maintained library only when it reduces overall complexity or improves reliability; check maintenance and size, and state the need in one sentence, not a new package for a few lines.
  • Centralize and reuse sources of truth for prompts, contracts, and data instead of copying them; do not invent an abstraction framework to do so.
  • Mark a deliberate bounded shortcut with simplify: and its ceiling/upgrade path. For an unavoidable workaround, explain why, label it simplify: or temporary, and record its removal path in the existing plan/status artifact before claiming completion. Temporary markers must cite that artifact.

Read the full file on GitHub · 71 lines

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. 6d ago Changed · -11 tokens per session 848766be0723
  2. 16d ago Changed · +4 lines b23eeba8f52a
  3. 24d ago Changed · -88 lines · -183 tokens per session 9d7d1658751c
  4. 27d ago Changed · +4 lines 0626e80eba01
  5. 1mo ago Changed fd67ba5792df
  6. 1mo ago Changed · -17 lines · -2 tokens per session 25bcf8622e5f
  7. 1mo ago First seen · 168 lines · 238 tokens per session scan A 1e1f9786bbbf

Subscribe to this mod's changes

mstar-coding-behavior is a skill published in the GitHub repository btspoony/mstar-harness (64 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 1,493 once invoked, about $0.0002 per session on Opus 5.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.