Skip to content

kishore7snehil/quickstart-prompt-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Quickstart Prompt Generator

A language-agnostic CLI tool that enables SDK and documentation teams to rapidly generate LLM prompt templates for any programming language or platform (JavaScript, Java, .NET, Python, etc.), without performing codebase introspection.

🎯 Purpose

The Quickstart Prompt Generator guides teams through structured prompt creation for:

  1. Deep SDK Analysis - Understanding SDK capabilities and architecture
  2. Style Extraction - Learning from reference quickstart documentation
  3. Final Synthesis - Combining insights to generate tailored quickstart docs

Perfect for SDK teams working across multiple languages who need consistent, high-quality quickstart documentation generated via LLMs like ChatGPT or Claude.

✨ Key Features

  • Language-Agnostic: Works with any SDK/library in any programming language
  • No Code Parsing: Accepts SDK information as plain input - no introspection required
  • Three-Stage Workflow: Structured approach ensures comprehensive and consistent results
  • Analysis Mode: Evaluate existing quickstart documentation with structured improvement recommendations
  • Standalone Mode: Generate quickstarts for pure SDK usage without framework dependencies
  • Multiple Style References: Blend documentation styles from different sources or focus on specific companies
  • Smart Session Management: Continue existing sessions, go back during questionnaire, and handle errors gracefully
  • Interactive CLI: Step-by-step guidance with session persistence and undo functionality
  • Flexible Output: Console display, Markdown, or plain text export
  • Extensible Templates: Modular prompt templates for easy customization

πŸš€ Quick Start

Installation

Fresh Installation on New System

  1. Prerequisites:
# Ensure Python 3.9+ is installed
python --version  # Should show Python 3.9 or higher
  1. Clone and navigate to the project:
git clone <repository-url>
cd quickstart_prompt_generator
  1. Create and activate a virtual environment:
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
  1. Configure pip for global PyPI (if needed):
# Only run if you have corporate/artifactory configuration
pip config unset global.index-url
pip config unset global.extra-index-url
pip config unset global.trusted-host
pip config unset global.only-binary

# Verify clean configuration (should show no output)
pip config list
  1. Install dependencies:
pip install -r requirements.txt
  1. Install the tool:
pip install -e .
  1. Verify installation:
# Check if command is available
quickstart-prompt-generator --help

# If command not found, use alternative method:
python -m src.cli --help

Troubleshooting

If you encounter installation or runtime issues, see our comprehensive TROUBLESHOOTING.md guide which covers:

  • Network connection errors (proxies, SSL issues)
  • Command not found issues

Quick fixes for common issues:

  • Connection errors: pip install setuptools wheel && pip install -e .
  • Command not found: Use python -m src.cli instead of quickstart-prompt-generator

Basic Usage

  1. Initialize a session with your SDK details:
quickstart-prompt-generator init
  1. Generate all prompts for your LLM workflow:
quickstart-prompt-generator generate
  1. Follow the three-stage process:
    • Copy Stage 1 prompt β†’ Paste in LLM β†’ Get SDK analysis
    • Copy Stage 2 prompt + reference docs β†’ Get style guide
    • Copy Stage 3 prompt + previous outputs β†’ Get final quickstart

Alternative: Analysis Mode

For analyzing existing quickstart documentation:

quickstart-prompt-generator analyze init

Then generate improvement recommendations:

quickstart-prompt-generator analyze generate

πŸ“‹ CLI Commands

Generation Mode (Default)

Command Description
init Initialize a new prompt generation session
generate Generate all three LLM prompts
status Show current session information
reset Clear current session and start over

Analysis Mode

Command Description
analyze init Initialize a new analysis session for existing documentation
analyze generate Generate analysis prompts for existing documentation
analyze status Show current analysis session status
analyze reset Reset the current analysis session

Generate Command Options

quickstart-prompt-generator generate [OPTIONS]

Options:
  -f, --format [console|markdown|text]  Output format (default: console)
  -o, --output PATH                     Save to file (optional)
  --help                                Show help message

πŸ”„ Two Workflow Modes

Generation Mode: Three-Stage Workflow

Stage 1: SDK Deep Analysis

  • Purpose: Analyze SDK capabilities, architecture, and developer workflow
  • Input: SDK name, language, and optional repository link
  • Output: Comprehensive technical analysis for LLM

Stage 2: Reference Style Extraction

  • Purpose: Extract writing style and structure from reference documentation
  • Input: Links to existing quickstart documentation (supports multiple references with style blending)
  • Output: Style guide and formatting patterns with smart style preference handling

Stage 3: Synthesis & Generation

  • Purpose: Combine SDK analysis with style patterns to create final quickstart
  • Input: Results from Stages 1 & 2
  • Output: Complete, framework-specific quickstart documentation

