How mandlekaranurag786-afk/sdlc-ai works
This is an SDLC requirements-generation service with a Streamlit UI and FastAPI backend. Users submit a problem statement, answer iterative clarification questions when needed, generate and validate requirement documents, then preview or download results; prototype generation is also available. The agent coordinates analysis and document generation, while deterministic helpers support consistency, traceability, provenance, and hygiene checks. SQLite persists session state. The graph combines README workflow documentation and shown source references; several agent stages and helper interactions are represented from the source index rather than inspected implementation excerpts.
Main entry points: agent.py Generation agent · api_client.py API client · main.py Requirements API · deterministic_checks.py Deterministic validation
Components 26
User interface
- Streamlit workspace
streamlit_app/app.py - UI session state
streamlit_app/state_manager.py - API client
streamlit_app/api_client.py
API and sessions
- Requirements API
main.py - API authentication
auth.py - Session persistence
db.py
Requirement workflow
- Generation agent
agent.py - Prompt templates
prompts.py - Language model client
llm.py - Requirement analysis
agent.py - Clarification loop
agent.py - BRD generation
agent.py - Epics and stories
agent.py - FRD generation
agent.py - Prototype generation
agent.py
Validation and consistency
- Deterministic validation
deterministic_checks.py - Estimation arithmetic
arithmetic_utils.py - Currency utilities
currency_utils.py - BRD hygiene
brd_hygiene_utils.py - Traceability checks
traceability_utils.py - Numeric provenance
provenance_utils.py - Generation feature flags
feature_flags.py
Documents and storage
- DOCX export
document_export.py - Document post-processing
post_processor.py
Other components
- Requirements author
- LLM provider
Connections 29
- Requirements author → Streamlit workspace: submits input
README.md - Streamlit workspace → UI session state: dispatches actions
streamlit_app/app.py - UI session state → API client: requests workflow
streamlit_app/state_manager.py - API client → Requirements API: calls endpoints
streamlit_app/api_client.py - Requirements API → API authentication: verifies requests
main.py - Requirements API → Session persistence: loads and saves
main.py - Requirements API → Generation agent: runs generation
main.py - Generation agent → Requirement analysis: analyzes requirements
agent.py - Generation agent → Clarification loop: requests questions
agent.py - Generation agent → BRD generation: generates BRD
agent.py - Generation agent → Epics and stories: generates epics
agent.py - Generation agent → FRD generation: generates FRD
agent.py - Generation agent → Prototype generation: generates prototype
agent.py - Generation agent → Prompt templates: formats prompts
agent.py - Generation agent → Language model client: requests completions
agent.py - Language model client → LLM provider: sends prompts
llm.py - Generation agent → Deterministic validation: validates documents
agent.py - Deterministic validation → Estimation arithmetic: recomputes estimates
deterministic_checks.py - Deterministic validation → Numeric provenance: checks numeric claims
deterministic_checks.py - Generation agent → Estimation arithmetic: updates estimates
agent.py - Estimation arithmetic → Currency utilities: uses currency data
arithmetic_utils.py - Generation agent → BRD hygiene: cleans BRD
agent.py - Generation agent → Traceability checks: checks mappings
agent.py - Deterministic validation → Generation feature flags: reads flags
deterministic_checks.py - Estimation arithmetic → Generation feature flags: reads flags
arithmetic_utils.py - Generation agent → DOCX export: exports documents
agent.py - DOCX export → Document post-processing: post-processes output
document_export.py - API client → Session persistence: fetches session state
- API client → Requirements author: returns downloads
README.md