Loading...
Loading...
Compare original and translation side by side
Skill by ara.so — Daily 2026 Skills collection.
由ara.so开发的技能工具——属于Daily 2026 Skills合集。
prompt.mdrepo layout
├── prompt.md ← the system prompt (main artifact)
├── CHANGELOG.md ← rule history
├── CONTRIBUTING.md ← how to add rules
└── TEST_RESULTS.md ← before/after comparisonsprompt.md仓库结构
├── prompt.md ← 核心系统提示词(主要产物)
├── CHANGELOG.md ← 规则更新历史
├── CONTRIBUTING.md ← 规则添加指南
└── TEST_RESULTS.md ← 优化前后对比结果git clone https://github.com/hexiecs/talk-normal.git
cd talk-normalgit clone https://github.com/hexiecs/talk-normal.git
cd talk-normalcat prompt.mdcat prompt.mdprompt.md.cursorrulessystemprompt.md.cursorrulessystemimport os
from pathlib import Path
from openai import OpenAI
client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
system_prompt = Path("prompt.md").read_text()
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[
{"role": "system", "content": system_prompt},
{"role": "user", "content": "What is Python?"},
],
)
print(response.choices[0].message.content)import os
from pathlib import Path
from openai import OpenAI
client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
system_prompt = Path("prompt.md").read_text()
response = client.chat.completions.create(
model="gpt-4o-mini",
messages=[
{"role": "system", "content": system_prompt},
{"role": "user", "content": "What is Python?"},
],
)
print(response.choices[0].message.content)SYSTEM=$(cat prompt.md | jq -Rs .)
curl https://api.openai.com/v1/chat/completions \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d "{
\"model\": \"gpt-4o-mini\",
\"messages\": [
{\"role\": \"system\", \"content\": $SYSTEM},
{\"role\": \"user\", \"content\": \"What is Python?\"}
]
}"SYSTEM=$(cat prompt.md | jq -Rs .)
curl https://api.openai.com/v1/chat/completions \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d "{
\"model\": \"gpt-4o-mini\",
\"messages\": [
{\"role\": \"system\", \"content\": $SYSTEM},
{\"role\": \"user\", \"content\": \"What is Python?\"}
]
}"import os
from pathlib import Path
import anthropic
client = anthropic.Anthropic(api_key=os.environ["ANTHROPIC_API_KEY"])
system_prompt = Path("prompt.md").read_text()
message = client.messages.create(
model="claude-opus-4-5",
max_tokens=1024,
system=system_prompt,
messages=[{"role": "user", "content": "Explain Docker in one paragraph."}],
)
print(message.content[0].text)import os
from pathlib import Path
import anthropic
client = anthropic.Anthropic(api_key=os.environ["ANTHROPIC_API_KEY"])
system_prompt = Path("prompt.md").read_text()
message = client.messages.create(
model="claude-opus-4-5",
max_tokens=1024,
system=system_prompt,
messages=[{"role": "user", "content": "Explain Docker in one paragraph."}],
)
print(message.content[0].text)import os
from pathlib import Path
import google.generativeai as genai
genai.configure(api_key=os.environ["GEMINI_API_KEY"])
system_prompt = Path("prompt.md").read_text()
model = genai.GenerativeModel(
model_name="gemini-1.5-flash",
system_instruction=system_prompt,
)
response = model.generate_content("What is a neural network?")
print(response.text)import os
from pathlib import Path
import google.generativeai as genai
genai.configure(api_key=os.environ["GEMINI_API_KEY"])
system_prompt = Path("prompt.md").read_text()
model = genai.GenerativeModel(
model_name="gemini-1.5-flash",
system_instruction=system_prompt,
)
response = model.generate_content("What is a neural network?")
print(response.text)SYSTEM=$(cat prompt.md)
ollama run llama3 \
--system "$SYSTEM" \
"What is a REST API?"import subprocess, json
from pathlib import Path
system_prompt = Path("prompt.md").read_text()
result = subprocess.run(
["ollama", "run", "llama3"],
input=f"SYSTEM: {system_prompt}\nUSER: What is a REST API?",
capture_output=True, text=True,
)
print(result.stdout)SYSTEM=$(cat prompt.md)
ollama run llama3 \
--system "$SYSTEM" \
"What is a REST API?"import subprocess, json
from pathlib import Path
system_prompt = Path("prompt.md").read_text()
result = subprocess.run(
["ollama", "run", "llama3"],
input=f"SYSTEM: {system_prompt}\nUSER: What is a REST API?",
capture_output=True, text=True,
)
print(result.stdout)undefinedundefined
Usage:
```bash
source ~/.bashrc
asknormal "What is the CAP theorem?"
使用方法:
```bash
source ~/.bashrc
asknormal "What is the CAP theorem?".cursorrules.cursorrulesundefinedundefinedundefinedundefinedimport os
from pathlib import Path
from openai import OpenAI
client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
system_prompt = Path("talk-normal/prompt.md").read_text()
assistant = client.beta.assistants.create(
name="Normal Assistant",
instructions=system_prompt,
model="gpt-4o-mini",
)
print(f"Assistant ID: {assistant.id}")import os
from pathlib import Path
from openai import OpenAI
client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
system_prompt = Path("talk-normal/prompt.md").read_text()
assistant = client.beta.assistants.create(
name="Normal Assistant",
instructions=system_prompt,
model="gpt-4o-mini",
)
print(f"Assistant ID: {assistant.id}")from pathlib import Path
talk_normal = Path("talk-normal/prompt.md").read_text()
your_rules = """
You are a senior backend engineer. Answer questions about Python, Go, and distributed systems.
"""
combined_system = f"{talk_normal}\n\n---\n\n{your_rules}"from pathlib import Path
talk_normal = Path("talk-normal/prompt.md").read_text()
your_rules = """
你是一名资深后端工程师,请回答关于Python、Go和分布式系统的问题。
"""
combined_system = f"{talk_normal}\n\n---\n\n{your_rules}"def verbosity_ratio(before: str, after: str) -> float:
"""Returns fraction of original length kept (lower = more concise)."""
return len(after) / len(before)
before = "Python is a high-level, interpreted programming language known for its readability..." # 1583 chars
after = "Python is a high-level, interpreted language known for readability..." # 513 chars
print(f"{verbosity_ratio(before, after):.0%} of original length") # → 32%def verbosity_ratio(before: str, after: str) -> float:
"""返回保留的原文本长度比例(值越小表示越简洁)。"""
return len(after) / len(before)
before = "Python is a high-level, interpreted programming language known for its readability..." # 1583个字符
after = "Python is a high-level, interpreted language known for readability..." # 513个字符
print(f"{verbosity_ratio(before, after):.0%} of original length") # → 32%import os
from pathlib import Path
from openai import OpenAI
client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
system_prompt = Path("talk-normal/prompt.md").read_text()
question = "What is Kubernetes?"
def ask(system: str | None, user: str) -> str:
messages = []
if system:
messages.append({"role": "system", "content": system})
messages.append({"role": "user", "content": user})
resp = client.chat.completions.create(model="gpt-4o-mini", messages=messages)
return resp.choices[0].message.content
without = ask(None, question)
with_prompt = ask(system_prompt, question)
print(f"Without: {len(without)} chars")
print(f"With: {len(with_prompt)} chars")
print(f"Reduction: {(1 - len(with_prompt)/len(without)):.0%}")import os
from pathlib import Path
from openai import OpenAI
client = OpenAI(api_key=os.environ["OPENAI_API_KEY"])
system_prompt = Path("talk-normal/prompt.md").read_text()
question = "What is Kubernetes?"
def ask(system: str | None, user: str) -> str:
messages = []
if system:
messages.append({"role": "system", "content": system})
messages.append({"role": "user", "content": user})
resp = client.chat.completions.create(model="gpt-4o-mini", messages=messages)
return resp.choices[0].message.content
without = ask(None, question)
with_prompt = ask(system_prompt, question)
print(f"无提示词:{len(without)}个字符")
print(f"有提示词:{len(with_prompt)}个字符")
print(f"精简比例:{(1 - len(with_prompt)/len(without)):.0%}")undefinedundefined
---
---git checkout -b rule/no-em-dashesprompt.mdCHANGELOG.mdundefinedgit checkout -b rule/no-em-dashesprompt.mdCHANGELOG.mdundefined
---
---| Symptom | Fix |
|---|---|
| Model still uses bullet points | Ensure the system prompt is in the |
| Prompt too long for context window | Use a smaller model or trim older messages; |
| Ollama ignores system prompt | Some quantized models have weak instruction-following; try |
| Rules conflict with your own system prompt | Put talk-normal rules first; add |
| Response is too terse / lost information | The prompt reduces filler, not facts — file an issue with a reproduction case |
| 症状 | 解决方法 |
|---|---|
| 模型仍使用项目符号 | 确保系统提示词放在 |
| 提示词过长超出上下文窗口 | 使用更小的模型或修剪历史消息; |
| Ollama忽略系统提示词 | 部分量化模型的指令遵循能力较弱;尝试使用 |
| 规则与自定义系统提示词冲突 | 将talk-normal规则放在前面;在冲突规则前添加 |
| 回应过于简洁/丢失信息 | 提示词仅去除冗余内容,不会丢失事实;提交Issue并附上复现案例 |
prompt.mdsystempip installprompt.mdsystempip install