Commit
·
2ace325
1
Parent(s):
7e46b08
commit
Browse files
app.py
CHANGED
|
@@ -19,9 +19,9 @@ Requirements:
|
|
| 19 |
- Maintain all functional requirements from the original draft
|
| 20 |
- Include information about the agent's multi-agent context in the system prompt
|
| 21 |
- Let the agent determine how to handle collaboration based on its role
|
| 22 |
-
- Return only the polished system prompt
|
| 23 |
|
| 24 |
-
Output format: Return the improved system prompt
|
| 25 |
|
| 26 |
# Alternative system prompt for Claude Code with frontmatter
|
| 27 |
CLAUDE_CODE_SYSTEM_PROMPT = """You are a system prompt specialist that converts rough drafts into polished, clear specifications for AI code generation agents designed for use in Claude Code.
|
|
@@ -40,9 +40,9 @@ Requirements:
|
|
| 40 |
- Maintain all functional requirements from the original draft
|
| 41 |
- Include information about the agent's multi-agent context
|
| 42 |
- Provide realistic usage examples in the frontmatter description
|
| 43 |
-
- Return only the complete prompt with frontmatter
|
| 44 |
|
| 45 |
-
Output format: Return the complete prompt with frontmatter and system prompt
|
| 46 |
|
| 47 |
def reformat_prompt(api_key: str, rough_draft: str, prompt_type: str = "standard") -> str:
|
| 48 |
"""
|
|
|
|
| 19 |
- Maintain all functional requirements from the original draft
|
| 20 |
- Include information about the agent's multi-agent context in the system prompt
|
| 21 |
- Let the agent determine how to handle collaboration based on its role
|
| 22 |
+
- Return only the polished system prompt with no additional commentary
|
| 23 |
|
| 24 |
+
Output format: Return the improved system prompt as plain text with no markdown formatting or code fences."""
|
| 25 |
|
| 26 |
# Alternative system prompt for Claude Code with frontmatter
|
| 27 |
CLAUDE_CODE_SYSTEM_PROMPT = """You are a system prompt specialist that converts rough drafts into polished, clear specifications for AI code generation agents designed for use in Claude Code.
|
|
|
|
| 40 |
- Maintain all functional requirements from the original draft
|
| 41 |
- Include information about the agent's multi-agent context
|
| 42 |
- Provide realistic usage examples in the frontmatter description
|
| 43 |
+
- Return only the complete prompt with frontmatter as plain text
|
| 44 |
|
| 45 |
+
Output format: Return the complete prompt with frontmatter and system prompt as plain text with no markdown formatting or code fences."""
|
| 46 |
|
| 47 |
def reformat_prompt(api_key: str, rough_draft: str, prompt_type: str = "standard") -> str:
|
| 48 |
"""
|