提交
- 作者仓库星标 1,537
- 作者仓库 cafe-hass
- 领域
- 工程开发
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @FezVrasta · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
The user wants to commit changes. Before creating any git commit, you MUST run all quality checks and fix any issues found. Follow these steps in order:
## Step 1: Run quality checks
Run all checks in parallel:
```bash
yarn lint:biome --fix
yarn typecheck
yarn format:check --fix
yarn test
```
## Step 2: Fix all issues
If any check fails:
- **Lint errors**: Run `yarn lint:biome --fix` to auto-fix, then manually fix remaining issues
- **Type errors**: Fix TypeScript errors in the affected files
- **Formatting**: Run `yarn format` (i.e. `yarn format:check --fix`) to auto-format all files
Re-run the failing checks after fixing until they all pass. Do NOT proceed to commit until every check passes with zero errors.
## Step 3: Create the commit
Only after all checks pass, follow the standard commit process:
1. Run `git status` and `git diff` to review changes
2. Stage the relevant files with `git add <specific files>`
3. Write a clear commit message following the existing style
4. Create the commit using a heredoc for the message:
```bash
git commit -m "$(cat <<'EOF'
<message here>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
EOF
)"
```
5. Run `git status` to confirm the commit succeeded.
**IMPORTANT**: Never use `--no-verify` or skip hooks. Never commit if any lint, typecheck, or format check is failing.
章节与文件索引
按说明文件中的顺序排列。
第 1 步:进行质量检查
第 2 步:解决所有问题
第 3 步:创建提交
文件/命令 -> yarn lint:biome --fix · yarn format · yarn format:check --fix · git status · git diff · git add <specific files> · --no-verify
内容校验值 -> 622159f8e9b5
当前原文的自动摘译,尚未人工审校。
第 1 步:进行质量检查
并行运行所有检查:
第 2 步:解决所有问题
如果任何检查失败: Lint 错误:运行
yarn lint:biome --fix自动修复,然后手动修复剩余问题 类型错误:修复受影响文件中的 TypeScript 错误 格式化:运行yarn format(即yarn format:check --fix)自动格式化所有文件 修复后重新运行失败的检查,直到全部通过。在每项检查都通过且零错误之前,不要继续提交。第 3 步:创建提交
只有在所有检查通过后,才遵循标准提交流程: 运行
git status和git diff以审查更改 使用git add <specific files>暂存相关文件 按照现有样式编写清晰的提交消息 使用消息的定界文档创建提交: