Skip to content

add brainmax canvas extension#2360

Closed
juliamuiruri4 wants to merge 1 commit into
github:mainfrom
juliamuiruri4:juliamuiruri4-scaling-happiness
Closed

add brainmax canvas extension#2360
juliamuiruri4 wants to merge 1 commit into
github:mainfrom
juliamuiruri4:juliamuiruri4-scaling-happiness

Conversation

@juliamuiruri4

Copy link
Copy Markdown

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • I have read and followed the Guidance for submissions involving paid services.
  • My contribution adds a new instruction, prompt, agent, skill, workflow, or canvas extension file in the correct directory.
  • The file follows the required naming convention.
  • The content is clearly structured and follows the example format.
  • I have tested my instructions, prompt, agent, skill, workflow, or canvas extension with GitHub Copilot.
  • I have run npm start and verified that README.md is up to date.
  • I am targeting the main branch for this pull request.

Description

Added Brainmax canvas extension

Type of Contribution

  • New instruction file.
  • New prompt file.
  • New agent file.
  • New plugin.
  • New skill file.
  • New agentic workflow.
  • New canvas extension.
  • Update to existing instruction, prompt, agent, plugin, skill, workflow, or canvas extension.
  • Other (please specify):

Additional Notes


By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.

Copilot AI review requested due to automatic review settings July 20, 2026 14:17
@github-actions github-actions Bot added canvas-extension PR touches canvas extensions new-submission PR adds at least one new contribution labels Jul 20, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds the BrainMax Canvas extension for interactive, codebase-grounded competency quizzes.

Changes:

  • Implements quiz state, Canvas actions, and an HTTP/SSE bridge.
  • Adds the responsive browser UI and theme support.
  • Adds extension metadata, documentation, and marketplace registration.
Show a summary per file
File Description
.github/plugin/marketplace.json Registers BrainMax Canvas.
extensions/brainmax-canvas/.github/plugin/plugin.json Defines extension metadata.
extensions/brainmax-canvas/README.md Documents installation and usage.
extensions/brainmax-canvas/assets/preview.png Provides the marketplace preview.
extensions/brainmax-canvas/extension.mjs Implements Canvas actions and lifecycle.
extensions/brainmax-canvas/lib/http-server.mjs Serves the UI and event endpoints.
extensions/brainmax-canvas/lib/state.mjs Manages quiz state and score tiers.
extensions/brainmax-canvas/package.json Defines the Node package and scripts.
extensions/brainmax-canvas/public/app.js Implements frontend behavior.
extensions/brainmax-canvas/public/index.html Defines the accessible UI structure.
extensions/brainmax-canvas/public/styles.css Provides responsive themes and styling.

Review details

Comments suppressed due to low confidence (1)

extensions/brainmax-canvas/extension.mjs:379

  • This action contract also assumes every quiz has five questions, although start_quiz permits totals from 1–20. Referring to the final question keeps the action usable for every accepted total.
                    name: "complete_domain",
                    description: "MANDATORY after Question 5: show the domain summary with non-empty strongestArea and gap analysis before presenting the summary in chat.",
  • Files reviewed: 10/11 changed files
  • Comments generated: 7
  • Review effort level: Medium

Comment on lines +8 to +11
"scripts": {
"check": "node --check extension.mjs && node --check lib/http-server.mjs && node --check lib/state.mjs && node --check public/app.js",
"test": "node --test"
},
@@ -0,0 +1,38 @@
# BrainMax Canvas

BrainMax Canvas is the interactive dashboard for codebase-grounded concept-mastery quizes. It presents detected knowledge domains, accepts freeform answers, shows rubric scores, and compiles completed domains into a competency report.
Comment on lines +81 to +89
let body = "";
for await (const chunk of req) {
body += chunk;
if (Buffer.byteLength(body, "utf8") > MAX_EVENT_BODY_BYTES) {
writeHeaders(res, 413, MIME[".json"]);
res.end(JSON.stringify({ ok: false, error: "event payload is too large" }));
return;
}
}
Comment on lines +342 to +344
name: "record_score",
description:
"Reveal the score for the question just answered (0-3 rubric) with a one-sentence explanation. For questions 1-4, immediately follow this successful action with set_question for the next question before responding in chat. For question 5, follow with complete_domain.",
Comment on lines +157 to +159
:root {
color-scheme: dark;
}
Comment on lines +10 to +11
// See README.md in this directory for the full action contract with
// example payloads.

## Install

Install the Brainmax Canvas extension through GitHub Copilot or place this directory at `.github/extensions/brainmax-canvas/` in a project.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

canvas-extension PR touches canvas extensions new-submission PR adds at least one new contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants