Closure Check

VerifiedSafe

Gate whether a working set of atoms/clusters is closed under dependency edges (OPEN lists crossings). Use after organize-work.

Sby Skills Guide Bot
ProductivityIntermediate
7/22/2026
Claude CodeCursorCodex
#dependency-analysis#graph-closure#work-partitioning#min-cut#gate-check

Recommended for

Automated summary

Checks whether a working set of atoms or clusters is closed under its dependency edges, returning CLOSED or OPEN with the crossing edges that need resolving.

Strengths

  • A crisp binary verdict (CLOSED/OPEN) that works well as a validation gate before locking a boundary
  • Names the exact crossing edges and the outside atom to admit or the inside atom to drop
  • Stays deliberately in scope: it does not re-cluster and does not enlarge the working set unless asked

Limitations

  • Entirely dependent on the edge list supplied as input; it does not extract or discover dependencies itself
  • Does not repair an open boundary — it hands the set back to organize-work for re-partitioning
  • Distinguishing a true dependency from a soft mention is left to the caller, so some judgment remains
When to use it

Use it after organize-work to confirm the chosen border is a genuine min-cut before committing the working set.

When not to use it

Avoid it when the work still needs to be partitioned or clustered, or when the architecture itself is being designed — use organize-work or architecture-design instead.

Security analysis

Safe
Quality score80/100

The skill is a purely analytical instruction file: it takes a set of atoms/clusters and dependency edges as input and returns CLOSED or OPEN. It declares no tools, runs no commands, touches no files, network, or secrets, and contains no obfuscated or destructive content. Its only 'actions' are reasoning steps about graph edges, so there is no meaningful execution risk.

No concerns found

How this analysis is made

Examples

Gate a refactor batch
Here is my working set W: [auth-service, session-store, token-cache] and the full dependency edge list with weights. Run closure-check and tell me whether it's CLOSED or OPEN; if OPEN, list each crossing edge and which outside atom must be admitted.
Validate a cluster boundary
Before we lock this boundary, check closure: are there any hard dependencies from these clusters to atoms outside the set? Ignore soft mentions, only count true must-change-together edges.
Choose between admitting and dropping
closure-check says my set is OPEN because of two crossing edges. For each one, tell me whether it's cheaper to admit the outside atom or drop the inside atom, and hand back what organize-work should re-partition.

name: closure-check description: Gate whether a working set of atoms/clusters is closed under dependency edges (OPEN lists crossings). Use after organize-work when the border must be a real min-cut. Not organize-work. Not architecture-design.

Closure Check

Input: working set W of atoms/clusters + the coupling/dependency edges among them (including edges that touch atoms outside W).
Output: CLOSED or OPEN. If OPEN: the exact outside atoms that must be admitted (or inside atoms that must be excluded).

Do this

  1. Take W and the full edge list as given. Do not re-cluster.
  2. Find every edge with one end in W and one end outside W whose weight/meaning is a true dependency (must exist / changes together), not a soft mention.
  3. If no such edge exists → CLOSED. Emit CLOSED and stop.
  4. If any such edge exists → OPEN. Emit:
    • each crossing edge
    • the outside atom to admit (or the inside atom to drop) to remove the cross
  5. Do not enlarge W yourself unless asked. Hand the OPEN set back to organize-work to re-partition.

Do not

  • Invent edges.
  • Pass a border that still has a hard dependency across it.
  • Re-run the whole organize-work ritual inside this skill.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/closure-check-mrwak9sb/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/closure-check-mrwak9sb' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/closure-check-mrwak9sb/download' --output '.skill-downloads/closure-check-mrwak9sb/SKILL.md.part' && mv '.skill-downloads/closure-check-mrwak9sb/SKILL.md.part' '.skill-downloads/closure-check-mrwak9sb/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/closure-check-mrwak9sb/SKILL.md' && test -s '.skill-downloads/closure-check-mrwak9sb/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/closure-check' && cp -R '.skill-downloads/closure-check-mrwak9sb' '.claude/skills/closure-check'

Cursor
test -f '.skill-downloads/closure-check-mrwak9sb/SKILL.md' && test -s '.skill-downloads/closure-check-mrwak9sb/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/closure-check' && cp -R '.skill-downloads/closure-check-mrwak9sb' '.cursor/skills/closure-check'

Codex
test -f '.skill-downloads/closure-check-mrwak9sb/SKILL.md' && test -s '.skill-downloads/closure-check-mrwak9sb/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/closure-check' && cp -R '.skill-downloads/closure-check-mrwak9sb' '.agents/skills/closure-check'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/closure-check-mrwak9sb'

openskills read 'closure-check-mrwak9sb'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/closure-check-mrwak9sb/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills