Agent skill
conversation_to_prompt
Convert the current conversation into a reusable system prompt draft with strict structure and quality checks.
Install this agent skill to your Project
npx add-skill https://github.com/wecode-ai/Wegent/tree/main/backend/init_data/skills/conversation_to_prompt
SKILL.md
Conversation To Prompt Skill
Critical Output Protocol
You must output only the final prompt text body.
- No markdown code fences.
- No JSON.
- No explanation before or after the prompt.
- No trailing commentary.
Purpose
Transform a full task conversation into a reusable prompt draft for future collaboration.
This skill outputs one final prompt text.
The output must be directly usable as a system prompt body.
Input Contract
The caller provides normalized conversation messages and generation constraints.
Output Contract
Return plain text prompt only.
The prompt must be non-empty and follow the required structure below.
Multi-Stage Flow
- Analyze conversation:
- Extract stable collaboration preferences.
- Extract reusable task methods.
- Identify one-off context that must be removed.
- Generate first draft:
- Produce one complete prompt body.
- Evaluate draft:
- Check structure, clarity, and reusability.
- Reject summary-style outputs.
- Rewrite if needed:
- Produce one corrected final draft.
- Final protocol check:
- Ensure output is plain text prompt only.
- Ensure there is no extra text before or after the prompt.
Required Prompt Structure
你是{助手身份},负责{核心职责}。
你的工作方式:
- {协作偏好 1}
- {协作偏好 2}
处理任务时请遵循以下原则:
- {任务方法 1}
- {任务方法 2}
输出要求:
- {输出要求 1}
- {输出要求 2}
Evaluation Rules
Reject and rewrite if any condition is true:
- The prompt does not start with assistant identity and responsibility.
- The output reads like conversation summary instead of reusable instructions.
- One-off project details or temporary decisions leak into the draft.
- Instructions are vague and not actionable.
- Instructions contain internal conflicts.
- Output contains markdown wrappers or extra text outside prompt body.
Forbidden Patterns
- Returning ```json fenced blocks.
- Returning bullet summary instead of the required prompt structure.
- Returning JSON objects.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
wiki_submit
Submit wiki documentation sections to Wegent backend API. Simplifies the HTTP POST process for wiki content submission.
subscription-manager
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 intervals, and one-time executions.
mermaid-diagram
Use this skill when you need to draw diagrams including: Flowchart, Sequence Diagram, Class Diagram, State Diagram, ER Diagram, User Journey, Gantt Chart, Pie Chart, Quadrant Chart, Requirement Diagram, Gitgraph, Mindmap, Timeline, Sankey, XY Chart (Bar/Line), Block Diagram, Packet Diagram, Kanban, Architecture Diagram, C4 Diagram, Radar Chart, Treemap, and ZenUML. You MUST use this skill BEFORE outputting any mermaid code block.
wegent-knowledge
Knowledge base management tools for Wegent. Provides capabilities to list, create, and update knowledge bases and documents. Use this skill when the user wants to manage knowledge bases or documents programmatically.
sandbox
Provides read_file/write_file/exec/list_files/read_file/write_file for running process and managing filesystems in the sandbox. Ideal for code testing, file management, and command execution. The sub_claude_agent tool is available for advanced use cases. You MUST load this skill BEFORE use sandbox tools.
browser
Complete real user web tasks end-to-end via browser-tool, navigate, interact, wait for page state, extract results, and provide evidence when needed.
Didn't find tool you were looking for?