Analysis Mode: Documentation Improvement

Purpose

Analyze existing quickstart documentation to identify improvement opportunities and generate actionable recommendations.

Workflow

  1. Documentation Input: Provide existing documentation via file, URL, or direct paste
  2. Improvement Focus: Select specific areas to analyze (clarity, completeness, structure, etc.)
  3. LLM Analysis: Generate targeted prompts for comprehensive documentation review
  4. Recommendations: Receive structured improvement suggestions with priorities and implementation guidance

πŸ’‘ Example Workflows

Framework Integration Example

$ quickstart-prompt-generator init

Which SDK/library are you using?
> auth0-spa-js

What is the SDK language?
> JavaScript

SDK repository or documentation link? (optional)
> https://github.com/auth0/auth0-spa-js

Reference quickstart links (one per line, empty to finish):
  Reference: https://auth0.com/docs/quickstart/spa/javascript
  Reference: https://auth0.com/docs/quickstart/spa/react
  Reference: https://auth0.com/docs/quickstart/spa/angular
  Reference: 

πŸ“ Documentation Style Preference
You provided 3 reference documents:
  1. https://auth0.com/docs/quickstart/spa/javascript
  2. https://auth0.com/docs/quickstart/spa/react
  3. https://auth0.com/docs/quickstart/spa/angular

Which documentation style would you like to primarily emulate?
Enter the number (1, 2, etc.) or 'blend' to combine all styles:
Style preference: blend

Which framework/platform is your target? (or 'standalone' for pure SDK usage)
> Svelte

# Generate prompts focused on Svelte integration
$ quickstart-prompt-generator generate --format markdown --output auth0-svelte-prompts.md

Standalone Mode Example

$ quickstart-prompt-generator init

Which SDK/library are you using?
> auth0-api-python

What is the SDK language?
> Python

SDK repository or documentation link? (optional)
> https://github.com/auth0/auth0-api-python

Reference quickstart links (one per line, empty to finish):
  Reference: https://auth0.com/docs/quickstart/backend/python/interactive
  Reference: https://vercel.com/docs/functions/runtimes/python
  Reference: 

Which framework/platform is your target? (or 'standalone' for pure SDK usage)
> standalone

# Generate prompts focused on direct SDK usage
$ quickstart-prompt-generator generate --format markdown --output auth0-standalone-prompts.md

Multiple Style Reference with Blending

πŸ“ Documentation Style Preference
You provided 2 reference documents:
  1. https://auth0.com/docs/quickstart/backend/python/interactive
  2. https://vercel.com/docs/functions/runtimes/python

Which documentation style would you like to primarily emulate?
Enter the number (1, 2, etc.) or 'blend' to combine all styles:
Style preference: blend  # Combines best of both Auth0 and Vercel styles

Smart Session Management

$ quickstart-prompt-generator init

⚠️  Existing session detected!

SDK: auth0-api-python
Language: Python
Target: standalone

What would you like to do?
Choose an option (continue, reset, cancel): continue

# Continue editing your existing session with all previous values preserved
# Use 'back' during questionnaire to fix any mistakes

For more detailed examples including standalone mode, style preferences, and advanced workflows, see docs/EXAMPLES.md.

πŸ“ Project Structure

quickstart_prompt_generator/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ __init__.py          # Package initialization
β”‚   β”œβ”€β”€ cli.py               # Main CLI interface
β”‚   └── prompts.py           # Prompt template engine
β”œβ”€β”€ docs/
β”‚   β”œβ”€β”€ README.md            # This file
β”‚   β”œβ”€β”€ EXAMPLES.md          # Sample generated prompts
β”‚   └── PROMPT_TEMPLATES.md  # Template documentation
β”œβ”€β”€ tests/
β”‚   └── test_cli.py          # Unit tests
└── setup.py                 # Package configuration

πŸ”§ Configuration

The tool stores session data in .qpg_session.json in your current directory. This allows you to:

  • Resume sessions after closing the terminal
  • Modify session data and regenerate prompts
  • Share session configurations with team members

🎨 Customization

Adding Custom Templates

from src.prompts import PromptGenerator

generator = PromptGenerator()
generator.add_custom_template('my_template', 'Your custom template here')

Extending for New Use Cases

The prompt templates use Jinja2 for flexibility. See docs/PROMPT_TEMPLATES.md for detailed template documentation and customization examples.

πŸ“š Documentation

🀝 Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

πŸ†˜ Support

  • Issues: Report bugs or request features via GitHub Issues
  • Discussions: Join the community discussions for usage questions
  • Documentation: Check the docs/ directory for detailed guides

Built for SDK teams who want to generate consistent, high-quality quickstart documentation across any programming language or platform using the power of LLMs.

About

Language-agnostic CLI tool for generating LLM prompts for SDK quickstart documentation.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages