mas-code-standards
БесплатноБез исполняемых скриптовНе проверенUse when implementing, fixing, refactoring, or reviewing non-generated AUTO-MAS code, or when preparing code-style guidance, comments, docstrings, version…
от AUTO-MAS-Project★ 821 звезда на GitHubОб этом скилле
MAS Code Standards
Objective
Reproduce the practical implementation style used in current dev without copying obsolete behavior or broadening scope unnecessarily.
Scope
Primary style reference samples:
frontend/electron/servicesfrontend/electron/ipcfrontend/src/views/Initialization
Use these samples as style lenses only. For frontend engineering or UI decisions, prefer mas-frontend-standards and mas-frontend-ui; for Python modules, carry over the same values of explicit orchestration, compatibility-first changes, and operational logging, but always compare nearby files before applying style assumptions.
Workflow
- Read references/style-observations.md, with priority on commit lenses
e541fa5f,727aafb, ande5d72bdb. - Sample 2 to 3 sibling files in the same module before editing.
- Keep the main execution path obvious; extract helpers only when they make the flow easier to follow.
- Match nearby naming, logging tone, comment style, and result contracts.
- Prefer minimal edits that blend into surrounding code rather than style-driven rewrites.
- If recent maintainer review comments are available for the same area, treat them as the strongest style signal.
- Before completing a user-visible feature or fix, add exactly one changelog fragment under
changelog.d/(<PR number or branch>.<feat|change|fix|breaking|remove|security|dev>.md; first lineproject: <key>from the project table inchangelog.d/README.md— 14 adapters plus home / scheduler / emulator / notify / tools / settings / update / runtime, no catch-all, pick the nearest per the README; onlydevfragments may omit it; then one user-facing sentence of at most 50 characters without project prefix, PR number or signature;python scripts/changelog.py add <type> <project> "<sentence>"creates it, with-as the project fordev). Before writing a fix or change fragment, decide which release introduced the feature you touch: a feature absent from the previous stable release's notes was introduced in the current X.Y.0 cycle (for 5.5.0: Runtime initialization, virtual display, Emulator 2.0, MFW, BetterGI, BAAH, ZZZ-OD, config restore, operator cultivation). Every later fix, maintenance or supplementary change to such a feature (bug fixes, turning something into a prompt, extra hints, default tweaks, layout changes, i18n wiring, cleanup) is beta-only: if the feature's entry is still in the top## [未发布]section or its fragment is still inchangelog.d/, add no fragment and label the PRskip-changelog(describe any wording change in the PR for a maintainer to apply); if it shipped in an earlier beta of the cycle, add the header linebeta-only: trueso the entry is dropped from the stable roll-up. Sub-features added to it later are beta-only as well: in the stable notes a new adapter is exactly one line (【bgi】新增 bgi 专项) and a new feature is its single introduction entry; fixes and changes to features that shipped in the previous stable are normal. Project keys use the short namesbgi(BetterGI) andend(MaaEnd). A PR with several human authors lists them all in the header lineauthor: a, b(the script never reads Co-authored-by). Maintainers may addhighlight: trueto route an entry into 「本次亮点」; treat it as part of the implementation rather than a reminder. Condense all changes of the PR into that one sentence. Never editCHANGELOG.md,res/version.jsonor any version number: they are written only by the release PR.
Commit Lenses
e541fa5f: small cleanup. Keep logic local, remove one-off indirection, simplify conditions without changing outcome.727aafb: feature landing. Extend existing books, models, managers, routes, forms, and logs in parallel instead of inventing a separate architecture for the new type.e5d72bdb: dev integration. Preserve the feature branch structure, then consolidate at integration points instead of rewriting during merge.
Core Traits
- Use clear file sections such as
// ==================== 类型定义 ====================. - Keep module headers and comments short, Chinese, and purpose-driven.
- Prefer explicit orchestration over generic abstractions or clever helpers.
- Use
getLogger('中文名')and short operational log lines. - Allow light duplication when it keeps each step readable and local.
- Respect file-local formatting; do not normalize unrelated code.
- When adding a new script or domain type, extend config model, schema, routing, task registration, frontend types, composables, and edit views together.
- Prefer compatibility edits at registration points such as
BOOK, union types, routing branches, and progress payloads before deeper refactors. - For finite variants, prefer a small dict/registry mapping instead of many near-identical branches.
- Keep frequently edited task-configuration logic visible in the owning flow with a short comment instead of hiding it behind one-off he
Установить mas-code-standards в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл mas-code-standards?
Use when implementing, fixing, refactoring, or reviewing non-generated AUTO-MAS code, or when preparing code-style guidance, comments, docstrings, version notes, or Conventional Commit wording. Skip read-only diagnosis, explanation, exploration, and planning unless code conventions are requested.
Как установить скилл mas-code-standards?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mas-code-standards запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic