anthropics/claude-for-legal/gap-surfacer
Claude Code and agent skill by anthropics/claude-for-legal
- vendor
Checking that the SKILL.md file is still in the repository.
Reference: shared gap- and comment-tracker framework backing /regulatory-legal:gaps and /regulatory-legal:comments. Tracks open policy gaps with remediation status, ingests gaps from policy-diff, surfaces what's open and aging, routes to owners, and notifies gap owners via Slack with per-send confirmation. Loaded by the gaps and comments skills before doing substantive work.
Install
npx vskill@latest install anthropics/claude-for-legal/gap-surfacerSKILL.md
The same SKILL.md was published earlier as anthropics/claude-for-legal/gap-surfacer.
Gap Surfacer
Owner notifications: on by default. To opt an owner out, leaveowner_slackempty.
Per-send confirmation — no exceptions
Before sending ANY Slack message (assignment notice, overdue reminder, bulk notification, status report):
- Show the user exactly what you're about to send and to whom: "I'm about to send this to [N] people: [preview]."
- Wait for an explicit yes.
- If the message contains any citations, deadlines, or compliance conclusions, add: "⚠️ The citations in this message are unverified — I'm not confirming they're current before sending. Do you want me to add a 'verify before acting' line?"
- Never send without the confirm. Not on a cadence. Not in a batch. Not because it was sent yesterday.
Auto-send without confirmation is the most irreversible action in this plugin, sending content this plugin's own footer says may be wrong, to people who have no way to check. That combination does not get to skip review.
Matter context
Matter context. Check ## Matter workspaces in the practice-level CLAUDE.md. If Enabled is ✗ (the default for in-house users), skip the rest of this paragraph — skills use practice-level context and the matter machinery is invisible. If enabled and there is no active matter, ask: "Which matter is this for? Run /regulatory-legal:matter-workspace switch <slug> or say practice-level." Load the active matter's matter.md for matter-specific context and overrides. Write outputs to the matter folder at ~/.claude/plugins/config/claude-for-legal/regulatory-legal/matters/<matter-slug>/. Never read another matter's files unless Cross-matter context is on.
Purpose
Gaps get found and then forgotten. This skill tracks them until they're closed and notifies the people responsible for closing them.
The tracker
Lives at ~/.claude/plugins/config/claude-for-legal/regulatory-legal/gap-tracker.yaml:
Note on comment-tracker.yaml:~/.claude/plugins/config/claude-for-legal/regulatory-legal/comment-tracker.yamlis a sibling file owned by the comments skill. It is written to by reg-feed-watcher (which logs NPRMs automatically) and the comments skill (which tracks user-initiated comment decisions). This skill does not read or cross-reference it. If you modify the comment-tracker schema, update both actual consumers.
Never classify a gap as Overdue on an unverified rule. The 🔴 Overdue classification means "we missed a binding deadline." If the rule's status is unverified (policy-diff set status_verified: false, or the rule is >12 months old / past its applicability date with no currency confirmation), the deadline may not be binding. Use 🟡 "Review needed" and note: "If this rule is in force as published, this would be overdue by [N] days. Verify rule status before escalating." Route unverified-rule items to watch, not to the active overdue/due-soon buckets; the watch revisit cadence forces a rule-status check before the item can re-surface as a compliance gap.
`gap_type` semantics:
| Value | Meaning | Typical reminder cadence | |
|---|---|---|---|
none | Policy already covers the requirement. Logged for audit trail only. Should be rare — if most entries are none, the diff is probably running against the wrong policy. | No auto-reminder. | |
partial | Policy addresses the topic but doesn't fully cover the new requirement. Needs an amendment. | 30 days before due. | |
full | Policy contradicts or silently omits the new requirement. Needs a rewrite or new section. | 30 days before due. | |
new-policy | No existing policy covers this. Policy needs to be drafted. | 30 days before due. | |
watch | Forward-looking item — ANPR, RFI, proposed rule not yet final. No compliance obligation today; policy work waits for the final rule. due: is a revisit date (typically the NPRM expected date or a one-year horizon), not a compliance deadline. | No auto-reminder; re-evaluate when an NPRM drops or at the revisit date. | |
comment-decision | Pre-rulemaking comment decision pending — ANPR or NPRM where the team is deciding whether to file a comment. due: is the comment deadline. | 21 days before due (tighter than compliance gaps because comment-drafting windows are short). |
A watch or comment-decision entry is not a compliance gap — it's a tracking artifact for pre-rule items that the watch skill and comments skill produce. Surface them in the status report in their own bucket so counsel reading at 7am can tell at a glance which items are "fix this before a regulator notices" vs. "keep an eye on this."
Modes
Mode 1: Ingest from policy-diff
When policy-diff finds gaps, append them to gap-tracker.yaml. De-dupe — same requirement + same policy = same gap, don't double-count.
After ingesting, notify the owner:
If Slack MCP is available and owner_slack is set:
Send a Slack DM to the gap owner — but only after the per-send confirmation at the top of this file. Preview the message to the user, wait for an explicit yes, then send:
Set notified: true in the tracker entry after sending.
If Slack MCP is not available: note in the status report that owner notification was not sent and flag for manual follow-up.
Mode 2: Status report
Config-dependent fallbacks
This skill reads gap-response owners and the escalation path from ~/.claude/plugins/config/claude-for-legal/regulatory-legal/CLAUDE.md. When a value it needs is empty or still [PLACEHOLDER]:
- Gap-response triager missing: leave assignment open and append to the output: "No triager is set in
## Gap response process. Assign one with/regulatory-legal:cold-start-interview --redoor by editing~/.claude/plugins/config/claude-for-legal/regulatory-legal/CLAUDE.mdso new gaps get routed." - Owner unknown for a newly-ingested gap (no owner in policy library): log the gap with
owner: [unassigned]and append: "[N] gaps were ingested without an owner because the policy library doesn't name one for the affected policy. Fill in the Owner column in the policy library to route them." - Escalation path missing for an overdue material gap: still report it as overdue, and append: "No escalation path is set for material overdue gaps. Configure it with
/regulatory-legal:cold-start-interview --redoor by editing~/.claude/plugins/config/claude-for-legal/regulatory-legal/CLAUDE.md."
Say nothing about config when the values are populated.
Due-date reminder logic (runs during status report and scheduled agent):
Reminder cadence is a function of gap_type — compliance gaps get a 30-day heads-up, comment-decision items get 21 days (tighter because the drafting window is shorter), watch items get no auto-reminder (re-evaluate when an NPRM drops).
For each gap with status "open" or "in-progress":
partial,full,new-policy,none: if due date is within 30 days and a reminder has not been sent in the last 7 days, PREVIEW a Slack DM (subject "⏰ Reminder: compliance gap due in [N] days") and wait for per-send confirm before sending.comment-decision: if comment deadline is within 21 days and a reminder has not been sent in the last 7 days, PREVIEW a Slack DM (subject "💬 Comment-decision deadline in [N] days") and wait for per-send confirm before sending.watch: no auto-reminder. Revisit when the tracker is reviewed or an NPRM is logged for the same regulation.- If due date has passed on a compliance gap: flag as overdue in the report and PREVIEW a Slack DM — wait for per-send confirm before sending.
- If comment deadline has passed on a
comment-decisionitem and no comment was filed: flag as overdue, PREVIEW a Slack DM (wait for per-send confirm), and ask the owner to update torisk-accepted(deliberate no-comment) orclosed(comment filed) with a note. - Record reminder timestamps in the tracker to avoid repeat nags.
- Batch reminders still require per-send confirm — previewing "you're about to send 12 DMs" and waiting for yes counts; silently firing a batch does not.
Consequential-action gate (certify compliance)
Before closing a gap as resolved, or producing any output that certifies compliance with a regulatory requirement (internal attestation, board report, audit response, regulator response): Read ## Who's using this in ~/.claude/plugins/config/claude-for-legal/regulatory-legal/CLAUDE.md. If the Role is Non-lawyer:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 15 May 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingregulatory-legal/skills/gap-surfacer/SKILL.md
Popularity
- Repository stars
- 7,201
- Repository forks
- 1,069
- 7-day trend score
- 44
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 19 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/anthropics/claude-for-legal/gap-surfacer)