内容
<div align="center">
<img src="./assets/logo.png" width="192" />
# 格里莫尔
**基于OCI的AI技能和规则包管理器**
[![CI][ci-badge]][ci]
[![Release][release-badge]][releases]
[![Docs][docs-badge]][docs]
[![License][license-badge]][license]
</div>
`grim` 使用OCI注册表(GHCR、Docker Hub、私有注册表)作为存储来安装、维护和发布AI代理技能和规则,就像容器镜像的分发一样。它是一个后端工具:用于保持代理配置版本化、可共享和可重现的构建块。
> **状态:** 稳定趋向 1.0 — 已发布的表面是冻结的契约;当您依赖它时,请固定版本。
## 安装
一键安装程序(macOS / Linux)— 检测您的平台,验证SHA-256校验和,并将`grim`放到您的`PATH`中:
```sh
curl --proto '=https' --tlsv1.2 -LsSf https://setup.grimoire.rs/sh | sh
```
在Windows(PowerShell 7.4+)上:
```powershell
irm https://setup.grimoire.rs/ps1 | iex
```
在GitHub Actions中使用[`grimoire-rs/setup-grimoire@v1`][setup-grimoire]。
macOS、Linux和Windows(aarch64 / x86_64)的预编译二进制文件位于[最新版本][releases];其他方法(ocx,源代码构建)在[安装文档][docs-install]中。或者从源代码构建:
```sh
cargo install --git https://github.com/grimoire-rs/grimoire grimoire
```
## 快速入门
```sh
grim init # 创建 grimoire.toml
grim add ghcr.io/grimoire-rs/skills/grim-usage # 声明、锁定、安装
grim install # 克隆后重新实现
grim tui # 浏览索引
```
完整文档:**[格里莫尔文档][docs]**。
## 开发
参见 [CONTRIBUTING.md](CONTRIBUTING.md) 获取完整指南。
**先决条件:** [Rust](https://rustup.rs),[task](https://taskfile.dev),
[uv](https://docs.astral.sh/uv/) (用于Python验收套件)。
## 社区
- [行为准则](CODE_OF_CONDUCT.md)
- [安全策略](SECURITY.md)
## 许可
格里莫尔(Grimoire)根据 [Apache License, Version 2.0][license] 许可。
<!-- badges -->
[ci]: https://github.com/grimoire-rs/grimoire/actions/workflows/verify-basic.yml
[ci-badge]: https://github.com/grimoire-rs/grimoire/actions/workflows/verify-basic.yml/badge.svg
[releases]: https://github.com/grimoire-rs/grimoire/releases
[release-badge]: https://img.shields.io/github/v/release/grimoire-rs/grimoire
[docs]: https://grimoire.rs/
[docs-badge]: https://img.shields.io/badge/docs-grimoire-blue
[docs-install]: https://grimoire.rs/installation.html
[setup-grimoire]: https://github.com/grimoire-rs/setup-grimoire
[license]: LICENSE
[license-badge]: https://img.shields.io/badge/license-Apache--2.0-blue.svg