Skip to content

Add prompting frameworks guide and expand prompt documentation#1073

Open
Krosebrook wants to merge 404 commits intof:mainfrom
Krosebrook:claude/update-prompting-frameworks-lhcXg
Open

Add prompting frameworks guide and expand prompt documentation#1073
Krosebrook wants to merge 404 commits intof:mainfrom
Krosebrook:claude/update-prompting-frameworks-lhcXg

Conversation

@Krosebrook
Copy link
Copy Markdown

@Krosebrook Krosebrook commented Mar 14, 2026

Description

This PR adds comprehensive documentation for prompt engineering frameworks and expands the existing prompt collection:

  • New file: PROMPTING-FRAMEWORKS.md - A detailed guide covering 15 popular prompting frameworks (RTF, RISEN, CO-STAR, CRISPE, APE, RACE, ROSES, RASCEF, Chain of Thought, TAG, SPADE, SCAMPER, CLEAR, AIDA, and PREP) with templates and practical examples for each
  • Updated: PROMPTS.md - Significantly expanded with additional prompt content and examples
  • Updated: prompts.csv - Extended prompt collection with new entries
  • Updated: README.md - Added references to the new frameworks guide

Type of Change

  • Bug fix
  • Documentation update
  • Other (please describe):

⚠️ Want to Add a New Prompt?

Please don't edit prompts.csv directly!

Instead, visit prompts.chat and:

  1. Login with GitHub - Click the login button and authenticate with your GitHub account
  2. Create your prompt - Use the prompt editor to add your new prompt
  3. Submit - Your prompt will be reviewed and a GitHub Action will automatically create a commit on your behalf

This ensures proper attribution, formatting, and keeps the repository in sync. You'll also appear on the Contributors page!


Additional Notes

The new PROMPTING-FRAMEWORKS.md file provides a valuable resource for users looking to improve their prompt engineering skills with well-documented, battle-tested frameworks and real-world examples.

https://claude.ai/code/session_015H9AvSBVn9EtEPV9Ccz72u

Summary by CodeRabbit

  • Documentation
    • Added a comprehensive Prompting Frameworks Guide covering 15 prompt-engineering frameworks with a table of contents, standardized prompt templates, and three copy-pastable examples per framework.
    • Added a framework-selection guide mapping frameworks to recommended use cases and relative complexity, plus general prompt-design tips and a curated resources list.
    • Added a link to the new guide from the main README.

giorgiop and others added 30 commits January 18, 2026 03:37
Co-authored-by: thanos0000@gmail.com <thanos0000@gmail.com@users.noreply.github.com>
Co-authored-by: gem00cem@gmail.com <gem00cem@gmail.com@users.noreply.github.com>
Copilot AI review requested due to automatic review settings March 14, 2026 01:56
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 14, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: af365d41-009f-461a-ba86-c178ff36bf47

📥 Commits

Reviewing files that changed from the base of the PR and between bd1574d and b76e0a6.

📒 Files selected for processing (1)
  • PROMPTING-FRAMEWORKS.md
✅ Files skipped from review due to trivial changes (1)
  • PROMPTING-FRAMEWORKS.md

📝 Walkthrough

Walkthrough

Adds a new documentation guide, PROMPTING-FRAMEWORKS.md, cataloging 15 prompt-engineering frameworks with templates, three examples each, a framework-selection table, tips, and resources; also updates README.md to link to the new guide.

Changes

Cohort / File(s) Summary
Prompting Frameworks Guide
PROMPTING-FRAMEWORKS.md
New, documentation-only file: structured guide covering 15 prompt-engineering frameworks, TOC with anchored sections, standardized prompt templates, three copy-pastable examples per framework, a framework-selection table, general tips, and resources.
Documentation Index
README.md
Added a brief link/line referencing the new "Prompting Frameworks Guide" (PROMPTING-FRAMEWORKS.md). Documentation-only change; no code or API modifications.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇 I hop through prompts with steady cheer,
Fifteen frameworks now gathered here,
Templates tight and examples bright,
Tips to guide each prompting flight,
A rabbit’s nibble — short and clear 🥕

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and accurately describes the main changes: adding a new prompting frameworks guide document and expanding existing prompt documentation.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new PROMPTING-FRAMEWORKS.md file documenting 15 prompt engineering frameworks with templates and examples, and adds a link to it from the README.

Changes:

  • New PROMPTING-FRAMEWORKS.md with 15 prompting frameworks (RTF, RISEN, CO-STAR, CRISPE, APE, RACE, ROSES, RASCEF, Chain of Thought, TAG, BAB, CARE, SCAMPER, TRACE, ERA), each with a template and 3 practical examples, plus a selection guide and tips
  • Updated README.md with a link to the new frameworks guide

Reviewed changes

Copilot reviewed 2 out of 4 changed files in this pull request and generated 3 comments.

