-
Notifications
You must be signed in to change notification settings - Fork 111
Create electron-angular-native.chatmode.md #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
## Summary This adds a new chatmode for reviewing Electron desktop apps with: - Node.js (main) - Angular (renderer) - Native integration (e.g., AppleScript, shell, exiftool) The mode enforces best practices in IPC security, async/await consistency, error handling, performance, and Angular subscription management. ## File - `chatmodes/electron-angular-native.chatmode.md` ## Motivation To help teams building hybrid Electron apps (Node + Angular + native automation) perform rigorous code audits using GitHub Copilot Chat.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds a new chat mode for reviewing Electron desktop apps that use Node.js in the main process, Angular in the renderer, and native integrations.
- Introduces
electron-angular-native.chatmode.md
with frontmatter and tool definitions - Defines coding conventions, security/performance guidelines, and a review checklist
- Provides templates for feature examples and output formatting
Comments suppressed due to low confidence (3)
chatmodes/electron-angular-native.chatmode.md:1
- The frontmatter is missing a
name
field, which may be required to register this chat mode. Please addname: electron-angular-native
under thedescription
key.
---
chatmodes/electron-angular-native.chatmode.md:2
- [nitpick] The term
(render)
is inconsistent with the later use ofRenderer Process
. Consider renaming to(renderer)
for consistency.
description: "Code Review Mode tailored for Electron app with Node.js backend (main), Angular frontend (render), and native integration layer (e.g., AppleScript, shell, or native tooling). Services in other repos are not reviewed here."
chatmodes/electron-angular-native.chatmode.md:203
- The Feature sections B–E are placeholders without content. Either populate these with examples or remove them to prevent confusion.
### Feature B
- Node.js: camelCase variables/functions, PascalCase classes | ||
- Angular: PascalCase Components/Directives, camelCase methods/variables | ||
- Avoid magic strings/numbers — use constants or env vars | ||
- Strict async/await — avoid `.then()`, `.Result`, `.Wait()`, or callback mixing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
References to .Result
and .Wait()
are specific to .NET and not relevant for JavaScript/TypeScript environments. Consider removing these to avoid confusion.
- Strict async/await — avoid `.then()`, `.Result`, `.Wait()`, or callback mixing | |
- Strict async/await — avoid `.then()` or callback mixing |
Copilot uses AI. Check for mistakes.
Hi team 👋 Thanks for building this amazing repo. This PR contributes a code review chatmode for hybrid Electron desktop apps (Node.js + Angular + native integrations). Would appreciate a quick review when time permits 🙌 |
Summary
This adds a new chatmode for reviewing Electron desktop apps with:
The mode enforces best practices in IPC security, async/await consistency, error handling, performance, and Angular subscription management.
File
chatmodes/electron-angular-native.chatmode.md
Motivation
To help teams building hybrid Electron apps (Node + Angular + native automation) perform rigorous code audits using GitHub Copilot Chat.
name: Pull Request
about: Submit a contribution to the awesome-copilot repository
title: ''
labels: needs-review
assignees: ''
Pull Request Checklist
node update-readme.js
and verified thatREADME.md
is up to date.Description
Type of Contribution
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.