Iterative System Prompt Generation for Coding Agents
From Wikiprompt, the free prompt encyclopedia
Iterative System Prompt Generation for Coding Agents A workflow to generate and refine system prompts for coding agents by using Claude Code to first complete a task, then write a system prompt based on the conversation, and iterating based on testing.
Prompt ContentSave
🌐
1. Have Claude Code create a Login page based on the Design System, requiring it to only use Design System components and to search/read the Design System documentation to understand how to use it.
2. Once Claude Code completes the task, it has gathered all necessary information to complete a login page using the Design System. Based on the current conversation context, ask Claude Code to write a System Prompt for a Coding Agent so that this agent can also:
- Understand the Design System at a high level
- Know where to search for documentation
- Know the common components
- Know best practices
- etc.
3. Test the System Prompt generated by Claude Code, identify gaps, then return to the previous Claude Code conversation, tell it the issues with the previous prompt, and have it optimize. Iterate a few versions until it works well.
Sign in to see the full prompt
Continue with:
By logging in, you agree to our Terms of Use and Privacy Policy
Usage
This prompt is designed for use with coding. Copy the prompt content above and paste it into your preferred AI tool.
For best results, you may customize the placeholders (indicated by square brackets or capital letters) with your specific requirements.
References
- Category: coding Prompts
- Source: https://x.com/dotey/status/1974636732021608748
Talk
0 comments