Repository files navigation

Lean AI Ops

PythonStreamlitLicense: MITLast Commit

Lean AI Ops is a local AI-powered Lean Six Sigma assistant for turning messy process problems into structured improvement plans, metrics, action trackers, and exportable project packages.

It helps teams move from an unclear operational problem to a structured first draft of what to measure, what may be causing the issue, what actions to take, who should own them, and how to keep the improvement under control.

The project combines two layers:

  1. an AI-assisted Project Wizard for Lean Six Sigma problem structuring
  2. an Analytics Workbench for quantitative process-improvement analysis

Public interface

Lean AI Ops now includes a static, product-style public interface designed for GitHub Pages:

https://simaba.github.io/lean-ai-ops/

The public interface provides:

  • an interactive DMAIC project walkthrough
  • evidence-health and phase deliverable views
  • a browser-only deterministic intake demo that makes no network request
  • a question-first analytics tool explorer
  • an interactive architecture map
  • links into the deeper repository documentation

The GitHub Pages layer is intentionally separate from the working Python runtime. It does not execute the assessment engine, call Anthropic, persist projects, or run statistical calculations. Use the Streamlit application for those capabilities.

The interface contract and reusable project manifest live in docs/public-interface-contract.md and docs/project-manifest.json.


Overview

Lean AI Ops helps teams answer practical improvement questions:

  • What exactly is the process problem?
  • What should we measure?
  • What are the likely root causes?
  • Which actions should we try first?
  • Who should own each action?
  • How do we know whether the improvement worked?
  • How do we explain the work clearly to a PM, manager, engineer, quality lead, or executive?

The goal is not to replace a Lean Six Sigma expert. The goal is to give teams a structured, reviewable starting point so discussions are clearer, evidence gaps are visible, and improvement work does not begin from a blank page.


Why this project matters

Many process-improvement efforts fail early because the problem is vague, the data is incomplete, root causes are assumed too quickly, or action ownership is unclear.

Lean AI Ops supports a more disciplined improvement flow:

  1. clarify the problem
  2. separate facts from hypotheses
  3. identify missing evidence
  4. propose practical actions
  5. define metrics and control points
  6. create an exportable project package for review

The value is not just faster documentation. The value is better thinking, clearer ownership, and more consistent improvement discipline.


Who this is for

UserHow it helps
Program managersTurns vague delivery problems into structured actions, owners, risks, and metrics
Project managersCreates improvement plans, summaries, and trackers
Quality teamsFrames problems using CTQs, DMAIC, root-cause logic, and control plans
Operations teamsIdentifies waste, bottlenecks, rework, and review cadence needs
Engineering teamsTranslates process pain into measurable workflow improvements
ExecutivesProduces concise summaries focused on impact, risk, and decisions needed
LearnersDemonstrates how Lean Six Sigma methods connect to real operational problems

What the app does

1. Project Wizard

The Project Wizard takes a short project description and generates a structured improvement package.

Example input:

Supplier change requests are taking too long to move from intake to decision. Teams keep asking for status updates, ownership is unclear, and requests often need rework because the right information is missing.

Example outputs:

OutputMeaning
Cleaned problem statementA clearer, more measurable version of the problem
CTQsCritical-to-Quality needs, meaning what customers or stakeholders care about
SIPOCA map of Suppliers, Inputs, Process, Outputs, and Customers
DMAIC structureDefine, Measure, Analyze, Improve, and Control plan
Root-cause hypothesesPossible causes generated through structured reasoning
Suggested metricsWhat to track to understand and improve the process
Improvement actionsSpecific actions with likely impact
Control planHow to sustain the improvement after the first fix
Action trackerActions, owners, priorities, and status
Role-aware summaryA summary adapted for PMs, managers, engineers, quality leads, or executives

Each generated item is tagged as:

  • supported: grounded in the input provided
  • inferred: a reasonable hypothesis that still needs validation
  • missing: an evidence gap that should be investigated

These evidence labels are important because they make the output easier to review. They help separate what is known, what is assumed, and what still needs evidence.


2. Analytics Workbench

The Analytics Workbench provides quantitative tools commonly used in process improvement and quality work.

Tool areaWhat it helps with
Process CapabilityUnderstand whether a process can meet specification limits using Cp, Cpk, Pp, Ppk, sigma level, and DPMO
MSA / Gauge R&RCheck whether measurement variation may be coming from the measurement system itself
Hypothesis TestingCompare means, proportions, paired data, categorical data, or multiple groups
SPC ChartsMonitor process stability using I-MR, Xbar-R, and p-charts
FMEAPrioritize risks using severity, occurrence, detection, and RPN
RegressionExplore relationships between process variables
DOESelect an experimental-design approach for testing factors systematically
Benefits & COPQEstimate cost of poor quality, ROI, payback, NPV, and benefit timing

These tools support analysis, but they do not replace statistical judgment. Results should be reviewed by someone who understands the process and the data.


3. Exportable project packages

Lean AI Ops can export project packages in multiple formats:

  • PDF
  • Word (.docx)
  • Excel (.xlsx)
  • HTML
  • Markdown

This makes the output easier to share in review meetings, project updates, quality reviews, and improvement workshops.


How it works

Lean AI Ops has two operating modes.

With an Anthropic API key

The app can use an Anthropic model to generate richer Lean Six Sigma analysis from your project description.

Without an API key

The app still works in deterministic fallback mode. This means you can run the demo and generate structured outputs even without a paid API key.

That fallback path makes the repo easier to test, demo, and evaluate.


Beginner setup guide

Use this section if you want to try the app locally.

At a high level:

  1. Install Python 3.10 or newer.
  2. Download or clone this repository.
  3. Open a terminal in the project folder.
  4. Install the required packages.
  5. Run the Streamlit app.
  6. Open the local link that Streamlit shows in your browser.

Commands:

git clone https://github.com/simaba/lean-ai-ops.git
cd lean-ai-ops
python -m pip install -r requirements.txt
python -m streamlit run app.py

On Windows, this may also work:

py -m pip install -r requirements.txt
py -m streamlit run app.py

When Streamlit starts, it will show a local URL such as http://localhost:8501. Open that link in your browser.


CLI demo

The repository includes a sample project input file at templates/sample_project.json.

Run:

python run_demo.py --input templates/sample_project.json --mode dmaic --audience pm

This prints a structured Markdown improvement package in the terminal.

Try different modes:

python run_demo.py --input templates/sample_project.json --mode root_cause --audience quality_lead
python run_demo.py --input templates/sample_project.json --mode process_waste --audience manager
python run_demo.py --input templates/sample_project.json --mode control_plan --audience executive

Methodology modes

ModeUse when
DMAICYou want a full Define, Measure, Analyze, Improve, Control structure
KaizenYou want fast, practical, low-overhead improvements
Root CauseYou want deeper 5 Whys and fishbone-style analysis
Process WasteYou want to identify waste using TIMWOODS-style thinking
Control PlanYou want monitoring, ownership, cadence, and escalation triggers

Audience modes

AudienceOutput emphasis
EngineerProcess mapping, measurement points, bottlenecks, and instrumentation
PMStakeholder alignment, action ownership, risks, and next steps
ManagerAccountability, top actions, cadence, and unblockers
Quality LeadCTQs, measurement integrity, evidence gaps, and control rigor
ExecutiveBusiness impact, risk, decision needed, and expected outcome

Example use cases

  • A project manager needs to turn recurring escalation issues into a structured action plan.
  • A quality lead wants to frame a process problem before a DMAIC workshop.
  • A manager wants a clearer review cadence and control plan after a process fix.
  • An engineering team wants to identify where delays and rework are happening.
  • A student or practitioner wants to learn how Lean Six Sigma tools connect to real operational problems.

Repository structure

app.py Streamlit UI entry point
run_demo.py CLI demo entry point
src/
models.py Data models
engine.py Assessment orchestration
phases/ LLM and deterministic assessment logic
renderers.py Markdown and HTML renderers
analytics/ Workbench tools for capability, SPC, MSA, FMEA, etc.
storage/ Project persistence
ui/ UI components
theme.py Shared Streamlit visual system
templates/ Input templates including sample_project.json
examples/ Example projects and outputs
tests/ Analytics and smoke tests
.github/workflows/ CI configuration

Current quality guardrails

The repository currently includes:

  • deterministic fallback mode when no API key is available
  • CI checks for Python imports, tests, and CLI smoke path
  • unit tests for analytics modules
  • sample project input for repeatable demos
  • evidence tags to separate facts, hypotheses, and missing information
  • multi-format export support

Current limitations

This is a working prototype, not a finished commercial product.

Known limitations:

  • app.py has begun modularization with the shared visual system extracted to ui/theme.py; page and service responsibilities should continue moving into focused modules.
  • Statistical outputs should be checked by a qualified person before real decisions.
  • AI-generated recommendations are structured drafts, not validated findings.
  • The tool does not know your organization’s real constraints unless you provide them.
  • It does not replace Lean Six Sigma training, Black Belt review, or domain expertise.

Architecture roadmap

The app already works, but the next quality step is to make the architecture easier to maintain and review.

Target direction:

app.py Thin Streamlit entry point
ui/
theme.py Styling and visual constants
layout.py Shared page layout
pages/
project_wizard.py Project-input and package-generation flow
analytics_workbench.py Statistical tool views
export_center.py Export controls and previews
services/
assessment_service.py Business logic orchestration
export_service.py PDF, DOCX, XLSX, HTML, Markdown export logic
analytics/
capability.py
msa.py
hypothesis_testing.py
spc.py
fmea.py
regression.py
doe.py
benefits.py

Scope and disclaimer

This repository is shared in a personal capacity. It is not statistical certification, process certification, legal advice, compliance certification, or official Lean Six Sigma training material.

AI-generated outputs should be treated as structured drafts and hypotheses. Validate assumptions, measurements, root causes, statistical interpretations, and improvement actions with real process data and qualified domain experts.


Related repositories

RepositoryPurpose
governance-playbookEnd-to-end AI operating model
release-governanceRisk-based release gates for AI systems
release-checklistCLI validator for YAML-based release readiness
everything-program-managementPM templates, agents, skills, and structured operating artifacts
ai-prismCurated governance resources

Shared in a personal capacity. Open to collaborations and feedback via LinkedIn or Medium.

About

AI-powered Lean Six Sigma assistant — DMAIC frameworks, statistical workbench, and multi-format export powered by Claude

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Repository files navigation

