JA

juxt/allium

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

544 stars 质量 75 趋势 22MIT

juxt/allium是从[[T0]引入的特工技能候选物。

概览

juxt/allium是从[[T0]引入的特工技能候选物。

概述(AI 翻译)

回应的规范语言:allium-lang.org。

这是什么

Allium 是一项在代理工程中明确意图的技能。LLM 会在你的代码旁边构建并维护行为规范,以一种跨会话持续的形式捕捉系统应做的任务。配合一个验证语法并绘制语义推断的 CLI,它能发现设计漏洞,揭示你遗漏的含义,并从系统的形式行为生成测试。

它也可以反过来工作。把Allium指向你已有的代码,它会提炼出系统行为的规范,揭示代码从未明确说明的漏洞和边缘情况。

命令行工具

Allium CLI 会检查规范中的结构性问题并生成测试。它捕捉语言模型自身无法可靠完成的事情:跨规则追踪数据流、验证每个实体生命周期是否能达到终端状态、发现死胡同。LLM 利用这些发现提出更好的问题,生成更完整的规范。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Allium

The specification language that talks back: allium-lang.org.

What this is

Allium is a skill for clarifying intent during agentic engineering. The LLM builds and maintains a behavioural specification alongside your code, capturing what the system should do in a form that persists across sessions. Paired with a CLI that validates syntax and draws semantic inferences, it catches design gaps, surfaces implications you missed and generates tests from the formal behaviours of your system.

It also works in reverse. Point Allium at code you already have and it distils a specification of how the system behaves, surfacing bugs and edge cases the code never made explicit.

Command-line tooling

The Allium CLI checks specs for structural problems and generates tests. It catches things language models can’t do reliably on their own: tracing data flow across rules, verifying that every entity lifecycle can reach a terminal state, spotting dead ends. The LLM uses these findings to ask better questions and produce more complete specs.

The skills work without the CLI, falling back to the language reference, but installing it means every edit is formally checked and the results feed straight into the conversation.

Install via Homebrew or crates.io:

brew tap juxt/allium && brew install allium
cargo install allium-cli

See the allium-tools repo for details.

How it works

You keep a .allium file alongside your code, setting out what the system should do rather than how it does it. It contains entities, which describe the things in the system and their shape, and rules. Each rule has three parts: a when that names the triggering event, a requires that lists the preconditions, and an ensures that states the outcomes. The spec and the code are two representations of the same system, one behavioural and one concrete, and much of the value comes from comparing them against each other, and against the tests that connect them. Because the behaviour is written as structure rather than prose, contradictions show up on their own: two rules with incompatible preconditions expose the conflict without a powerful model having to notice it.

Two directions feed the spec, and a loop keeps it, the tests and the code in agreement:

        intent ──/elicit──►  ┌───────────────┐  ◄──/distill── existing code
       (forward)             │ .allium spec  │              (backward)
                             └──────┬───┬────┘
                          /tend     │   │   /weed
                      (edit spec)   │   │  (reconcile with code)
                                    ▼   ▼
                                /propagate
                             (generate tests)
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add juxt/allium
新手?先看 mcpskill.org 教程 →