ワンクリックで
allium-cli-model
Use when extracting or inspecting the structured domain model from a folder of .allium specs using allium model.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Use when extracting or inspecting the structured domain model from a folder of .allium specs using allium model.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
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.
| name | allium-cli-model |
| description | Use when extracting or inspecting the structured domain model from a folder of .allium specs using allium model. |
Use this skill when the user wants to inspect the domain model represented by a folder of .allium specs, compare model output before and after edits, or diagnose unexpectedly sparse model output.
Run allium model against the resolved entrypoint file and interpret the structured model output as the CLI sees it.
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 check first:
allium check "$ENTRYPOINT"
If check fails, repair validation before relying on model output.
allium check "$ENTRYPOINT"
allium model "$ENTRYPOINT"
For saved output:
mkdir -p artifacts
allium model "$ENTRYPOINT" > artifacts/allium-model.json
Only save output when requested, when useful for comparison, or when the repo expects artifacts.
model is forUse model to confirm:
If output is unexpectedly sparse, especially if it only contains a version field, treat it as a diagnostic signal.
Check these in order:
1. Was a file passed, not a directory?
2. Was the file the actual root entrypoint?
3. Does the entrypoint import or contain the expected specs?
4. Do imported files actually contain valid declarations?
5. Does allium check pass on the same entrypoint?
6. Did the expected declarations parse as intended?
Recommended command sequence:
find "$SPEC_DIR" -type f -name '*.allium' | sort
allium check "$ENTRYPOINT"
allium model "$ENTRYPOINT"
allium parse "$ENTRYPOINT"
If a specific leaf file is expected to contribute declarations, parse that leaf too:
allium parse "$TARGET_FILE"
Then rerun:
allium check "$ENTRYPOINT"
allium model "$ENTRYPOINT"
Use this when reviewing a spec edit.
mkdir -p artifacts
allium model "$ENTRYPOINT" > artifacts/allium-model.before.json
# make or inspect spec changes
allium check "$ENTRYPOINT"
allium model "$ENTRYPOINT" > artifacts/allium-model.after.json
Compare the model outputs for the intended delta. Do not assume every textual spec change should produce model output changes; comments or reformatting may not affect the model.
For each expected change, verify the model contains the corresponding structure:
Symptom: valid output exists but does not include expected files.
Repair: choose the entrypoint that imports or aggregates the spec folder.
Symptom: a leaf file contains declarations, but model output omits them.
Repair: connect the leaf file through the entrypoint/import graph according to project conventions.
Symptom: parse sees structure but model output omits it.
Repair: run check; inspect whether the structure is legal domain-model content or merely syntactically parseable.
Symptom: after a small edit, large unrelated model changes appear.
Repair: inspect accidental import changes, brace movement, renamed declarations, or entrypoint change.
SPEC_DIR="specs/allium"
ENTRYPOINT="specs/allium/index.allium"
allium check "$ENTRYPOINT"
allium model "$ENTRYPOINT"
SPEC_DIR="specs/allium"
ENTRYPOINT="specs/allium/index.allium"
mkdir -p artifacts
allium check "$ENTRYPOINT"
allium model "$ENTRYPOINT" > artifacts/allium-model.json
Summarize model output in terms of domain structure. Avoid dumping large JSON unless the user requested raw output.
Report:
check 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 before extraction.allium-cli-parse when the model is sparse or unexpected.allium-cli-output-interpretation for summarizing JSON output.