matecloud: Skill for Claude Code

.claude/.harness/skills/mate-preflight/SKILL.md

mate-preflight is a skill for Claude Code from mateaix/matecloud. It costs 58 tokens per session (570 once invoked), scanned A, original, Apache-2.0.

A pre-submission checklist for the MateCloud codebase. It checks repository rules, the files being submitted, commit-message format, and branch workflow.

In plain words
What is it for?
Checking changes before committing or opening a pull request, including harness checks, staged-file review, commit naming, and branch selection.
Why use it?
It catches blocking policy violations and accidental unrelated files before a commit or pull request. It also identifies newly introduced warnings that should be addressed.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is mateaix/matecloud's own configuration. It tells Claude Code how to work on matecloud itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything matecloud configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is bash .claude/.harness/checks/run-all.sh.

About the project

MateCloud is a Java-based platform for building multi-tenant business applications from cooperating services, using Spring Cloud Alibaba and domain-driven design. It supports SaaS and low-code development with built-in services for authentication, administration, notifications, messaging, and AI features. The catalogue add-ons operate MateCloud through its command-line and MCP-based tooling.

mateaix/matecloud · 1,710 stars · on GitHub · mate.vip

Reuse

Borrowing it

Nothing to install: this file belongs to mateaix/matecloud. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/mateaix/matecloud/dev/.claude/.harness/skills/mate-preflight/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mateaix/matecloud

Made for: Claude Code.

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 mate-preflight

README.md
[![agentmods](https://agentmods.dev/badge/skills/mateaix/matecloud/mate-preflight/github.svg)](https://agentmods.dev/skills/mateaix/matecloud/mate-preflight)
Your own site
<a href="https://agentmods.dev/skills/mateaix/matecloud/mate-preflight"><img src="https://agentmods.dev/badge/skills/mateaix/matecloud/mate-preflight/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 mate-preflight

Your own site · 80×15
<a href="https://agentmods.dev/skills/mateaix/matecloud/mate-preflight"><img src="https://agentmods.dev/badge/skills/mateaix/matecloud/mate-preflight.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 58 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 570 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.00058 $0.00570
Opus 5.5 $0.00023 $0.00228
Sonnet 5.5 $0.00012 $0.00114
Haiku 4.5 $0.00006 $0.00057

Measured 2mo ago against content hash 28ac85fc8128, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mate-preflight 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 2mo 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.

.claude/.harness/skills/mate-preflight/SKILL.md · 52 lines

What it actually says

提交 / PR 前自检

目标:让每次提交都过得了 harness,并符合提交规范。

第一步:跑约束校验

bash .claude/.harness/checks/run-all.sh
  • 阻断级(竞品名 / 硬编码密钥 / OSS 边界 / 领域纯净)任一红 → 必须修到绿才提交。
  • 告警级(MapStruct / AutoConfig / Flyway)→ 看是不是你这次引入的;是就一并修, 历史存量可暂留但别新增。

修法对照 .claude/.harness/rules/:每个 check 的 rule: 字段(见 manifest.yml)指向对应规则文件。

第二步:范围自查(别捎带无关改动)

git status --short
git diff --cached --stat

只暂存本次任务相关文件。不要顺手提交他人工作区改动、docs/tasks/(含内部路径)、 或 .claude/ 下除 .harness 外的本地配置。

第三步:提交信息规范

格式 {type}({scope}): {description},中文描述 OK:

  • type:feat / fix / refactor / docs / chore / test / style / perf
  • scope:模块名(system / auth / gateway / harness …)
  • 示例:fix(system): 用户查询分页参数校验缺失

提交信息末尾按本仓约定加 Co-Authored-By 行(若由 AI 协作)。

第四步:分支

当前在默认分支(main)就先开 feature/{name} 或 fix/{issue}; 本项目日常工作流是提交并推送到 dev(除非另有要求)。

一键清单

  • run-all.sh 阻断级全绿
  • 未新增告警级违规
  • 暂存范围干净,无无关文件 / 内部路径
  • 提交信息 {type}({scope}): ...
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. 2mo ago First seen · 52 lines · 58 tokens per session scan A 28ac85fc8128

Subscribe to this mod's changes

mate-preflight is a skill published in the GitHub repository mateaix/matecloud (1,710 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 58 tokens to every session and 570 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.

Related

mate-preflight compared with skills from other repositories

mate-preflight next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
mate-preflightmateaix/matecloudSkill1.7k1mo agoApache-2.0A58Claude Code
create-prprisma/ormSkill48kyesterdayApache-2.0A48Claude Code, Codex
engineer-bot-opsmakecindy/cindySkill9.3ktodayApache-2.0A57Claude Code, Codex
mcore-split-prNVIDIA/skillsSkill3.9kyesterdayApache-2.0A25Claude Code
git-commit-writermergisi/awesome-openclaw-agentsSkill4.1k2d agoMITA53Claude Code, Codex
contributingHugoRCD/evlogSkill1.9k12d agoMITA68Claude Code, Codex
strict-tdda5c-ai/babysitterSkill1.9k5d agoMITA34Claude Code