Logo Mstar Use Cli

Mstar Use Cli

Cộng đồng
btspoony
mstar-use-cli

Use when choosing, running or interpreting `mstar`/`mstar-harness` CLI commands: family selection, semantic preconditions (control root, cwd, identity, revision/token), exit codes and refusal codes.

Tổng quan

Nhà phát hànhbtspoony
Kho mãmstar-harness
Tên kỹ năngmstar-use-cli
Sao
67
Bản fork
4
Tệp đi kèm
4
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ộ.

  • 4 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 Use Cli 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-use-cli
  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-use-cli .claude/skills/mstar-use-cli
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 Use Cli 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 Use Cli 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 Use Cli 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.

CLI contract (mstar-use-cli)

The CLI is the harness's machine surface: gates, coordination writes and validators sit behind it. This skill is the index that says which family answers a task, what must be true before running it, in what order a sequence goes, and how to read the answer.

It is deliberately silent in one direction. Command help is generated from the same source that parses the arguments, so it is the only non-drifting owner of flags, option wording and argument shapes. Help cannot express cross-command choice, preconditions, sequence order or refusal meaning — those are what this skill owns.

Load Order

  1. mstar-harness-core — lifecycle, gates, authorization and conflict authority; first read whenever it is loaded.
  2. The owning topical skill for the family about to run (named in the task index below) — it holds the semantics, role boundaries and surrounding workflow.
  3. This skill — the CLI transport contract for that family.

Conditional scope: this applies when a CLI binary is on PATH. Where the CLI is absent, the engine-import / prose path declared by each topical skill stays authoritative; do not read the command text here as a load-order dependency, and never use this skill as a substitute for the owning skill's rules.

Add mstar-host when the host's tool shapes decide how a command is launched.

Scope

Load when:

  • a CLI command must be run, or output from one must be interpreted;
  • a topical skill's engine-check callout pointed here;
  • an exit 1 / 2 came back and its meaning is unclear, or a command refused for a reason that looks like a missing precondition;
  • a decision is needed between families (read a row, close a lifecycle, register a document, land a report, check a worktree);
  • a coordinated action must be written under its current actor/state and numeric revision or execution-token contract.

Do not load for:

  • installation, host bootstrap, per-host config — INSTALL.md plus mstar-host;
  • flags, option wording, per-command argument shapes — the CLI help owns them;
  • field schemas (mstar-artifacts), iteration phase semantics (mstar-iteration), checkout rules (mstar-branch-worktree), role preset decisions (mstar-roles);
  • slash commands (/codebase-audit, /iteration-drive, …). They ship with the host plugin, not the CLI binary; their owning skills (mstar-audit, mstar-iteration, …) hold their contracts.

Workflow

1. Task → command family

Start with the intended ordinary action, not a universal preflight chain. The acquired primary coordinator's own reference/current scope token/operation id may be derived where unambiguous; explicit constraints validate. Address row actions with --plan and select workflow when needed. Genuine missing configuration/source facts use revisable prepare; defaults do not require a ceremonial record. The CLI publishes each command's owning skill itself: a refusal envelope carries details.skill and mstar <family> <verb> --help ends with a Skill: line — read that skill for the semantics. This table owns task→family grouping only.

TaskFamily
Read selected row state/configuration/evidence and tokenmstar plan show
Bootstrap/resume the workflow coordinator onlymstar plan bind
Revise row source metadata and QA/cleanup configuration (the Prepare view and its amendments)mstar plan prepare
Update progress; capture findings on this plan as linked issues; close one with its dispositionmstar plan progress, mstar plan issue-add, mstar plan issue-close
Record Done directly from QC/QA and declared-route proofmstar plan complete
Register a standalone plan workflow; record delivery evidencemstar workflow register, mstar workflow evidence
Register an iteration workflowmstar iteration register
Close one finished lifecycle (terminal workflow state + root unregister in the current authority)mstar status workflow-close
Return a failed/stopped lifecycle to running on the same id under explicit operator authorization (completed is never reopened)mstar workflow reopen
Validate a coordination document before trusting or replacing itmstar status validate
Read the open-issue rollup; enforce a plan's findings-cleanup mode over the issues linked to itmstar status tech-debt, mstar status findings-cleanup
Initialize a fresh issue/catalog store; upgrade/import recognizable execution state and activate authority; or run staged migration, backup, activation and retirementthe store group (init / upgrade / migrate / backup / activate / retire)
Preview/apply execution recovery from a store backup; export current execution statemstar store execution restore-preview, mstar store execution restore, mstar store execution export
Read/write/list/delete retained persisted documents (review / unrelated json); the residuals kind refuses and the root/snapshot kinds are outside this surfacemstar persist get, mstar persist write, mstar persist list, mstar persist delete
Launch argv under a fresh local execution identity; recover a stopped coordinator or explicitly named plan owner (never resume)mstar session run, mstar session recover
Land or check a QC seat reportmstar qc validate-report
Validate an Assignment before dispatchmstar dispatch validate
Map an execution mode to its QC seat count; assert tri identitymstar review seats
Check workflow-entry facts (branch anchors, main residency, integration checkout cleanliness, integration merge lease) or the L1 / L2 pre-dispatch worktree topologymstar worktree check (L1 per-plan gains the lease fact; --entry is the workflow-level form)
Assert QC / QA checkout alignment across seat filesmstar worktree qc-alignment
Post-merge worktree and branch cleanup (dry-run first)mstar worktree cleanup
SDD helpers: workspace, brief, branch diff package, bound launch, evidence capturemstar sdd workspace, mstar sdd task-brief, mstar sdd review-package, mstar sdd check-context, mstar sdd exec, mstar sdd evidence
Evaluate a phase-transition gate; probe push cadencemstar iteration gate, mstar iteration push-cadence
Resolve the harness / plan / SDD / workflow / project dirsmstar path resolve
Read/export or mutate issues in {HARNESS_DIR}/store.db (add / list / show / occurrence / triage / close / move / waive / duplicate / supersede / link / export)mstar issue …
Serve the read-only local dashboard (issues, execution/roadmap views, issue-flow chart) on 127.0.0.1mstar dashboard
Discover, import, register, update, link, list, show, export, reconcile or purge a verified producer registration in the harness catalogmstar catalog …
Read a project's roadmap authority, preview/apply reviewed Markdown import, revision-guarded content replacement, or export the composed milestone roadmap (reporting transport)mstar roadmap show, mstar roadmap import, mstar roadmap replace, mstar roadmap export
Create, update, or assign project milestones (structured roadmap goals); read milestone rollupsthe milestone group (add / update / assign / list / status)
Detect the active host; resolve a loaded skill rootmstar host detect, mstar host skill-root
Lint harness artifacts by content typemstar lint
Lint a skill's frontmatter and five-question bodymstar skill lint
Validate the role mapping and load-order corpusmstar roles validate
Validate a knowledge doc's frontmatter and scope; the knowledge index-row assert is retired (refuses compound.index.retired → catalog completeness)mstar compound validate
Validate DESIGN.md tokens and paritymstar design-md validate
Scaffold the audit review report; run static security checksmstar audit scaffold, mstar audit secret-scan, mstar audit supply-chain
PR-review arithmetic, report path (--reviews-dir, default the resolved {REVIEW_DIR}), saved-report validation, worktree setupmstar pr-review tally, mstar pr-review report-path, mstar pr-review validate-report, mstar pr-review worktree-setup
Bootstrap a harness directorymstar harness scaffold
Recover a workspace holding recognized v1/v2 execution sources; standalone file-staging migrate is retiredmstar store upgrade
Discover one command or payload contractmstar schema
Draft an offline redacted issue reportmstar report

Per-family detail — refusal codes, JSON envelopes, sequence walkthroughs — is in the references listed at the end. Validator and lint families are indexed in references/checks-and-lints.md. Retired, never live alternatives: status archive-residuals / backlog-register / backlog-close → status.verb-retired; removed plan verbs (including plan residual-add / residual-close) → exit 2, command.invalid-input; persist … residuals → persist.kind-retired. Capture and disposition use issue verbs, not aliases.

2. Conflict diagnostics (not a preflight chain)

Use references/preconditions.md when the intended verb refuses for a required fact. The refusal's grouped facts identify the one genuinely missing or conflicting input — ambiguous root/target, foreign live holder, unavailable authorization; supply a real competing choice or the owner's authorization evidence only for those. On plan mutations the derived session binding and token need no separate read, while the caller's independently acquired identity and the caller-owned operation id stay required on every active write; workflow-level active writes and a fresh active bind state the scope's full execution token themselves. A stale explicit token requires a fresh read; recorded byte versions impose no replacement constraint. Do not make persist or rebind a routine prerequisite for an ordinary lifecycle action. A refusal's commit state is action-local: read the receipt to learn what committed — the engine's coordinated plan-route refusals are transactional (no row, receipt or counter change), and an action-local partial receipt records its applied components — then replay only the documented remaining action.

3. Lifecycle shape

The primary coordinator's ordinary prepare/progress/complete operations replace ownership-transfer completion. Iteration complete verifies the already-performed serial merge; standalone development verifies registered source without integration inputs; report-only consumes matching fulfilment recorded before Done without fabricated Git. All retain QC/QA and their distinct outer delivery/close obligations. No per-row execution lease or bind exists.

Complete writes Done/evidence/ownership atomically and releases applicable integration exclusion; exact replay preserves timestamps. Retry the same intended action with current facts rather than introducing another protocol. Parameters/recovery → references/plan-and-workflow.md.

