Atlas / Skills / wecode-ai / Prompt Optimization

Prompt OptimizationSAFE

skills/wecode-ai/prompt-optimization

Plan, build, and deliver with an open-source, self-hostable AI workspace for coding, collaboration, and automation.

Verdict
SAFE
Grade
B
Trust score
89 /100
Version
2.0.0
Hosts
—
License
Apache-2.0
Stars
871
01

Overview

Plan, build, and deliver with an open-source, self-hostable AI workspace for coding, collaboration, and automation.

Read from source at commit 09033ba31f34OBSERVED · 2026-10-14
02

What it tells the agent

The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.

---
description: "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'."
displayName: "提示词管理工具"
version: "2.0.0"
author: "Wegent Team"
tags: ["prompt", "optimization", "system-prompt", "agent-config", "ai-tuning"]
bindShells: ["Chat"]
mcpServers:
 wegent-prompt-optimization:
    type: streamable-http
    url: "${{backend_url}}/mcp/prompt-optimization/sse"
    headers:
      Authorization: "Bearer ${{task_token}}"
    timeout: 300
---

# Prompt Optimization Skill

This skill allows you to view and modify the system prompts of the current AI agent (Team).

## Available Tools

- `get_team_prompt()` — Get the current prompt and source mapping for the team
- `submit_prompt_changes(changes)` — Send optimized prompts to the user for review

## Workflow

### Step 1: Get Current Prompts

Call `get_team_prompt()`. It returns:
- `team_id`: The team's database ID
- `assembled_prompt`: The full assembled prompt
- `sources`: 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 text
  - `index`: Member index (only for `"member"` type)

### Step 2: Analyze and Rewrite

Based on the user's request, determine which source(s) need modification:
- If the user wants to change the agent's core behavior → modify the `ghost` source
- If the user wants to change a specific team member's role → modify the `member` source
- You may modify multiple sources if needed

**Rules:**
- Only modify the sources that are relevant to the user's request
- Preserve the overall structure and intent of unrelated parts
- Write complete, production-quality prompts (not just appending text)
- If the original prompt is in Chinese, write the modification in Chinese
- If the original prompt is in English, write the modification in English

### Step 3: Submit Changes

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.

## Example

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."
   }])
```

## Important Notes

- The user must have Developer+ permission on the target resources to apply changes
- Changes are NOT applied automatically — the user reviews and clicks "Apply" on each card
- After the user applies changes, the tool returns `__silent_exit__` to end silently
03

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryWARN
L1Static analysis of the codeNA
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
none-observed
Network
none-observed
Shell
none-observed
Dependencies
pinned
Secrets in source
none-found

Findings (4)

MEDIUMInventory / provenance · inv.symlink · CWE-1104
backend-rs/config/example.env
backend-rs/config/example.env
Why it matters. link not followed
LOWInventory / provenance · inv.symlink · CWE-1104
CLAUDE.md
CLAUDE.md
Why it matters. link not followed
LOWInventory / provenance · inv.symlink · CWE-1104
backend-rs/CLAUDE.md
backend-rs/CLAUDE.md
Why it matters. link not followed
LOWInventory / provenance · skill.no_frontmatter · CWE-1104
SKILL.md:1
Why it matters. SKILL.md lacks name/description frontmatter

Gates applied: no_behavioural_pass.

Audited 2026-10-14 · audit v0.4.1 · source sha 09033ba31f34full audit observations/trust-audit/skill/wecode-ai__prompt-optimization.json · Report an issue / request a re-scan
04

Audit history

Every audit this skill has had.

DateSourceVerdictGradeScoreChange
2026-10-1409033ba31f34SAFEB89first audit
05

Questions

What does the Prompt Optimization skill do?

Plan, build, and deliver with an open-source, self-hostable AI workspace for coding, collaboration, and automation.

Is Prompt Optimization safe to install?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.

What can Prompt Optimization access on my machine?

The audit observed no filesystem, network or shell use at all in its source.

How current is this page?

The grade is for one exact copy of the source (09033ba31f34), read on 2026-10-14. The repository is watched, and a new audit runs when it changes — this is the first audit.

Advertisement