Lean AI Ops

PythonStreamlitLicense: MITLast Commit

Lean AI Ops is a local AI-powered Lean Six Sigma assistant for turning messy process problems into structured improvement plans, metrics, action trackers, and exportable project packages.

It helps teams move from an unclear operational problem to a structured first draft of what to measure, what may be causing the issue, what actions to take, who should own them, and how to keep the improvement under control.

The project combines two layers:

  1. an AI-assisted Project Wizard for Lean Six Sigma problem structuring
  2. an Analytics Workbench for quantitative process-improvement analysis

Public interface

Lean AI Ops now includes a static, product-style public interface designed for GitHub Pages:

https://simaba.github.io/lean-ai-ops/

The public interface provides:

  • an interactive DMAIC project walkthrough
  • evidence-health and phase deliverable views
  • a browser-only deterministic intake demo that makes no network request
  • a question-first analytics tool explorer
  • an interactive architecture map
  • links into the deeper repository documentation

The GitHub Pages layer is intentionally separate from the working Python runtime. It does not execute the assessment engine, call Anthropic, persist projects, or run statistical calculations. Use the Streamlit application for those capabilities.

The interface contract and reusable project manifest live in docs/public-interface-contract.md and docs/project-manifest.json.


Overview

Lean AI Ops helps teams answer practical improvement questions:

  • What exactly is the process problem?
  • What should we measure?
  • What are the likely root causes?
  • Which actions should we try first?
  • Who should own each action?
  • How do we know whether the improvement worked?
  • How do we explain the work clearly to a PM, manager, engineer, quality lead, or executive?

The goal is not to replace a Lean Six Sigma expert. The goal is to give teams a structured, reviewable starting point so discussions are clearer, evidence gaps are visible, and improvement work does not begin from a blank page.


Why this project matters

Many process-improvement efforts fail early because the problem is vague, the data is incomplete, root causes are assumed too quickly, or action ownership is unclear.

Lean AI Ops supports a more disciplined improvement flow:

  1. clarify the problem
  2. separate facts from hypotheses
  3. identify missing evidence
  4. propose practical actions
  5. define metrics and control points
  6. create an exportable project package for review

The value is not just faster documentation. The value is better thinking, clearer ownership, and more consistent improvement discipline.


Who this is for

UserHow it helps
Program managersTurns vague delivery problems into structured actions, owners, risks, and metrics
Project managersCreates improvement plans, summaries, and trackers
Quality teamsFrames problems using CTQs, DMAIC, root-cause logic, and control plans
Operations teamsIdentifies waste, bottlenecks, rework, and review cadence needs
Engineering teamsTranslates process pain into measurable workflow improvements
ExecutivesProduces concise summaries focused on impact, risk, and decisions needed
LearnersDemonstrates how Lean Six Sigma methods connect to real operational problems

What the app does

1. Project Wizard

The Project Wizard takes a short project description and generates a structured improvement package.

Example input:

Supplier change requests are taking too long to move from intake to decision. Teams keep asking for status updates, ownership is unclear, and requests often need rework because the right information is missing.

Example outputs:

OutputMeaning
Cleaned problem statementA clearer, more measurable version of the problem
CTQsCritical-to-Quality needs, meaning what customers or stakeholders care about
SIPOCA map of Suppliers, Inputs, Process, Outputs, and Customers
DMAIC structureDefine, Measure, Analyze, Improve, and Control plan
Root-cause hypothesesPossible causes generated through structured reasoning
Suggested metricsWhat to track to understand and improve the process
Improvement actionsSpecific actions with likely impact
Control planHow to sustain the improvement after the first fix
Action trackerActions, owners, priorities, and status
Role-aware summaryA summary adapted for PMs, managers, engineers, quality leads, or executives

Each generated item is tagged as:

  • supported: grounded in the input provided
  • inferred: a reasonable hypothesis that still needs validation
  • missing: an evidence gap that should be investigated

These evidence labels are important because they make the output easier to review. They help separate what is known, what is assumed, and what still needs evidence.


2. Analytics Workbench

The Analytics Workbench provides quantitative tools commonly used in process improvement and quality work.

Tool areaWhat it helps with
Process CapabilityUnderstand whether a process can meet specification limits using Cp, Cpk, Pp, Ppk, sigma level, and DPMO
MSA / Gauge R&RCheck whether measurement variation may be coming from the measurement system itself
Hypothesis TestingCompare means, proportions, paired data, categorical data, or multiple groups
SPC ChartsMonitor process stability using I-MR, Xbar-R, and p-charts
FMEAPrioritize risks using severity, occurrence, detection, and RPN
RegressionExplore relationships between process variables
DOESelect an experimental-design approach for testing factors systematically
Benefits & COPQEstimate cost of poor quality, ROI, payback, NPV, and benefit timing

These tools support analysis, but they do not replace statistical judgment. Results should be reviewed by someone who understands the process and the data.


3. Exportable project packages

Lean AI Ops can export project packages in multiple formats:

  • PDF
  • Word (.docx)
  • Excel (.xlsx)
  • HTML
  • Markdown

This makes the output easier to share in review meetings, project updates, quality reviews, and improvement workshops.


How it works

Lean AI Ops has two operating modes.

With an Anthropic API key

The app can use an Anthropic model to generate richer Lean Six Sigma analysis from your project description.

Without an API key

The app still works in deterministic fallback mode. This means you can run the demo and generate structured outputs even without a paid API key.

That fallback path makes the repo easier to test, demo, and evaluate.


Beginner setup guide

Use this section if you want to try the app locally.

At a high level:

  1. Install Python 3.10 or newer.
  2. Download or clone this repository.
  3. Open a terminal in the project folder.
  4. Install the required packages.
  5. Run the Streamlit app.
  6. Open the local link that Streamlit shows in your browser.

Commands:

git clone https://github.com/simaba/lean-ai-ops.git
cd lean-ai-ops
python -m pip install -r requirements.txt
python -m streamlit run app.py

On Windows, this may also work:

py -m pip install -r requirements.txt
py -m streamlit run app.py

When Streamlit starts, it will show a local URL such as http://localhost:8501. Open that link in your browser.


CLI demo

The repository includes a sample project input file at templates/sample_project.json.

Run:

python run_demo.py --input templates/sample_project.json --mode dmaic --audience pm

This prints a structured Markdown improvement package in the terminal.

Try different modes:

python run_demo.py --input templates/sample_project.json --mode root_cause --audience quality_lead
python run_demo.py --input templates/sample_project.json --mode process_waste --audience manager
python run_demo.py --input templates/sample_project.json --mode control_plan --audience executive

Methodology modes

ModeUse when
DMAICYou want a full Define, Measure, Analyze, Improve, Control structure
KaizenYou want fast, practical, low-overhead improvements
Root CauseYou want deeper 5 Whys and fishbone-style analysis
Process WasteYou want to identify waste using TIMWOODS-style thinking
Control PlanYou want monitoring, ownership, cadence, and escalation triggers

Audience modes

AudienceOutput emphasis
EngineerProcess mapping, measurement points, bottlenecks, and instrumentation
PMStakeholder alignment, action ownership, risks, and next steps
ManagerAccountability, top actions, cadence, and unblockers
Quality LeadCTQs, measurement integrity, evidence gaps, and control rigor
ExecutiveBusiness impact, risk, decision needed, and expected outcome

Example use cases

  • A project manager needs to turn recurring escalation issues into a structured action plan.
  • A quality lead wants to frame a process problem before a DMAIC workshop.
  • A manager wants a clearer review cadence and control plan after a process fix.
  • An engineering team wants to identify where delays and rework are happening.
  • A student or practitioner wants to learn how Lean Six Sigma tools connect to real operational problems.

Repository structure

app.py Streamlit UI entry point
run_demo.py CLI demo entry point
src/
models.py Data models
engine.py Assessment orchestration
phases/ LLM and deterministic assessment logic
renderers.py Markdown and HTML renderers
analytics/ Workbench tools for capability, SPC, MSA, FMEA, etc.
storage/ Project persistence
ui/ UI components
theme.py Shared Streamlit visual system
templates/ Input templates including sample_project.json
examples/ Example projects and outputs
tests/ Analytics and smoke tests
.github/workflows/ CI configuration

Current quality guardrails

The repository currently includes:

  • deterministic fallback mode when no API key is available
  • CI checks for Python imports, tests, and CLI smoke path
  • unit tests for analytics modules
  • sample project input for repeatable demos
  • evidence tags to separate facts, hypotheses, and missing information
  • multi-format export support

Current limitations

This is a working prototype, not a finished commercial product.

Known limitations:

  • app.py has begun modularization with the shared visual system extracted to ui/theme.py; page and service responsibilities should continue moving into focused modules.
  • Statistical outputs should be checked by a qualified person before real decisions.
  • AI-generated recommendations are structured drafts, not validated findings.
  • The tool does not know your organization’s real constraints unless you provide them.
  • It does not replace Lean Six Sigma training, Black Belt review, or domain expertise.

Architecture roadmap

The app already works, but the next quality step is to make the architecture easier to maintain and review.

Target direction:

app.py Thin Streamlit entry point
ui/
theme.py Styling and visual constants
layout.py Shared page layout
pages/
project_wizard.py Project-input and package-generation flow
analytics_workbench.py Statistical tool views
export_center.py Export controls and previews
services/
assessment_service.py Business logic orchestration
export_service.py PDF, DOCX, XLSX, HTML, Markdown export logic
analytics/
capability.py
msa.py
hypothesis_testing.py
spc.py
fmea.py
regression.py
doe.py
benefits.py

Scope and disclaimer

This repository is shared in a personal capacity. It is not statistical certification, process certification, legal advice, compliance certification, or official Lean Six Sigma training material.

AI-generated outputs should be treated as structured drafts and hypotheses. Validate assumptions, measurements, root causes, statistical interpretations, and improvement actions with real process data and qualified domain experts.


Related repositories

RepositoryPurpose
governance-playbookEnd-to-end AI operating model
release-governanceRisk-based release gates for AI systems
release-checklistCLI validator for YAML-based release readiness
everything-program-managementPM templates, agents, skills, and structured operating artifacts
ai-prismCurated governance resources

Shared in a personal capacity. Open to collaborations and feedback via LinkedIn or Medium.

About

AI-powered Lean Six Sigma assistant — DMAIC frameworks, statistical workbench, and multi-format export powered by Claude

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Lean AI Ops