File Description
README.md Added a link to the new PROMPTING-FRAMEWORKS.md guide
PROMPTING-FRAMEWORKS.md New comprehensive guide covering 15 prompting frameworks with templates, examples, and a selection guide

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +131 to +137
```json
POST /api/v1/users
{
"email": "user@example.com",
"password": "securePassword123"
}
```
Comment on lines +602 to +607
```yaml
name: CI/CD Pipeline
on:
push:
branches: [main, develop]
```
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
PROMPTING-FRAMEWORKS.md (1)

35-1212: Consider adding language specifiers to fenced code blocks.

The framework templates in code blocks currently lack language specifiers, which triggers markdown linting warnings. While these blocks contain prompt templates rather than programming code, adding a language identifier would improve markdown compliance and accessibility.

Consider adding text or markdown as the language identifier:

```text
**Role:** [Who should the AI act as]
**Task:** [What you want the AI to do]
**Format:** [How the output should be structured]
```

This applies to template blocks throughout the document (69 instances flagged by markdownlint).

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@PROMPTING-FRAMEWORKS.md` around lines 35 - 1212, The fenced template code
blocks (those starting with ``` and containing lines like "**Role:**",
"**Task:**", "**Format:**" and the RISEN/CO-STAR/etc. examples) lack language
specifiers and trigger markdownlint; update each template code block (all
instances of the triple-backtick blocks that contain the prompt templates) to
use a language identifier such as ```text or ```markdown so linting passes and
accessibility improves; ensure you update every occurrence (~69 instances
flagged) consistently across the document while preserving the exact block
content.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@PROMPTING-FRAMEWORKS.md`:
- Around line 35-1212: The fenced template code blocks (those starting with ```
and containing lines like "**Role:**", "**Task:**", "**Format:**" and the
RISEN/CO-STAR/etc. examples) lack language specifiers and trigger markdownlint;
update each template code block (all instances of the triple-backtick blocks
that contain the prompt templates) to use a language identifier such as ```text
or ```markdown so linting passes and accessibility improves; ensure you update
every occurrence (~69 instances flagged) consistently across the document while
preserving the exact block content.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b5a49115-00da-4aa8-8809-fb23ff251095

📥 Commits

Reviewing files that changed from the base of the PR and between 7807588 and 91b973a.

