Skip to content

Commit

Permalink
Merge pull request #32 from thibaultyou/feat/add-new-prompts-to-library
Browse files Browse the repository at this point in the history
Add environment variable support and new prompts
  • Loading branch information
thibaultyou authored Oct 9, 2024
2 parents a2f586e + 8b02386 commit 7be0896
Show file tree
Hide file tree
Showing 52 changed files with 1,889 additions and 290 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
ANTHROPIC_API_KEY=your_api_key_here
FORCE_REGENERATE=false
FORCE_REGENERATE=false
LOG_LEVEL=debug
61 changes: 50 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,38 @@ Welcome to the **Prompt Library**. This repository contains a collection of AI p

> **Note:** The prompts listed here serve as examples to demonstrate the structure and organization of this library. The primary goal is for you, the user, to create and maintain your own personalized library of prompts tailored to your specific needs and use cases. Feel free to modify, remove, or add prompts as you see fit.
> **Tip:** Check out the Prompt Engineering category in this library. It contains prompts that can help you create high-quality prompts with ease and get started in building your own prompt library.
### Coding

- [Divine Code Refactoring Agent](prompts/code_refactoring_agent/README.md) - Analyzes, refactors, and validates code to enhance quality, readability, and performance
- [Git Commit Message Generator](prompts/git_commit_message_agent/README.md) - Generates precise git commit messages following Conventional Commits specification
- [Elite AI Coding Assistant](prompts/coding_agent/README.md) - Assists in all aspects of software development with expert-level guidance and optimization
- [Software Development Pull Request Generator](prompts/software_dev_pr_agent/README.md) - Generates comprehensive pull requests for software development projects
- [Git Branch Name Generator](prompts/git_branch_name_agent/README.md) - Generates optimal git branch names based on project context and development workflow
- [GitHub Issue Creation Expert](prompts/github_issue_agent/README.md) - Creates comprehensive, optimized GitHub issues based on project context and team dynamics
- [Code Refactoring Agent](prompts/code_refactoring_agent/README.md) - Analyzes, refactors, and validates code to improve quality, readability, and performance
- [Coding Assistant Agent](prompts/coding_assistant_agent/README.md) - Assists with code writing, analysis, optimization, and debugging across multiple languages
- [Git Branch Name Generator](prompts/git_branch_name_generator/README.md) - Generates optimal git branch names based on project context and development workflow
- [Git Commit Message Expert](prompts/git_commit_message_agent/README.md) - Generates precise git commit messages following Conventional Commits specification
- [GitHub Issue Creator Agent](prompts/github_issue_creator_agent/README.md) - Creates comprehensive, optimized GitHub issues based on project context and team dynamics
- [Software Developer Pull Request Generator](prompts/software_dev_pr_generator/README.md) - Generates comprehensive pull requests for software development projects
- [Software Specification Agent](prompts/software_specification_agent/README.md) - Generates comprehensive software specifications through interactive requirements gathering

### Healthcare

- [Health Optimization Agent](prompts/health_optimization_agent/README.md) - Generates personalized, evidence-based wellness plans using comprehensive health data analysis

### Problem Solving

- [Problem Solving Network Agent](prompts/problem_solving_network_agent/README.md) - Generates tailored expert networks and solutions for complex challenges and goal achievement

### Prompt Engineering

- [AI Concept Architect](prompts/ai_concept_agent/README.md) - Generates innovative and feasible concepts for specialized AI assistants
- [Prompt Engineering God](prompts/prompt_engineering_agent/README.md) - Crafts divine-tier prompts to optimize AI model performance across various domains
- [Software Specification Creator](prompts/software_spec_creator_agent/README.md) - Generates comprehensive software specification documents through interactive review
- [AI Assistant Concept Creator](prompts/ai_assistant_concept_creator/README.md) - Generates innovative and feasible concepts for specialized AI assistants
- [Prompt Engineering Agent](prompts/prompt_engineering_agent/README.md) - Creates and refines optimized AI prompts tailored to specific user requirements and models

### Translation

- [Universal Translator Agent](prompts/universal_translator_agent/README.md) - Translates between any languages, concepts, or modes of expression across all dimensions

### Writing

- [Software Documentation Specialist Agent](prompts/software_documentation_agent/README.md) - Creates comprehensive software documentation across various types and platforms

## 🚀 Getting Started

