IDMP単位換算スキル(医薬品の測定単位を扱うツール)です。 次のような場合に使用: - UOM(測定単位)のクラスを検査する - クラスに紐付いた単位を確認する - 自由な単位の検索と変換を行う - 取得機能(`get`と`get-get`)の使い分けが必要な場面 `get`と`get-get`の機能は明確に分けられています。
IDMP unit-of-measure skill. Use it to inspect UOM classes, class-scoped units, free UOM lookup, search, and conversion, while keeping `get` and `get-get` clearly separated.
まず最初に../idmp-shared/SKILL.mdをお読みください。
| ショートカット | 目的 |
|---|---|
+classes |
UOMクラスを一覧表示 |
+class |
1つのUOMクラスを読み取り |
+search |
UOMを検索 |
+get |
クラス内限定の標準的なフローで1つのUOMを読み取り |
| 文脈 | 変換やモデル定義の作業の前に解決が必要な理由 |
|---|---|
| ルックアップモード | 対象がクラスルックアップか、自由形式/グローバル単位の読み取りか、クラス内限定の読み取りかを決定する必要があります。 |
| 対象となる単位の種類 | 検索語が不正確な場合があるため、IDを信頼する前に、目的の単位名、略号、またはクラスを確認する必要があります。 |
| 変換方向 | 正確なfromUomId、toUomIdを決定し、一括処理が1つの互換性のあるクラス内に留まるかどうかを判断する必要があります。 |
| 検証対象 | 証拠をクラスの在庫、正確なget、クラス内限定のget-get、または成功した変換結果のいずれから得るかを決定する必要があります。 |
uom searchはクラス志向ではなく単位志向です。クラスラベルや単位の種類に関する言葉だけ(英語でも地域化されたラベルでも)に頼って、単位の種類が見つからないことを証明しないでください。検索は正確な単位名と略号で最も効果的に機能します。uom get-getに頼る前に、uomclasses listとuomclasses getを使ってクラスIDを発見してください。uom getは自由形式/グローバルの読み取りです。uom get-getはuomClassIdとuomIdの両方が必要です。convertはバッチ全体で「すべてまたは無」です。1行でも無効または互換性がないと、要求全体が失敗します。uomclassesで始めて、オペレーターが単位を選ぶ前にクラスの文脈を理解します。uomIdだけが既知の場合は、uom getを使い自由形式/グローバル単位の読み取りを行います。uomClassIdとuomIdの両方が既知の場合は、uom get-getを使いクラス内限定の読み取りを行います。searchが部分的な一致を返す場合、get、get-get、またはconvertのIDを選ぶ前に、正確な単位名または略号の一致を優先してください。searchとconvertを使用します。convertを1つのバッチでは「すべてまたは無」として扱ってください。無効なUOM IDまたは互換性のないペアが1つあると、構造化された400エラーで要求全体が失敗します。uom getまたはuom get-getが、検査を目的とした正確な対象の行を返すときだけ完了です。searchが空でも、uomclasses listまたはuomclasses getが一致する単位の種類を明らかにするときだけ完了です。fromUomId、toUomId、および数値出力を反映するときだけ完了です。idmp-cli schema uom.uomclasses.list
idmp-cli uom uomclasses list
idmp-cli schema uom.uomclasses.get
idmp-cli uom uomclasses get --params '{"uomClassId":264033646}'
idmp-cli schema uom.uom.search
idmp-cli uom uom search --params '{"keyword":"kWh","limitSize":20}'
idmp-cli schema uom.uom.get
idmp-cli uom uom get --params '{"uomId":1753955006}'
idmp-cli schema uom.uom.get-get
idmp-cli uom uom get-get --params '{"uomClassId":264033646,"uomId":1753955006}'
idmp-cli schema uom.uom.convert
idmp-cli uom uom convert --ack-risk --data '[{"fromUomId":1,"inputValue":100,"toUomId":2},{"fromUomId":1,"inputValue":5,"toUomId":2}]'
AhではなくアンペアA)を優先してください。uomclasses listとuomclasses getに戻ってください。空のファジー検索を、その単位の種類が存在しない証拠として扱わないでください。uom getが見つからないことを返す場合:オペレーターが本当にクラス内限定のuom get-getフローを必要とするかどうかを確認してください。uom get-getが見つからないことを返す場合:uomClassIdとuomIdの両方を検証してください。有効な自由形式単位のIDだけでは不十分です。idmp-cli uom uomclasses listでUOMクラスを一覧表示します。idmp-cli uom uomclasses get --params '{"uomClassId":264033646}'で1つのクラスを読み取ります。idmp-cli uom uom searchでkWhなどの既知の単位を検索します。idmp-cli uom uom getで1つの自由形式単位を読み取り、idmp-cli uom uom get-getでクラス内限定の単位を読み取ります。idmp-cli uom uom convert --ack-risk --data '[{"fromUomId":1,"inputValue":100,"toUomId":2},{"fromUomId":1,"inputValue":5,"toUomId":2}]'で複数行の互換性のある一括処理を変換し、有効/無効が混在したバッチを調査してCLIが部分的な成功ではなく構造化された400を表示することを確認します。Read ../idmp-shared/SKILL.md first.
| Shortcut | Purpose |
|---|---|
+classes |
List UOM classes |
+class |
Read one UOM class |
+search |
Search UOMs |
+get |
Read one UOM in the common class-scoped flow |
| Context | Why it must be resolved before conversion or modeling work |
|---|---|
| Lookup mode | Decide whether the target is a class lookup, a free/global UOM read, or a class-scoped UOM read. |
| Target unit family | Search terms can be fuzzy, so you need the intended unit name, abbreviation, or class before you trust an ID. |
| Conversion direction | Decide the exact fromUomId, toUomId, and whether the batch is expected to stay in one compatible class. |
| Verification target | Decide whether proof should come from class inventory, exact get, class-scoped get-get, or a successful conversion result. |
uom search is unit-oriented rather than class-oriented. Do not rely on class labels or family words alone—whether they are English or localized labels—to prove that a unit family is missing. Search appears to work best with exact unit names and abbreviations.uomclasses list and uomclasses get to discover class IDs before you rely on uom get-get.uom get is the free/global read. uom get-get needs both uomClassId and uomId.convert is batch-wide and all-or-nothing: one invalid or incompatible row can fail the full request.uomclasses so the operator understands the class context before choosing a unit.uom get for the free/global UOM read when only a standalone uomId is known.uom get-get for the class-scoped read when both uomClassId and uomId are known.search returns near-matches, prefer an exact unit name or abbreviation match before you choose IDs for get, get-get, or convert.search and convert before attribute modeling, import mapping, or cross-unit comparisons.convert as all-or-nothing for one batch: one invalid UOM ID or incompatible pair can fail the full request with a structured 400.uom get or uom get-get returns the exact target row you intended to inspect.uomclasses list or uomclasses get exposes the matching family, even if fuzzy search is empty.fromUomId, toUomId, and numeric output.idmp-cli schema uom.uomclasses.list
idmp-cli uom uomclasses list
idmp-cli schema uom.uomclasses.get
idmp-cli uom uomclasses get --params '{"uomClassId":264033646}'
idmp-cli schema uom.uom.search
idmp-cli uom uom search --params '{"keyword":"kWh","limitSize":20}'
idmp-cli schema uom.uom.get
idmp-cli uom uom get --params '{"uomId":1753955006}'
idmp-cli schema uom.uom.get-get
idmp-cli uom uom get-get --params '{"uomClassId":264033646,"uomId":1753955006}'
idmp-cli schema uom.uom.convert
idmp-cli uom uom convert --ack-risk --data '[{"fromUomId":1,"inputValue":100,"toUomId":2},{"fromUomId":1,"inputValue":5,"toUomId":2}]'
A instead of ampere-hour Ah) before conversion.uomclasses list and uomclasses get; do not treat empty fuzzy search as proof that the unit family does not exist.uom get returns not found: confirm whether the operator actually needs the class-scoped uom get-get path.uom get-get returns not found: verify both uomClassId and uomId; a valid free UOM ID is not enough here.idmp-cli uom uomclasses list.idmp-cli uom uomclasses get --params '{"uomClassId":264033646}'.kWh with idmp-cli uom uom search.idmp-cli uom uom get and one class-scoped UOM with idmp-cli uom uom get-get.idmp-cli uom uom convert --ack-risk --data '[{"fromUomId":1,"inputValue":100,"toUomId":2},{"fromUomId":1,"inputValue":5,"toUomId":2}]', then probe a mixed valid/invalid batch and confirm the CLI surfaces the structured 400 instead of partial success.原文・著作権は Anthropic および各プラグイン作者に帰属します。日本語訳は Claude API による自動翻訳です。