Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use this skill when the user wants to optimize, modify, or improve the system prompt of an AI agent. This includes requests like 'optimize the prompt', 'make the AI more focused on X', 'change the system prompt', 'improve the agent behavior', or 'modify how the AI responds'.
.claude/skills/wecode-ai-prompt-optimization-skill/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-11 | ✓→✗ | ▼ Worse | 42% | 0% |
| case-13 | ✓→✗ | ▼ Worse | -39% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 34% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 52% | 0% |
| case-06 | ✓→✓ | = Same ✓ | 393% | 0% |
This skill allows you to view and modify the system prompts of the current AI agent (Team).
get_team_prompt() — Get the current prompt and source mapping for the teamsubmit_prompt_changes(changes) — Send optimized prompts to the user for reviewCall get_team_prompt(). It returns:
team_id: The team's database IDassembled_prompt: The full assembled promptsources: Array of prompt sources, each with:type: "ghost" (base prompt) or "member" (team member prompt)id: Resource ID (Ghost ID or Team ID)name: Display name (Ghost name or Bot name)field: Field name (e.g., "systemPrompt" or "prompt")content: The actual prompt textindex: Member index (only for "member" type)Based on the user's request, determine which source(s) need modification:
ghost sourcemember sourceRules:
Call submit_prompt_changes(changes=[...]) with your changes. Each change must include:
json{ "type": "ghost", // or "member" "id": 561, // from source.id "name": "Ghost名称", // from source.name, used for display "field": "systemPrompt", // from source.field "original": "原始内容", // from source.content "suggested": "修改后内容", // your optimized version "index": 0 // only for "member" type, from source.index }
This will display interactive cards to the user showing the original vs modified prompt. The user can then apply or cancel each change independently.
User: "让这个AI更关注Python编程"
1. Call get_team_prompt()
→ sources: [{ type: "ghost", id: 561, name: "code-helper", field: "systemPrompt", content: "You are a code assistant." }]
2. Rewrite the prompt:
"You are a code assistant specializing in Python programming. Focus on Python best practices, common patterns, and debugging Python code."
3. Call submit_prompt_changes(changes=[{
type: "ghost",
id: 561,
name: "code-helper",
field: "systemPrompt",
original: "You are a code assistant.",
suggested: "You are a code assistant specializing in Python programming. Focus on Python best practices, common patterns, and debugging Python code."
}])__silent_exit__ to end silentlyOther measured skills in the registry, with their headline benchmark lift.