show-example-prompts.sh 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. #!/bin/bash
  2. # Show example prompts that would be sent to Claude
  3. echo "╔════════════════════════════════════════════════════════════════════════════╗"
  4. echo "║ EXAMPLE 1: New Issue Opened ║"
  5. echo "╚════════════════════════════════════════════════════════════════════════════╝"
  6. echo ""
  7. cat << 'EOF'
  8. IMPORTANT: Issue #42 was opened in repository testowner/test-repo.
  9. === MANDATORY FIRST STEPS - READ ALL MESSAGES ===
  10. Before you start any work on this issue, you MUST complete these steps IN ORDER:
  11. 1. Use the mcp__gogs__get_issue tool to fetch the complete issue details:
  12. - owner: testowner
  13. - repo: test-repo
  14. - number: 42
  15. 2. Use the mcp__gogs__list_issue_comments tool to fetch ALL comments:
  16. - owner: testowner
  17. - repo: test-repo
  18. - number: 42
  19. 3. Read and understand:
  20. - The complete issue description
  21. - ALL comments in the discussion thread (if any exist)
  22. - The full context
  23. 4. ONLY AFTER reading everything above, proceed with your work
  24. === ISSUE CONTEXT ===
  25. Issue #42: Add dark mode support
  26. Created by: testuser
  27. Initial issue description:
  28. We need to add dark mode to the application. Users have been requesting this feature.
  29. === YOUR TASK ===
  30. This issue is assigned to you. You must:
  31. 1. First, use the Gogs MCP tools above to fetch and read the issue and ALL comments
  32. 2. Understand the full discussion context (even if there are no comments yet)
  33. 3. Then proceed with the appropriate action
  34. DO NOT skip reading the comments using the MCP tools. This is critical to understanding the full context.
  35. EOF
  36. echo ""
  37. echo ""
  38. echo "╔════════════════════════════════════════════════════════════════════════════╗"
  39. echo "║ EXAMPLE 2: New Comment Added to Existing Issue ║"
  40. echo "╚════════════════════════════════════════════════════════════════════════════╝"
  41. echo ""
  42. cat << 'EOF'
  43. IMPORTANT: A new comment has been added to issue #42 in repository testowner/test-repo.
  44. === MANDATORY FIRST STEPS - READ ALL MESSAGES ===
  45. Before you start any work on this issue, you MUST complete these steps IN ORDER:
  46. 1. Use the mcp__gogs__get_issue tool to fetch the complete issue details:
  47. - owner: testowner
  48. - repo: test-repo
  49. - number: 42
  50. 2. Use the mcp__gogs__list_issue_comments tool to fetch ALL comments:
  51. - owner: testowner
  52. - repo: test-repo
  53. - number: 42
  54. 3. Read and understand:
  55. - The original issue description
  56. - ALL comments in the discussion thread (chronologically)
  57. - The full context and conversation history
  58. 4. ONLY AFTER reading everything above, proceed with your work
  59. === ISSUE CONTEXT ===
  60. Issue #42: Add dark mode support
  61. A new comment was just added by: testuser
  62. Initial issue description:
  63. We need to add dark mode to the application. Users have been requesting this feature.
  64. Most recent comment:
  65. Please also make sure the dark mode persists across sessions using localStorage.
  66. === YOUR TASK ===
  67. This issue is assigned to you. You must:
  68. 1. First, use the Gogs MCP tools above to fetch and read ALL issue comments
  69. 2. Understand the full discussion context
  70. 3. Then proceed with the appropriate action based on the complete conversation
  71. DO NOT skip reading the comments using the MCP tools. This is critical to understanding the full context.
  72. EOF
  73. echo ""
  74. echo "╔════════════════════════════════════════════════════════════════════════════╗"
  75. echo "║ Summary ║"
  76. echo "╚════════════════════════════════════════════════════════════════════════════╝"
  77. echo ""
  78. echo "✓ Claude is FORCED to use MCP tools to fetch all comments"
  79. echo "✓ Claude must read issue details using mcp__gogs__get_issue"
  80. echo "✓ Claude must read ALL comments using mcp__gogs__list_issue_comments"
  81. echo "✓ Explicit instructions to read everything BEFORE starting work"
  82. echo "✓ Clear step-by-step mandatory process"
  83. echo ""