Checks whether a pending changeset conforms to existing decisions and guardrails before it lands. Use before committing or merging, e.g. "does this diff conform to our guardrails", "check this PR against what we've decided", "conform check the last 3 PRs".
$npx -y skills add vivantel/kms --skill conform --agent claude-code
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Conform?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/vivantel-conform)
---
name: conform
description: Checks whether a pending changeset conforms to existing decisions and guardrails before it lands. Use before committing or merging, e.g. "does this diff conform to our guardrails", "check this PR against what we've decided", "conform check the last 3 PRs".
---
Given a pending changeset, flag anything in it that violates an existing guardrail — before it's committed or merged. Read-only: reports findings, never edits the changeset or the knowledge base.
## Determining the target
No argument and something's staged: the staged diff (`git diff --staged`). No argument and nothing's staged: the diff against the branch's upstream/base. A number ("last 3 PRs", "last 5 commits"): resolve to that many merged PRs or commits and diff across the combined range. A branch name, commit range, or PR reference: use it directly.
## Checking conformance
1. Search `<knowledge dir>/{decisions,guardrails}/` for anything relevant to what the diff touches — by keyword, topic, path overlap, the same approach `query` uses.
2. For each relevant guardrail, check whether the diff's actual changes appear to violate it. Cite the guardrail by path; cite the decision behind it too, for context on *why*, the same way `query` cites a superseding decision alongside the original.
3. If nothing relevant is found, say so plainly rather than implying the knowledge base had an opinion it doesn't.
4. A `status: draft` guardrail or decision is reported as "proposed", never as a violation.
5. If the diff touches the knowledge directory, run `shared/lint_check.py` (this skill's directory) on the post-diff tree (staged: the working tree; a range: a temporary checkout of its head) and report its lines too.
6. List facts whose `source` or `scope.component` path-overlaps the diff as "re-verify". Flag a fact whose body names a value the diff changes as "may be falsified" — advisory, never a claim.
7. Report every finding — don't stop at the first. Group by guardrail violated, one line per finding with the file/hunk and what's wrong. End with one plain line: safe to commit, or what to fix first.
## Out of scope
Judging the content of the knowledge base's own artifacts — `lint`/`capture`'s job; step 5 only relays the checker. Fixing anything — this skill only reports. Planning a refactor or drafting a commit message (`attribute`) — this skill checks a diff that already exists, for any reason, not just a refactor, and never writes prose about it.