Contributing to LynxPrompt
January 30, 2026 ยท View on GitHub
First off, thank you for considering contributing to LynxPrompt! ๐
๐ Quick Start
- Fork the repository
- Clone your fork:
git clone https://github.com/YOUR_USERNAME/lynxprompt.git - Install dependencies:
pnpm install - Set up the database:
pnpm db:push && pnpm db:seed - Start developing:
pnpm dev
๐ Development Workflow
Branch Naming
feature/- New featuresfix/- Bug fixesdocs/- Documentation updatesrefactor/- Code refactoringtest/- Test additions/updates
Commit Messages
We follow Conventional Commits:
type(scope): description
[optional body]
[optional footer]
Types: feat, fix, docs, style, refactor, test, chore
Examples:
feat(wizard): add language selection stepfix(generator): handle empty template variablesdocs(readme): update installation instructions
Pull Requests
- Create a feature branch from
main - Make your changes
- Run tests:
pnpm test - Run linting:
pnpm lint - Submit a PR with a clear description
๐งช Testing
# Run all tests
pnpm test
# Run tests with UI
pnpm test:ui
# Run with coverage
pnpm test:coverage
๐ Project Structure
src/
โโโ app/ # Next.js App Router pages
โโโ components/ # React components
โ โโโ ui/ # Base UI components (shadcn/ui)
โ โโโ forms/ # Form components
โ โโโ wizard/ # Wizard step components
โ โโโ templates/# Template editors
โโโ lib/ # Utility functions
โ โโโ db/ # Database utilities
โ โโโ generators/# File generators
โ โโโ validators/# Zod schemas
โโโ hooks/ # Custom React hooks
โโโ stores/ # Zustand stores
โโโ types/ # TypeScript types
๐จ Code Style
- We use ESLint and Prettier for code formatting
- Run
pnpm formatto format code - Run
pnpm lint:fixto fix linting issues
๐ Adding New AI Platforms
- Add platform to
prisma/schema.prismaseed data - Create generator in
src/lib/generators/ - Add platform option to wizard
- Update documentation
๐ Adding New Templates
- Add template type to
TemplateTypeenum in schema - Create template content with variables
- Add generator logic
- Update seed data
๐ Reporting Bugs
Please use the GitHub issue tracker with:
- Clear description
- Steps to reproduce
- Expected vs actual behavior
- Screenshots if applicable
๐ก Feature Requests
Open an issue with:
- Clear use case
- Proposed solution
- Alternatives considered
๐ Code of Conduct
Be respectful and inclusive. We follow the Contributor Covenant.
๐ License
By contributing, you agree that your contributions will be licensed under the GPL-3.0 License.