원클릭으로
check-invariants
Evaluate a value against a list of deterministic rule-based invariants.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Evaluate a value against a list of deterministic rule-based invariants.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Echo the input string in uppercase.
Reverse the input string character-by-character.
Validate a value against a JSON Schema 2020-12; return verdict + first violation.
Sum two numbers.
Join an array of strings with single spaces.
Square the input integer.
| id | check_invariants |
| name | Check Invariants |
| description | Evaluate a value against a list of deterministic rule-based invariants. |
| tags | ["demo","validation"] |
| examples | ["{\"value\":\"hello\",\"invariants\":[{\"name\":\"non_empty\",\"check\":\"non_empty\"}]}"] |
| inputModes | ["application/json"] |
| outputModes | ["application/json"] |
| securityRequirements | [] |
| inputSchema | {"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"value":{},"invariants":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"check":{"type":"string"},"args":{"type":"object"}},"required":["name","check"]}}},"required":["value","invariants"]} |
| outputSchema | {"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"verdict":{"type":"string","enum":["pass","fail"]},"failures":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"reason":{"type":"string"}},"required":["name","reason"]}}},"required":["verdict","failures"]} |
Evaluate value against each entry in invariants. Each entry has a
name (free-form label) and a check selecting one of four deterministic
rule kinds:
non_empty — fails on null, empty string, empty array, empty object.min_length — args.min required; passes when string/array length ≥ min.max_length — args.max required; passes when string/array length ≤ max.contains — args.needle required; substring match for strings, element
membership for arrays.The output verdict is "pass" when every invariant passed, otherwise
"fail" with one entry per failure in failures. A malformed invariant
(unknown check, missing args field) is surfaced as a failure entry
rather than aborting the whole evaluation.