Skip to content
This repository was archived by the owner on Jun 27, 2025. It is now read-only.

Commit 1b2c586

Browse files
Add some new prompts
1 parent ed0305d commit 1b2c586

File tree

12 files changed

+166
-20
lines changed

12 files changed

+166
-20
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@
1818
/tools_vector_store/tools.db
1919
/tools_vector_store/chroma_db/
2020
/docker-mcp-server.out
21+
/**/.DS_Store

graphs/prompts/.DS_Store

-6 KB
Binary file not shown.

prompts/examples/claude_resources.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
description: Examples for creating resources in Claude Desktop
3+
model: claude-3-5-sonnet-20241022
4+
tools:
5+
- name: append-insight
6+
description: Add a business insight to the memo
7+
parameters:
8+
type: object
9+
properties:
10+
insight:
11+
type: string
12+
description: Business insight discovered from data analysis
13+
container:
14+
image: vonwig/bash_alpine
15+
command:
16+
- "-c"
17+
- "echo '{{insight|safe}}' >> /mcp/insights.txt"
18+
volumes:
19+
- "mcp-test:/mcp"
20+
prompt-format: django
21+
---
22+
23+
# prompt user
24+
25+
Add a business insight of 'some great data'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
tools:
3+
- name: imagemagick
4+
---
5+
6+
# prompt user
7+
8+
Use Imagemagick to convert the prompts/examples/imagemagick/*.svg files into a png images.
9+

prompts/examples/jq.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
tools:
3+
- name: qrencode
4+
---
5+
6+
# Prompt user
7+
8+
Read the man page for qrencode
9+
10+
Now construct a large QR Code in svg format for the url `https://www.docker.com` and save it to a file named docker.svg
11+

prompts/examples/mcp-filesystem.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
model: claude-3-5-sonnet-20241022
3+
tools:
4+
- name: read_file
5+
description: |
6+
read a file from disk
7+
Read the complete contents of a file from the file system.
8+
Handles various text encodings and provides detailed error messages
9+
if the file cannot be read. Use this tool when you need to examine
10+
the contents of a single file. Only works within allowed directories.
11+
parameters:
12+
type: object
13+
properties:
14+
path:
15+
type: string
16+
container:
17+
image: vonwig/bash_alpine
18+
entrypoint: cat
19+
command:
20+
- "{{path|safe}}"
21+
- name: write_file
22+
description: |
23+
Create a new file or completely overwrite an existing file with new content.
24+
Use with caution as it will overwrite existing files without warning.
25+
Handles text content with proper encoding. Only works within allowed directories.
26+
parameters:
27+
type: object
28+
properties:
29+
path:
30+
type: string
31+
content:
32+
type: string
33+
container:
34+
image: vonwig/bash_alpine
35+
command:
36+
- "-c"
37+
- "echo {{content|safe}} > {{path|safe}}"
38+
---
39+
40+
# prompt user
41+
42+
read the file deps.edn and then write the string "blah.txt" into the file test.txt

prompts/examples/mcp-sqlite.md

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,48 @@
11
---
2-
description: |
3-
A prompt to seed the database with initial data and demonstrate what you can do with an SQLite MCP Server + Claude
2+
description: A prompt to seed the database with initial data and demonstrate what you can do with an SQLite MCP Server + Claude
43
model: claude-3-5-sonnet-20241022
54
tools:
65
- name: read-query
76
description: Execute a SELECT query on the SQLite database
8-
parameters: &query
7+
parameters:
98
type: object
109
properties:
1110
query:
1211
type: string
1312
description: SELECT SQL query to execute
14-
container: &sqlite
15-
image: vonwig/sqlite:latest
13+
container: &sqlite-container
14+
image: &sqlite-image vonwig/sqlite:latest
1615
command:
17-
- "/mcp/test1.db"
16+
- &db "/mcp/test1.db"
1817
- "{{query|safe}}"
19-
mounts: &mounts
18+
volumes: &mounts
2019
- "mcp-test:/mcp"
2120
- name: write-query
2221
description: Execute an INSERT, UPDATE, or DELETE query on the SQLite database
23-
parameters: *query
24-
container: *sqlite
22+
parameters:
23+
type: object
24+
properties:
25+
query:
26+
type: string
27+
description: SQL query to execute
28+
container: *sqlite-container
2529
- name: create-table
2630
description: Create a new table in the SQLite database
27-
parameters: *query
28-
container: *sqlite
31+
parameters:
32+
type: object
33+
properties:
34+
query:
35+
type: string
36+
description: CREATE TABLE SQL statement
37+
container: *sqlite-container
2938
- name: list-tables
3039
description: List all tables in the SQLite database
3140
container:
32-
image: vonwig/sqlite:latest
41+
image: *sqlite-image
3342
command:
34-
- "/mcp/test1.db"
43+
- *db
3544
- "SELECT name from sqlite_master WHERE type='table'"
36-
mounts: *mounts
45+
volumes: *mounts
3746
- name: describe-table
3847
description: Get the schema information for a specific table
3948
parameters:
@@ -43,11 +52,11 @@ tools:
4352
type: string
4453
description: Name of the table to describe
4554
container:
46-
image: vonwig/sqlite:latest
55+
image: *sqlite-image
4756
command:
48-
- "/mcp/test1.db"
57+
- *db
4958
- "PRAGMA table_info({{table_name}})"
50-
mounts: *mounts
59+
volumes: *mounts
5160
- name: append-insight
5261
description: Add a business insight to the memo
5362
parameters:
@@ -61,7 +70,7 @@ tools:
6170
command:
6271
- "-c"
6372
- "echo '{{insight|safe}}' >> /mcp/insights.txt"
64-
mounts: *mounts
73+
volumes: *mounts
6574
prompt-format: django
6675
parameter-values:
6776
topic: Ocean Conservation
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
description: Add a new capability to your desktop
3+
tools:
4+
- name: curl
5+
prompt-format: django
6+
parameter-values:
7+
image: mcp/puppeteer
8+
---
9+
10+
# prompt user
11+
12+
Use curl and the dockerhub api to fetch the full_description for the {{image}} image.
13+
Then read the full description and just extract the json definition for how to configure it.

prompts/examples/ollama.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
extractors:
3+
- name: project-facts
4+
url: http://host.docker.internal:11434/v1/chat/completions
5+
model: llama3.2
6+
stream: false
7+
---
8+
9+
# Example prompt
10+
Use top-level markdown headers to separate your markdown file into blocks. Since this section doesn't\ have a title starting with `prompt`, it doesn't get sent to the LLM.
11+
12+
# Prompt system
13+
You are an assistant who can write comedic monologues in the style of Stephen Colbert.
14+
15+
# Prompt user
16+
Tell me about my project.
17+
18+
My project uses the following languages:
19+
{{project-facts.languages}}

prompts/examples/update-nix.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
mcp:
3+
- mcp/fetch
4+
- mcp/filesystem
5+
model: claude-3-5-sonnet-20241022
6+
---
7+
8+
# prompt user
9+
10+
My nix configuration is at /Users/slim/slimslenderslacks/nixos-config.
11+
12+
My home manager configuration is at the relative path ./users/slim/home-manager.nix.
13+
14+
Read and then update the flake.nix in the root of this project to add an input for ghostty.
15+
Use the content at https://www.reddit.com/r/NixOS/s/7qH6JhQNF to figure out how to do this.
16+
17+
Ready and then update my home manager configuration to add ghostty to my default profile.

0 commit comments

Comments
 (0)