PythonStreamlitLicense: MITLast Commit

Lean AI Ops is a local AI-powered Lean Six Sigma assistant for turning messy process problems into structured improvement plans, metrics, action trackers, and exportable project packages.

It helps teams move from an unclear operational problem to a structured first draft of what to measure, what may be causing the issue, what actions to take, who should own them, and how to keep the improvement under control.

The project combines two layers:

  1. an AI-assisted Project Wizard for Lean Six Sigma problem structuring
  2. an Analytics Workbench for quantitative process-improvement analysis

Public interface

Lean AI Ops now includes a static, product-style public interface designed for GitHub Pages:

https://simaba.github.io/lean-ai-ops/

The public interface provides:

  • an interactive DMAIC project walkthrough
  • evidence-health and phase deliverable views
  • a browser-only deterministic intake demo that makes no network request
  • a question-first analytics tool explorer
  • an interactive architecture map
  • links into the deeper repository documentation

The GitHub Pages layer is intentionally separate from the working Python runtime. It does not execute the assessment engine, call Anthropic, persist projects, or run statistical calculations. Use the Streamlit application for those capabilities.

The interface contract and reusable project manifest live in docs/public-interface-contract.md and docs/project-manifest.json.


Overview

Lean AI Ops helps teams answer practical improvement questions:

  • What exactly is the process problem?
  • What should we measure?
  • What are the likely root causes?
  • Which actions should we try first?
  • Who should own each action?
  • How do we know whether the improvement worked?
  • How do we explain the work clearly to a PM, manager, engineer, quality lead, or executive?

The goal is not to replace a Lean Six Sigma expert. The goal is to give teams a structured, reviewable starting point so discussions are clearer, evidence gaps are visible, and improvement work does not begin from a blank page.


Why this project matters

Many process-improvement efforts fail early because the problem is vague, the data is incomplete, root causes are assumed too quickly, or action ownership is unclear.

Lean AI Ops supports a more disciplined improvement flow:

  1. clarify the problem
  2. separate facts from hypotheses
  3. identify missing evidence
  4. propose practical actions
  5. define metrics and control points
  6. create an exportable project package for review

The value is not just faster documentation. The value is better thinking, clearer ownership, and more consistent improvement discipline.


Who this is for

UserHow it helps
Program managersTurns vague delivery problems into structured actions, owners, risks, and metrics
Project managersCreates improvement plans, summaries, and trackers
Quality teamsFrames problems using CTQs, DMAIC, root-cause logic, and control plans
Operations teamsIdentifies waste, bottlenecks, rework, and review cadence needs
Engineering teamsTranslates process pain into measurable workflow improvements
ExecutivesProduces concise summaries focused on impact, risk, and decisions needed
LearnersDemonstrates how Lean Six Sigma methods connect to real operational problems

What the app does

1. Project Wizard

The Project Wizard takes a short project description and generates a structured improvement package.

Example input:

Supplier change requests are taking too long to move from intake to decision. Teams keep asking for status updates, ownership is unclear, and requests often need rework because the right information is missing.

Example outputs:

OutputMeaning
Cleaned problem statementA clearer, more measurable version of the problem
CTQsCritical-to-Quality needs, meaning what customers or stakeholders care about
SIPOCA map of Suppliers, Inputs, Process, Outputs, and Customers
DMAIC structureDefine, Measure, Analyze, Improve, and Control plan
Root-cause hypothesesPossible causes generated through structured reasoning
Suggested metricsWhat to track to understand and improve the process
Improvement actionsSpecific actions with likely impact
Control planHow to sustain the improvement after the first fix
Action trackerActions, owners, priorities, and status
Role-aware summaryA summary adapted for PMs, managers, engineers, quality leads, or executives

Each generated item is tagged as:

  • supported: grounded in the input provided
  • inferred: a reasonable hypothesis that still needs validation
  • missing: an evidence gap that should be investigated

These evidence labels are important because they make the output easier to review. They help separate what is known, what is assumed, and what still needs evidence.


2. Analytics Workbench

The Analytics Workbench provides quantitative tools commonly used in process improvement and quality work.

Tool areaWhat it helps with
Process CapabilityUnderstand whether a process can meet specification limits using Cp, Cpk, Pp, Ppk, sigma level, and DPMO
MSA / Gauge R&RCheck whether measurement variation may be coming from the measurement system itself
Hypothesis TestingCompare means, proportions, paired data, categorical data, or multiple groups
SPC ChartsMonitor process stability using I-MR, Xbar-R, and p-charts
FMEAPrioritize risks using severity, occurrence, detection, and RPN
RegressionExplore relationships between process variables
DOESelect an experimental-design approach for testing factors systematically
Benefits & COPQEstimate cost of poor quality, ROI, payback, NPV, and benefit timing

These tools support analysis, but they do not replace statistical judgment. Results should be reviewed by someone who understands the process and the data.


3. Exportable project packages

Lean AI Ops can export project packages in multiple formats:

  • PDF
  • Word (.docx)
  • Excel (.xlsx)
  • HTML
  • Markdown

This makes the output easier to share in review meetings, project updates, quality reviews, and improvement workshops.


How it works

Lean AI Ops has two operating modes.

With an Anthropic API key

The app can use an Anthropic model to generate richer Lean Six Sigma analysis from your project description.

Without an API key

The app still works in deterministic fallback mode. This means you can run the demo and generate structured outputs even without a paid API key.

That fallback path makes the repo easier to test, demo, and evaluate.


Beginner setup guide

Use this section if you want to try the app locally.

At a high level:

  1. Install Python 3.10 or newer.
  2. Download or clone this repository.
  3. Open a terminal in the project folder.
  4. Install the required packages.
  5. Run the Streamlit app.
  6. Open the local link that Streamlit shows in your browser.

Commands:

git clone https://github.com/simaba/lean-ai-ops.git
cd lean-ai-ops
python -m pip install -r requirements.txt
python -m streamlit run app.py

On Windows, this may also work:

py -m pip install -r requirements.txt
py -m streamlit run app.py

When Streamlit starts, it will show a local URL such as http://localhost:8501. Open that link in your browser.


CLI demo

The repository includes a sample project input file at templates/sample_project.json.

Run:

python run_demo.py --input templates/sample_project.json --mode dmaic --audience pm

This prints a structured Markdown improvement package in the terminal.

Try different modes:

python run_demo.py --input templates/sample_project.json --mode root_cause --audience quality_lead
python run_demo.py --input templates/sample_project.json --mode process_waste --audience manager
python run_demo.py --input templates/sample_project.json --mode control_plan --audience executive

Methodology modes

ModeUse when
DMAICYou want a full Define, Measure, Analyze, Improve, Control structure
KaizenYou want fast, practical, low-overhead improvements
Root CauseYou want deeper 5 Whys and fishbone-style analysis
Process WasteYou want to identify waste using TIMWOODS-style thinking
Control PlanYou want monitoring, ownership, cadence, and escalation triggers

Audience modes

AudienceOutput emphasis
EngineerProcess mapping, measurement points, bottlenecks, and instrumentation
PMStakeholder alignment, action ownership, risks, and next steps
ManagerAccountability, top actions, cadence, and unblockers
Quality LeadCTQs, measurement integrity, evidence gaps, and control rigor
ExecutiveBusiness impact, risk, decision needed, and expected outcome

Example use cases

  • A project manager needs to turn recurring escalation issues into a structured action plan.
  • A quality lead wants to frame a process problem before a DMAIC workshop.
  • A manager wants a clearer review cadence and control plan after a process fix.
  • An engineering team wants to identify where delays and rework are happening.
  • A student or practitioner wants to learn how Lean Six Sigma tools connect to real operational problems.

Repository structure

app.py Streamlit UI entry point
run_demo.py CLI demo entry point
src/
models.py Data models
engine.py Assessment orchestration
phases/ LLM and deterministic assessment logic
renderers.py Markdown and HTML renderers
analytics/ Workbench tools for capability, SPC, MSA, FMEA, etc.
storage/ Project persistence
ui/ UI components
theme.py Shared Streamlit visual system
templates/ Input templates including sample_project.json
examples/ Example projects and outputs
tests/ Analytics and smoke tests
.github/workflows/ CI configuration

Current quality guardrails

The repository currently includes:

  • deterministic fallback mode when no API key is available
  • CI checks for Python imports, tests, and CLI smoke path
  • unit tests for analytics modules
  • sample project input for repeatable demos
  • evidence tags to separate facts, hypotheses, and missing information
  • multi-format export support

Current limitations

This is a working prototype, not a finished commercial product.

Known limitations:

  • app.py has begun modularization with the shared visual system extracted to ui/theme.py; page and service responsibilities should continue moving into focused modules.
  • Statistical outputs should be checked by a qualified person before real decisions.
  • AI-generated recommendations are structured drafts, not validated findings.
  • The tool does not know your organization’s real constraints unless you provide them.
  • It does not replace Lean Six Sigma training, Black Belt review, or domain expertise.

Architecture roadmap

The app already works, but the next quality step is to make the architecture easier to maintain and review.

Target direction:

app.py Thin Streamlit entry point
ui/
theme.py Styling and visual constants
layout.py Shared page layout
pages/
project_wizard.py Project-input and package-generation flow
analytics_workbench.py Statistical tool views
export_center.py Export controls and previews
services/
assessment_service.py Business logic orchestration
export_service.py PDF, DOCX, XLSX, HTML, Markdown export logic
analytics/
capability.py
msa.py
hypothesis_testing.py
spc.py
fmea.py
regression.py
doe.py
benefits.py

Scope and disclaimer

This repository is shared in a personal capacity. It is not statistical certification, process certification, legal advice, compliance certification, or official Lean Six Sigma training material.

AI-generated outputs should be treated as structured drafts and hypotheses. Validate assumptions, measurements, root causes, statistical interpretations, and improvement actions with real process data and qualified domain experts.


Related repositories

RepositoryPurpose
governance-playbookEnd-to-end AI operating model
release-governanceRisk-based release gates for AI systems
release-checklistCLI validator for YAML-based release readiness
everything-program-managementPM templates, agents, skills, and structured operating artifacts
ai-prismCurated governance resources

Shared in a personal capacity. Open to collaborations and feedback via LinkedIn or Medium.

About

AI-powered Lean Six Sigma assistant — DMAIC frameworks, statistical workbench, and multi-format export powered by Claude

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Lean AI Ops

