Agent skill · Audited from source
Prompt Optimization
skill · wecode-ai/WegentApache-2.0 licenceAudited 14 Oct 2026 · source 09033ba31f34
Is it safe? Yes — SAFE, grade B (89/100). We read this skill's source at commit 09033ba31f34 and found no filesystem, network or shell access and no hard-coded secrets. What it does: 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',…
Cite
Cite this page
ModelsAtlas. “Prompt Optimization (wecode-ai/Wegent)”. Retrieved 14 Oct 2026. https://modelsatlas.com/skills/wecode-ai/prompt-optimization
2 skills are called “Prompt Optimization”. You are viewing wecode-ai/Wegent.
- wecode-ai/Wegent★ 871✓SAFE
- asklokesh/loki-mode★ 1.1k✓SAFE
Trust audit
Audit 0.4.1 · source read 14 Oct 2026
SAFE means nothing in the source contradicts what the skill says it does. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | WARN | 3 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 1 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (4)
MEDIUMInventory / provenanceinv.symlink · backend-rs/config/example.env
backend-rs/config/example.env
- Why
- link not followed
- Fix
- —
LOWInventory / provenanceinv.symlink · CLAUDE.md
CLAUDE.md
- Why
- link not followed
- Fix
- —
LOWInventory / provenanceinv.symlink · backend-rs/CLAUDE.md
backend-rs/CLAUDE.md
- Why
- link not followed
- Fix
- —
LOWInventory / provenanceskill.no_frontmatter · SKILL.md:1
- Why
- SKILL.md lacks name/description frontmatter
- Fix
- —
Audit 0.4.1 · source sha 09033ba31f34 · 14 Oct 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherwecode-ai GitHub organizationOwner of the repository this skill is read from
- Source folderwecode-ai/Wegent/backend/init_data/skills/prompt-optimizationThe exact folder we audited
- LicenceApache-2.0As the repository states it
- Commit pinned for this verdict09033ba31f34A new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its 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',…
---
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 silentlyExcerpt, first 3,827 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 09033ba
git clone https://github.com/wecode-ai/Wegent git -C Wegent checkout 09033ba31f34
The author documents no install command, so this uses the repository directly. Our verdict covers commit 09033ba31f34 only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- ✓SAFE B 89 / 100
first audit · source
09033ba31f34
Similar skills
wecode-ai/Wegent
Complete real user web tasks end-to-end via browser-tool, navigate, interact, wait for page state, extract results, and provide evidence when needed.
wecode-ai/Wegent
Knowledge base management and search tools for Wegent. Provides capabilities to list, create, update, and search knowledge bases and documents using RAG retrieval. Use this skill when the user wants to manage knowledge…
wecode-ai/Wegent
Convert the current conversation into a reusable system prompt draft with strict structure and quality checks.
wecode-ai/Wegent
Plan, build, and deliver with an open-source, self-hostable AI workspace for coding, collaboration, and automation.
wecode-ai/Wegent
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill…
wecode-ai/Wegent
Create and manage scheduled subscription tasks. Use when the user wants to set up recurring reminders, periodic reports, scheduled checks, or any automated tasks that run on a schedule. Supports cron expressions, fixed…
Questions about Prompt Optimization
What does the Prompt Optimization skill do?
Is Prompt Optimization safe to install?
What can Prompt Optimization access on my machine?
How current is this page?
Sources
- github.com/wecode-ai/Wegent/tree/main/backend/init_data/skills/p — the audited source at commit 09033ba31f34 and every finding aboveObserved · 14 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Prompt Optimization skill do?
- Is Prompt Optimization safe to install?
- What can Prompt Optimization access on my machine?