⛔ Files ignored due to path filters (1)
  • prompts.csv is excluded by !**/*.csv
📒 Files selected for processing (3)
  • PROMPTING-FRAMEWORKS.md
  • PROMPTS.md
  • README.md

@Krosebrook
Copy link
Copy Markdown
Author

@copilot open a new pull request to apply changes based on the comments in this thread

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (2)
PROMPTING-FRAMEWORKS.md (2)

85-86: Source or soften specific factual claims about framework origins/awards.

Statements like “Created by …” and “won … competition” should include a citation (or be reworded as “often attributed to”) to keep the guide durable and verifiable.

Also applies to: 176-177

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@PROMPTING-FRAMEWORKS.md` around lines 85 - 86, Replace definitive
origin/award claims in PROMPTING-FRAMEWORKS.md—e.g., the sentence fragment
"Created by Kyle Balmer." and any "won … competition" claims (also present
around lines 176-177)—with either a concise citation to a reliable source or a
softened phrasing such as "often attributed to Kyle Balmer" or "reported to have
won [competition]" and add an inline reference note or footnote; ensure the
exact phrases "Created by Kyle Balmer." and the award wording are updated so
every factual claim is either sourced or clearly hedged.

35-1211: Add language identifiers to fenced code blocks to resolve MD040 warnings.

Most fenced blocks use plain triple backticks without a language, which triggers markdownlint repeatedly and hurts editor rendering consistency.

Suggested pattern
-```
+```text
 **Role:** [Who should the AI act as]
 **Task:** [What you want the AI to do]
 **Format:** [How the output should be structured]
-```
+```

Apply this consistently to all prompt-template/example fences (or use markdown where you want nested markdown highlighting).

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@PROMPTING-FRAMEWORKS.md` around lines 35 - 1211, The markdown contains many
fenced code blocks (e.g., the block beginning with "**Role:** [Who should the AI
act as]" and all example/templates like RISEN, CO-STAR, etc.) that lack language
identifiers and trigger markdownlint MD040; update every triple-backtick fence
to include an explicit language token (use "text" for plain prompt templates or
"markdown" where nested markdown highlighting is desired) so all examples and
template fences are consistent, then re-run linting to confirm MD040 is resolved
across the document.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@PROMPTING-FRAMEWORKS.md`:
- Around line 418-450: Add an explicit safety disclaimer to the financial
planning and medical examples by inserting a short “Informational only — consult
a licensed professional” note matching the legal example’s pattern;
specifically, append a one-sentence disclaimer after the Expectations block in
the CFP example (the "**Role:** You are a Certified Financial Planner (CFP)..."
/ savings framework) and after the Medical Research Synthesis example (the
"**Role:** You are a clinical researcher..." block), and apply the same change
to the duplicate block referenced at lines 1145-1163 so both examples include
the explicit safety disclaimer.

---

Nitpick comments:
In `@PROMPTING-FRAMEWORKS.md`:
- Around line 85-86: Replace definitive origin/award claims in
PROMPTING-FRAMEWORKS.md—e.g., the sentence fragment "Created by Kyle Balmer."
and any "won … competition" claims (also present around lines 176-177)—with
either a concise citation to a reliable source or a softened phrasing such as
"often attributed to Kyle Balmer" or "reported to have won [competition]" and
add an inline reference note or footnote; ensure the exact phrases "Created by
Kyle Balmer." and the award wording are updated so every factual claim is either
sourced or clearly hedged.
- Around line 35-1211: The markdown contains many fenced code blocks (e.g., the
block beginning with "**Role:** [Who should the AI act as]" and all
example/templates like RISEN, CO-STAR, etc.) that lack language identifiers and
trigger markdownlint MD040; update every triple-backtick fence to include an
explicit language token (use "text" for plain prompt templates or "markdown"
where nested markdown highlighting is desired) so all examples and template
fences are consistent, then re-run linting to confirm MD040 is resolved across
the document.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7bd3c82b-2bd7-4cf9-9038-ec6e35029643

📥 Commits

Reviewing files that changed from the base of the PR and between 91b973a and e25c41b.

📒 Files selected for processing (1)
  • PROMPTING-FRAMEWORKS.md

- Add disclaimers to financial planning and medical examples
- Soften 'Created by' to 'Often attributed to' for RISEN framework
- Change 'won' to 'reportedly won' for CO-STAR competition claim

Addresses CodeRabbit review comments.
Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick comments (1)
PROMPTING-FRAMEWORKS.md (1)

35-35: Add language identifiers to fenced code blocks to satisfy markdown lint.

All fenced blocks are missing a language tag (MD040), which can fail docs CI. Use text (or markdown where appropriate) consistently.

Suggested pattern (apply globally)
-```
+```text
 **Role:** [Who should the AI act as]
 **Task:** [What you want the AI to do]
 **Format:** [How the output should be structured]
</details>


Also applies to: 43-43, 53-53, 67-67, 89-89, 99-99, 118-118, 147-147, 180-180, 191-191, 211-211, 230-230, 258-258, 268-268, 288-288, 306-306, 332-332, 340-340, 354-354, 369-369, 391-391, 400-400, 417-417, 436-436, 464-464, 474-474, 495-495, 516-516, 545-545, 556-556, 587-587, 622-622, 660-660, 667-667, 684-684, 700-700, 737-737, 763-763, 771-771, 786-786, 806-806, 829-829, 837-837, 851-851, 865-865, 887-887, 896-896, 908-908, 921-921, 947-947, 961-961, 1004-1004, 1047-1047, 1098-1098, 1108-1108, 1127-1127, 1146-1146, 1179-1179, 1187-1187, 1197-1197, 1207-1207

<details>
<summary>🤖 Prompt for AI Agents</summary>

Verify each finding against the current code and only fix it if needed.

In @PROMPTING-FRAMEWORKS.md at line 35, The markdown file
PROMPTING-FRAMEWORKS.md has many fenced code blocks missing language identifiers
(MD040); update each triple-backtick block to include a language tag — use
text for plain examples or markdown where the block contains markdown —
following the suggested pattern (e.g., the Role/Task/Format examples); apply
this change consistently to all indicated fenced blocks so CI lint no longer
flags MD040.


</details>

</blockquote></details>

</blockquote></details>

<details>
<summary>🤖 Prompt for all review comments with AI agents</summary>

Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @PROMPTING-FRAMEWORKS.md:

  • Line 35: The markdown file PROMPTING-FRAMEWORKS.md has many fenced code blocks
    missing language identifiers (MD040); update each triple-backtick block to
    include a language tag — use text for plain examples or markdown where the
    block contains markdown — following the suggested pattern (e.g., the
    Role/Task/Format examples); apply this change consistently to all indicated
    fenced blocks so CI lint no longer flags MD040.

</details>

---

<details>
<summary>ℹ️ Review info</summary>

<details>
<summary>⚙️ Run configuration</summary>

**Configuration used**: Organization UI

**Review profile**: CHILL

**Plan**: Pro

**Run ID**: `a7b07518-40e8-40dd-b550-8ae3b12b3c2c`

</details>

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between e25c41b07b8eaf690a30d03c5cb7af419ee1b7fc and bd1574d5cce2f8abf9af538e1102e27f8f97595d.

</details>

<details>
<summary>📒 Files selected for processing (1)</summary>

* `PROMPTING-FRAMEWORKS.md`

</details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

Addresses MD040 markdown lint warning for missing language specifiers.
Copy link
Copy Markdown
Author

@Krosebrook Krosebrook left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.

@Krosebrook
Copy link
Copy Markdown
Author

@copilot apply changes based on the comments in this thread

@f
Copy link
Copy Markdown
Owner

f commented Apr 11, 2026

Well, we don't update prompts.csv and prompts.md directly. You must use prompts.chat to create prompts. These are only mirrors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.