ali-abassi

Goal Planner — AI skill for Claude Code

AI community

a simple llm script that takes a user goal and creates a set of clear instructions for an AI Agent to complete.

How to install Goal Planner

This entry records only its repository, not the path inside it, so there is no exact command to give. Open ali-abassi/goal_planner and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Goal Planner does

a simple llm script that takes a user goal and creates a set of clear instructions for an AI Agent to complete.

Alternatives in AI

  • Session Kit — Close the terminal windows, not the AI coding sessions 649 ★
  • Maestro Companion — Quick execution for small tasks — minimal run lifecycle (start + done) with evidence recording 530 ★
  • Agency Orchestrator — 🚀 One sentence → multi-AI-role collaboration → complete plan in minutes 453 ★

README

Goal Setter

Overview

`goal_setter.py` is a Python script designed to help users define, refine goals and tasks to provide an AI Agent. The script leverages the Anthropic API to enhance and refine user goals, and uses the `rich` library to provide a visually appealing command-line interface.

Features

  • User Goal Input: Prompts the user to input their goal.
  • Clarifying Questions: Asks the user five clarifying questions to better understand their goal.
  • Goal Refinement: Refines the user's goal based on their responses to the clarifying questions.
  • Task Plan Creation: Generates a detailed task plan to achieve the refined goal.
  • Task Execution: Guides the user through the execution of each task, updating the task status as they progress.
  • File Operations: Includes utility functions to read from and write to files, and list directory contents.

Requirements

  • Python 3.7+
  • anthropic library
  • pydantic library
  • rich library

Installation

  1. Clone the repository:
    git clone https://github.com/ali-abassi/goal_planner.git
    cd goal_setter

Usage

  1. Run the script:

    python goal_setter.py
  2. Follow the prompts to input your goal, answer clarifying questions, and execute the generated task plan.

Configuration

  • Anthropic API Key: The script requires an Anthropic API key to function. Replace the placeholder API key in the script with your actual API key:
    client = anthropic.Anthropic(
        api_key="your_actual_api_key_here"
    )

Functions

Main Functions

  • main(): The main function that orchestrates the entire process from goal input to task execution.

Helper Functions

  • print_welcome(): Prints a welcome message.
  • get_user_goal(): Prompts the user to input their goal.
  • ask_clarifying_questions(user_goal: str): Asks the user five clarifying questions about their goal.
  • get_user_responses(questions: List[str]): C