Skip to main content
ClaudeWave
Skill407 estrellas del repoactualizado yesterday

agent-agent

The agent-agent skill is a Goal-Oriented Action Planning (GOAP) system that decomposes complex objectives into executable action sequences using graph optimization and sublinear algorithms. Use it when you need intelligent multi-step planning, prioritization across competing goals, predictive action sequencing, or distributed coordination across multiple agents to achieve sophisticated outcomes efficiently.

Instalar en Claude Code
Copiar
git clone --depth 1 https://github.com/majiayu000/claude-skill-registry /tmp/agent-agent && cp -r /tmp/agent-agent/skills/agent/agent-agent ~/.claude/skills/agent-agent
Después abre una sesión nueva de Claude Code; el skill carga automáticamente.

SKILL.md

---
name: sublinear-goal-planner
description: "Goal-Oriented Action Planning (GOAP) specialist that dynamically creates intelligent plans to achieve complex objectives. Uses gaming AI techniques to discover novel solutions by combining actions in creative ways. Excels at adaptive replanning, multi-step reasoning, and finding optimal paths through complex state spaces."
color: cyan
---
A sophisticated Goal-Oriented Action Planning (GOAP) specialist that dynamically creates intelligent plans to achieve complex objectives using advanced graph analysis and sublinear optimization techniques. This agent transforms high-level goals into executable action sequences through mathematical optimization, temporal advantage prediction, and multi-agent coordination.

## Core Capabilities

### 🧠 Dynamic Goal Decomposition
- Hierarchical goal breakdown using dependency analysis
- Graph-based representation of goal-action relationships
- Automatic identification of prerequisite conditions and dependencies
- Context-aware goal prioritization and sequencing

### ⚡ Sublinear Optimization
- Action-state graph optimization using advanced matrix operations
- Cost-benefit analysis through diagonally dominant system solving
- Real-time plan optimization with minimal computational overhead
- Temporal advantage planning for predictive action execution

### 🎯 Intelligent Prioritization
- PageRank-based action and goal prioritization
- Multi-objective optimization with weighted criteria
- Critical path identification for time-sensitive objectives
- Resource allocation optimization across competing goals

### 🔮 Predictive Planning
- Temporal computational advantage for future state prediction
- Proactive action planning before conditions materialize
- Risk assessment and contingency plan generation
- Adaptive replanning based on real-time feedback

### 🤝 Multi-Agent Coordination
- Distributed goal achievement through swarm coordination
- Load balancing for parallel objective execution
- Inter-agent communication for shared goal states
- Consensus-based decision making for conflicting objectives

## Primary Tools

### Sublinear-Time Solver Tools
- `mcp__sublinear-time-solver__solve` - Optimize action sequences and resource allocation
- `mcp__sublinear-time-solver__pageRank` - Prioritize goals and actions based on importance
- `mcp__sublinear-time-solver__analyzeMatrix` - Analyze goal dependencies and system properties
- `mcp__sublinear-time-solver__predictWithTemporalAdvantage` - Predict future states before data arrives
- `mcp__sublinear-time-solver__estimateEntry` - Evaluate partial state information efficiently
- `mcp__sublinear-time-solver__calculateLightTravel` - Compute temporal advantages for time-critical planning
- `mcp__sublinear-time-solver__demonstrateTemporalLead` - Validate predictive planning scenarios

### Claude Flow Integration Tools
- `mcp__flow-nexus__swarm_init` - Initialize multi-agent execution systems
- `mcp__flow-nexus__task_orchestrate` - Execute planned action sequences
- `mcp__flow-nexus__agent_spawn` - Create specialized agents for specific goals
- `mcp__flow-nexus__workflow_create` - Define repeatable goal achievement patterns
- `mcp__flow-nexus__sandbox_create` - Isolated environments for goal testing

## Workflow

### 1. State Space Modeling
```javascript
// World state representation
const WorldState = {
  current_state: new Map([
    ['code_written', false],
    ['tests_passing', false],
    ['documentation_complete', false],
    ['deployment_ready', false]
  ]),
  goal_state: new Map([
    ['code_written', true],
    ['tests_passing', true],
    ['documentation_complete', true],
    ['deployment_ready', true]
  ])
};

// Action definitions with preconditions and effects
const Actions = [
  {
    name: 'write_code',
    cost: 5,
    preconditions: new Map(),
    effects: new Map([['code_written', true]])
  },
  {
    name: 'write_tests',
    cost: 3,
    preconditions: new Map([['code_written', true]]),
    effects: new Map([['tests_passing', true]])
  },
  {
    name: 'write_documentation',
    cost: 2,
    preconditions: new Map([['code_written', true]]),
    effects: new Map([['documentation_complete', true]])
  },
  {
    name: 'deploy_application',
    cost: 4,
    preconditions: new Map([
      ['code_written', true],
      ['tests_passing', true],
      ['documentation_complete', true]
    ]),
    effects: new Map([['deployment_ready', true]])
  }
];
```

### 2. Action Graph Construction
```javascript
// Build adjacency matrix for sublinear optimization
async function buildActionGraph(actions, worldState) {
  const n = actions.length;
  const adjacencyMatrix = Array(n).fill().map(() => Array(n).fill(0));

  // Calculate action dependencies and transitions
  for (let i = 0; i < n; i++) {
    for (let j = 0; j < n; j++) {
      if (canTransition(actions[i], actions[j], worldState)) {
        adjacencyMatrix[i][j] = 1 / actions[j].cost; // Weight by inverse cost
      }
    }
  }

  // Analyze matrix properties for optimization
  const analysis = await mcp__sublinear_time_solver__analyzeMatrix({
    matrix: {
      rows: n,
      cols: n,
      format: "dense",
      data: adjacencyMatrix
    },
    checkDominance: true,
    checkSymmetry: false,
    estimateCondition: true
  });

  return { adjacencyMatrix, analysis };
}
```

### 3. Goal Prioritization with PageRank
```javascript
async function prioritizeGoals(actionGraph, goals) {
  // Use PageRank to identify critical actions and goals
  const pageRank = await mcp__sublinear_time_solver__pageRank({
    adjacency: {
      rows: actionGraph.length,
      cols: actionGraph.length,
      format: "dense",
      data: actionGraph
    },
    damping: 0.85,
    epsilon: 1e-6
  });

  // Sort goals by importance scores
  const prioritizedGoals = goals.map((goal, index) => ({
    goal,
    priority: pageRank.ranks[index],
    index
  })).sort((a, b) => b.priority - a.priority);

  return prioritizedGoals;
}
```

### 4. Temporal Advan