PythonStreamlitLicense: MITLast Commit

Lean AI Ops is a local AI-powered Lean Six Sigma assistant for turning messy process problems into structured improvement plans, metrics, action trackers, and exportable project packages.

It helps teams move from an unclear operational problem to a structured first draft of what to measure, what may be causing the issue, what actions to take, who should own them, and how to keep the improvement under control.

The project combines two layers:

  1. an AI-assisted Project Wizard for Lean Six Sigma problem structuring
  2. an Analytics Workbench for quantitative process-improvement analysis

Public interface

Lean AI Ops now includes a static, product-style public interface designed for GitHub Pages:

https://simaba.github.io/lean-ai-ops/

The public interface provides:

  • an interactive DMAIC project walkthrough
  • evidence-health and phase deliverable views
  • a browser-only deterministic intake demo that makes no network request
  • a question-first analytics tool explorer
  • an interactive architecture map
  • links into the deeper repository documentation

The GitHub Pages layer is intentionally separate from the working Python runtime. It does not execute the assessment engine, call Anthropic, persist projects, or run statistical calculations. Use the Streamlit application for those capabilities.

The interface contract and reusable project manifest live in docs/public-interface-contract.md and docs/project-manifest.json.


Overview

Lean AI Ops helps teams answer practical improvement questions:

  • What exactly is the process problem?
  • What should we measure?
  • What are the likely root causes?
  • Which actions should we try first?
  • Who should own each action?
  • How do we know whether the improvement worked?
  • How do we explain the work clearly to a PM, manager, engineer, quality lead, or executive?

The goal is not to replace a Lean Six Sigma expert. The goal is to give teams a structured, reviewable starting point so discussions are clearer, evidence gaps are visible, and improvement work does not begin from a blank page.


Why this project matters

Many process-improvement efforts fail early because the problem is vague, the data is incomplete, root causes are assumed too quickly, or action ownership is unclear.

Lean AI Ops supports a more disciplined improvement flow:

  1. clarify the problem
  2. separate facts from hypotheses
  3. identify missing evidence
  4. propose practical actions
  5. define metrics and control points
  6. create an exportable project package for review

The value is not just faster documentation. The value is better thinking, clearer ownership, and more consistent improvement discipline.


Who this is for

UserHow it helps
Program managersTurns vague delivery problems into structured actions, owners, risks, and metrics
Project managersCreates improvement plans, summaries, and trackers
Quality teamsFrames problems using CTQs, DMAIC, root-cause logic, and control plans
Operations teamsIdentifies waste, bottlenecks, rework, and review cadence needs
Engineering teamsTranslates process pain into measurable workflow improvements
ExecutivesProduces concise summaries focused on impact, risk, and decisions needed
LearnersDemonstrates how Lean Six Sigma methods connect to real operational problems

What the app does

1. Project Wizard

The Project Wizard takes a short project description and generates a structured improvement package.

Example input:

Supplier change requests are taking too long to move from intake to decision. Teams keep asking for status updates, ownership is unclear, and requests often need rework because the right information is missing.

Example outputs:

OutputMeaning
Cleaned problem statementA clearer, more measurable version of the problem
CTQsCritical-to-Quality needs, meaning what customers or stakeholders care about
SIPOCA map of Suppliers, Inputs, Process, Outputs, and Customers
DMAIC structureDefine, Measure, Analyze, Improve, and Control plan
Root-cause hypothesesPossible causes generated through structured reasoning
Suggested metricsWhat to track to understand and improve the process
Improvement actionsSpecific actions with likely impact
Control planHow to sustain the improvement after the first fix
Action trackerActions, owners, priorities, and status
Role-aware summaryA summary adapted for PMs, managers, engineers, quality leads, or executives

Each generated item is tagged as:

  • supported: grounded in the input provided
  • inferred: a reasonable hypothesis that still needs validation
  • missing: an evidence gap that should be investigated

These evidence labels are important because they make the output easier to review. They help separate what is known, what is assumed, and what still needs evidence.


2. Analytics Workbench

The Analytics Workbench provides quantitative tools commonly used in process improvement and quality work.

Tool areaWhat it helps with
Process CapabilityUnderstand whether a process can meet specification limits using Cp, Cpk, Pp, Ppk, sigma level, and DPMO
MSA / Gauge R&RCheck whether measurement variation may be coming from the measurement system itself
Hypothesis TestingCompare means, proportions, paired data, categorical data, or multiple groups
SPC ChartsMonitor process stability using I-MR, Xbar-R, and p-charts
FMEAPrioritize risks using severity, occurrence, detection, and RPN
RegressionExplore relationships between process variables
DOESelect an experimental-design approach for testing factors systematically
Benefits & COPQEstimate cost of poor quality, ROI, payback, NPV, and benefit timing

These tools support analysis, but they do not replace statistical judgment. Results should be reviewed by someone who understands the process and the data.


3. Exportable project packages

Lean AI Ops can export project packages in multiple formats:

  • PDF
  • Word (.docx)
  • Excel (.xlsx)
  • HTML
  • Markdown

This makes the output easier to share in review meetings, project updates, quality reviews, and improvement workshops.


How it works

Lean AI Ops has two operating modes.

With an Anthropic API key

The app can use an Anthropic model to generate richer Lean Six Sigma analysis from your project description.

Without an API key

The app still works in deterministic fallback mode. This means you can run the demo and generate structured outputs even without a paid API key.

That fallback path makes the repo easier to test, demo, and evaluate.


Beginner setup guide

Use this section if you want to try the app locally.

At a high level:

  1. Install Python 3.10 or newer.
  2. Download or clone this repository.
  3. Open a terminal in the project folder.
  4. Install the required packages.
  5. Run the Streamlit app.
  6. Open the local link that Streamlit shows in your browser.

Commands:

git clone https://github.com/simaba/lean-ai-ops.git
cd lean-ai-ops
python -m pip install -r requirements.txt
python -m streamlit run app.py

On Windows, this may also work:

py -m pip install -r requirements.txt
py -m streamlit run app.py

When Streamlit starts, it will show a local URL such as http://localhost:8501. Open that link in your browser.


CLI demo

The repository includes a sample project input file at templates/sample_project.json.

Run:

python run_demo.py --input templates/sample_project.json --mode dmaic --audience pm

This prints a structured Markdown improvement package in the terminal.

Try different modes:

python run_demo.py --input templates/sample_project.json --mode root_cause --audience quality_lead
python run_demo.py --input templates/sample_project.json --mode process_waste --audience manager
python run_demo.py --input templates/sample_project.json --mode control_plan --audience executive

Methodology modes

ModeUse when
DMAICYou want a full Define, Measure, Analyze, Improve, Control structure
KaizenYou want fast, practical, low-overhead improvements
Root CauseYou want deeper 5 Whys and fishbone-style analysis
Process WasteYou want to identify waste using TIMWOODS-style thinking
Control PlanYou want monitoring, ownership, cadence, and escalation triggers

Audience modes

AudienceOutput emphasis
EngineerProcess mapping, measurement points, bottlenecks, and instrumentation
PMStakeholder alignment, action ownership, risks, and next steps
ManagerAccountability, top actions, cadence, and unblockers
Quality LeadCTQs, measurement integrity, evidence gaps, and control rigor
ExecutiveBusiness impact, risk, decision needed, and expected outcome

Example use cases

  • A project manager needs to turn recurring escalation issues into a structured action plan.
  • A quality lead wants to frame a process problem before a DMAIC workshop.
  • A manager wants a clearer review cadence and control plan after a process fix.
  • An engineering team wants to identify where delays and rework are happening.
  • A student or practitioner wants to learn how Lean Six Sigma tools connect to real operational problems.

Repository structure

app.py Streamlit UI entry point
run_demo.py CLI demo entry point
src/
models.py Data models
engine.py Assessment orchestration
phases/ LLM and deterministic assessment logic
renderers.py Markdown and HTML renderers
analytics/ Workbench tools for capability, SPC, MSA, FMEA, etc.
storage/ Project persistence
ui/ UI components
theme.py Shared Streamlit visual system
templates/ Input templates including sample_project.json
examples/ Example projects and outputs
tests/ Analytics and smoke tests
.github/workflows/ CI configuration

Current quality guardrails

The repository currently includes:

  • deterministic fallback mode when no API key is available
  • CI checks for Python imports, tests, and CLI smoke path
  • unit tests for analytics modules
  • sample project input for repeatable demos
  • evidence tags to separate facts, hypotheses, and missing information
  • multi-format export support

Current limitations

This is a working prototype, not a finished commercial product.

Known limitations:

  • app.py has begun modularization with the shared visual system extracted to ui/theme.py; page and service responsibilities should continue moving into focused modules.
  • Statistical outputs should be checked by a qualified person before real decisions.
  • AI-generated recommendations are structured drafts, not validated findings.
  • The tool does not know your organization’s real constraints unless you provide them.
  • It does not replace Lean Six Sigma training, Black Belt review, or domain expertise.

Architecture roadmap

The app already works, but the next quality step is to make the architecture easier to maintain and review.

Target direction:

app.py Thin Streamlit entry point
ui/
theme.py Styling and visual constants
layout.py Shared page layout
pages/
project_wizard.py Project-input and package-generation flow
analytics_workbench.py Statistical tool views
export_center.py Export controls and previews
services/
assessment_service.py Business logic orchestration
export_service.py PDF, DOCX, XLSX, HTML, Markdown export logic
analytics/
capability.py
msa.py
hypothesis_testing.py
spc.py
fmea.py
regression.py
doe.py
benefits.py

Scope and disclaimer

This repository is shared in a personal capacity. It is not statistical certification, process certification, legal advice, compliance certification, or official Lean Six Sigma training material.

AI-generated outputs should be treated as structured drafts and hypotheses. Validate assumptions, measurements, root causes, statistical interpretations, and improvement actions with real process data and qualified domain experts.


Related repositories

RepositoryPurpose
governance-playbookEnd-to-end AI operating model
release-governanceRisk-based release gates for AI systems
release-checklistCLI validator for YAML-based release readiness
everything-program-managementPM templates, agents, skills, and structured operating artifacts
ai-prismCurated governance resources

Shared in a personal capacity. Open to collaborations and feedback via LinkedIn or Medium.

About

AI-powered Lean Six Sigma assistant — DMAIC frameworks, statistical workbench, and multi-format export powered by Claude

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Repository files navigation

