feat: add comprehensive pdd setup prompts for all LLM providers (#480)#483
Draft
niti-go wants to merge 3 commits intopromptdriven:mainfrom
Draft
feat: add comprehensive pdd setup prompts for all LLM providers (#480)#483niti-go wants to merge 3 commits intopromptdriven:mainfrom
niti-go wants to merge 3 commits intopromptdriven:mainfrom
Conversation
…ptdriven#480) Create 7 new prompts to transform pdd setup into a comprehensive system bootstrapper that supports dynamic provider discovery, API key management, and interactive model selection across all LLM providers. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds 7 new prompt files to transform
pdd setupinto a comprehensive system bootstrapper that supports dynamic provider discovery, smart API key management, local LLM configuration, and interactive model selection with cost transparency across all LLM providers.Closes #480
Changes Made
New Prompts Created
pdd/prompts/setup_tool_python.prompt- Main orchestrator for the enhanced setup flow with menu-driven configurationpdd/prompts/api_key_scanner_python.prompt- Dynamic provider discovery from llm_model.csv, scanning all sources (.env, shell, api-env files)pdd/prompts/api_key_validator_python.prompt- API key validation using llm_invoke() instead of hardcoded HTTP requestspdd/prompts/provider_manager_python.prompt- Add/remove providers with atomic CSV updates and smart key storagepdd/prompts/model_selector_python.prompt- Interactive model selection with cost transparency and tier guidancepdd/prompts/local_llm_configurator_python.prompt- Configure Ollama, LM Studio, and custom providerspdd/prompts/pddrc_initializer_python.prompt- Initialize .pddrc with sensible project defaultsExample Code Files
context/api_key_scanner_example.py- Example implementation showing multi-source key discoverycontext/api_key_validator_example.py- Example showing llm_invoke-based validationcontext/provider_manager_example.py- Example of CSV management and key storage logiccontext/model_selector_example.py- Example of tier-based model selection UIcontext/local_llm_configurator_example.py- Example of Ollama/LM Studio auto-detectioncontext/pddrc_initializer_example.py- Example .pddrc generationDocumentation Updated
README.md- Updated setup command documentation to reflect new capabilitiesSETUP_WITH_GEMINI.md- Updated to reference new multi-provider setup flowdocs/ONBOARDING.md- Updated setup instructions for new user experiencedocs/SETUP_GUIDE.md- New comprehensive setup guide documenting all menu options and workflowspdd/docs/prompting_guide.md- Added guidelines for setup-related promptsKey Features
Dynamic Provider Support
llm_model.csvinstead of hardcoded listSmart API Key Management
Interactive Model Selection
Local LLM Support
Menu-Driven Flow
Review Checklist
Next Steps After Merge
Regenerate code from prompts in dependency order:
# No sync order script needed - these are new modules pdd gen pdd/prompts/api_key_scanner_python.prompt pdd gen pdd/prompts/api_key_validator_python.prompt pdd gen pdd/prompts/provider_manager_python.prompt pdd gen pdd/prompts/model_selector_python.prompt pdd gen pdd/prompts/local_llm_configurator_python.prompt pdd gen pdd/prompts/pddrc_initializer_python.prompt pdd gen pdd/prompts/setup_tool_python.promptRun tests to verify functionality:
Test the new setup flow:
Update llm_model.csv if needed to ensure all providers have required metadata (cost fields)
Risk Mitigation
Created by pdd change workflow (Step 13/13)