提交
- 作者仓库星标 1,537
- 作者仓库 cafe-hass
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:
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 --fixto 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:
- Run
git statusandgit diffto review changes - Stage the relevant files with
git add <specific files> - Write a clear commit message following the existing style
- Create the commit using a heredoc for the message:
git commit -m "$(cat <<'EOF'
<message here>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
EOF
)"
- Run
git statusto confirm the commit succeeded.
IMPORTANT: Never use --no-verify or skip hooks. Never commit if any lint, typecheck, or format check is failing.
- 流狐分类
- 工程开发
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @FezVrasta · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Run all checks in parallel:
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
Only after all checks pass, follow the standard commit process: Run git status and git diff to review changes Stage the relevant files with git add <specific files>
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. 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Step 1: Run quality checks → Step 2: Fix all issues → Step 3: Create the commit
要点 -> Lint errors · Type errors · Formatting · IMPORTANT
文件/命令 -> yarn lint:biome --fix · yarn format · yarn format:check --fix · git status · git diff · git add <specific files> · --no-verify
内容 SHA-256 -> 622159f8e9b5
方法与流程
适用与边界
原文中的明确线索
yarn lint:biome --fix、yarn format、yarn format:check --fix、git status、git diff、git add <specific files>、--no-verify