ai-refresh-prompt-builder 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 6bb1a197bd7484dc8d67835cba49acb31a61cfa8bac2f125a3cb2d6d4247cdb8
4
+ data.tar.gz: 7f1d475c0f99c04b05a898a7d6593d12910301e1f9430345b5a3516ef44dd9ff
5
+ SHA512:
6
+ metadata.gz: 20dfc69def1a1e3e8dbda4fde7aec3b7be5399faa75bae462fe75426de50ff6b4a08f3533e27799301ab87c7e3fc0966dbd4a2afaabb4ff3ce57ce02cf817799
7
+ data.tar.gz: 79dc0469ebf66c466c2440bac615af43c0a7f0044ae2f55a80f667f8f6e60cb103b895fc965ddf913490ae33fe02d90eb3f67009528d1230f163127c88c1b78a
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 AI Refresh
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # AI Refresh Prompt Builder
2
+
3
+ Turn a simple idea into a detailed, ready-to-use prompt for ChatGPT, Claude and Gemini.
4
+
5
+ ```ruby
6
+ require "ai_refresh_prompt_builder"
7
+
8
+ puts AiRefreshPromptBuilder.build(
9
+ "write a product description for handmade soap",
10
+ role: "an expert copywriter",
11
+ tone: "persuasive",
12
+ format: "bullet-points"
13
+ )
14
+
15
+ puts AiRefreshPromptBuilder.template("marketing")
16
+ ```
17
+
18
+ ## What it does
19
+
20
+ - Builds a structured prompt from a plain idea, with optional role, tone and output format
21
+ - Ships 8 ready-made prompt templates: marketing, business, writing, coding, SEO, email, study and social media
22
+
23
+ ## Try it online
24
+
25
+ Free web version (no sign-up): https://huggingface.co/spaces/harryjacks1/ai-prompt-builder
26
+
27
+ Embeddable widget: https://robloxredeemco2-ai.github.io/ai-prompt-builder-widget/
28
+
29
+ ## More from AI Refresh
30
+
31
+ Made by [AI Refresh](https://ai-refresh.com/) — free AI tools, prompts and practical guides.
32
+
33
+ Guide: [How to use ChatGPT effectively](https://ai-refresh.com/ai-guides/how-to-use-chatgpt-effectively/)
34
+
35
+ ## License
36
+
37
+ MIT
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ # AI Refresh Prompt Builder: turn a simple idea into a ready-to-use
4
+ # prompt for ChatGPT, Claude and Gemini.
5
+ #
6
+ # require "ai_refresh_prompt_builder"
7
+ # puts AiRefreshPromptBuilder.build("write a product description for handmade soap")
8
+ #
9
+ # More free AI tools and guides: https://ai-refresh.com/
10
+ module AiRefreshPromptBuilder
11
+ VERSION = "1.0.0"
12
+
13
+ TONES = %w[professional friendly persuasive casual expert].freeze
14
+ FORMATS = %w[paragraph bullet-points step-by-step table short-answer].freeze
15
+
16
+ TEMPLATES = {
17
+ "marketing" => "Write a marketing campaign for [product] aimed at [audience]. Include a headline, three key benefits and a call to action.",
18
+ "business" => "Create a one-page business plan outline for [business idea], covering the problem, solution, target market, revenue model and first three milestones.",
19
+ "writing" => "Write an engaging introduction for an article about [topic], written for [audience] in a [tone] tone.",
20
+ "coding" => "Explain how to [task] in [language] with a short code example and common pitfalls to avoid.",
21
+ "seo" => "Write an SEO meta title (under 60 characters) and meta description (under 155 characters) for a page about [keyword].",
22
+ "email" => "Write a polite follow-up email to [person] about [subject], keeping it under 120 words.",
23
+ "study" => "Explain [concept] in simple words with one real-life example and a 3-question mini quiz at the end.",
24
+ "social" => "Write 5 short social media post ideas about [topic] for [platform], each with a hook in the first line."
25
+ }.freeze
26
+
27
+ # Build a polished prompt from a plain idea.
28
+ def self.build(idea, role: nil, tone: "professional", format: "paragraph")
29
+ parts = []
30
+ parts << "Act as #{role}." if role && !role.empty?
31
+ parts << "Task: #{idea}."
32
+ parts << "Tone: #{tone}."
33
+ parts << "Present the answer in #{format.tr('-', ' ')} format."
34
+ parts << "Be specific and practical. If anything is unclear, state your assumptions first, then give the answer."
35
+ parts.join(" ")
36
+ end
37
+
38
+ def self.template(name)
39
+ TEMPLATES[name.to_s.downcase]
40
+ end
41
+ end
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ai-refresh-prompt-builder
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - AI Refresh
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2026-11-22 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: AI Refresh Prompt Builder turns a simple idea into a detailed, ready-to-use
14
+ prompt for ChatGPT, Claude and Gemini. Choose a tone and output format, add an optional
15
+ role, and get a polished prompt you can copy and use right away. Includes ready-made
16
+ prompt templates for marketing, business, writing, coding and more. Made by AI Refresh
17
+ - free AI tools, prompts and practical guides.
18
+ email:
19
+ - robloxredeemco2@gmail.com
20
+ executables: []
21
+ extensions: []
22
+ extra_rdoc_files: []
23
+ files:
24
+ - LICENSE.txt
25
+ - README.md
26
+ - lib/ai_refresh_prompt_builder.rb
27
+ homepage: https://ai-refresh.com/
28
+ licenses:
29
+ - MIT
30
+ metadata:
31
+ homepage_uri: https://ai-refresh.com/
32
+ source_code_uri: https://github.com/robloxredeemco2-ai/ai-prompt-builder-widget
33
+ documentation_uri: https://ai-refresh.com/ai-guides/how-to-use-chatgpt-effectively/
34
+ post_install_message:
35
+ rdoc_options: []
36
+ require_paths:
37
+ - lib
38
+ required_ruby_version: !ruby/object:Gem::Requirement
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ version: 2.6.0
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ requirements: []
49
+ rubygems_version: 3.4.20
50
+ signing_key:
51
+ specification_version: 4
52
+ summary: Build ready-to-use AI prompts for ChatGPT, Claude and Gemini from a simple
53
+ idea.
54
+ test_files: []