Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/mgt9007/high-performance-debate/archive/refs/heads/main.zipHigh Performance Debate Plugin
A WordPress plugin that guides students through 7 questions about high performance with AI-powered debate functionality. This plugin builds on the High Performance Wheel exercise.
Overview
The High Performance Debate plugin allows students to:
- Answer 6 core questions about high performance
- Debate and discuss each question with an AI coach
- Receive a comprehensive summary comparing their debate answers with their original High Performance Wheel concepts
Features
- Prerequisite Check: Students must complete the High Performance Wheel before starting the debate
- AI-Powered Debate: Each question includes a chat interface where students can debate with a High Performance Coach
- Turn-Based Progression: After 3 turns, students are prompted to confirm their final answer
- WhatsApp-Style Interface: Chat messages styled like a messaging app for familiarity
- Progressive Questioning: 6 questions covering What, Why, Where, Who, When, and How of high performance
- Intelligent Summary: AI analyzes convergence and opposition between debate answers and wheel concepts
- Resume Capability: Students can leave and return to continue where they left off
Installation
1. File Structure
Create the following directory structure in your WordPress plugins folder:
wp-content/plugins/high-performance-debate/
├── high-performance-debate.php
├── assets/
│ ├── high-performance-debate.js
│ └── high-performance-debate.css
└── README.md
2. Upload Files
- Upload
high-performance-debate.phpto the plugin root directory - Create an
assetsfolder - Upload
high-performance-debate.jsto theassetsfolder - Upload
high-performance-debate.cssto theassetsfolder
3. Activate Plugin
- Go to WordPress Admin > Plugins
- Find "High Performance Debate"
- Click "Activate"
The plugin will automatically create the necessary database table: wp_mfsd_hp_debate_results
Usage
Shortcode
Add the plugin to any page or post using the shortcode:
[high_performance_debate]
Prerequisites
- High Performance Wheel: Students must complete the High Performance Wheel exercise first
- AI Chatbot Plugin: Requires AI Engine or similar plugin with chatbot support (referenced as
chatbot-tmhwsa) - User Authentication: Students must be logged in
The 6 Questions
-
What is High Performance for you?
- "In the last task you created your wheel. But let's get deeper… What is High Performance for you?"
-
Why is High Performance needed?
-
Where do we need High Performance? Where do we find it hard?
- Prompt: "We need High Performance in ….. because"
-
Who do we need High Performance Qualities with?
- Prompt: "We need High Performance with …… because"
-
When do we need to see it? Not need to see it? Times of the week?
- Prompt: "We see High Performance in …. because"
-
How can I/we build high performance?
- Prompt: "We build High Performance by …."
Database Schema
Table: wp_mfsd_hp_debate_results
id: Primary keyuser_id: WordPress user IDcurrent_question: Current question index (0-5)q1_answerthroughq6_answer: Final answers for each questionq1_historythroughq6_history: JSON-encoded chat history for each questionq1_turnsthroughq6_turns: Number of conversation turns for each questionsummary: AI-generated final summarystatus: Progress status (not_started, in_progress, completed)created_at: Timestampupdated_at: Timestamp
AI Integration
Coach Personality
The AI coach is designed for 12-14 year old learners with:
- Friendly, motivational tone
- Age-appropriate language
- Solutions mindset principles
- Socratic questioning approach
- My Future Self Project teaching methodology (I do - We do - You do)
Summary Analysis
The final summary compares:
- Convergence: Where debate answers align with wheel concepts
- Opposition: Where debate answers contradict wheel concepts
- Growth: Insights about evolving understanding
- Action Steps: Practical suggestions for development
Customization
Modifying Questions
Edit the $questions array in high-performance-debate.php:
private $questions = array(
array(
'id' => 'q1',
'question' => 'Your question text here',
'prompt_suffix' => 'Optional prompt suffix'
),
// ...
);
Styling
Modify assets/high-performance-debate.css to customize:
- Colors and themes
- Chat bubble styles
- Layout and spacing
- Mobile responsiveness
AI Prompts
Edit the get_coach_system_prompt() method in PHP to modify the AI coach's personality and instructions.
Technical Details
REST API Endpoints
- GET
/wp-json/hp-debate/v1/status- Check progress and load saved data - POST
/wp-json/hp-debate/v1/chat- Send chat message and receive AI response - POST
/wp-json/hp-debate/v1/submit- Save final answers and generate summary
JavaScript State Management
The frontend uses a state object tracking:
- Current question
- Chat history per question
- Turn counts
- Final answers
- Completion status
Security
- Nonce verification on all AJAX requests
- User authentication required
- Input sanitization
- SQL injection prevention via prepared statements
Browser Compatibility
- Chrome (latest)
- Firefox (latest)
- Safari (latest)
- Edge (latest)
- Mobile browsers (iOS Safari, Chrome Mobile)
Dependencies
- WordPress 5.0+
- PHP 7.4+
- MySQL 5.6+
- AI Engine plugin or compatible AI chatbot system
- High Performance Wheel plugin (prerequisite)
Support
For issues or questions:
- Check WordPress error logs
- Enable WP_DEBUG for detailed error messages
- Verify database table creation
- Confirm AI Engine plugin is active and configured
Version History
1.0.0 (Initial Release)
- 6-question debate system
- AI-powered chat interface
- WhatsApp-style UI
- Prerequisite checking
- Summary generation
- Resume capability
License
This plugin is provided for use with the My Future Self Project educational initiative.
Credits
- Based on High Performance Wheel plugin architecture
- Designed for 12-14 year old learners
- Implements Steve Solutions principles
- My Future Self Project methodology