Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

tsed-di

Skill by tsedio

Declares, injects and scopes Ts.ED v8 providers with @tsed/di and wires lifecycle hooks. Aimed at developers writing services or modules and fixing injection errors in Ts.ED projects.

  • Score 82
  • 3.1k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install tsed-di

Built from the published package, never by AI.

git clone --depth 1 https://github.com/tsedio/tsed /tmp/tsed && mkdir -p ~/.claude/skills && cp -r /tmp/tsed/plugins/tsed/skills/tsed-di ~/.claude/skills/tsed-di

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install tsed-di in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill gives an assistant guidance on dependency injection in Ts.ED v8 using the @tsed/di package. It covers declaring providers with @Injectable, @Module and @Controller, injecting them with @Inject or the functional inject() API, and choosing a scope such as singleton, request or instance. It also covers custom tokens, lazy loading, request context and lifecycle hooks from @tsed/di and @tsed/hooks.

The skill includes a reference table of deprecated DI APIs and a checklist for common mistakes, such as circular dependencies, undefined injected properties and scope mismatches. It points to related skills for controllers, middlewares, configuration, testing and migration. It is aimed at developers building or debugging Ts.ED services, modules and providers.

Written from the project's SKILL.md and checked against it.

What it can do

  • Declare providersUses @Injectable, @Module and @Controller, or the functional injectable() and controller() builders.
  • Custom tokensBuilds value, factory, async factory and class providers with symbol or string tokens.
  • Scope selectionExplains SINGLETON, REQUEST and INSTANCE scopes and how they interact along an injection chain.
  • Lazy loadingShows how to load heavy providers with lazyInject and the @LazyInject decorator.
  • Lifecycle hooksWires $onInit, $onDestroy, $onReady and custom hooks through @tsed/hooks.
  • Request contextReads the request context with context() and stores per-request data with $ctx.set and $ctx.get.
  • Deprecated API replacementsLists deprecated DI APIs such as registerProvider with their replacements.
  • Injection troubleshootingGuides fixes for InjectionError, undefined tokens and undefined injected properties.

What you need

  • A Ts.ED v8 project
  • The @tsed/di package

Try asking

  • Create a request-scoped CartService and inject it into my controller
  • Fix my InjectionError: Given token is undefined in UsersService
  • Add an asyncFactory provider for a database connection that closes on $onDestroy

Good to know

  • Request-scoped providers only receive $onDestroy; other $ hooks are not called on them.
  • Only $onInit runs for lazy-loaded providers.
  • Do not call inject() at module top level.
  • Do not import from @tsed/common.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: plugins/tsed/skills/tsed-di/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB
  • agents/openai.yaml248 B
  • references/di-api.md12 KB

Alternatives to tsed-di

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

tsed-di: common questions

Which Ts.ED version does this skill cover?

The skill targets Ts.ED v8 and the @tsed/di package.

Does it cover deprecated DI APIs?

Yes. It lists deprecated APIs such as registerProvider with replacements, and points to tsed-migration for v7 code.

Which hooks run for lazy-loaded providers?

According to the source, only $onInit runs for lazy-loaded providers.

How do I install tsed-di?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is tsed-di free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is tsed-di safe to use?

It scores 82 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to tsed-di?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

tsed-di Install

Add to stack

Loading.