Help us improve
Share bugs, ideas, or general feedback.
From shapelang
Use when Codex needs to review `.shape` diffs before a PR or during implementation to find advisory architecture-contract risk that `shp check` may permit after the live model was loosened, including removed final forbids, weakened traits, widened grants/effects, removed coverage or bindings, relation weakening, traceability loss, epistemic regression, or weak attestations.
npx claudepluginhub timbrinded/shapelang --plugin shapelangHow this skill is triggered — by the user, by Claude, or both
Slash command
/shapelang:shape-contract-guardThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Review authored Shape contract diffs and report advisory risk. `shp check` is still the deterministic hard gate.
Measures whether skills, rules, and agent definitions are actually followed by auto-generating test scenarios at 3 strictness levels and reporting compliance rates with full tool call timelines.
Share bugs, ideas, or general feedback.
Review authored Shape contract diffs and report advisory risk. shp check is still the deterministic hard gate.
In v1:
.shape diffs, base contents for changed/deleted authored .shape files, shp check, shp memory, and focused graph/explain/obligations output.shape/generated/ast/** diffs as contract changes. Mention generated AST only when an authored fingerprint expectation, checker diagnostic, analyzer hint, or user request points at it.git show <base>:<path>.Resolve the comparison.
HEAD and the current upstream branch..shape edits as part of the head review.Collect changed paths.
Collect authored contract diff.
Use a diff equivalent to:
git diff <base>...HEAD -- '*.shape' ':(exclude)shape/generated/ast/**'
Also inspect staged/unstaged authored .shape diffs when the worktree is dirty.
For deleted authored .shape files, read the base file with git show <base>:<path>.
Run deterministic Shape checks.
shp check --changed-files <temp-list> when the list is available.shp check only when changed paths cannot be determined.Load declared model context.
shp memory by default.shp graph stats before relation-heavy review.shp graph all --kind calls and shp graph all --kind provides when relation context affects the finding.shp graph show SYMBOL and shp explain SYMBOL for touched symbols.shp obligations when diagnostics, guarded targets, memory, rationale, or reevaluation changes are involved.Classify and score the diff.
references/signals.md before scoring nontrivial diffs.Emit Markdown.
## Checker Diagnostics
<Exact deterministic diagnostics or "No deterministic Shape diagnostics from <command>.">
## Guard Findings
### <severity>
- Severity: high
- Signal: constraint-removal-plus-destructive-effect
- Outcome: suspicious loosening
- Symbol: AuditEvent / AuditStore.deleteEvent
- Evidence: `AppendOnly` was removed from `AuditEvent`; `HardDelete<AuditEvent>` was added.
- Model context: <relevant traits, grants, relations, guards, ownership, implementation, binding, memory, or obligations>
- Recommended action: restore the constraint, add a specific reevaluation/evidence, or keep the loosening only with explicit reviewer acceptance.
Use one paragraph when there are no findings:
No deterministic Shape diagnostics and no advisory Guard findings from the authored contract diff reviewed.
references/signals.md: v1 signal taxonomy, severity rules, and declared-model-context wording rules.references/examples.md: compact example diffs and expected findings.