Fortify Development
coollabsio/coolify
ACTIVATE when the user works on authentication in Laravel. An agent skill from coollabsio/coolify.
Build modals/dialogs self-contained: form and in-flight state lives inside, closing unmounts it.
$ npx skills add UsefulSoftwareCo/executor --skill self-contained-modals -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install UsefulSoftwareCo/executor self-contained-modals --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/UsefulSoftwareCo/executor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/self-contained-modals .claude/skills/self-contained-modals && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "self-contained-modals" agent skill from https://github.com/UsefulSoftwareCo/executor/tree/main/.claude/skills/self-contained-modals into .claude/skills/self-contained-modals/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "self-contained-modals", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/UsefulSoftwareCo/executor/tree/main/.claude/skills/self-contained-modalsType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add UsefulSoftwareCo/executor --skill self-contained-modals -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install UsefulSoftwareCo/executor self-contained-modals --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/UsefulSoftwareCo/executor.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/self-contained-modals .agents/skills/self-contained-modals && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "self-contained-modals" agent skill from https://github.com/UsefulSoftwareCo/executor/tree/main/.claude/skills/self-contained-modals into .agents/skills/self-contained-modals/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "self-contained-modals", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add UsefulSoftwareCo/executor --skill self-contained-modals -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install UsefulSoftwareCo/executor self-contained-modals --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/UsefulSoftwareCo/executor.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/self-contained-modals .cursor/skills/self-contained-modals && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "self-contained-modals" agent skill from https://github.com/UsefulSoftwareCo/executor/tree/main/.claude/skills/self-contained-modals into .cursor/skills/self-contained-modals/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "self-contained-modals", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/UsefulSoftwareCo/executor.git --path .claude/skills/self-contained-modals--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add UsefulSoftwareCo/executor --skill self-contained-modals -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install UsefulSoftwareCo/executor self-contained-modals --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/UsefulSoftwareCo/executor.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/self-contained-modals .gemini/skills/self-contained-modals && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "self-contained-modals" agent skill from https://github.com/UsefulSoftwareCo/executor/tree/main/.claude/skills/self-contained-modals into .gemini/skills/self-contained-modals/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "self-contained-modals", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install UsefulSoftwareCo/executor self-contained-modalsInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add UsefulSoftwareCo/executor --skill self-contained-modals -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/UsefulSoftwareCo/executor.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/self-contained-modals .github/skills/self-contained-modals && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "self-contained-modals" agent skill from https://github.com/UsefulSoftwareCo/executor/tree/main/.claude/skills/self-contained-modals into .github/skills/self-contained-modals/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "self-contained-modals", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add UsefulSoftwareCo/executor --skill self-contained-modals -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install UsefulSoftwareCo/executor self-contained-modals --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/UsefulSoftwareCo/executor.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/self-contained-modals .opencode/skills/self-contained-modals && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "self-contained-modals" agent skill from https://github.com/UsefulSoftwareCo/executor/tree/main/.claude/skills/self-contained-modals into .opencode/skills/self-contained-modals/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "self-contained-modals", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
self-contained-modalsBuild modals/dialogs self-contained: form and in-flight state lives inside, closing unmounts it.
Self Contained Modals is an agent skill from UsefulSoftwareCo/executor. Build modals/dialogs self-contained: form and in-flight state lives inside, closing unmounts it. Use when writing or reviewing a modal/dialog, especially one that owns async work (OAuth popups, timers, subscriptions, AbortControllers). Catches the stuck-on-Connecting class of lifecycle-leak bugs.
Its SKILL.md is about 880 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Backend & APIs, covering OAuth and OpenID Connect. The repository describes itself as: The missing integration layer for AI agents. Let them call any OpenAPI / MCP / GraphQL / custom js functions in secure environment. The licence is MIT.
3 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 27dccb8. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are typescript).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Self Contained Modals loads about 878 tokens when it runs. Until then it costs about 80 tokens; SKILL.md has 395 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from UsefulSoftwareCo/executor at commit 27dccb8, republished under its MIT licence (© UsefulSoftwareCo). 395 words, ~878 tokens.
.claude/skills/self-contained-modals/SKILL.md (or your agent's skills folder).A modal's form state and in-flight work live INSIDE the modal, and closing the modal UNMOUNTS that state so it is destroyed, not hand-reset. Only the open/route intent belongs to the parent (deep links, programmatic open, reconnect handoffs need it).
A hand-written reset() has to enumerate every field, and it silently drifts out
of sync with state owned by child hooks the parent can't see. Unmounting
resets everything for free, including child-hook cleanup effects (cancelling a
dangling server session, clearing a timer, aborting a fetch).
Concrete bug this prevents (executor, add-account-modal): the modal was mounted
unconditionally, so useOAuthPopupFlow's busy survived close. reset() zeroed
its own booleans but never called oauthPopup.cancel(). Abandon the OAuth popup,
close, reopen, and oauthBusy = false || busy(true) = true, so the footer is
wedged on "Connecting…" with Close disabled. Unmounting would have cleared busy
AND run the hook's cleanup that cancels the server OAuth session.
Default to genuine conditional unmount, state inside. When closed the
component returns null, so React destroys all of it and runs every child
hook's cleanup. This is the cleanest fix and the one to reach for first:
function Parent() {
const [open, setOpen] = useState(false);
return open ? <Modal onClose={() => setOpen(false)} /> : null;
}A key bump (<Body key={openCount} />) is still a manual reset, just
spelled as a remount. Prefer real unmount; only reach for keyed remount in the
one case below.
That case: Radix Dialog (this repo's components/dialog.tsx) Content/Overlay
use data-[state=closed]:animate-out exit animations, so unmounting the whole
Dialog drops the close animation. If you must keep that animation, keep the
Dialog + DialogContent shell mounted and remount only the state-bearing
body per open:
function Parent() {
const [open, setOpen] = useState(false);
const [openCount, setOpenCount] = useState(0);
return (
<Dialog open={open} onOpenChange={setOpen}>
<DialogContent>{open ? <ModalBody key={openCount} /> : null}</DialogContent>
</Dialog>
);
}This only works when DialogContent is independent of body state. If the
shell depends on the body (e.g. a width className driven by the body's current
sub-view), the body must own DialogContent, so there is no stable shell to
keep, and genuine unmount (losing the exit animation) is the right call. That is
exactly the executor add-account-modal: it genuinely unmounts and accepts the
lost animation rather than plumbing body state up to a shell.
reset() exists. Its presence means state outlives the modal;
ask why the modal isn't just unmounted.open prop) that
owns async/in-flight state: popups, timers, subscriptions, AbortControllers,
server sessions.ccBusy || someHook.busy)
where reset() clears only part of it.© UsefulSoftwareCo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/self-contained-modals of UsefulSoftwareCo/executor.
Open the folder on GitHubat commit 27dccb8
Self Contained Modals next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Self Contained Modals this skillUsefulSoftwareCo/executor | 4.1k | — | ~878 | Automated safety check: Pass | MIT | |
| Fortify Developmentcoollabsio/coolify | 63k | 4 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Antipattern Preventiondoorkeeper-gem/doorkeeper | 5.5k | — | ~1.1k | Automated safety check: Pass | MIT | |
| OmniRoute Provider Managementdiegosouzapw/OmniRoute | 74k | — | ~2.4k | Automated safety check: Pass | MIT | |
| Stripe Best Practiceskanchengw/cnllm | 175 | 3 repos | ~925 | Automated safety check: Pass | Apache-2.0 | |
| Notion Worker Third-Party Auth Guidemakenotion/workers-template | 439 | 1 repos | ~3.5k | Automated safety check: Notes | MIT |
coollabsio/coolify
ACTIVATE when the user works on authentication in Laravel. An agent skill from coollabsio/coolify.
doorkeeper-gem/doorkeeper
Avoid common Ruby and Rails antipatterns that degrade maintainability and performance.
diegosouzapw/OmniRoute
Manages AI provider connections, API keys, OAuth flows and connection tests through OmniRoute's REST API across its 327-provider catalog.
kanchengw/cnllm
Guides Stripe integration decisions — API selection (Checkout Sessions vs PaymentIntents), Connect platform setup (Accounts v2, controller properties), billing/subscriptions, Treasury financial…
makenotion/workers-template
Decides whether a Notion Worker should use a brokered credential, a plaintext environment secret, or OAuth to authenticate against a non-Notion service.
doorkeeper-gem/doorkeeper
Ensure gems are safe, necessary, and properly constrained when adding, updating, or reviewing dependencies in Doorkeeper.
UsefulSoftwareCo/executor
Pattern for wrapping third-party SDK clients (Stripe, Resend, AWS, etc.) with Effect.
UsefulSoftwareCo/executor
Runbook for releasing the executor CLI package (stable and beta).
UsefulSoftwareCo/executor
Pattern for implementing optimistic UI updates with effect-atom in this codebase.
UsefulSoftwareCo/executor
Testing Effect HttpApi services end-to-end. An agent skill from UsefulSoftwareCo/executor.
UsefulSoftwareCo/executor
Use the @executor-js/emulate service emulators (GitHub, Google, Stripe, Resend, WorkOS, …) to test integrations for real — full OpenAPI specs, working OAuth flows, mintable credentials, and a…
UsefulSoftwareCo/executor
Query Executor's production telemetry — Axiom traces (executor-cloud dataset), prod Postgres via PlanetScale, PostHog product analytics — through the Executor MCP.
Categories
Build modals/dialogs self-contained: form and in-flight state lives inside, closing unmounts it. Self Contained Modals is an agent skill from UsefulSoftwareCo/executor. Build modals/dialogs self-contained: form and in-flight state lives inside, closing unmounts it.
Self Contained Modals fits situations like: reviewing a modal/dialog; especially one that owns async work (OAuth popups; abortControllers).
Run `npx skills add UsefulSoftwareCo/executor --skill self-contained-modals -a claude-code`. Or copy the skill folder (.claude/skills/self-contained-modals in UsefulSoftwareCo/executor) into .claude/skills/self-contained-modals in your project. Claude Code loads it when a task matches its description.
Run `npx skills add UsefulSoftwareCo/executor --skill self-contained-modals -a codex`. Or copy the skill folder (.claude/skills/self-contained-modals in UsefulSoftwareCo/executor) into .agents/skills/self-contained-modals in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add UsefulSoftwareCo/executor --skill self-contained-modals -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/self-contained-modals, .gemini/skills/self-contained-modals, .github/skills/self-contained-modals and .opencode/skills/self-contained-modals in your project.
SKILL.md names no scripts, command-line tools or credentials: Self Contained Modals is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Self Contained Modals is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 878 tokens (SKILL.md is roughly 3.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Self Contained Modals: Fortify Development (coollabsio/coolify, 63k stars), Antipattern Prevention (doorkeeper-gem/doorkeeper, 5.5k stars), OmniRoute Provider Management (diegosouzapw/OmniRoute, 74k stars) and Stripe Best Practices (kanchengw/cnllm, 175 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
UsefulSoftwareCo (a GitHub organization) maintains it in UsefulSoftwareCo/executor, which has 4,094 GitHub stars. The repository holds 21 skills in this directory. The repository was last updated on October 8, 2026.
Source: UsefulSoftwareCo/executor on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.