> ## Documentation Index
> Fetch the complete documentation index at: https://arka-agent-mintlify-f21cea86.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 仓库健康度

> 为当前 git 项目检测并运行快速 lint 和测试检查。

扫描当前仓库以查找常见的测试和 lint 工具，然后运行快速健康检查。

## 自然语言

```bash theme={null}
arka check repo health
arka run project tests
arka scan what checks are available
```

## CLI 命令

| 命令 | 描述 |
| - | - |
| `repo_health scan [path]` | 检测可用检查（不执行） |
| `repo_health run [path]` | 运行所有检测到的检查 |
| `repo_health run --test` | 仅运行测试检查 |
| `repo_health run --lint` | 仅运行 lint 检查 |

## 检测到的工具

Arka 会查找：

* **Python：** `pytest`、`unittest`、`ruff`、`flake8`
* **Node：** `package.json` 脚本中的 `npm test`、`npm run lint`
* **Rust：** `cargo test`、`cargo clippy`
* **Go：** `go test ./...`
* **Make：** 当 `Makefile` 定义了 `test` 目标时的 `make test`

在仓库内时从当前 git 根目录运行，否则从当前目录运行。


## Related topics

- [AI 智能体指南 — 通过 MCP 使用 Arka](/cn/guides/ai-agents.md)
- [开发者循环](/cn/guides/dev.md)
- [如何用 Arka 写代码](/cn/guides/code-with-arka.md)
- [个性化你的 Arka 体验](/cn/guides/personalize.md)
- [确定性编码工作流](/cn/guides/coding-workflows.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.