@esreekarreddy/ai-prompts 1.0.0 → 1.0.1
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.
- package/README.md +24 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,6 +45,30 @@ AI assistants are powerful, but they're only as good as the prompts you give the
|
|
|
45
45
|
|
|
46
46
|
## Quick Start
|
|
47
47
|
|
|
48
|
+
### 📦 Usage as npm Package (Best for Developers)
|
|
49
|
+
|
|
50
|
+
Install the library to use prompts programmatically in your own tools:
|
|
51
|
+
|
|
52
|
+
```bash
|
|
53
|
+
npm install @esreekarreddy/ai-prompts
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
```typescript
|
|
57
|
+
import { getPrompt, searchPrompts, composePrompts } from '@esreekarreddy/ai-prompts';
|
|
58
|
+
|
|
59
|
+
// 1. Get a specific prompt
|
|
60
|
+
const prd = getPrompt('prd-generator');
|
|
61
|
+
console.log(prd.content);
|
|
62
|
+
|
|
63
|
+
// 2. Search for prompts
|
|
64
|
+
const securityPrompts = searchPrompts('security');
|
|
65
|
+
|
|
66
|
+
// 3. Compose a custom prompt with modifiers
|
|
67
|
+
const complexTask = composePrompts(['prd-generator', 'ultrathink', 'security-first']);
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### 🖥️ Usage as MCP Server (Best for Cursor/Claude)
|
|
71
|
+
|
|
48
72
|
### 1. Clone & Build
|
|
49
73
|
|
|
50
74
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esreekarreddy/ai-prompts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "94+ curated AI prompts, workflows, and coding standards for developers. Battle-tested templates for PRDs, debugging, security audits, code reviews, and more.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|