Lean AI Ops

PythonStreamlitLicense: MITLast Commit

Lean AI Ops is a local AI-powered Lean Six Sigma assistant for turning messy process problems into structured improvement plans, metrics, action trackers, and exportable project packages.

It helps teams move from an unclear operational problem to a structured first draft of what to measure, what may be causing the issue, what actions to take, who should own them, and how to keep the improvement under control.

The project combines two layers:

  1. an AI-assisted Project Wizard for Lean Six Sigma problem structuring
  2. an Analytics Workbench for quantitative process-improvement analysis

Public interface

Lean AI Ops now includes a static, product-style public interface designed for GitHub Pages:

https://simaba.github.io/lean-ai-ops/

The public interface provides:

  • an interactive DMAIC project walkthrough
  • evidence-health and phase deliverable views
  • a browser-only deterministic intake demo that makes no network request
  • a question-first analytics tool explorer
  • an interactive architecture map
  • links into the deeper repository documentation

The GitHub Pages layer is intentionally separate from the working Python runtime. It does not execute the assessment engine, call Anthropic, persist projects, or run statistical calculations. Use the Streamlit application for those capabilities.

The interface contract and reusable project manifest live in docs/public-interface-contract.md and docs/project-manifest.json.


Overview

Lean AI Ops helps teams answer practical improvement questions:

  • What exactly is the process problem?
  • What should we measure?
  • What are the likely root causes?
  • Which actions should we try first?
  • Who should own each action?
  • How do we know whether the improvement worked?
  • How do we explain the work clearly to a PM, manager, engineer, quality lead, or executive?

The goal is not to replace a Lean Six Sigma expert. The goal is to give teams a structured, reviewable starting point so discussions are clearer, evidence gaps are visible, and improvement work does not begin from a blank page.


Why this project matters

Many process-improvement efforts fail early because the problem is vague, the data is incomplete, root causes are assumed too quickly, or action ownership is unclear.

Lean AI Ops supports a more disciplined improvement flow:

  1. clarify the problem
  2. separate facts from hypotheses
  3. identify missing evidence
  4. propose practical actions
  5. define metrics and control points
  6. create an exportable project package for review

The value is not just faster documentation. The value is better thinking, clearer ownership, and more consistent improvement discipline.


Who this is for

UserHow it helps
Program managersTurns vague delivery problems into structured actions, owners, risks, and metrics
Project managersCreates improvement plans, summaries, and trackers
Quality teamsFrames problems using CTQs, DMAIC, root-cause logic, and control plans
Operations teamsIdentifies waste, bottlenecks, rework, and review cadence needs
Engineering teamsTranslates process pain into measurable workflow improvements
ExecutivesProduces concise summaries focused on impact, risk, and decisions needed
LearnersDemonstrates how Lean Six Sigma methods connect to real operational problems

What the app does

1. Project Wizard

The Project Wizard takes a short project description and generates a structured improvement package.

Example input:

Supplier change requests are taking too long to move from intake to decision. Teams keep asking for status updates, ownership is unclear, and requests often need rework because the right information is missing.

Example outputs:

OutputMeaning
Cleaned problem statementA clearer, more measurable version of the problem
CTQsCritical-to-Quality needs, meaning what customers or stakeholders care about
SIPOCA map of Suppliers, Inputs, Process, Outputs, and Customers
DMAIC structureDefine, Measure, Analyze, Improve, and Control plan
Root-cause hypothesesPossible causes generated through structured reasoning
Suggested metricsWhat to track to understand and improve the process
Improvement actionsSpecific actions with likely impact
Control planHow to sustain the improvement after the first fix
Action trackerActions, owners, priorities, and status
Role-aware summaryA summary adapted for PMs, managers, engineers, quality leads, or executives

Each generated item is tagged as:

  • supported: grounded in the input provided
  • inferred: a reasonable hypothesis that still needs validation
  • missing: an evidence gap that should be investigated

These evidence labels are important because they make the output easier to review. They help separate what is known, what is assumed, and what still needs evidence.


2. Analytics Workbench

The Analytics Workbench provides quantitative tools commonly used in process improvement and quality work.

Tool areaWhat it helps with
Process CapabilityUnderstand whether a process can meet specification limits using Cp, Cpk, Pp, Ppk, sigma level, and DPMO
MSA / Gauge R&RCheck whether measurement variation may be coming from the measurement system itself
Hypothesis TestingCompare means, proportions, paired data, categorical data, or multiple groups
SPC ChartsMonitor process stability using I-MR, Xbar-R, and p-charts
FMEAPrioritize risks using severity, occurrence, detection, and RPN
RegressionExplore relationships between process variables
DOESelect an experimental-design approach for testing factors systematically
Benefits & COPQEstimate cost of poor quality, ROI, payback, NPV, and benefit timing

These tools support analysis, but they do not replace statistical judgment. Results should be reviewed by someone who understands the process and the data.


3. Exportable project packages

Lean AI Ops can export project packages in multiple formats:

  • PDF
  • Word (.docx)
  • Excel (.xlsx)
  • HTML
  • Markdown

This makes the output easier to share in review meetings, project updates, quality reviews, and improvement workshops.


How it works

Lean AI Ops has two operating modes.

With an Anthropic API key

The app can use an Anthropic model to generate richer Lean Six Sigma analysis from your project description.

Without an API key

The app still works in deterministic fallback mode. This means you can run the demo and generate structured outputs even without a paid API key.

That fallback path makes the repo easier to test, demo, and evaluate.


Beginner setup guide

Use this section if you want to try the app locally.

At a high level:

  1. Install Python 3.10 or newer.
  2. Download or clone this repository.
  3. Open a terminal in the project folder.
  4. Install the required packages.
  5. Run the Streamlit app.
  6. Open the local link that Streamlit shows in your browser.

Commands:

git clone https://github.com/simaba/lean-ai-ops.git
cd lean-ai-ops
python -m pip install -r requirements.txt
python -m streamlit run app.py

On Windows, this may also work:

py -m pip install -r requirements.txt
py -m streamlit run app.py

When Streamlit starts, it will show a local URL such as http://localhost:8501. Open that link in your browser.


CLI demo

The repository includes a sample project input file at templates/sample_project.json.

Run:

python run_demo.py --input templates/sample_project.json --mode dmaic --audience pm

This prints a structured Markdown improvement package in the terminal.

Try different modes:

python run_demo.py --input templates/sample_project.json --mode root_cause --audience quality_lead
python run_demo.py --input templates/sample_project.json --mode process_waste --audience manager
python run_demo.py --input templates/sample_project.json --mode control_plan --audience executive

Methodology modes

ModeUse when
DMAICYou want a full Define, Measure, Analyze, Improve, Control structure
KaizenYou want fast, practical, low-overhead improvements
Root CauseYou want deeper 5 Whys and fishbone-style analysis
Process WasteYou want to identify waste using TIMWOODS-style thinking
Control PlanYou want monitoring, ownership, cadence, and escalation triggers

Audience modes

AudienceOutput emphasis
EngineerProcess mapping, measurement points, bottlenecks, and instrumentation
PMStakeholder alignment, action ownership, risks, and next steps
ManagerAccountability, top actions, cadence, and unblockers
Quality LeadCTQs, measurement integrity, evidence gaps, and control rigor
ExecutiveBusiness impact, risk, decision needed, and expected outcome

Example use cases

  • A project manager needs to turn recurring escalation issues into a structured action plan.
  • A quality lead wants to frame a process problem before a DMAIC workshop.
  • A manager wants a clearer review cadence and control plan after a process fix.
  • An engineering team wants to identify where delays and rework are happening.
  • A student or practitioner wants to learn how Lean Six Sigma tools connect to real operational problems.

Repository structure

app.py Streamlit UI entry point
run_demo.py CLI demo entry point
src/
models.py Data models
engine.py Assessment orchestration
phases/ LLM and deterministic assessment logic
renderers.py Markdown and HTML renderers
analytics/ Workbench tools for capability, SPC, MSA, FMEA, etc.
storage/ Project persistence
ui/ UI components
theme.py Shared Streamlit visual system
templates/ Input templates including sample_project.json
examples/ Example projects and outputs
tests/ Analytics and smoke tests
.github/workflows/ CI configuration

Current quality guardrails

The repository currently includes:

  • deterministic fallback mode when no API key is available
  • CI checks for Python imports, tests, and CLI smoke path
  • unit tests for analytics modules
  • sample project input for repeatable demos
  • evidence tags to separate facts, hypotheses, and missing information
  • multi-format export support

Current limitations

This is a working prototype, not a finished commercial product.

Known limitations:

  • app.py has begun modularization with the shared visual system extracted to ui/theme.py; page and service responsibilities should continue moving into focused modules.
  • Statistical outputs should be checked by a qualified person before real decisions.
  • AI-generated recommendations are structured drafts, not validated findings.
  • The tool does not know your organization’s real constraints unless you provide them.
  • It does not replace Lean Six Sigma training, Black Belt review, or domain expertise.

Architecture roadmap

The app already works, but the next quality step is to make the architecture easier to maintain and review.

Target direction:

app.py Thin Streamlit entry point
ui/
theme.py Styling and visual constants
layout.py Shared page layout
pages/
project_wizard.py Project-input and package-generation flow
analytics_workbench.py Statistical tool views
export_center.py Export controls and previews
services/
assessment_service.py Business logic orchestration
export_service.py PDF, DOCX, XLSX, HTML, Markdown export logic
analytics/
capability.py
msa.py
hypothesis_testing.py
spc.py
fmea.py
regression.py
doe.py
benefits.py

Scope and disclaimer

This repository is shared in a personal capacity. It is not statistical certification, process certification, legal advice, compliance certification, or official Lean Six Sigma training material.

AI-generated outputs should be treated as structured drafts and hypotheses. Validate assumptions, measurements, root causes, statistical interpretations, and improvement actions with real process data and qualified domain experts.


Related repositories

RepositoryPurpose
governance-playbookEnd-to-end AI operating model
release-governanceRisk-based release gates for AI systems
release-checklistCLI validator for YAML-based release readiness
everything-program-managementPM templates, agents, skills, and structured operating artifacts
ai-prismCurated governance resources

Shared in a personal capacity. Open to collaborations and feedback via LinkedIn or Medium.

About

AI-powered Lean Six Sigma assistant — DMAIC frameworks, statistical workbench, and multi-format export powered by Claude

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Lean AI Ops

