| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- #!/bin/bash
- # Show example prompts that would be sent to Claude
- echo "╔════════════════════════════════════════════════════════════════════════════╗"
- echo "║ EXAMPLE 1: New Issue Opened ║"
- echo "╚════════════════════════════════════════════════════════════════════════════╝"
- echo ""
- cat << 'EOF'
- IMPORTANT: Issue #42 was opened in repository testowner/test-repo.
- === MANDATORY FIRST STEPS - READ ALL MESSAGES ===
- Before you start any work on this issue, you MUST complete these steps IN ORDER:
- 1. Use the mcp__gogs__get_issue tool to fetch the complete issue details:
- - owner: testowner
- - repo: test-repo
- - number: 42
- 2. Use the mcp__gogs__list_issue_comments tool to fetch ALL comments:
- - owner: testowner
- - repo: test-repo
- - number: 42
- 3. Read and understand:
- - The complete issue description
- - ALL comments in the discussion thread (if any exist)
- - The full context
- 4. ONLY AFTER reading everything above, proceed with your work
- === ISSUE CONTEXT ===
- Issue #42: Add dark mode support
- Created by: testuser
- Initial issue description:
- We need to add dark mode to the application. Users have been requesting this feature.
- === YOUR TASK ===
- This issue is assigned to you. You must:
- 1. First, use the Gogs MCP tools above to fetch and read the issue and ALL comments
- 2. Understand the full discussion context (even if there are no comments yet)
- 3. Then proceed with the appropriate action
- DO NOT skip reading the comments using the MCP tools. This is critical to understanding the full context.
- EOF
- echo ""
- echo ""
- echo "╔════════════════════════════════════════════════════════════════════════════╗"
- echo "║ EXAMPLE 2: New Comment Added to Existing Issue ║"
- echo "╚════════════════════════════════════════════════════════════════════════════╝"
- echo ""
- cat << 'EOF'
- IMPORTANT: A new comment has been added to issue #42 in repository testowner/test-repo.
- === MANDATORY FIRST STEPS - READ ALL MESSAGES ===
- Before you start any work on this issue, you MUST complete these steps IN ORDER:
- 1. Use the mcp__gogs__get_issue tool to fetch the complete issue details:
- - owner: testowner
- - repo: test-repo
- - number: 42
- 2. Use the mcp__gogs__list_issue_comments tool to fetch ALL comments:
- - owner: testowner
- - repo: test-repo
- - number: 42
- 3. Read and understand:
- - The original issue description
- - ALL comments in the discussion thread (chronologically)
- - The full context and conversation history
- 4. ONLY AFTER reading everything above, proceed with your work
- === ISSUE CONTEXT ===
- Issue #42: Add dark mode support
- A new comment was just added by: testuser
- Initial issue description:
- We need to add dark mode to the application. Users have been requesting this feature.
- Most recent comment:
- Please also make sure the dark mode persists across sessions using localStorage.
- === YOUR TASK ===
- This issue is assigned to you. You must:
- 1. First, use the Gogs MCP tools above to fetch and read ALL issue comments
- 2. Understand the full discussion context
- 3. Then proceed with the appropriate action based on the complete conversation
- DO NOT skip reading the comments using the MCP tools. This is critical to understanding the full context.
- EOF
- echo ""
- echo "╔════════════════════════════════════════════════════════════════════════════╗"
- echo "║ Summary ║"
- echo "╚════════════════════════════════════════════════════════════════════════════╝"
- echo ""
- echo "✓ Claude is FORCED to use MCP tools to fetch all comments"
- echo "✓ Claude must read issue details using mcp__gogs__get_issue"
- echo "✓ Claude must read ALL comments using mcp__gogs__list_issue_comments"
- echo "✓ Explicit instructions to read everything BEFORE starting work"
- echo "✓ Clear step-by-step mandatory process"
- echo ""
|