Skip to content
Agentmart
Submit a tool

prompt-engineering-patterns

Generate optimized LLM prompts using chain-of-thought, ReAct, and other scientific reasoning patterns

Skill by lamm-mit

IndexedApache-2.0★ 250
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/lamm-mit-prompt-engineering-patterns

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Generate optimized LLM prompts using chain-of-thought, ReAct, and other scientific reasoning patterns

Use cases: frontend, ml, research, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/prompt-engineering-patterns

What's inside

Skill name
prompt-engineering-patterns
Description
Generate optimized LLM prompts using chain-of-thought, ReAct, and other scientific reasoning patterns
License
Apache-2.0
Instructions
45 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Agent Skills spec issues

  • metadata: must be a key/value mapping

Files (3)

  • SKILL.md
  • prompt_optimize.cpython-313.pyc · scripts/__pycache__/
  • prompt_optimize.py · scripts/

SKILL.md (first lines)

## Overview

Advanced LLM prompt optimization patterns for scientific reasoning: chain-of-thought, tree-of-thought, few-shot learning, ReAct, and self-consistency. Generates optimized prompts tailored to scientific investigation tasks and specific domains (biology, chemistry, materials, etc.).

Use this tool to construct better prompts before querying an LLM, ensuring rigorous scientific reasoning, hypothesis generation, and evidence-based conclusions.

## Usage

```bash
# Generate a chain-of-thought prompt for a biology task
python3 skills/prompt-engineering-patterns/scripts/prompt_optimize.py \
  --task "Identify potential drug targets for Alzheimer's disease" \
  --pattern chain-of-thought \
  --domain biology

# Generate a ReAct prompt for tool-using agents
python3 skills/prompt-engineering-patterns/scripts/prompt_optimize.py \
  --task "Predict BBB permeability of novel kinase inhibitors" \
  --pattern react \
  --domain chemistry

# Generate a tree-of-thought prompt
python3 skills/prompt-engineering-patterns/scripts/prompt_optimize.py \
  --task "Evaluate CRISPR delivery mechanisms" \
  --pattern tree-of-thought

# Generate few-shot prompt for a specific scientific task
python3 skills/prompt-engineering-patterns/scripts/prompt_optimize.py \
  --task "Classify protein-protein interactions from sequence features" \
  --pattern few-shot \
  --domain biology
```

## Output Format

```json
{
  "pattern": "chain-of-thought",
  "task": "Identify potential drug targets for Alzheimer's disease",
  "optimized_prompt": "You are an expert computational biologist...\n\nTask: Identify potential drug targets for Alzheimer's disease\n\nLet's think through this step by step:\n1. First, consider the molecular mechanisms...",
  "explanation": "Chain-of-thought prompting elicits step-by-step reasoning, improving accuracy on complex scientific tasks by up to 40% compared to direct answering."
}
```

From lamm-mit/scienceclaw, Apache-2.0.

More from lamm-mit/scienceclaw

Signals

Stars
250
Forks
47
Open issues
1
Last commit (this folder)
Mar 14, 2026 (7 months ago)
Last release
Jun 23, 2026 (4 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from lamm-mit

Cite this page

prompt-engineering-patterns skill. Agent Mart. https://agentmart.dev/skills/lamm-mit-prompt-engineering-patterns (last updated 2026-10-24)