Skip to main content

Markdown-driven SDLC with AI agent chaining.

Project description

AI-SDLC CLI

Markdown-driven software-lifecycle powered by AI agents

PyPI version License Python version AI Powered

uv pip install ai-sdlc

AI-SDLC GitHub

๐Ÿ“‹ Table of Contents

๐Ÿš€ Getting Started

๐Ÿ“– Usage & Workflow

๐Ÿ—๏ธ Technical Details

๐Ÿ› ๏ธ Development

๐Ÿ“š Resources


๐Ÿค– What is AI-SDLC?

AI-SDLC transforms software development into a structured, AI-assisted workflow that takes you from initial idea to production-ready code through 8 carefully designed steps.

โœจ Key Features

  • ๐ŸŽฏ Structured Workflow: 8-step process from idea โ†’ PRD โ†’ architecture โ†’ tasks โ†’ tests
  • ๐Ÿค– AI-Powered: Leverages AI agents for automated processing and iteration
  • ๐Ÿ“ Markdown-Driven: Everything lives in version-controlled markdown files
  • ๐Ÿ”„ Iterative: Built-in support for refining ideas and requirements with AI chat
  • ๐Ÿš€ Production-Ready: Generates comprehensive task lists and test plans
  • ๐Ÿ“ฆ Zero Config: Works out of the box with sensible defaults

๐Ÿ’ก Why AI-SDLC?

Traditional development often jumps straight to coding, missing crucial planning steps. AI-SDLC ensures you:

  • โœ… Never skip important planning phases
  • โœ… Document decisions and rationale
  • โœ… Generate comprehensive implementation plans
  • โœ… Create thorough test strategies
  • โœ… Maintain project history in version control

๐Ÿš€ Quick Start

Get up and running with AI-SDLC in under 2 minutes:

1๏ธโƒฃ Install Dependencies

# Install uv (fast Python package manager)
curl -LsSf https://astral.sh/uv/install | sh

# Install AI-SDLC
uv pip install ai-sdlc

2๏ธโƒฃ Initialize Your Project

# Create a new directory or use existing project
mkdir my-awesome-project && cd my-awesome-project

# Initialize AI-SDLC
aisdlc init

3๏ธโƒฃ Start Your First Feature

# Create a new feature
aisdlc new "Add user authentication system"

# Check your progress
aisdlc status

4๏ธโƒฃ Follow the Workflow

  1. Fill out the generated markdown in doing/add-user-authentication-system/01-idea-*.md
  2. Run aisdlc next to progress to the next step
  3. Repeat until all 8 steps are complete
  4. Archive with aisdlc done

๐Ÿ’ก Tip: Use AI chat (like Cursor, Claude, or ChatGPT) for steps 1-5 to iterate and refine your ideas!

๐ŸŽฏ Flexible Usage

Option 1: Full CLI Workflow - Use the complete automated workflow with aisdlc commands

Option 2: Prompts Only - Just use the prompt templates manually with your preferred AI tool:

  • Copy prompts from prompts/ directory
  • Use with any AI chat interface (Cursor, Claude, ChatGPT, etc.)
  • Perfect for one-off projects or custom workflows

๐Ÿ“ฆ Installation

Prerequisites

Tool Install (macOS example)
Python 3.13+ brew install python@3.13 or pyenv install 3.13.0
uv curl -LsSf https://astral.sh/uv/install | sh
AI Editor (optional) Cursor, VS Code with AI extensions, or any AI chat interface

Install AI-SDLC

# Option 1: Using uv (recommended)
uv pip install ai-sdlc

# Option 2: Using pip
pip install ai-sdlc

# Verify installation
aisdlc --help

๐Ÿ“– Basic Workflow

The AI-SDLC workflow follows an 8-step process from idea to tests:

flowchart TD
    I[01-idea]-->P1[02-prd]-->P2[03-prd-plus]-->A[04-architecture]
    A-->SP[05-system-patterns]-->T[06-tasks]-->TP[07-tasks-plus]-->TESTS[08-tests]

    %% Iteration loop for steps 1-5
    CHAT[๐Ÿ’ฌ Iterate with AI Chat]
    I -.-> CHAT
    P1 -.-> CHAT
    P2 -.-> CHAT
    A -.-> CHAT
    SP -.-> CHAT
    CHAT -.-> I
    CHAT -.-> P1
    CHAT -.-> P2
    CHAT -.-> A
    CHAT -.-> SP

    %% Agent mode for steps 7-8
    AGENT[๐Ÿค– Use AI Agent Mode]
    TP --- AGENT
    TESTS --- AGENT

๐ŸŽฏ Workflow Modes

Mode Steps Description Best For
๐Ÿ’ฌ Chat Mode 1-5 Interactive iteration with AI chat Refining ideas, requirements, architecture
๐Ÿ“ Manual Mode 6 Fill out markdown manually Creating detailed task lists
๐Ÿค– Agent Mode 7-8 Automated processing with AI agents Task review, test generation

๐Ÿ“‹ Step-by-Step Process

  1. Initialize project: aisdlc init
  2. Start new feature: aisdlc new "Your feature idea"
  3. Progress through steps: aisdlc next (repeat for each step)
  4. Check status: aisdlc status
  5. Complete feature: aisdlc done

๐Ÿ“‹ Command Reference

Command Description Example
aisdlc init Initialize AI-SDLC in current directory aisdlc init
aisdlc new <idea> Start new feature with idea description aisdlc new "Add user authentication"
aisdlc next Progress to next step in workflow aisdlc next
aisdlc status Show current project status aisdlc status
aisdlc done Archive completed feature to done/ aisdlc done
aisdlc --help Show help information aisdlc --help

Working with steps:

  • Each step creates a markdown file in doing/<feature-slug>/
  • Fill out the generated markdown before running aisdlc next
  • AI agents process your input and generate the next step
  • Alternative: Use prompt templates directly with any AI chat interface

โš™๏ธ How It Works

flowchart TD
    I[01-idea]-->P1[02-prd]-->P2[03-prd-plus]-->A[04-architecture]
    A-->SP[05-system-patterns]-->T[06-tasks]-->TP[07-tasks-plus]-->TESTS[08-tests]

    %% Iteration loop for steps 1-5
    CHAT[๐Ÿ’ฌ Iterate with AI Chat]
    I -.-> CHAT
    P1 -.-> CHAT
    P2 -.-> CHAT
    A -.-> CHAT
    SP -.-> CHAT
    CHAT -.-> I
    CHAT -.-> P1
    CHAT -.-> P2
    CHAT -.-> A
    CHAT -.-> SP

    %% Agent mode for steps 7-8
    AGENT[๐Ÿค– Use AI Agent Mode]
    TP --- AGENT
    TESTS --- AGENT

Workflow modes explained:

  • Steps 1-5 (๐Ÿ’ฌ Chat Mode): You manually fill out markdown files and iterate with AI chat to refine your ideas, requirements, and architecture
  • Step 6 (Tasks): Manual step to create implementation tasks
  • Steps 7-8 (๐Ÿค– Agent Mode): Automated processing using AI agents for task review and test generation

Running aisdlc next:

  1. Reads the previous markdown file
  2. Merges it into the prompt for the next step
  3. For steps 7-8: Calls AI agent (requires compatible AI editor or API)
  4. Writes the new markdown and bumps .aisdlc.lock

Using prompts manually:

  1. Copy the appropriate prompt from prompts/ directory
  2. Paste your previous step's content into the <prev_step> placeholder
  3. Use with any AI chat interface (Cursor, Claude, ChatGPT, etc.)
  4. Save the output as the next step's markdown file

๐Ÿ—๏ธ Project Structure

