Markdown-driven SDLC with AI agent chaining.
Project description
AI-SDLC CLI
Markdown-driven software-lifecycle powered by AI agents
uv pip install ai-sdlc
๐ 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
- Fill out the generated markdown in
doing/add-user-authentication-system/0-idea-*.md - Run
aisdlc nextto generate an AI prompt for the next step - Use the prompt with your preferred AI tool (Claude, ChatGPT, Cursor, etc.) and save the response
- Repeat until all 8 steps are complete
- Archive with
aisdlc done
๐ก Tip: AI-SDLC works with any AI tool - use your favorite AI assistant!
๐ฏ Flexible Usage
Option 1: Full CLI Workflow - Use the complete workflow with aisdlc commands that generate prompts for your AI tool
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
- Initialize project:
aisdlc init - Start new feature:
aisdlc new "Your feature idea" - Progress through steps:
aisdlc next(repeat for each step) - Check status:
aisdlc status - 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:
- Reads the previous markdown file
- Merges it into the prompt for the next step
- For steps 7-8: Calls AI agent (requires compatible AI editor or API)
- Writes the new markdown and bumps
.aisdlc.lock
Using prompts manually:
- Copy the appropriate prompt from
prompts/directory - Paste your previous step's content into the
<prev_step>placeholder - Use with any AI chat interface (Cursor, Claude, ChatGPT, etc.)
- 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
โ โโโ 0-idea.prompt.yml # initial idea analysis
โ โโโ 1-prd.prompt.yml # product requirements
โ โโโ 2-prd-plus.prompt.yml # enhanced requirements
โ โโโ 3-system-template.prompt.yml # system architecture
โ โโโ 4-systems-patterns.prompt.yml # design patterns
โ โโโ 5-tasks.prompt.yml # implementation tasks
โ โโโ 6-tasks-plus.prompt.yml # task list review & handoff preparation
โ โโโ 7-tests.prompt.yml # 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
-
CLI Interface (
ai_sdlc/cli.py)- Entry point for all commands
- Handles argument parsing and command routing
-
Command System (
ai_sdlc/commands/)- Modular command structure
- Each command handles a specific workflow step
-
Prompt Templates (
prompts/)- LLM prompts for each SDLC step
- Structured to guide AI through development process
-
State Management
.aisdlc- Project configuration.aisdlc.lock- Current workflow state- File-based state tracking
Workflow Engine
The workflow engine processes each step by:
- Reading the previous step's output
- Merging it with the appropriate prompt template
- Calling Cursor agent to generate next step
- 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"
- AI-SDLC generates prompts that work with any AI tool
- No specific AI tool installation required
- Use the generated prompts with your preferred AI assistant
"Permission denied" errors
- Check file permissions in your project directory
- Ensure you have write access to the current directory
"Invalid .aisdlc configuration"
- Verify your
.aisdlcfile has valid TOML syntax - Run
aisdlc initto regenerate default configuration
"Lock file corruption"
- Delete
.aisdlc.lockand runaisdlc statusto regenerate - The tool handles corrupted lock files gracefully
Getting Help
- Check the command help:
aisdlc --helporaisdlc <command> --help - Review the CHANGELOG.md for recent changes
- Open an issue on GitHub with:
- Your OS and Python version
- Full error message
- Steps to reproduce
๐บ๏ธ Roadmap
Planned Features
- Pluggable AI providers โ flag
--modelto 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
- Fork and clone the repository
- Create a feature branch:
git checkout -b feat/your-feature - Make your changes with tests
- Run quality checks:
ruff check,pyright,pytestmust pass - 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_sdlc-0.6.2.tar.gz.
File metadata
- Download URL: ai_sdlc-0.6.2.tar.gz
- Upload date:
- Size: 609.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8433b69c8e07562d785d5a94672b0fa29dc5a6b176a25294668d62ea739c8cc
|
|
| MD5 |
bf32875e2d31bd8a67c772fecfa310bd
|
|
| BLAKE2b-256 |
02d8aedb8891741c49242c1e26432b9a2c75db60ccbbe311fe796c17038a98f4
|
Provenance
The following attestation bundles were made for ai_sdlc-0.6.2.tar.gz:
Publisher:
release.yml on Vibe-with-AI/ai-sdlc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_sdlc-0.6.2.tar.gz -
Subject digest:
d8433b69c8e07562d785d5a94672b0fa29dc5a6b176a25294668d62ea739c8cc - Sigstore transparency entry: 227901313
- Sigstore integration time:
-
Permalink:
Vibe-with-AI/ai-sdlc@511af36f6f533423858f4973189a9000bdb5f4a8 -
Branch / Tag:
refs/tags/v0.6.2 - Owner: https://github.com/Vibe-with-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@511af36f6f533423858f4973189a9000bdb5f4a8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ai_sdlc-0.6.2-py3-none-any.whl.
File metadata
- Download URL: ai_sdlc-0.6.2-py3-none-any.whl
- Upload date:
- Size: 92.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab333da628787d6aac923c1084b476ae79101208ece6c0a1589874800ba1a227
|
|
| MD5 |
7be7e69b354da710829bebd8634d08fa
|
|
| BLAKE2b-256 |
6ae1d560da1283d0787225cb0c8fa11fbf472c1cbe8a5dc114bdfea33c85be73
|
Provenance
The following attestation bundles were made for ai_sdlc-0.6.2-py3-none-any.whl:
Publisher:
release.yml on Vibe-with-AI/ai-sdlc
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ai_sdlc-0.6.2-py3-none-any.whl -
Subject digest:
ab333da628787d6aac923c1084b476ae79101208ece6c0a1589874800ba1a227 - Sigstore transparency entry: 227901319
- Sigstore integration time:
-
Permalink:
Vibe-with-AI/ai-sdlc@511af36f6f533423858f4973189a9000bdb5f4a8 -
Branch / Tag:
refs/tags/v0.6.2 - Owner: https://github.com/Vibe-with-AI
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@511af36f6f533423858f4973189a9000bdb5f4a8 -
Trigger Event:
push
-
Statement type: