plugin-dependency-resolver
SolidGenerate plugin dependency resolution logic with topological sorting.
AI & Automation 1,160 stars
71 forks Updated today MIT
Install
Quality Score: 94/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
Skill Content
# 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
Details
- Author
- a5c-ai
- Repository
- a5c-ai/babysitter
- Created
- 4 months ago
- Last Updated
- today
- Language
- JavaScript
- License
- MIT
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Solid
plugin-loader-generator
Generate dynamic plugin loading system with discovery, validation, and lifecycle management.
1,160 Updated today
a5c-ai AI & Automation Solid
dependency-graph-generator
Generate module dependency graphs with circular dependency detection and coupling metrics
1,160 Updated today
a5c-ai AI & Automation Solid
plugin-manifest-schema
Define plugin manifest schema with versioning and dependency declarations.
1,160 Updated today
a5c-ai AI & Automation Solid
plugin-hook-system
Generate hook-based plugin extension system with event emitter patterns.
1,160 Updated today
a5c-ai Code & Development Solid
dependency-graph
Generates a Mermaid dependency graph showing import relationships between modules. Use when analyzing coupling, finding circular deps, or planning refactors.
297 Updated today
athola