PythonStreamlitLicense: MITLast Commit

Lean AI Ops is a local AI-powered Lean Six Sigma assistant for turning messy process problems into structured improvement plans, metrics, action trackers, and exportable project packages.

It helps teams move from an unclear operational problem to a structured first draft of what to measure, what may be causing the issue, what actions to take, who should own them, and how to keep the improvement under control.

The project combines two layers:

  1. an AI-assisted Project Wizard for Lean Six Sigma problem structuring
  2. an Analytics Workbench for quantitative process-improvement analysis

Public interface

Lean AI Ops now includes a static, product-style public interface designed for GitHub Pages:

https://simaba.github.io/lean-ai-ops/

The public interface provides:

  • an interactive DMAIC project walkthrough
  • evidence-health and phase deliverable views
  • a browser-only deterministic intake demo that makes no network request
  • a question-first analytics tool explorer
  • an interactive architecture map
  • links into the deeper repository documentation

The GitHub Pages layer is intentionally separate from the working Python runtime. It does not execute the assessment engine, call Anthropic, persist projects, or run statistical calculations. Use the Streamlit application for those capabilities.

The interface contract and reusable project manifest live in docs/public-interface-contract.md and docs/project-manifest.json.


Overview

Lean AI Ops helps teams answer practical improvement questions:

  • What exactly is the process problem?
  • What should we measure?
  • What are the likely root causes?
  • Which actions should we try first?
  • Who should own each action?
  • How do we know whether the improvement worked?
  • How do we explain the work clearly to a PM, manager, engineer, quality lead, or executive?

The goal is not to replace a Lean Six Sigma expert. The goal is to give teams a structured, reviewable starting point so discussions are clearer, evidence gaps are visible, and improvement work does not begin from a blank page.


Why this project matters

Many process-improvement efforts fail early because the problem is vague, the data is incomplete, root causes are assumed too quickly, or action ownership is unclear.

Lean AI Ops supports a more disciplined improvement flow:

  1. clarify the problem
  2. separate facts from hypotheses
  3. identify missing evidence
  4. propose practical actions
  5. define metrics and control points
  6. create an exportable project package for review

The value is not just faster documentation. The value is better thinking, clearer ownership, and more consistent improvement discipline.


Who this is for

UserHow it helps
Program managersTurns vague delivery problems into structured actions, owners, risks, and metrics
Project managersCreates improvement plans, summaries, and trackers
Quality teamsFrames problems using CTQs, DMAIC, root-cause logic, and control plans
Operations teamsIdentifies waste, bottlenecks, rework, and review cadence needs
Engineering teamsTranslates process pain into measurable workflow improvements
ExecutivesProduces concise summaries focused on impact, risk, and decisions needed
LearnersDemonstrates how Lean Six Sigma methods connect to real operational problems

What the app does

1. Project Wizard

The Project Wizard takes a short project description and generates a structured improvement package.

Example input:

Supplier change requests are taking too long to move from intake to decision. Teams keep asking for status updates, ownership is unclear, and requests often need rework because the right information is missing.

Example outputs:

OutputMeaning
Cleaned problem statementA clearer, more measurable version of the problem
CTQsCritical-to-Quality needs, meaning what customers or stakeholders care about
SIPOCA map of Suppliers, Inputs, Process, Outputs, and Customers
DMAIC structureDefine, Measure, Analyze, Improve, and Control plan
Root-cause hypothesesPossible causes generated through structured reasoning
Suggested metricsWhat to track to understand and improve the process
Improvement actionsSpecific actions with likely impact
Control planHow to sustain the improvement after the first fix
Action trackerActions, owners, priorities, and status
Role-aware summaryA summary adapted for PMs, managers, engineers, quality leads, or executives

Each generated item is tagged as:

  • supported: grounded in the input provided
  • inferred: a reasonable hypothesis that still needs validation
  • missing: an evidence gap that should be investigated

These evidence labels are important because they make the output easier to review. They help separate what is known, what is assumed, and what still needs evidence.


2. Analytics Workbench

The Analytics Workbench provides quantitative tools commonly used in process improvement and quality work.

Tool areaWhat it helps with
Process CapabilityUnderstand whether a process can meet specification limits using Cp, Cpk, Pp, Ppk, sigma level, and DPMO
MSA / Gauge R&RCheck whether measurement variation may be coming from the measurement system itself
Hypothesis TestingCompare means, proportions, paired data, categorical data, or multiple groups
SPC ChartsMonitor process stability using I-MR, Xbar-R, and p-charts
FMEAPrioritize risks using severity, occurrence, detection, and RPN
RegressionExplore relationships between process variables
DOESelect an experimental-design approach for testing factors systematically
Benefits & COPQEstimate cost of poor quality, ROI, payback, NPV, and benefit timing

These tools support analysis, but they do not replace statistical judgment. Results should be reviewed by someone who understands the process and the data.


3. Exportable project packages

Lean AI Ops can export project packages in multiple formats:

  • PDF
  • Word (.docx)
  • Excel (.xlsx)
  • HTML
  • Markdown

This makes the output easier to share in review meetings, project updates, quality reviews, and improvement workshops.


How it works

Lean AI Ops has two operating modes.

With an Anthropic API key

The app can use an Anthropic model to generate richer Lean Six Sigma analysis from your project description.

Without an API key

The app still works in deterministic fallback mode. This means you can run the demo and generate structured outputs even without a paid API key.

That fallback path makes the repo easier to test, demo, and evaluate.


Beginner setup guide

Use this section if you want to try the app locally.

At a high level:

  1. Install Python 3.10 or newer.
  2. Download or clone this repository.
  3. Open a terminal in the project folder.
  4. Install the required packages.
  5. Run the Streamlit app.
  6. Open the local link that Streamlit shows in your browser.

Commands:

git clone https://github.com/simaba/lean-ai-ops.git
cd lean-ai-ops
python -m pip install -r requirements.txt
python -m streamlit run app.py

On Windows, this may also work:

py -m pip install -r requirements.txt
py -m streamlit run app.py

When Streamlit starts, it will show a local URL such as http://localhost:8501. Open that link in your browser.


CLI demo

The repository includes a sample project input file at templates/sample_project.json.

Run:

python run_demo.py --input templates/sample_project.json --mode dmaic --audience pm

This prints a structured Markdown improvement package in the terminal.

Try different modes:

python run_demo.py --input templates/sample_project.json --mode root_cause --audience quality_lead
python run_demo.py --input templates/sample_project.json --mode process_waste --audience manager
python run_demo.py --input templates/sample_project.json --mode control_plan --audience executive

Methodology modes

ModeUse when
DMAICYou want a full Define, Measure, Analyze, Improve, Control structure
KaizenYou want fast, practical, low-overhead improvements
Root CauseYou want deeper 5 Whys and fishbone-style analysis
Process WasteYou want to identify waste using TIMWOODS-style thinking
Control PlanYou want monitoring, ownership, cadence, and escalation triggers

Audience modes

AudienceOutput emphasis
EngineerProcess mapping, measurement points, bottlenecks, and instrumentation
PMStakeholder alignment, action ownership, risks, and next steps
ManagerAccountability, top actions, cadence, and unblockers
Quality LeadCTQs, measurement integrity, evidence gaps, and control rigor
ExecutiveBusiness impact, risk, decision needed, and expected outcome

Example use cases

  • A project manager needs to turn recurring escalation issues into a structured action plan.
  • A quality lead wants to frame a process problem before a DMAIC workshop.
  • A manager wants a clearer review cadence and control plan after a process fix.
  • An engineering team wants to identify where delays and rework are happening.
  • A student or practitioner wants to learn how Lean Six Sigma tools connect to real operational problems.

Repository structure

app.py Streamlit UI entry point
run_demo.py CLI demo entry point
src/
models.py Data models
engine.py Assessment orchestration
phases/ LLM and deterministic assessment logic
renderers.py Markdown and HTML renderers
analytics/ Workbench tools for capability, SPC, MSA, FMEA, etc.
storage/ Project persistence
ui/ UI components
theme.py Shared Streamlit visual system
templates/ Input templates including sample_project.json
examples/ Example projects and outputs
tests/ Analytics and smoke tests
.github/workflows/ CI configuration

Current quality guardrails

The repository currently includes:

  • deterministic fallback mode when no API key is available
  • CI checks for Python imports, tests, and CLI smoke path
  • unit tests for analytics modules
  • sample project input for repeatable demos
  • evidence tags to separate facts, hypotheses, and missing information
  • multi-format export support

Current limitations

This is a working prototype, not a finished commercial product.

Known limitations:

  • app.py has begun modularization with the shared visual system extracted to ui/theme.py; page and service responsibilities should continue moving into focused modules.
  • Statistical outputs should be checked by a qualified person before real decisions.
  • AI-generated recommendations are structured drafts, not validated findings.
  • The tool does not know your organization’s real constraints unless you provide them.
  • It does not replace Lean Six Sigma training, Black Belt review, or domain expertise.

Architecture roadmap

The app already works, but the next quality step is to make the architecture easier to maintain and review.

Target direction:

app.py Thin Streamlit entry point
ui/
theme.py Styling and visual constants
layout.py Shared page layout
pages/
project_wizard.py Project-input and package-generation flow
analytics_workbench.py Statistical tool views
export_center.py Export controls and previews
services/
assessment_service.py Business logic orchestration
export_service.py PDF, DOCX, XLSX, HTML, Markdown export logic
analytics/
capability.py
msa.py
hypothesis_testing.py
spc.py
fmea.py
regression.py
doe.py
benefits.py

Scope and disclaimer

This repository is shared in a personal capacity. It is not statistical certification, process certification, legal advice, compliance certification, or official Lean Six Sigma training material.

AI-generated outputs should be treated as structured drafts and hypotheses. Validate assumptions, measurements, root causes, statistical interpretations, and improvement actions with real process data and qualified domain experts.


Related repositories

RepositoryPurpose
governance-playbookEnd-to-end AI operating model
release-governanceRisk-based release gates for AI systems
release-checklistCLI validator for YAML-based release readiness
everything-program-managementPM templates, agents, skills, and structured operating artifacts
ai-prismCurated governance resources

Shared in a personal capacity. Open to collaborations and feedback via LinkedIn or Medium.

About

AI-powered Lean Six Sigma assistant — DMAIC frameworks, statistical workbench, and multi-format export powered by Claude

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Repository files navigation