.
โ”œโ”€โ”€ ai_sdlc/                # main Python package
โ”‚   โ”œโ”€โ”€ cli.py              # entry point for `aisdlc`
โ”‚   โ”œโ”€โ”€ commands/           # sub-commands: init | new | next | status | done
โ”‚   โ”œโ”€โ”€ scaffold_template/  # default templates for new projects
โ”‚   โ””โ”€โ”€ utils.py            # shared helpers
โ”œโ”€โ”€ prompts/                # LLM templates for each SDLC step
โ”‚   โ”œโ”€โ”€ 01-idea-prompt.md   # initial idea analysis
โ”‚   โ”œโ”€โ”€ 02-prd-prompt.md    # product requirements
โ”‚   โ”œโ”€โ”€ 03-prd-plus-prompt.md # enhanced requirements
โ”‚   โ”œโ”€โ”€ 04-architecture-prompt.md # system architecture
โ”‚   โ”œโ”€โ”€ 05-systems-patterns.md # design patterns
โ”‚   โ”œโ”€โ”€ 06-tasks-prompt.md  # implementation tasks
โ”‚   โ”œโ”€โ”€ 07-tasks-plus-prompt.md # task list review & handoff preparation
โ”‚   โ””โ”€โ”€ 08-tests.md         # test generation
โ”œโ”€โ”€ tests/                  # pytest suite (unit + integration)
โ”‚   โ”œโ”€โ”€ unit/               # unit tests
โ”‚   โ””โ”€โ”€ integration/        # integration tests
โ”œโ”€โ”€ doing/                  # active features (created by init)
โ”œโ”€โ”€ done/                   # completed features (created by init)
โ”œโ”€โ”€ .aisdlc                 # TOML config (ordered steps, dirs, diagram)
โ”œโ”€โ”€ .aisdlc.lock           # current workflow state
โ”œโ”€โ”€ pyproject.toml          # build + dependency metadata
โ”œโ”€โ”€ CHANGELOG.md            # version history
โ””โ”€โ”€ README.md               # you are here

๐Ÿ›๏ธ Architecture

AI-SDLC is built around a simple but powerful concept: markdown-driven development with AI assistance.

Core Components

  1. CLI Interface (ai_sdlc/cli.py)

    • Entry point for all commands
    • Handles argument parsing and command routing
  2. Command System (ai_sdlc/commands/)

    • Modular command structure
    • Each command handles a specific workflow step
  3. Prompt Templates (prompts/)

    • LLM prompts for each SDLC step
    • Structured to guide AI through development process
  4. State Management

    • .aisdlc - Project configuration
    • .aisdlc.lock - Current workflow state
    • File-based state tracking

Workflow Engine

The workflow engine processes each step by:

  1. Reading the previous step's output
  2. Merging it with the appropriate prompt template
  3. Calling Cursor agent to generate next step
  4. Writing output and updating state

๐Ÿ”ง Technology Stack

Layer Main libs / tools Why
CLI Python 3.13, click-style argparse (stdlib) modern syntax, zero deps runtime
Package mgmt uv fast, lock-file driven reproducibility
Dev tooling Ruff, Pyright, pytest lint + format, type-check, tests
AI Integration Pluggable AI agents works with any AI editor or API
Packaging setuptools, PEP 621 metadata slim install

pyproject.toml excerpt

[project]
name = "ai-sdlc"
requires-python = ">=3.13.0"

[project.optional-dependencies]
dev = [
  "pytest>=7.0",
  "pytest-mock>=3.0",
  "ruff>=0.0.292",
  "pyright>=1.1.350"
]

๐Ÿ› ๏ธ Development Setup

Prerequisites

Tool Install (macOS example)
Python 3.13+ brew install python@3.13 or pyenv install 3.13.0
uv curl -LsSf https://astral.sh/uv/install | sh
AI Editor (optional) Cursor, VS Code with AI extensions, or any AI interface
Node 20 + pnpm* brew install node pnpm (only if you touch TS helpers)

Setup

git clone https://github.com/your-org/ai-sdlc.git
cd ai-sdlc
uv venv && source .venv/bin/activate
uv sync --all-features        # installs runtime + dev deps from uv.lock
pre-commit install            # optional hooks

๐Ÿงช Testing & Quality