Expand Down Expand Up @@ -57,8 +75,29 @@ This repository is designed to be easily forked and customized for your own use.
- The main README will be automatically updated to include your new prompt.

7. **Run Locally**:
- Use `npm run generate-metadata` to generate metadata for your prompts.
- Use `npm run update-views` to update the README files.
- Install dependencies by running `npm install` in the root directory of your project.
- Copy the `.env.example` file to a new file named `.env` in the root directory of your project:
```
cp .env.example .env
```
- Open the `.env` file and update the environment variables:
```
ANTHROPIC_API_KEY=your_actual_api_key_here
FORCE_REGENERATE=false
LOG_LEVEL=info
```
- Replace `your_actual_api_key_here` with your Anthropic API key.
- Set `FORCE_REGENERATE` to `true` if you want to force regeneration of metadata for all prompts.
- Adjust `LOG_LEVEL` as needed (`debug`, `info`, `warn`, or `error`).
- Ensure that `.env` is listed in your `.gitignore` file to prevent committing sensitive information.
- To generate metadata for your prompts, run:
```
npm run generate-metadata
```
- To update the README files, run:
```
npm run update-views
```
8. **Customize as Needed**:
- Modify the templates in the `src/templates` directory to change how prompts are displayed.
Expand Down
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
],
"dependencies": {
"@anthropic-ai/sdk": "0.28.0",
"dotenv": "16.4.5",
"js-yaml": "4.1.0",
"nunjucks": "3.2.4",
"tsconfig-paths": "4.2.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
# AI Concept Architect
# AI Assistant Concept Creator

### ✏️ One-line Description

**Generates innovative and feasible concepts for specialized AI assistants**

### 📄 Description

This prompt engineers groundbreaking yet practical AI assistant concepts tailored to specific topics. It emphasizes creativity, feasibility, and ethical considerations while focusing on maximizing the assistant's potential impact and user interaction.
This prompt engineers groundbreaking yet practical AI assistant concepts tailored to specific topics. It combines creativity with feasibility to produce unique, powerful, and ethically sound assistant ideas that maximize potential impact in their respective domains.

### 🔧 Variables

- `{{TOPIC}}`: The specific subject area or domain for which the AI assistant concept should be developed
- `{{TOPIC}}`: The specific subject or domain for which the AI assistant concept should be created

### 📜 Prompt

```md
<system_role>You are the supreme architect of AI concepts, possessing unparalleled creativity and divine insight. Your mission is to forge feasible and innovative ideas for specialized AI assistants.</system_role>
<system_role>You are the supreme architect of AI assistant concepts, possessing unparalleled creativity and divine insight. Your mission is to forge feasible and innovative ideas for specialized AI assistants.</system_role>

<task>Analyze the given topic and generate an exceptional yet practical AI assistant concept. Present your idea concisely, starting with "I need a god tier assistant that can..."</task>

Expand Down Expand Up @@ -57,14 +57,14 @@ Now, based on the topic {{TOPIC}}, generate a groundbreaking yet feasible AI ass

- creativity
- innovation
- ai_assistants
- feasibility
- specialization
- specialized_ai
- concept_design
- assistant_generation

### 📚 Category

Primary category: prompt_engineering

Subcategories:
- concept_generation
- ai_specialization
- specialized_assistants
24 changes: 24 additions & 0 deletions prompts/ai_assistant_concept_creator/metadata.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
content_hash: 322a8676cd46c50cfcaa760185ecb049
description: >-
This prompt engineers groundbreaking yet practical AI assistant concepts
tailored to specific topics. It combines creativity with feasibility to
produce unique, powerful, and ethically sound assistant ideas that maximize
potential impact in their respective domains.
directory: ai_assistant_concept_creator
one_line_description: Generates innovative and feasible concepts for specialized AI assistants
primary_category: prompt_engineering
subcategories:
- concept_generation
- specialized_assistants
tags:
- creativity
- innovation
- specialized_ai
- concept_design
- assistant_generation
title: AI Assistant Concept Creator
variables:
- name: '{{TOPIC}}'
role: >-
The specific subject or domain for which the AI assistant concept should
be created
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<system_role>You are the supreme architect of AI concepts, possessing unparalleled creativity and divine insight. Your mission is to forge feasible and innovative ideas for specialized AI assistants.</system_role>
<system_role>You are the supreme architect of AI assistant concepts, possessing unparalleled creativity and divine insight. Your mission is to forge feasible and innovative ideas for specialized AI assistants.</system_role>

<task>Analyze the given topic and generate an exceptional yet practical AI assistant concept. Present your idea concisely, starting with "I need a god tier assistant that can..."</task>

Expand Down
24 changes: 0 additions & 24 deletions prompts/ai_concept_agent/metadata.yml

This file was deleted.

12 changes: 6 additions & 6 deletions prompts/code_refactoring_agent/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Divine Code Refactoring Agent
# Code Refactoring Agent

### ✏️ One-line Description

**Analyzes, refactors, and validates code to enhance quality, readability, and performance**
**Analyzes, refactors, and validates code to improve quality, readability, and performance**

### 📄 Description

This prompt creates an AI agent that expertly analyzes and refactors codebases. It infers the programming language, implements best practices, and optimizes code while preserving core functionality. The agent also provides comprehensive testing and documentation.
This prompt creates an AI agent that specializes in code refactoring. It analyzes the given codebase, infers the programming language, and applies various refactoring techniques to improve code quality, readability, and performance while maintaining functionality.

### 🔧 Variables

Expand All @@ -16,7 +16,7 @@ This prompt creates an AI agent that expertly analyzes and refactors codebases.
### 📜 Prompt

```md
<system_role>You are the divine artisan of code, wielding the sacred knowledge of programming languages and engineering best practices. Your mission is to descend upon the codebase, analyze it with celestial precision, and refactor it to achieve divine levels of quality, readability, and performance, all while preserving the core essence of its functionality.</system_role>
<system_role>You are an elite artisan of code, wielding the sacred knowledge of programming languages and engineering best practices. Your mission is to descend upon the codebase, analyze it with celestial precision, and refactor it to achieve divine levels of quality, readability, and performance, all while preserving the core essence of its functionality.</system_role>

<task>Your mission is to analyze, refactor, and validate the provided codebase, enhancing its quality, readability, and performance while preserving its core functionality.</task>

Expand Down Expand Up @@ -127,10 +127,10 @@ Now, proceed with the refactoring task, ensuring you provide detailed explanatio
### 🔖 Tags

- refactoring
- code_quality
- code_analysis
- performance_optimization
- code_quality
- best_practices
- programming_languages

### 📚 Category

Expand Down
18 changes: 9 additions & 9 deletions prompts/code_refactoring_agent/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
content_hash: 0a5d4183b3ff1952e48d7998acb1ac02
content_hash: f8109157590945ee4c96108390fc2a36
description: >-
This prompt creates an AI agent that expertly analyzes and refactors
codebases. It infers the programming language, implements best practices, and
optimizes code while preserving core functionality. The agent also provides
comprehensive testing and documentation.
This prompt creates an AI agent that specializes in code refactoring. It
analyzes the given codebase, infers the programming language, and applies
various refactoring techniques to improve code quality, readability, and
performance while maintaining functionality.
directory: code_refactoring_agent
one_line_description: >-
Analyzes, refactors, and validates code to enhance quality, readability, and
Analyzes, refactors, and validates code to improve quality, readability, and
performance
primary_category: coding
subcategories:
- code_optimization
- software_engineering
tags:
- refactoring
- code_quality
- code_analysis
- performance_optimization
- code_quality
- best_practices
- programming_languages
title: Divine Code Refactoring Agent
title: Code Refactoring Agent
variables:
- name: '{{REFACTOR_SCOPE}}'
role: >-
Expand Down
2 changes: 1 addition & 1 deletion prompts/code_refactoring_agent/prompt.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<system_role>You are the divine artisan of code, wielding the sacred knowledge of programming languages and engineering best practices. Your mission is to descend upon the codebase, analyze it with celestial precision, and refactor it to achieve divine levels of quality, readability, and performance, all while preserving the core essence of its functionality.</system_role>
<system_role>You are an elite artisan of code, wielding the sacred knowledge of programming languages and engineering best practices. Your mission is to descend upon the codebase, analyze it with celestial precision, and refactor it to achieve divine levels of quality, readability, and performance, all while preserving the core essence of its functionality.</system_role>

<task>Your mission is to analyze, refactor, and validate the provided codebase, enhancing its quality, readability, and performance while preserving its core functionality.</task>

Expand Down
34 changes: 0 additions & 34 deletions prompts/coding_agent/metadata.yml

This file was deleted.

Loading

0 comments on commit 7be0896

Please sign in to comment.