本文へ移動
cccskills
無料GitHub で公開

graph-algorithm-selector

Select optimal graph algorithm based on problem constraints

インストール方法を見る

含まれるファイル(2)

  • SKILL.md2.3 KB
  • README.md611 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Graph Algorithm Selector Skill

Purpose

Select the optimal graph algorithm based on problem constraints, graph properties, and performance requirements.

Capabilities

  • Constraint analysis for algorithm selection
  • Trade-off analysis (Dijkstra vs Bellman-Ford vs Floyd-Warshall)
  • Special case detection (sparse vs dense, negative edges)
  • Algorithm complexity mapping to constraints
  • Suggest algorithm variants and optimizations

Target Processes

  • shortest-path-algorithms
  • advanced-graph-algorithms
  • graph-traversal
  • graph-modeling

Algorithm Selection Matrix

Shortest Path

ScenarioAlgorithmComplexity
UnweightedBFSO(V+E)
Non-negative weightsDijkstraO((V+E)log V)
Negative weightsBellman-FordO(VE)
All pairsFloyd-WarshallO(V^3)
DAGTopological + DPO(V+E)

MST

ScenarioAlgorithmComplexity
Sparse graphKruskalO(E log E)
Dense graphPrimO(V^2) or O(E log V)

Input Schema

{
  "type": "object",
  "properties": {
    "problemType": {
      "type": "string",
      "enum": ["shortestPath", "mst", "connectivity", "flow", "matching", "traversal"]
    },
    "graphProperties": { "type": "object" },
    "constraints": {
      "type": "object",
      "properties": {
        "V": { "type": "integer" },
        "E": { "type": "integer" },
        "negativeWeights": { "type": "boolean" },
        "negativeCycles": { "type": "boolean" }
      }
    }
  },
  "required": ["problemType", "constraints"]
}

Output Schema

{
  "type": "object",
  "properties": {
    "success": { "type": "boolean" },
    "recommendedAlgorithm": { "type": "string" },
    "complexity": { "type": "string" },
    "alternatives": { "type": "array" },
    "reasoning": { "type": "string" }
  },
  "required": ["success", "recommendedAlgorithm"]
}

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Provide implementations of advanced data structures

日本語の概要は準備中です。原文の説明を表示しています。

a5c-ai/babysitter1,8402026年9月17日 更新

Fresh adversarial code review with binary PASS/FAIL verdicts, evidence citations, and anchoring bias prevention via fresh reviewer spawning.

日本語の概要は準備中です。原文の説明を表示しています。

a5c-ai/babysitter1,8402026年9月17日 更新

WASM-based instant code transforms for simple tasks, achieving 352x speedup over LLM inference with zero cost.

日本語の概要は準備中です。原文の説明を表示しています。

a5c-ai/babysitter1,8402026年9月17日 更新

Coordinate Crew (persistent) and Polecat (transient) agents using Gas Town's hook-based work distribution and GUPP principle.

日本語の概要は準備中です。原文の説明を表示しています。

a5c-ai/babysitter1,8402026年9月17日 更新

Generate visual representations of algorithm execution

日本語の概要は準備中です。原文の説明を表示しています。

a5c-ai/babysitter1,8402026年9月17日 更新

Hierarchical coordination and drift detection with frequent checkpoints, shared memory coherence validation, role specialization enforcement, and short task cycles.

日本語の概要は準備中です。原文の説明を表示しています。

a5c-ai/babysitter1,8402026年9月17日 更新

a5c-ai のスキルをすべて見る

このスキルの問題を報告する