modal
Skill0 starsChanged 44 days agoApache-2.0View on GitHub
Centered confirmation and detail dialogs using Radix-Vue Dialog, with overlay and panel animations driven by `data-[state]` attributes. Use when building delete confirmations, focused detail views or short overlays that do not need a full drawer.
17 other projects use a version of this.
Adopted by
Most recently taken up by
- BrightGold70/skillstheir own version, first seen Nov 8, 2026
- lobehub/lobehubtheir own version, first seen Nov 5, 2026
- MarieLynneBlock/arcanum-artifextheir own version, first seen Nov 1, 2026
- nagisanzenin/modal-skilltheir own version, first seen Oct 25, 2026
- BlockRunAI/blockrun-mcptheir own version, first seen Oct 20, 2026
- patoangolano/bio-stacktheir own version, first seen Oct 15, 2026
Used with
Projects with it also use torch-geometric, get-available-resources and 9 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
Hongyu-yuSkilltorch-geometric
Graph Neural Networks (PyG). Node/graph classification, link prediction, GCN, GAT, GraphSAGE, heterogeneous graphs, molecular property prediction, for geometric deep learning.
Also in 3 projects that use this
SoljournerSkillget-available-resources
Enumerate installed packages, databases, and tools for engineering workflows
Also in 3 projects that use this
garri333Skillscientific-schematics
Create publication-quality scientific diagrams using Nano Banana Pro AI with smart iterative refinement. Uses Gemini 3 Pro for quality review. Only regenerates if quality is below threshold for your document type. Specialized in neural network architectures, system diagrams, flowcharts, biological pathways, and complex scientific visualizations.
Also in 3 projects that use this
Hugging FaceSkilltransformers
Agent-invokable Transformers commands. Pass `--format json` at the top level (e.g. `transformers --format json classify ...`) to receive the structured output documented in each capability's `outputs` schema.
Also in 3 projects that use this
ZanderRussSkillseaborn
Statistical visualization. Scatter, box, violin, heatmaps, pair plots, regression, correlation matrices, KDE, faceted plots, for exploratory analysis and publication figures.
Also in 3 projects that use this
silvainfmSkillpolars
Lightning-fast DataFrame library written in Rust for high-performance data manipulation and analysis. Use when user wants blazing fast data transformations, working with large datasets, lazy evaluation pipelines, or needs better performance than pandas. Ideal for ETL, data wrangling, aggregations, joins, and reading/writing CSV, Parquet, JSON files.
Also in 3 projects that use this
Other versions17 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 17
- lobehub/lobe-chat★ 84ksame name
- lobehub/lobehub★ 84ksame name
- LeonChaoX/qinyan-academic-skills★ 910same name
- BlockRunAI/blockrun-mcp★ 389same name
- qinyan-ai/qinyan-academic-skills★ 80same name
- MarieLynneBlock/arcanum-artifex★ 4same name
- JunMA98/Computer-science-claude-skills★ 3same name
- modal-projects/skills★ 3same name
- BrightGold70/skills★ 1same name
- garri333/Skills★ 1same name
7 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository15 other files it gives its agents.
- authSkill
- cart-checkoutSkill
- chartSkill
- commerce-adminSkill
- commerce-coreSkill
- dashboard-motionSkill
- drawerSkill
- formSkill
- kanbanSkill
- mediaSkill
- metric-cardSkill
- product-catalogSkill
- product-detailSkill
- sidenavSkill
- tableSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 16 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 150
All form fields must be disabled during save
“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Modal / Dialog Skill
When to use
Overlay dialogs for confirmations, detailed forms, image previews, or features requiring focused attention.
Required imports
- Radix-Vue:
DialogRoot,DialogTrigger,DialogPortal,DialogOverlay,DialogContent,DialogTitle,DialogDescription,DialogClose - Icons:
X,AlertCircle,Loader2
Animations use Radix-Vue data-[state] attributes — never Vue <Transition> on the panel itself
Radix-Vue Dialog manages its own mount/unmount lifecycle via DialogPortal. Applying Vue <Transition> causes animation conflicts.
Pattern
<script setup lang="ts">
import { ref } from 'vue'
import { DialogRoot, DialogTrigger, DialogPortal, DialogOverlay, DialogContent, DialogTitle, DialogDescription, DialogClose } from 'radix-vue'
import { X, AlertCircle, Loader2 } from 'lucide-vue-next'
import { cn } from '~/utils/cn'
const isOpen = ref(false)
const saving = ref(false)
const error = ref<string | null>(null)
async function handleConfirm() {
saving.value = true
error.value = null
try {
// your async action
isOpen.value = false
} catch (e: any) {
error.value = e.message || 'Something went wrong'
} finally {
saving.value = false
}
}
</script>
<template>
<DialogRoot v-model:open="isOpen">
<DialogTrigger as-child>
<button class="px-4 py-2 rounded-lg bg-primary text-primary-foreground font-medium text-sm
hover:bg-primary/90 hover:scale-[1.02] active:scale-[0.98] transition-all duration-150">
Open Modal
</button>
</DialogTrigger>
<DialogPortal>
<!-- Overlay: independent fade with backdrop blur -->
<DialogOverlay class="fixed inset-0 z-50 bg-black/50 backdrop-blur-sm
data-[state=open]:animate-overlay-in data-[state=closed]:animate-overlay-out" />
<!-- Content: fade + scale-up with spring easing; static centering -->
<DialogContent
class="fixed top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 z-50
w-full bg-card text-card-foreground rounded-xl p-6 shadow-2xl
data-[state=open]:animate-dialog-in data-[state=closed]:animate-dialog-out"
>
<!-- Header with title, description, close button -->
<div class="flex items-start justify-between gap-4 mb-4">
<div class="min-w-0">
<DialogTitle class="text-lg font-semibold text-foreground">Title</DialogTitle>
<DialogDescription v-if="false" class="mt-0.5 text-sm text-muted-foreground">Optional description</DialogDescription>
</div>
<DialogClose class="shrink-0 inline-flex h-8 w-8 items-center justify-center rounded-lg text-muted-foreground hover:bg-muted hover:text-foreground transition-colors duration-150">
<X class="h-4 w-4" />
</DialogClose>
</div>
<!-- Error banner -->
<div v-if="error" class="mb-4 flex items-center gap-2 rounded-lg bg-destructive/10 p-3 text-sm text-destructive">
<AlertCircle class="h-4 w-4 shrink-0" />
<span>{{ error }}</span>
</div>
<!-- Body slot -->
<div class="space-y-4">
<slot />
</div>
<!-- Footer: confirm + cancel -->
<div class="mt-6 flex items-center justify-end gap-3 border-t border-border pt-4">
<button
class="inline-flex h-9 items-center rounded-lg px-4 text-sm font-medium text-foreground hover:bg-muted transition-all duration-150"
:disabled="saving"
@click="isOpen = false"
>
Cancel
</button>
<button
class="inline-flex h-9 items-center gap-2 rounded-lg bg-primary px-4 text-sm font-medium text-primary-foreground shadow-lg shadow-primary/20 hover:bg-primary/90 hover:shadow-xl hover:shadow-primary/30 hover:scale-[1.02] active:scale-[0.98] transition-all duration-150 disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:scale-100"
:disabled="saving"
@click="handleConfirm"
>
<Loader2 v-if="saving" class="h-4 w-4 animate-spin" />
{{ saving ? 'Saving...' : 'Confirm' }}
</button>
</div>
</DialogContent>
</DialogPortal>
</DialogRoot>
</template>Destructive confirm variant
For delete/destructive actions, change the confirm button to:
- bg-primary text-primary-foreground shadow-lg shadow-primary/20 hover:bg-primary/90 hover:shadow-primary/30
+ bg-destructive text-destructive-foreground shadow-lg shadow-destructive/20 hover:bg-destructive/90 hover:shadow-destructive/30CSS variable usage
- Overlay:
bg-black/50 backdrop-blur-sm - Content:
bg-card text-card-foreground rounded-xl shadow-2xl - Title:
text-foreground font-semibold(useDialogTitlecomponent) - Close button:
text-muted-foreground hover:text-foreground - Error banner:
bg-destructive/10 text-destructive - Confirm button:
bg-primary text-primary-foreground shadow-primary/20 - Destructive confirm:
bg-destructive text-destructive-foreground shadow-destructive/20
Size variants
| Size | Class | Max Width |
| sm | max-w-sm | 384px |
| md | max-w-md | 448px |
| lg | max-w-lg | 512px |
| xl | max-w-xl | 576px |
Non-negotiables
- Animations use Radix-Vue
data-[state]attributes — NEVER Vue<Transition>on the dialog content - Spring easing (cubic-bezier(0.34, 1.56, 0.64, 1)) on enter, shorter ease-in on exit
- Overlay must have independent fade animation (not wrapped with content)
- Confirm button must show
Loader2+ "Saving..." during async operations - All form fields must be disabled during save
- Error messages: inline banner at top of body, not a toast
prefers-reduced-motionis respected by main.css — no extra guard needed
Colour & polish
- Destructive confirmations use
destructive. - Render category colour as a tinted chip:
bg-[hsl(var(--chart-N)/0.12)] text-[hsl(var(--chart-N))]. - Backdrop blur; visible focus ring on the trapped element.
success/destructiveare for genuine good/bad meaning only — never decoration.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

