Skip to content
Back to skills

Plugin Dependency Resolver

ASecurity

Generate plugin dependency resolution logic with topological sorting.

  • 1,760 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 2, 2026
ai-agentstypescriptbashnodebackend

Works with

  • cli
  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add a5c-ai/babysitter --skill plugin-dependency-resolver --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Plugin Dependency Resolver?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Plugin Dependency Resolver
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/a5c-ai-plugin-dependency-resolver-babysitter/badge)](https://www.skillsdirectory.com/skills/a5c-ai-plugin-dependency-resolver-babysitter)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: plugin-dependency-resolver
description: Generate plugin dependency resolution logic with topological sorting.
allowed-tools: Read, Write, Edit, Bash, Glob, Grep
graph:
  domains: [domain:software-engineering]
  specializations: [specialization:cli-mcp-development]
  skillAreas: [skill-area:cli-design, skill-area:plugin-systems]
  roles: [role:backend-engineer, role:platform-engineer]
  workflows: [workflow:feature-development]
  topics: [topic:developer-experience]

---

# Plugin Dependency Resolver

Generate plugin dependency resolution logic.

## Generated Patterns

```typescript
interface PluginNode {
  name: string;
  dependencies: string[];
}

export function resolveDependencies(plugins: PluginNode[]): string[] {
  const graph = new Map<string, string[]>();
  const inDegree = new Map<string, number>();

  for (const plugin of plugins) {
    graph.set(plugin.name, plugin.dependencies);
    inDegree.set(plugin.name, 0);
  }

  for (const [, deps] of graph) {
    for (const dep of deps) {
      inDegree.set(dep, (inDegree.get(dep) || 0) + 1);
    }
  }

  const queue = [...inDegree.entries()].filter(([, d]) => d === 0).map(([n]) => n);
  const result: string[] = [];

  while (queue.length > 0) {
    const node = queue.shift()!;
    result.push(node);
    for (const dep of graph.get(node) || []) {
      inDegree.set(dep, inDegree.get(dep)! - 1);
      if (inDegree.get(dep) === 0) queue.push(dep);
    }
  }

  if (result.length !== plugins.length) {
    throw new Error('Circular dependency detected');
  }

  return result.reverse();
}
```

## Target Processes

- plugin-architecture-implementation

Files in this skill

  • README.md174 B
  • SKILL.md1.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…