一键导入
allium-cli-plan
Use when deriving test obligations from a folder of .allium specs with allium plan after check and analyse pass.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when deriving test obligations from a folder of .allium specs with allium plan after check and analyse pass.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | allium-cli-plan |
| description | Use when deriving test obligations from a folder of .allium specs with allium plan after check and analyse pass. |
Use this skill when the user wants test obligations, test planning, or test generation guidance from a folder of .allium specs.
Run allium plan against the resolved entrypoint only after check and analyse pass, then interpret the output as test obligations rather than final test code.
This skill is invoked against a folder containing one or more .allium files. Do not pass the folder itself to allium commands. Allium CLI commands operate on spec files, so first resolve the effective entrypoint file.
Treat the user's folder argument as SPEC_DIR. If no folder is provided, use the current working directory only after confirming it contains .allium files.
SPEC_DIR="${SPEC_DIR:-.}"
find "$SPEC_DIR" -type f -name '*.allium' | sort
If no .allium files are found, stop and report that the folder does not contain Allium specs.
Use this order:
SPEC_DIR/index.allium exists, use it.SPEC_DIR/allium/index.allium exists, use it..allium file exists under SPEC_DIR, use that file..allium files exist and no clear entrypoint exists, inspect imports/references and choose the file that appears to aggregate the others.Use ENTRYPOINT for commands that need the whole model. Use a leaf file only for narrow syntax debugging with allium parse, and return to the entrypoint for validation.
ENTRYPOINT="$SPEC_DIR/index.allium"
allium check "$ENTRYPOINT"
allium check "$SPEC_DIR"
allium analyse "$SPEC_DIR"
allium model "$SPEC_DIR"
allium plan "$SPEC_DIR"
Passing a directory produces misleading failures and does not validate the spec set.
Run these first:
allium check "$ENTRYPOINT"
allium analyse "$ENTRYPOINT"
Do not use plan output as a basis for test generation if check or analyse fails.
allium check "$ENTRYPOINT"
allium analyse "$ENTRYPOINT"
allium plan "$ENTRYPOINT"
For saved output:
mkdir -p artifacts
allium plan "$ENTRYPOINT" > artifacts/allium-test-plan.txt
Only save output when requested or useful for downstream work.
plan is forUse plan to derive behavioral test obligations from the specification. Treat the output as a planning source that must be mapped into the repository's test architecture.
Potential obligation categories:
Use this mapping unless the repository has stronger conventions:
| Obligation type | Likely test type |
|---|---|
| Single rule precondition/outcome | Unit or integration test |
| Multi-entity rule behavior | Integration test |
| Full lifecycle path | State-machine or integration test |
| Invariant preservation | Property or integration test |
| User-visible behavior | End-to-end or API-level test |
| Error/denial behavior | Negative unit/integration test |
Keep tests traceable to Allium rule names. Prefer test names that include entity/rule identifiers.
Example naming pattern:
Order_ShipOrder_requires_confirmed_status
Order_ShipOrder_sets_tracking_number_and_shipped_at
Order_CancelOrder_rejects_delivered_orders
Before writing tests from plan output, inspect for:
If the plan reveals ambiguity, update the spec and rerun:
allium check "$ENTRYPOINT"
allium analyse "$ENTRYPOINT"
allium plan "$ENTRYPOINT"
SPEC_DIR="specs/allium"
ENTRYPOINT="specs/allium/index.allium"
allium check "$ENTRYPOINT"
allium analyse "$ENTRYPOINT"
allium plan "$ENTRYPOINT"
SPEC_DIR="specs/allium"
ENTRYPOINT="specs/allium/index.allium"
mkdir -p artifacts
allium check "$ENTRYPOINT"
allium analyse "$ENTRYPOINT"
allium plan "$ENTRYPOINT" > artifacts/allium-test-plan.txt
If check fails, use allium-cli-check and allium-cli-diagnostics-repair.
If analyse fails, use allium-cli-analyse and repair semantic/process diagnostics.
If plan fails after both passed:
model to see whether the expected structures are extractable.A successful plan run means:
It does not mean:
Report:
check and analyse passed first.When reporting command results, include:
Do not claim a spec is valid unless the relevant command completed successfully against the resolved entrypoint.
allium-cli-check and allium-cli-analyse before planning.allium-cli-output-interpretation for summarizing large plan output./allium:propagate or equivalent workflow skills for actually generating tests.Use for practical command recipes when agents operate Allium CLI commands on a folder of .allium specs.
Use when running deeper semantic and process-level analysis on a folder of .allium specs after allium check has passed.
Use when validating a folder of .allium specs with allium check. Resolves the folder to an entrypoint file, runs validation, interprets diagnostics, and defines the repair loop.
Use when defining or applying CI-quality command gates for a folder of .allium specs. Assumes allium is already available.
Use as a concise reference for Allium CLI commands when working on a folder of .allium specs. Assumes the CLI is already available and entrypoint resolution is required.
Use when an Allium CLI command fails on a folder of .allium specs. Classifies diagnostics, performs minimal repairs, and reruns the correct command against the resolved entrypoint.