Decision Rules

  • The command→skill pointer is published by the CLI. It is derived from the command definitions (details.skill on refusals, a Skill: line in CLI help); do not restate the mapping in this skill or any document.
  • Canonical binary is mstar-harness. mstar is a short alias that shares its bin namespace with an unrelated third-party npm package of the same name: outside an environment where the harness package is installed, invoking the short alias through a package runner resolves via the registry to that other tool, and co-installing both packages globally silently overwrites the mstar shim — last install wins. Prefer the canonical name in scripts, CI and anything a reader might copy out of context.
  • Exit codes: 0 ok, 1 engine refusal, 2 usage. 0 includes idempotent no-ops and read-only reads. 1 carries a stable machine code; a refused call's commit state is action-local and stated by its receipt. 2 is a usage error — unknown flag, missing required argument or option, malformed or relative path where an absolute one is required, unreadable payload.
  • Flags come from the CLI help, never from this skill. Run the group help, or the verb help, before guessing an option; the group help is also the authority for which verbs exist at all.
  • Refusal semantics are action-local. A refusal's commit state belongs to that one action: read the receipt instead of assuming. The engine's coordinated plan-route writes refuse transactionally — a refused operation there writes no row, receipt or counter change, so its recovery is a read of current state, never an undo. Where a verb documents action-local partial application, components already committed stay committed — the receipt names them, and the documented remaining action is replayed as its own operation, not the whole sequence. A stale explicit token is recovered by re-reading the addressed scope and retrying with the fresh token. There is no force, no replace and no takeover flag to escalate to.
  • Evidence digests record provenance, not immutable report bytes. Explanatory report edits need no hash repair or resealing; current semantic QC/QA, source proof and evidence-path requirements still apply. No ownership-transfer repair action remains.
  • Streams are per command and per mode — observe them, never infer from the family. A verb's machine surface (the --json form, or a verb whose output is a machine object such as persist get) writes that object to stdout, failure and refusal objects included, so neither the exit code nor the family tells you which stream carried the bytes. On the human surface a success is usually one short line on stdout (<path>: OK, host: <id>), though some verbs leave stdout empty and put the readable summary on stderr; usage errors and most refusal diagnostics go to stderr, and one command can split inside itself — machine rows on stdout, the human headline on stderr. No split holds for every command and no enumeration is reliable, so never assume a command's failure text is on stderr: where a pipe depends on it, read the actual output or that command's help. The exit code is the verdict; an empty stdout is not by itself a failure signal.
  • The CLI you run may not be the code you read. The globally installed binary runs the published engine build, and even a workspace entry point resolves the engine's built output, which can lag its source until that package is rebuilt — so a fix present in the engine source can be absent from the very command you are testing. Install health, and a healthy setup check, prove neither. When a result contradicts source you just read, rebuild or re-resolve before concluding the source is wrong, and follow the version-alignment path in mstar-harness-core. The same caution covers a repository's own generated bundles: a checkout can be mid-flight between source and artifact.
  • Never write a lifecycle state or a lease by editing a document. Done and lease release go through the completion verb; the protected coordination documents refuse direct writes by design.
  • Never hand coordinator context to a leaf: session references/envelopes, CAS tokens and operation IDs stay with the primary PM; leaf tasks carry only owned scope/paths/evidence.
  • Never substitute recovery for resume or resume for recovery. A resume is read-only; a stopped owner is replaced only by the recovery verb that owns the current authority.
  • A validator's OK is a statement about its own contract only. Exit 0 means no violations of that check — not that the content is correct, complete or current.

Evidence

A CLI claim is proven when:

  • the command was actually run, or the result is a machine object a command produced this round — not a recollection of documentation;
  • the exit code matches the family contract, and a 1 is reported with its stable code and message;
  • preconditions were explicit: absolute paths, an explicit root wherever discovery is ambiguous, the transport's authority stated (an independently acquired identity with a session reference on the active route — on plan mutations the engine derives the caller-owned binding and the current token, while workflow-level writes and a fresh active bind state the scope's full token), and any explicitly supplied token held only as a fresh constraint;
  • no refusal was retried with a stale token — a stale explicit token was refreshed by re-reading the addressed scope;
  • commands quoted in a plan, report or handoff are re-runnable as written, with real absolute paths or visibly-marked placeholders;
  • for a validator, the cited check is the one that covers the claim being made.

References

OpenWhen
references/plan-and-workflow.mdplan / workflow families: verb and role boundaries, refusal codes, JSON envelopes, the completion sequence, the CAS read-modify-write shape
references/status-and-registers.mdACTIVE store authority, lifecycle close, issue store and read-only historical status/snapshot inputs; authorization and native database recovery
references/checks-and-lints.mdmaintainer validators and lints that skill callouts cite: what each checks, its owning skill, its exit codes
references/preconditions.mdharness-root resolution, control root vs feature worktree, neutral cwd, session identity, tokens, and how each missing precondition presents itself

Command help is the flag reference. Installation and host setup live in INSTALL.md and mstar-host.

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 Use Cli làm được gì?

Use when choosing, running or interpreting `mstar`/`mstar-harness` CLI commands: family selection, semantic preconditions (control root, cwd, identity, revision/token), exit codes and refusal codes.

Vì sao nên dùng Mstar Use Cli 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 Use Cli 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 Use Cli 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-use-cli. 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 Use Cli?

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 Use Cli 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 Use Cli 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 Use Cli 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 👇