npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@promptforgee/templates

v0.1.4

Published

PromptForge templates package

Readme


Why this package exists

Crafting the perfect system prompt for specific roles (like a Code Reviewer, Security Engineer, or Translator) requires significant trial and error.

@promptforgee/templates provides a library of pre-configured @promptforgee/core Prompt instances. These templates have been highly optimized and battle-tested in production to yield reliable, high-quality responses from leading LLMs. Instead of reinventing the wheel, simply import a template, inject your context, and execute.

Features

  • Plug-and-Play: Import a template and use it immediately.
  • Highly Tuned: Pre-configured with optimal roles, tasks, constraints, and tones.
  • Composable: Templates are Prompt instances, meaning you can chain additional .context() or .constraint() calls to customize them further.
  • Type-safe: Fully integrated with @promptforgee/core.

Installation

# npm
npm install @promptforgee/templates @promptforgee/core

# pnpm
pnpm add @promptforgee/templates @promptforgee/core

# yarn
yarn add @promptforgee/templates @promptforgee/core

# bun
bun add @promptforgee/templates @promptforgee/core

Quick Start

import { FrontendEngineer } from '@promptforgee/templates';
import { MarkdownFormatter } from '@promptforgee/core';

async function generateReactComponent(requirements: string) {
  // 1. Extend the pre-built template
  const myPrompt = FrontendEngineer.context(`Component Requirements: ${requirements}`).constraint(
    'Use Tailwind CSS for styling.',
  );

  // 2. Format it to a string
  const promptString = myPrompt.build(new MarkdownFormatter());

  // 3. Send to LLM...
  console.log(promptString);
}

API Overview

Each export is a pre-configured Prompt builder instance from @promptforgee/core.

| Export | Ideal Use Case | | ------------------ | ----------------------------------------------------------- | | FrontendEngineer | Generating UI components, HTML/CSS, React/Vue code. | | BackendEngineer | Writing server logic, API endpoints, database queries. | | ReactExpert | Highly specialized React development with modern hooks. | | CodeReviewer | Identifying bugs, performance issues, and code smells. | | Teacher | Explaining complex technical concepts clearly to beginners. | | Interviewer | Conducting simulated technical interviews. | | Debugger | Analyzing stack traces and suggesting fixes. | | SecurityEngineer | Auditing code for vulnerabilities (XSS, SQLi, etc.). | | Researcher | Summarizing academic papers or technical documentation. | | Translator | Translating text across spoken or programming languages. | | TechnicalWriter | Generating API documentation, READMEs, and guides. |

Real-world Example

Building a multi-agent CI/CD pipeline step:

import { CodeReviewer, SecurityEngineer } from '@promptforgee/templates';

async function performAutomatedCodeReview(pullRequestDiff: string) {
  // Generate the review prompt
  const reviewPrompt = CodeReviewer.context(`PR Diff:\n${pullRequestDiff}`).build();

  // Generate the security audit prompt
  const securityPrompt = SecurityEngineer.context(`PR Diff:\n${pullRequestDiff}`)
    .constraint('Focus strictly on OWASP Top 10 vulnerabilities.')
    .build();

  // Execute both prompts in parallel via your LLM provider
  const [review, security] = await Promise.all([runLLM(reviewPrompt), runLLM(securityPrompt)]);

  return { review, security };
}

Ecosystem

@promptforgee/templates provides the starting point for your PromptForge workflows.

@promptforgee/templates (You are here) ↓ @promptforgee/core (Customize the template) ↓ @promptforgee/analyzer (Validate your additions) ↓ @promptforgee/optimizer (Optimize the final prompt)

Documentation

For full documentation and advanced usage, visit promptforge.dev/docs/templates.

Examples

Check out our Examples directory for more real-world use cases.

Roadmap

  • 🚧 DataScientist template for pandas/numpy data manipulation.
  • 🚧 DevOpsEngineer template for Docker/Kubernetes/Terraform configurations.
  • 🚧 Domain-specific templates (e.g., Legal Assistant, Financial Analyst).

Contributing

We welcome contributions! Please read our Contributing Guide to get started.

License

MIT © Omnikon-Org