async-lifecycle-initialization
Implement async service initialization, lifecycle startup, dependency graph ordering, concurrency-limited initializers, rollback/disposal on failure…
Skill by Calvin-Corbett
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/calvin-corbett-async-lifecycle-initialization
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/async-lifecycle-initialization
What's inside
- Skill name
async-lifecycle-initialization- Description
- Implement async service initialization, lifecycle startup, dependency graph ordering, concurrency-limited initializers, rollback/disposal on failure, idempotent initialization, and circular dependency handling for DI containers or resource registries.
- License
- MIT
- Instructions
- 26 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Async Lifecycle Initialization Use this skill when a task adds `initialize()`, async setup hooks, service lifecycle startup, dependency-aware ordering, rollback, disposer cleanup, or concurrency limits to a dependency injection container, plugin registry, resource manager, or service graph. ## Workflow 1. Map the public async contract first. If the API is `async` or returns a Promise, every failure path, including graph construction and circular dependency detection, must reject through that Promise instead of throwing synchronously before the Promise is returned. 2. Separate graph planning from state mutation. Build and validate the initialization graph before marking the container as initializing or failed. Graph-build failures such as circular dependencies should leave the container retryable. 3. Compute dependency levels explicitly: dependencies at lower levels finish before dependents start; independent registrations in the same level may run concurrently. 4. Apply concurrency limits inside each level only. A global limit must not allow a dependent to start before every dependency level has completed. 5. Track initialized services in completion order for rollback. On initializer failure, wait for all in-flight initializers in the current level to settle, then dispose already-initialized services in reverse order. Disposer errors must not replace the original initializer error. 6. Preserve cache semantics. Services without initializers should remain resolvable normally; initialized replacements returned by hooks must update the cached singleton/scoped value used by later resolution. ## Required Tests - A circular dependency discovered while building the initialization graph rejects `await container.initialize()` with the expected resolution error and does not put the container into a failed state. - Dependency order: `database -> repository -> service` initializes by level, and metrics report the expected level for each registration. - Parallel independent initializers run concurrently within a level and obey a configured concurrency limit. - Failure rollback waits for same-level in-flight initializers, disposes completed services in reverse order, preserves the original failure as `cause`, and ignores disposer failures for the thrown error. - Initialization is idempotent after success, but a runtime initializer failure prevents unsafe re-initialization unless the API explicitly supports reset. - Scoped/child containers can initialize their own registrations without reinitializing already initialized parent singletons. ## Rules - Do not rely only on existing unit tests when adding lifecycle APIs; add or run runtime probes for circular graph rejection, retryability after graph errors, rollback order, and concurrency. - Avoid resolving dependents while building the graph unless resolution is explicitly safe; use resolver metadata or parsed dependencies when available. - Treat missing build artifacts or optional native bundler packages as environment issues. Use source-level type checks and targeted runtime probes when the official verifier will build in its own Linux environment.
From Calvin-Corbett/thomas, MIT.
More from Calvin-Corbett/thomas
- 0.569score
incremental-cache-cli-modes
Calvin-Corbett
Use when implementing incremental caches, cache invalidation, cache stats, cache summary, list/import/export/prune/clear cache CLI modes, or CLI…
SkillBFreshness: B★ 4Claude Code +9 - 0.569score
line-suppression-directives
Calvin-Corbett
Use when implementing analyzer or linter suppression directives such as nosec, nosec-begin/nosec-end, nosec-next-line, noqa, ignore-next-line, disable/enable…
SkillBFreshness: B★ 4Claude Code +9 - 0.566score
multipart-http-response-parser
Calvin-Corbett
Implement multipart HTTP response parsing APIs with Content-Type boundary validation, MIME delimiter framing, CRLF/LF/CR streaming chunks, part headers…
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
notion-knowledge-capture
Calvin-Corbett
Capture conversations and decisions into structured Notion knowledge artifacts with useful titles, summaries, and links.
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
cloudflare-deploy
Calvin-Corbett
Deploy applications and infrastructure to Cloudflare Workers, Pages, and related services with environment and routing checks.
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
gh-fix-ci
Calvin-Corbett
Diagnose failing GitHub checks, isolate the concrete breakage, and land the smallest defensible fix with targeted verification.
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
auto-skillify
Calvin-Corbett
Detect repeated multi-step workflows and turn them into reusable Thomas-native skill bundles with validation and maintenance notes.
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
figma-implement-design
Calvin-Corbett
Translate specific Figma nodes into production-ready UI with close visual fidelity and project-aware implementation decisions.
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
jupyter-notebook
Calvin-Corbett
Scaffold and refine Jupyter notebooks for experiments, tutorials, and exploratory workflows with clear narrative structure.
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
capcut-video-editor
Calvin-Corbett
Plan and execute CapCut-oriented edits for short-form marketing, promo, explainer, and caption-heavy videos with fast iteration in mind.
SkillBFreshness: B★ 4Claude Code +9 - 0.558score
develop-web-game
Calvin-Corbett
Iterate on HTML or JavaScript web games with a tight browser-test loop, focused interactions, and visual verification.
SkillBFreshness: B★ 4Claude Code +9 - 0.558score
figma
Calvin-Corbett
Pull design context from Figma and translate it into Thomas-native implementation or analysis steps.
SkillBFreshness: B★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Sep 9, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/Calvin-Corbett/thomas
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from Calvin-Corbett
- 0.569score
incremental-cache-cli-modes
Calvin-Corbett
Use when implementing incremental caches, cache invalidation, cache stats, cache summary, list/import/export/prune/clear cache CLI modes, or CLI…
SkillBFreshness: B★ 4Claude Code +9 - 0.569score
line-suppression-directives
Calvin-Corbett
Use when implementing analyzer or linter suppression directives such as nosec, nosec-begin/nosec-end, nosec-next-line, noqa, ignore-next-line, disable/enable…
SkillBFreshness: B★ 4Claude Code +9 - 0.566score
multipart-http-response-parser
Calvin-Corbett
Implement multipart HTTP response parsing APIs with Content-Type boundary validation, MIME delimiter framing, CRLF/LF/CR streaming chunks, part headers…
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
gh-fix-ci
Calvin-Corbett
Diagnose failing GitHub checks, isolate the concrete breakage, and land the smallest defensible fix with targeted verification.
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
cloudflare-deploy
Calvin-Corbett
Deploy applications and infrastructure to Cloudflare Workers, Pages, and related services with environment and routing checks.
SkillBFreshness: B★ 4Claude Code +9 - 0.561score
capcut-video-editor
Calvin-Corbett
Plan and execute CapCut-oriented edits for short-form marketing, promo, explainer, and caption-heavy videos with fast iteration in mind.
SkillBFreshness: B★ 4Claude Code +9
Cite this page
async-lifecycle-initialization skill. Agent Mart. https://agentmart.dev/skills/calvin-corbett-async-lifecycle-initialization (last updated 2026-10-24)