Skip to content
Back to skills

Agent Goal Generation

ASecurity

Use when implementing goal generation for AI agents.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 10, 2026
ai-agentspythongo

Security analysis

A100/100

Scanned September 10, 2026

npx -y skills add LoopyLuci/Skills --skill agent-goal-generation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agent Goal Generation?

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

Security grade badge for Agent Goal Generation
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/loopyluci-agent-goal-generation/badge)](https://www.skillsdirectory.com/skills/loopyluci-agent-goal-generation)

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: agent-goal-generation
description: "Use when implementing goal generation for AI agents."
version: 1.0.0
author: Hermes Agent
license: MIT
metadata:
  hermes:
    tags: [agent-goals, goal-generation, subgoal, decomposition, intrinsic-motivation]
    related_skills: [agent-planning-algorithms, hierarchical-planning-agents, agent-reasoning-patterns, agent-environment-interaction]
---

# Agent Goal Generation

Implementing goal generation for AI agents — from subgoal decomposition and intrinsic motivation through goal discovery, prioritization, and dynamic replanning.

## When to Use

- Agents that need to generate their own goals autonomously
- Hierarchical agents that decompose top-level goals into subgoals
- Implementing curiosity-driven or intrinsic motivation
- Building agents that can reprioritize goals dynamically

## Goal Generation Methods

```python
GOAL_GENERATION = {
    'task_decomposition': 'LLM-based or symbolic decomposition of high-level goal into subgoals',
    'intrinsic_motivation': 'Curiosity (novelty), competence (mastery), autonomy (choice)',
    'goal_discovery': 'Agent discovers goals from environment patterns or user behavior',
    'multi_agent_subgoal': 'Agents propose subgoals to each other, negotiate priority',
}

class GoalGenerator:
    """Generate and manage agent goals."""
    def __init__(self):
        self.goals = []
        self.completed = []
        self.priorities = {}
    
    def decompose_task(self, top_level: str, context: str) -> List[Dict]:
        """Decompose a top-level goal into subgoals."""
        subgoals = [
            {'description': f'Analyze {top_level}', 'status': 'pending', 'dependencies': []},
            {'description': f'Plan approach for {top_level}', 'status': 'pending', 'dependencies': [0]},
            {'description': f'Execute {top_level}', 'status': 'pending', 'dependencies': [1]},
            {'description': f'Verify {top_level} completion', 'status': 'pending', 'dependencies': [2]},
        ]
        for sg in subgoals:
            self.goals.append(sg)
        return subgoals
    
    def next_goal(self) -> Dict:
        for goal in self.goals:
            if goal['status'] == 'pending':
                deps = all(self.goals[d]['status'] == 'completed' for d in goal.get('dependencies', []))
                if deps: return goal
        return None
```

## Verification Checklist

- [ ] Goal decomposition produces meaningful subgoals
- [ ] Subgoal dependencies correctly tracked
- [ ] Intrinsic motivation (curiosity) balanced with extrinsic goals
- [ ] Dynamic reprioritization when environment changes
- [ ] Goal completion verified (not just assumed)
- [ ] Unreachable goals detected and re-assessed

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…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.