WP Manifestindependent plugin directory
manifest / ai / high-performance-debate

High Performance Debate

Students debate and answer 7 questions about high performance, building on their High Performance Wheel. Use shortcode [high_performance_debate].

★ 0stars

Install

Download source zip No release zip yet

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.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

High 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:

  1. Answer 6 core questions about high performance
  2. Debate and discuss each question with an AI coach
  3. 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

  1. Upload high-performance-debate.php to the plugin root directory
  2. Create an assets folder
  3. Upload high-performance-debate.js to the assets folder
  4. Upload high-performance-debate.css to the assets folder

3. Activate Plugin

  1. Go to WordPress Admin > Plugins
  2. Find "High Performance Debate"
  3. 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

  1. 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?"
  2. Why is High Performance needed?

  3. Where do we need High Performance? Where do we find it hard?

    • Prompt: "We need High Performance in ….. because"
  4. Who do we need High Performance Qualities with?

    • Prompt: "We need High Performance with …… because"
  5. When do we need to see it? Not need to see it? Times of the week?

    • Prompt: "We see High Performance in …. because"
  6. How can I/we build high performance?

    • Prompt: "We build High Performance by …."

Database Schema

Table: wp_mfsd_hp_debate_results

  • id: Primary key
  • user_id: WordPress user ID
  • current_question: Current question index (0-5)
  • q1_answer through q6_answer: Final answers for each question
  • q1_history through q6_history: JSON-encoded chat history for each question
  • q1_turns through q6_turns: Number of conversation turns for each question
  • summary: AI-generated final summary
  • status: Progress status (not_started, in_progress, completed)
  • created_at: Timestamp
  • updated_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:

  1. Check WordPress error logs
  2. Enable WP_DEBUG for detailed error messages
  3. Verify database table creation
  4. 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