Lean AI Ops

PythonStreamlitLicense: MITLast Commit

Lean AI Ops is a local AI-powered Lean Six Sigma assistant for turning messy process problems into structured improvement plans, metrics, action trackers, and exportable project packages.

It helps teams move from an unclear operational problem to a structured first draft of what to measure, what may be causing the issue, what actions to take, who should own them, and how to keep the improvement under control.

The project combines two layers:

  1. an AI-assisted Project Wizard for Lean Six Sigma problem structuring
  2. an Analytics Workbench for quantitative process-improvement analysis

Public interface

Lean AI Ops now includes a static, product-style public interface designed for GitHub Pages:

https://simaba.github.io/lean-ai-ops/

The public interface provides:

  • an interactive DMAIC project walkthrough
  • evidence-health and phase deliverable views
  • a browser-only deterministic intake demo that makes no network request
  • a question-first analytics tool explorer
  • an interactive architecture map
  • links into the deeper repository documentation

The GitHub Pages layer is intentionally separate from the working Python runtime. It does not execute the assessment engine, call Anthropic, persist projects, or run statistical calculations. Use the Streamlit application for those capabilities.

The interface contract and reusable project manifest live in docs/public-interface-contract.md and docs/project-manifest.json.


Overview

Lean AI Ops helps teams answer practical improvement questions:

  • What exactly is the process problem?
  • What should we measure?
  • What are the likely root causes?
  • Which actions should we try first?
  • Who should own each action?
  • How do we know whether the improvement worked?
  • How do we explain the work clearly to a PM, manager, engineer, quality lead, or executive?

The goal is not to replace a Lean Six Sigma expert. The goal is to give teams a structured, reviewable starting point so discussions are clearer, evidence gaps are visible, and improvement work does not begin from a blank page.


Why this project matters

Many process-improvement efforts fail early because the problem is vague, the data is incomplete, root causes are assumed too quickly, or action ownership is unclear.

Lean AI Ops supports a more disciplined improvement flow:

  1. clarify the problem
  2. separate facts from hypotheses
  3. identify missing evidence
  4. propose practical actions
  5. define metrics and control points
  6. create an exportable project package for review

The value is not just faster documentation. The value is better thinking, clearer ownership, and more consistent improvement discipline.


Who this is for

UserHow it helps
Program managersTurns vague delivery problems into structured actions, owners, risks, and metrics
Project managersCreates improvement plans, summaries, and trackers
Quality teamsFrames problems using CTQs, DMAIC, root-cause logic, and control plans
Operations teamsIdentifies waste, bottlenecks, rework, and review cadence needs
Engineering teamsTranslates process pain into measurable workflow improvements
ExecutivesProduces concise summaries focused on impact, risk, and decisions needed
LearnersDemonstrates how Lean Six Sigma methods connect to real operational problems

What the app does

1. Project Wizard

The Project Wizard takes a short project description and generates a structured improvement package.

Example input:

Supplier change requests are taking too long to move from intake to decision. Teams keep asking for status updates, ownership is unclear, and requests often need rework because the right information is missing.

Example outputs:

OutputMeaning
Cleaned problem statementA clearer, more measurable version of the problem
CTQsCritical-to-Quality needs, meaning what customers or stakeholders care about
SIPOCA map of Suppliers, Inputs, Process, Outputs, and Customers
DMAIC structureDefine, Measure, Analyze, Improve, and Control plan
Root-cause hypothesesPossible causes generated through structured reasoning
Suggested metricsWhat to track to understand and improve the process
Improvement actionsSpecific actions with likely impact
Control planHow to sustain the improvement after the first fix
Action trackerActions, owners, priorities, and status
Role-aware summaryA summary adapted for PMs, managers, engineers, quality leads, or executives

Each generated item is tagged as:

  • supported: grounded in the input provided
  • inferred: a reasonable hypothesis that still needs validation
  • missing: an evidence gap that should be investigated

These evidence labels are important because they make the output easier to review. They help separate what is known, what is assumed, and what still needs evidence.


2. Analytics Workbench

The Analytics Workbench provides quantitative tools commonly used in process improvement and quality work.

Tool areaWhat it helps with
Process CapabilityUnderstand whether a process can meet specification limits using Cp, Cpk, Pp, Ppk, sigma level, and DPMO
MSA / Gauge R&RCheck whether measurement variation may be coming from the measurement system itself
Hypothesis TestingCompare means, proportions, paired data, categorical data, or multiple groups
SPC ChartsMonitor process stability using I-MR, Xbar-R, and p-charts
FMEAPrioritize risks using severity, occurrence, detection, and RPN
RegressionExplore relationships between process variables
DOESelect an experimental-design approach for testing factors systematically
Benefits & COPQEstimate cost of poor quality, ROI, payback, NPV, and benefit timing

These tools support analysis, but they do not replace statistical judgment. Results should be reviewed by someone who understands the process and the data.


3. Exportable project packages

Lean AI Ops can export project packages in multiple formats:

  • PDF
  • Word (.docx)
  • Excel (.xlsx)
  • HTML
  • Markdown

This makes the output easier to share in review meetings, project updates, quality reviews, and improvement workshops.


How it works

Lean AI Ops has two operating modes.

With an Anthropic API key

The app can use an Anthropic model to generate richer Lean Six Sigma analysis from your project description.

Without an API key

The app still works in deterministic fallback mode. This means you can run the demo and generate structured outputs even without a paid API key.

That fallback path makes the repo easier to test, demo, and evaluate.


Beginner setup guide

Use this section if you want to try the app locally.

At a high level:

  1. Install Python 3.10 or newer.
  2. Download or clone this repository.
  3. Open a terminal in the project folder.
  4. Install the required packages.
  5. Run the Streamlit app.
  6. Open the local link that Streamlit shows in your browser.

Commands:

git clone https://github.com/simaba/lean-ai-ops.git
cd lean-ai-ops
python -m pip install -r requirements.txt
python -m streamlit run app.py

On Windows, this may also work:

py -m pip install -r requirements.txt
py -m streamlit run app.py

When Streamlit starts, it will show a local URL such as http://localhost:8501. Open that link in your browser.


CLI demo

The repository includes a sample project input file at templates/sample_project.json.

Run:

python run_demo.py --input templates/sample_project.json --mode dmaic --audience pm

This prints a structured Markdown improvement package in the terminal.

Try different modes:

python run_demo.py --input templates/sample_project.json --mode root_cause --audience quality_lead
python run_demo.py --input templates/sample_project.json --mode process_waste --audience manager
python run_demo.py --input templates/sample_project.json --mode control_plan --audience executive

Methodology modes

ModeUse when
DMAICYou want a full Define, Measure, Analyze, Improve, Control structure
KaizenYou want fast, practical, low-overhead improvements
Root CauseYou want deeper 5 Whys and fishbone-style analysis
Process WasteYou want to identify waste using TIMWOODS-style thinking
Control PlanYou want monitoring, ownership, cadence, and escalation triggers

Audience modes

AudienceOutput emphasis
EngineerProcess mapping, measurement points, bottlenecks, and instrumentation
PMStakeholder alignment, action ownership, risks, and next steps
ManagerAccountability, top actions, cadence, and unblockers
Quality LeadCTQs, measurement integrity, evidence gaps, and control rigor
ExecutiveBusiness impact, risk, decision needed, and expected outcome

Example use cases

  • A project manager needs to turn recurring escalation issues into a structured action plan.
  • A quality lead wants to frame a process problem before a DMAIC workshop.
  • A manager wants a clearer review cadence and control plan after a process fix.
  • An engineering team wants to identify where delays and rework are happening.
  • A student or practitioner wants to learn how Lean Six Sigma tools connect to real operational problems.

Repository structure

app.py Streamlit UI entry point
run_demo.py CLI demo entry point
src/
models.py Data models
engine.py Assessment orchestration
phases/ LLM and deterministic assessment logic
renderers.py Markdown and HTML renderers
analytics/ Workbench tools for capability, SPC, MSA, FMEA, etc.
storage/ Project persistence
ui/ UI components
theme.py Shared Streamlit visual system
templates/ Input templates including sample_project.json
examples/ Example projects and outputs
tests/ Analytics and smoke tests
.github/workflows/ CI configuration

Current quality guardrails

The repository currently includes:

  • deterministic fallback mode when no API key is available
  • CI checks for Python imports, tests, and CLI smoke path
  • unit tests for analytics modules
  • sample project input for repeatable demos
  • evidence tags to separate facts, hypotheses, and missing information
  • multi-format export support

Current limitations

This is a working prototype, not a finished commercial product.

Known limitations:

  • app.py has begun modularization with the shared visual system extracted to ui/theme.py; page and service responsibilities should continue moving into focused modules.
  • Statistical outputs should be checked by a qualified person before real decisions.
  • AI-generated recommendations are structured drafts, not validated findings.
  • The tool does not know your organization’s real constraints unless you provide them.
  • It does not replace Lean Six Sigma training, Black Belt review, or domain expertise.

Architecture roadmap

The app already works, but the next quality step is to make the architecture easier to maintain and review.

Target direction:

app.py Thin Streamlit entry point
ui/
theme.py Styling and visual constants
layout.py Shared page layout
pages/
project_wizard.py Project-input and package-generation flow
analytics_workbench.py Statistical tool views
export_center.py Export controls and previews
services/
assessment_service.py Business logic orchestration
export_service.py PDF, DOCX, XLSX, HTML, Markdown export logic
analytics/
capability.py
msa.py
hypothesis_testing.py
spc.py
fmea.py
regression.py
doe.py
benefits.py

Scope and disclaimer

This repository is shared in a personal capacity. It is not statistical certification, process certification, legal advice, compliance certification, or official Lean Six Sigma training material.

AI-generated outputs should be treated as structured drafts and hypotheses. Validate assumptions, measurements, root causes, statistical interpretations, and improvement actions with real process data and qualified domain experts.


Related repositories

RepositoryPurpose
governance-playbookEnd-to-end AI operating model
release-governanceRisk-based release gates for AI systems
release-checklistCLI validator for YAML-based release readiness
everything-program-managementPM templates, agents, skills, and structured operating artifacts
ai-prismCurated governance resources

Shared in a personal capacity. Open to collaborations and feedback via LinkedIn or Medium.

About

AI-powered Lean Six Sigma assistant — DMAIC frameworks, statistical workbench, and multi-format export powered by Claude

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages

, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Repository files navigation

