prompt_generator 1.0.3 copy "prompt_generator: ^1.0.3" to clipboard
prompt_generator: ^1.0.3 copied to clipboard

Generate Project code for Claude, ChatGPT, Gemini, Grok and others AI

PromptGenerator #

pub package

🌐 English | O'zbekcha

Stop asking teammates for context. Stop feeling overwhelmed by unfamiliar codebases. Let AI understand your entire Flutter project instantly.

A Flutter package that bridges the gap between your codebase and AI assistants by intelligently collecting and formatting your project's code for Claude, ChatGPT, DeepSeek, Grok, and other AI tools.

Why PromptGenerator? #

Ever joined a new project and felt lost? Ever received a task from a senior developer but hesitated to ask "basic" questions? Ever wished you could discuss your architecture decisions with an expert without bothering your team?

PromptGenerator solves this. It extracts your project's relevant code into a single, AI-ready format that you can paste directly into any AI assistant. No more manual file hunting, no more incomplete context, no more embarrassment.

What It Does #

  • Instant AI Context: Generate a comprehensive snapshot of your codebase in seconds
  • Smart Selection: Configure exactly which files and directories matter
  • AI-Optimized: Outputs in a format that AI assistants understand perfectly
  • Privacy-First: Automatically skip generated files (.g.dart, .freezed.dart) and sensitive data
  • Zero Setup: Simple YAML configuration, one command to run

Perfect For #

  • πŸ†• Onboarding to unfamiliar projects - Understand architecture without pestering teammates
  • πŸ€– AI-Assisted Development - Get expert-level guidance on your specific codebase
  • πŸ“š Code Reviews - Share context-rich code snippets with AI for analysis
  • πŸ—οΈ Architecture Discussions - Discuss refactoring strategies with full project context
  • πŸ“– Documentation - Generate comprehensive codebase overviews
  • πŸ‘₯ Team Collaboration - Share project structure with new developers
  • πŸ” Code Analysis - Let AI identify patterns, issues, or improvement opportunities

Getting Started #

Add prompt_generator to your pubspec.yaml:

dev_dependencies:
  prompt_generator: ^latest_version

Usage #

1. Create Configuration File #

Create a prompt_generator.yaml file in your project root:

needYaml: true
copyToClipboard: false
savedFile: "app-code.txt" # Leave empty to skip saving
skipFiles: [
  '.freezed.dart',
  '.g.dart',
  '.res.dart',
  '.config.dart',
  '/.',
]
includePaths: [
  lib/presentation,
  lib/domain,
]

2. Generate Your Prompt #

Run this command in your project directory:

dart run prompt_generator:generate

3. Share with AI #

Copy the generated app-code.txt content and paste it directly into Claude, ChatGPT, DeepSeek, Grok, or any AI assistant. Now you can:

  • Ask architectural questions about YOUR specific project
  • Request refactoring suggestions based on YOUR actual code
  • Get implementation help that understands YOUR context
  • Debug issues with full project awareness

Configuration Options #

Option Type Description
needYaml boolean Include YAML configuration files in output
copyToClipboard boolean Automatically copy output to clipboard
savedFile string Output filename (leave empty to skip file creation)
skipFiles list File patterns to exclude (supports wildcards)
includePaths list Directories to include in the output

Configuration Examples #

Minimal Setup - Just the essentials:

needYaml: false
copyToClipboard: true
savedFile: "my-project.txt"
skipFiles: ['.g.dart', '.freezed.dart']
includePaths: [lib/]

Feature-Focused - Specific features only:

needYaml: true
copyToClipboard: false
savedFile: "feature-code.txt"
skipFiles: ['.freezed.dart', '.g.dart', '_test.dart']
includePaths: [
  lib/features/auth,
  lib/features/profile,
]

Full Project - Comprehensive overview:

needYaml: true
copyToClipboard: true
savedFile: "full-project.txt"
skipFiles: [
  '.freezed.dart',
  '.g.dart',
  '.res.dart',
  '/.',
]
includePaths: [
  lib/presentation,
  lib/domain,
  lib/data,
  lib/core,
]

Real-World Scenarios #

Scenario 1: New to the Team

You join a project with complex state management. Instead of bothering the tech lead, generate the prompt, paste it to Claude, and ask: "Explain this project's state management architecture and where I should add a new feature."

Scenario 2: Stuck on a Task

Senior dev assigned you a refactoring task in an unfamiliar module. Generate the prompt for that specific path, ask AI: "How should I refactor this to follow clean architecture principles?"

Scenario 3: Code Review Preparation

Before submitting a PR, generate your feature's code, ask AI: "Review this implementation for potential issues, edge cases, and best practices violations."

Features #

βœ… One-command code collection βœ… Flexible path configuration βœ… Smart file filtering βœ… Optional clipboard integration βœ… Customizable output format βœ… No manual file copying βœ… Works with all AI assistants

Tips for Best Results #

  1. Be Specific: Include only relevant directories for your question
  2. Clean First: Skip generated and test files to reduce noise
  3. Ask Clearly: When pasting to AI, frame your question with context
  4. Iterate: Regenerate with different paths for different questions
  5. Combine Tools: Use with your AI assistant's other capabilities for maximum benefit

Contributing #

Contributions are welcome! Feel free to submit issues and pull requests.


Stop hesitating. Start shipping. Let AI become your senior developer, architect, and code reviewer - all with full knowledge of YOUR project.

12
likes
130
points
138
downloads

Publisher

unverified uploader

Weekly Downloads

Generate Project code for Claude, ChatGPT, Gemini, Grok and others AI

Homepage
Repository (GitHub)
View/report issues

Topics

#ai #generator #claude #chatgpt #grok

Documentation

API reference

Funding

Consider supporting this project:

github.com

License

unknown (license)

Dependencies

yaml

More

Packages that depend on prompt_generator