All skills
egonex-ai avatar

/understand

@a84b3db
by EgonexAIegonex-ai/understand-anything85k stars
7,160

Analyze a codebase to produce an interactive knowledge graph for understanding architecture, components, and relationships

Use this Skill: https://skilld.dev/gh/egonex-ai/understand-anything/understand

This session only. Nothing lands on disk.

languagestypescript.md

≈637 tokens on demand. Your agent reads this file only when SKILL.md points to it.

TypeScript Language Prompt Snippet

Key Concepts

  • Generics: Parameterized types (<T>) enabling reusable, type-safe abstractions
  • Type Guards: Runtime checks that narrow types within conditional blocks (is, in, typeof, instanceof)
  • Discriminated Unions: Union types with a shared literal field used for exhaustive narrowing
  • Utility Types: Built-in mapped types like Partial<T>, Pick<T, K>, Omit<T, K>, Record<K, V>
  • Interfaces vs Types: Interfaces support declaration merging; type aliases support unions and mapped types
  • Enums: Numeric and string enums for named constant sets; prefer as const objects when possible
  • Mapped Types: Transform existing types property-by-property using [K in keyof T] syntax
  • Conditional Types: T extends U ? X : Y for type-level branching logic
  • Template Literal Types: String manipulation at the type level using backtick syntax
  • Declaration Merging: Interfaces with the same name merge their members automatically
  • Module Augmentation: Extending third-party module types via declare module blocks

Import Patterns

  • import { X } from 'module' — named import (most common)
  • import type { X } from 'module' — type-only import (erased at runtime)
  • import * as X from 'module' — namespace import
  • import X from 'module' — default import

File Patterns

  • index.ts — barrel file re-exporting public API from a directory
  • *.d.ts — type declaration files (ambient declarations, no runtime code)
  • tsconfig.json — TypeScript compiler configuration and project references
  • *.tsx — TypeScript files containing JSX (React components)

Common Frameworks

  • React — UI component library with hooks and JSX
  • Angular — Full-featured framework with decorators and dependency injection
  • Next.js — React meta-framework with SSR, SSG, and API routes
  • NestJS — Server-side framework inspired by Angular (decorators, modules, DI)
  • Express (with TS) — Minimal HTTP framework with typed request/response handlers

Example Language Notes

Uses generic type parameter T extends BaseEntity to ensure type safety across repository methods. The constraint guarantees all entities share a common id field while allowing specific entity types to flow through the data layer without casting.

Barrel files (index.ts) re-export symbols so consumers import from the directory rather than reaching into internal module paths — maintaining encapsulation.

Source: SKILL.md on GitHub

No alerts19d3 checks · Risk SAFE
  • Gen Agent Trust Hub19d

    This skill is a sophisticated codebase analysis tool used to generate interactive architectural knowledge graphs. It leverages a series of deterministic Node.js and Python scripts alongside AI sub-agents to perform tasks like file scanning, import resolution, and relationship mapping. The skill incorporates strong security practices by explicitly instructing its agents to treat project data (such as READMEs and manifests) as untrusted and ignore any prompt-like directives within them. All script behaviors, including shell command execution and local dependency builds, are consistent with its primary purpose and follow least-privilege principles.

  • Socket19d

    No alerts

  • Snyk19d

    Risk: LOW · No issues

Signed by skilld at a84b3db. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated 4 weeks ago
Other metadata
argument-hint
[
  "[path] [--full|--auto-update|--no-auto-update|--review|--language <lang>|--exclude <patterns>]"
]

README badge

README badge for egonex-ai/understand-anything/understand