Lean AI Ops

PythonStreamlitLicense: MITLast Commit

Lean AI Ops is a local AI-powered Lean Six Sigma assistant for turning messy process problems into structured improvement plans, metrics, action trackers, and exportable project packages.

It helps teams move from an unclear operational problem to a structured first draft of what to measure, what may be causing the issue, what actions to take, who should own them, and how to keep the improvement under control.

The project combines two layers:

  1. an AI-assisted Project Wizard for Lean Six Sigma problem structuring
  2. an Analytics Workbench for quantitative process-improvement analysis

Public interface

Lean AI Ops now includes a static, product-style public interface designed for GitHub Pages:

https://simaba.github.io/lean-ai-ops/

The public interface provides:

  • an interactive DMAIC project walkthrough
  • evidence-health and phase deliverable views
  • a browser-only deterministic intake demo that makes no network request
  • a question-first analytics tool explorer
  • an interactive architecture map
  • links into the deeper repository documentation

The GitHub Pages layer is intentionally separate from the working Python runtime. It does not execute the assessment engine, call Anthropic, persist projects, or run statistical calculations. Use the Streamlit application for those capabilities.

The interface contract and reusable project manifest live in docs/public-interface-contract.md and docs/project-manifest.json.


Overview

Lean AI Ops helps teams answer practical improvement questions:

  • What exactly is the process problem?
  • What should we measure?
  • What are the likely root causes?
  • Which actions should we try first?
  • Who should own each action?
  • How do we know whether the improvement worked?
  • How do we explain the work clearly to a PM, manager, engineer, quality lead, or executive?

The goal is not to replace a Lean Six Sigma expert. The goal is to give teams a structured, reviewable starting point so discussions are clearer, evidence gaps are visible, and improvement work does not begin from a blank page.


Why this project matters

Many process-improvement efforts fail early because the problem is vague, the data is incomplete, root causes are assumed too quickly, or action ownership is unclear.

Lean AI Ops supports a more disciplined improvement flow:

  1. clarify the problem
  2. separate facts from hypotheses
  3. identify missing evidence
  4. propose practical actions
  5. define metrics and control points
  6. create an exportable project package for review

The value is not just faster documentation. The value is better thinking, clearer ownership, and more consistent improvement discipline.


Who this is for

UserHow it helps
Program managersTurns vague delivery problems into structured actions, owners, risks, and metrics
Project managersCreates improvement plans, summaries, and trackers
Quality teamsFrames problems using CTQs, DMAIC, root-cause logic, and control plans
Operations teamsIdentifies waste, bottlenecks, rework, and review cadence needs
Engineering teamsTranslates process pain into measurable workflow improvements
ExecutivesProduces concise summaries focused on impact, risk, and decisions needed
LearnersDemonstrates how Lean Six Sigma methods connect to real operational problems

What the app does

1. Project Wizard

The Project Wizard takes a short project description and generates a structured improvement package.

Example input:

Supplier change requests are taking too long to move from intake to decision. Teams keep asking for status updates, ownership is unclear, and requests often need rework because the right information is missing.

Example outputs:

OutputMeaning
Cleaned problem statementA clearer, more measurable version of the problem
CTQsCritical-to-Quality needs, meaning what customers or stakeholders care about
SIPOCA map of Suppliers, Inputs, Process, Outputs, and Customers
DMAIC structureDefine, Measure, Analyze, Improve, and Control plan
Root-cause hypothesesPossible causes generated through structured reasoning
Suggested metricsWhat to track to understand and improve the process
Improvement actionsSpecific actions with likely impact
Control planHow to sustain the improvement after the first fix
Action trackerActions, owners, priorities, and status
Role-aware summaryA summary adapted for PMs, managers, engineers, quality leads, or executives

Each generated item is tagged as:

  • supported: grounded in the input provided
  • inferred: a reasonable hypothesis that still needs validation
  • missing: an evidence gap that should be investigated

These evidence labels are important because they make the output easier to review. They help separate what is known, what is assumed, and what still needs evidence.


2. Analytics Workbench

The Analytics Workbench provides quantitative tools commonly used in process improvement and quality work.

Tool areaWhat it helps with
Process CapabilityUnderstand whether a process can meet specification limits using Cp, Cpk, Pp, Ppk, sigma level, and DPMO
MSA / Gauge R&RCheck whether measurement variation may be coming from the measurement system itself
Hypothesis TestingCompare means, proportions, paired data, categorical data, or multiple groups
SPC ChartsMonitor process stability using I-MR, Xbar-R, and p-charts
FMEAPrioritize risks using severity, occurrence, detection, and RPN
RegressionExplore relationships between process variables
DOESelect an experimental-design approach for testing factors systematically
Benefits & COPQEstimate cost of poor quality, ROI, payback, NPV, and benefit timing

These tools support analysis, but they do not replace statistical judgment. Results should be reviewed by someone who understands the process and the data.


3. Exportable project packages

Lean AI Ops can export project packages in multiple formats:

  • PDF
  • Word (.docx)
  • Excel (.xlsx)
  • HTML
  • Markdown

This makes the output easier to share in review meetings, project updates, quality reviews, and improvement workshops.


How it works

Lean AI Ops has two operating modes.

With an Anthropic API key

The app can use an Anthropic model to generate richer Lean Six Sigma analysis from your project description.

Without an API key

The app still works in deterministic fallback mode. This means you can run the demo and generate structured outputs even without a paid API key.

That fallback path makes the repo easier to test, demo, and evaluate.


Beginner setup guide

Use this section if you want to try the app locally.

At a high level:

  1. Install Python 3.10 or newer.
  2. Download or clone this repository.
  3. Open a terminal in the project folder.
  4. Install the required packages.
  5. Run the Streamlit app.
  6. Open the local link that Streamlit shows in your browser.

Commands:

git clone https://github.com/simaba/lean-ai-ops.git
cd lean-ai-ops
python -m pip install -r requirements.txt
python -m streamlit run app.py

On Windows, this may also work:

py -m pip install -r requirements.txt
py -m streamlit run app.py

When Streamlit starts, it will show a local URL such as http://localhost:8501. Open that link in your browser.


CLI demo

The repository includes a sample project input file at templates/sample_project.json.

Run:

python run_demo.py --input templates/sample_project.json --mode dmaic --audience pm

This prints a structured Markdown improvement package in the terminal.

Try different modes:

python run_demo.py --input templates/sample_project.json --mode root_cause --audience quality_lead
python run_demo.py --input templates/sample_project.json --mode process_waste --audience manager
python run_demo.py --input templates/sample_project.json --mode control_plan --audience executive

Methodology modes

ModeUse when
DMAICYou want a full Define, Measure, Analyze, Improve, Control structure
KaizenYou want fast, practical, low-overhead improvements
Root CauseYou want deeper 5 Whys and fishbone-style analysis
Process WasteYou want to identify waste using TIMWOODS-style thinking
Control PlanYou want monitoring, ownership, cadence, and escalation triggers

Audience modes

AudienceOutput emphasis
EngineerProcess mapping, measurement points, bottlenecks, and instrumentation
PMStakeholder alignment, action ownership, risks, and next steps
ManagerAccountability, top actions, cadence, and unblockers
Quality LeadCTQs, measurement integrity, evidence gaps, and control rigor
ExecutiveBusiness impact, risk, decision needed, and expected outcome

Example use cases

  • A project manager needs to turn recurring escalation issues into a structured action plan.
  • A quality lead wants to frame a process problem before a DMAIC workshop.
  • A manager wants a clearer review cadence and control plan after a process fix.
  • An engineering team wants to identify where delays and rework are happening.
  • A student or practitioner wants to learn how Lean Six Sigma tools connect to real operational problems.

Repository structure

app.py Streamlit UI entry point
run_demo.py CLI demo entry point
src/
models.py Data models
engine.py Assessment orchestration
phases/ LLM and deterministic assessment logic
renderers.py Markdown and HTML renderers
analytics/ Workbench tools for capability, SPC, MSA, FMEA, etc.
storage/ Project persistence
ui/ UI components
theme.py Shared Streamlit visual system
templates/ Input templates including sample_project.json
examples/ Example projects and outputs
tests/ Analytics and smoke tests
.github/workflows/ CI configuration

Current quality guardrails

The repository currently includes:

  • deterministic fallback mode when no API key is available
  • CI checks for Python imports, tests, and CLI smoke path
  • unit tests for analytics modules
  • sample project input for repeatable demos
  • evidence tags to separate facts, hypotheses, and missing information
  • multi-format export support

Current limitations

This is a working prototype, not a finished commercial product.

Known limitations:

  • app.py has begun modularization with the shared visual system extracted to ui/theme.py; page and service responsibilities should continue moving into focused modules.
  • Statistical outputs should be checked by a qualified person before real decisions.
  • AI-generated recommendations are structured drafts, not validated findings.
  • The tool does not know your organization’s real constraints unless you provide them.
  • It does not replace Lean Six Sigma training, Black Belt review, or domain expertise.

Architecture roadmap

The app already works, but the next quality step is to make the architecture easier to maintain and review.

Target direction:

app.py Thin Streamlit entry point
ui/
theme.py Styling and visual constants
layout.py Shared page layout
pages/
project_wizard.py Project-input and package-generation flow
analytics_workbench.py Statistical tool views
export_center.py Export controls and previews
services/
assessment_service.py Business logic orchestration
export_service.py PDF, DOCX, XLSX, HTML, Markdown export logic
analytics/
capability.py
msa.py
hypothesis_testing.py
spc.py
fmea.py
regression.py
doe.py
benefits.py

Scope and disclaimer

This repository is shared in a personal capacity. It is not statistical certification, process certification, legal advice, compliance certification, or official Lean Six Sigma training material.

AI-generated outputs should be treated as structured drafts and hypotheses. Validate assumptions, measurements, root causes, statistical interpretations, and improvement actions with real process data and qualified domain experts.


Related repositories

RepositoryPurpose
governance-playbookEnd-to-end AI operating model
release-governanceRisk-based release gates for AI systems
release-checklistCLI validator for YAML-based release readiness
everything-program-managementPM templates, agents, skills, and structured operating artifacts
ai-prismCurated governance resources

Shared in a personal capacity. Open to collaborations and feedback via LinkedIn or Medium.

About

AI-powered Lean Six Sigma assistant — DMAIC frameworks, statistical workbench, and multi-format export powered by Claude

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages