collapse-c46816 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited collapse-c46816 (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Expand and collapse node hierarchies. Collapsed nodes hide their descendants while maintaining the graph structure.
import { useCollapse, GraphCanvas } from 'reagraph';| Param | Type | Default | Description |
|---|---|---|---|
collapsedNodeIds | string[] | [] | Currently collapsed node IDs |
nodes | GraphNode[] | [] | Node data |
edges | GraphEdge[] | [] | Edge data |
| Property | Type | Description |
|---|---|---|
getIsCollapsed | (nodeId: string) => boolean | Check if a node is collapsed |
getExpandPathIds | (nodeId: string) => string[] | Get IDs to expand to reveal a node |
import { GraphCanvas, useCollapse } from 'reagraph';
const [collapsedIds, setCollapsedIds] = useState<string[]>([]);
<GraphCanvas
nodes={nodes}
edges={edges}
collapsedNodeIds={collapsedIds}
onNodeClick={(node, { canCollapse, isCollapsed }) => {
if (canCollapse) {
setCollapsedIds((prev) =>
isCollapsed
? prev.filter((id) => id !== node.id)
: [...prev, node.id]
);
}
}}
/><GraphCanvas
nodes={nodes}
edges={edges}
collapsedNodeIds={collapsedIds}
contextMenu={({ data, onClose, canCollapse, isCollapsed, onCollapse }) => (
<RadialMenu
onClose={onClose}
items={[
...(canCollapse
? [{
label: isCollapsed ? 'Expand' : 'Collapse',
onClick: () => { onCollapse(); onClose(); },
}]
: []),
]}
/>
)}
/>const { getIsCollapsed, getExpandPathIds } = useCollapse({
collapsedNodeIds,
nodes,
edges,
});
// Check if a specific node is collapsed
const isHidden = getIsCollapsed('node-5');
// Get path to expand to reveal a hidden node
const pathToExpand = getExpandPathIds('node-5');parents property or outbound edges to establish hierarchycanCollapse in the click/context-menu callback indicates whether a node has childrencollapsedNodeIds is a controlled prop — manage it in your stateonCollapse in context menu events toggles the collapse state for you~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.