Skip to content

Latest commit

 

History

History
 
 

sdlc-task-planner

README.md

Task Planner

A. Overview & Functionalities

This agent is intended to be used as part of a broader Software Development Life Cycle (SDLC) workflow. For more details on how it integrates with other agents, please see the SDLC Agents Workflow:

Full SDLC Workflow

Agent Details Table

Interaction Type Workflow / Conversational
Complexity Easy
Agent Type Single Agent
Vertical DevOps / Software Engineering
Key Features Atomic task breakdown, Merge Request / Pull Request scoping, Git dependency and branch chaining, outputs a structured Execution Plan Markdown table with file-level specifications.

B. Architecture

Architecture Diagram

Example Interaction

User: Here is the user story and technical design for the Slack notification integration: [User Story and Technical Design omitted for brevity...] Please break this down into actionable development tasks and give me an execution plan.

Agent: I have analyzed the technical design and user story. I've created the following execution plan to implement the Slack integration systematically:

Execution Plan: Slack Integration for Critical System Alerts

Primary Goal: Implement workspace-level Slack OAuth and extend the Notification Service to dispatch critical alerts to Slack channels.

Comprehensive Task Table

Task ID Title Technical Description & Files Acceptance Criteria & Testing Dependencies & Blockers Source Branch Target Branch Estimated Effort
1 Slack OAuth Credential Store Description: Create DB migrations and repository for workspace-level Slack OAuth tokens.

Files: migrations/V10__slack_tokens.sql, src/db/slack_repo.py
AC: Tokens can be securely saved, retrieved, and deleted.

Testing: Unit tests for repository.
Requires: None

Required By: 2, 3
main feature/slack-oauth-store Medium
2 Slack OAuth API Flow Description: Implement the OAuth callback endpoints to exchange temporary codes for permanent tokens.

Files: src/api/slack_oauth_router.py
AC: Successful OAuth flow redirects correctly and saves token.

Testing: Integration tests with mock Slack API.
Requires: 1

Required By: None
feature/slack-oauth-store feature/slack-oauth-api Medium
3 Notification Service Slack Extension Description: Extend NotificationService to implement a SlackDispatcher using saved tokens.

Files: src/notifications/slack_dispatcher.py, src/notifications/service.py
AC: Alerts with severity 'CRITICAL' trigger a Slack message.

Testing: Unit tests mocking Slack API client.
Requires: 1

Required By: None
main feature/slack-dispatcher Large

[...]

C. Setup & Execution

Prerequisites & Installation

  • Python 3.10+

  • uv

    • For dependency management and packaging. Please follow the instructions on the official uv website for installation.
    curl -LsSf https://astral.sh/uv/install.sh | sh

Set up your environment variables by copying the example file:

cp .env.example .env

Install dependencies:

uv sync --dev

Running the Agent

Run the agent locally:

uv run adk web sdlc_task_planner

Alternative: Using Agent Starter Pack

You can also use the Agent Starter Pack to create a production-ready version of this agent with additional deployment options:

# Create and activate a virtual environment
python -m venv .venv && source .venv/bin/activate # On Windows: .venv\Scripts\activate

# Install the starter pack and create your project
pip install --upgrade agent-starter-pack
agent-starter-pack create my-task-planner -a adk@sdlc-task-planner
⚡️ Alternative: Using uv

If you have uv installed, you can create and set up your project with a single command:

uvx agent-starter-pack create my-task-planner -a adk@task-planner

This command handles creating the project without needing to pre-install the package into a virtual environment.

The starter pack will prompt you to select deployment options and provides additional production-ready features including automated CI/CD deployment scripts.

D. Customization & Extension

  • Modifying the Flow: Adjust task sizing rules (e.g., max lines of code per PR), branch naming conventions, or the Execution Plan format in sdlc_task_planner/prompt.py.
  • Adding Tools: Integrate direct API hooks for GitHub, Bitbucket, or GitLab in sdlc_task_planner/tools/ to automate the creation of tickets and branches.