# install dev extras
uv pip install -e .[dev]

# lint + format
uv run ruff check ai_sdlc tests
uv run ruff format ai_sdlc tests

# type-check
uv run pyright

# run all tests
uv run pytest

# run specific test types
uv run pytest tests/unit/      # unit tests only
uv run pytest tests/integration/  # integration tests only

Integration tests spin up a temp project dir and exercise the CLI flow.


๐Ÿ”ง Troubleshooting

Common Issues

"AI agent command not found"

  • Ensure your AI editor is installed and configured properly
  • For Cursor: verify the cursor command is in your PATH
  • Alternative: Use prompt templates manually with any AI chat interface

"Permission denied" errors

  • Check file permissions in your project directory
  • Ensure you have write access to the current directory

"Invalid .aisdlc configuration"

  • Verify your .aisdlc file has valid TOML syntax
  • Run aisdlc init to regenerate default configuration

"Lock file corruption"

  • Delete .aisdlc.lock and run aisdlc status to regenerate
  • The tool handles corrupted lock files gracefully

Getting Help

  1. Check the command help: aisdlc --help or aisdlc <command> --help
  2. Review the CHANGELOG.md for recent changes
  3. Open an issue on GitHub with:
    • Your OS and Python version
    • Full error message
    • Steps to reproduce

๐Ÿ—บ๏ธ Roadmap

Planned Features

  • Pluggable AI providers โ€“ flag --model to swap GPT-4o, Claude, Gemini, etc.
  • 09-release-plan step (CI/CD & deployment playbook)
  • Context-window management (summaries / embeddings for large projects)
  • Repomix integration for giant monorepos
  • Template customization - custom prompt templates per project
  • Parallel workflows - multiple features in development simultaneously
  • Enhanced AI provider integrations (OpenAI API, Anthropic API, etc.)

Future Considerations

  • Web UI for workflow visualization
  • Team collaboration features
  • Metrics and analytics for development velocity
  • Integration with project management tools

๐Ÿค Contributing

We welcome contributions! Here's how to get started:

Development Workflow

  1. Fork and clone the repository
  2. Create a feature branch: git checkout -b feat/your-feature
  3. Make your changes with tests
  4. Run quality checks: ruff check, pyright, pytest must pass
  5. Open a PR with a clear description

Code Standards

  • Follow existing code style (enforced by Ruff)
  • Add tests for new functionality
  • Update documentation for user-facing changes
  • Keep commits atomic and well-described

Areas for Contribution

  • Bug fixes - Check GitHub issues
  • Documentation - Improve clarity and examples
  • Testing - Expand test coverage
  • Features - See roadmap above
  • Prompt engineering - Improve LLM prompt templates

๐Ÿ“„ License

MIT ยฉ 2025 Parker Rex See LICENSE for details.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ai_sdlc-0.4.0.tar.gz (53.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ai_sdlc-0.4.0-py3-none-any.whl (54.7 kB view details)

Uploaded Python 3

File details

Details for the file ai_sdlc-0.4.0.tar.gz.

File metadata

  • Download URL: ai_sdlc-0.4.0.tar.gz
  • Upload date:
  • Size: 53.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for ai_sdlc-0.4.0.tar.gz
Algorithm Hash digest
SHA256 92303f7110a0edc39984f8a273a905d412be46b207b76b46288504f5d8534d01
MD5 0af4c1e7136c56d9fa125f19a1ce4a5a
BLAKE2b-256 65a45e2ac08bea2151246e6f4f66c973bc927a4e4ef1521209bd3890b00ad895

See more details on using hashes here.

File details

Details for the file ai_sdlc-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: ai_sdlc-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 54.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for ai_sdlc-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82208737ba25c38eff60679d238c3148d7e09a7652d722008d2025ac20fb9e52
MD5 4f9f0c4a9664a58c7ca1fc79c06d5dfe
BLAKE2b-256 71145ad534a3ea7ff6eb2605ef0c986aa299500e6a8418b800e7fe14227a4fe9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page