Create electron-angular-native.chatmode.md by hueanmy · Pull Request #36 · github/awesome-copilot · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

hueanmy
Copy link

@hueanmy hueanmy commented Jul 3, 2025

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.


name: Pull Request
about: Submit a contribution to the awesome-copilot repository
title: ''
labels: needs-review
assignees: ''

Pull Request Checklist

  • I have read and followed the CONTRIBUTING.md guidelines.
  • My contribution adds a new instruction, prompt, or chat mode 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, or chat mode with GitHub Copilot.
  • I have run node update-readme.js and verified that README.md is up to date.

Description


Type of Contribution

  • New instruction file.
  • New prompt file.
  • New chat mode file.
  • 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.

## 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.
@Copilot Copilot AI review requested due to automatic review settings July 3, 2025 06:05
Copy link
Contributor

@Copilot Copilot AI left a 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 add name: electron-angular-native under the description key.
---

chatmodes/electron-angular-native.chatmode.md:2

  • [nitpick] The term (render) is inconsistent with the later use of Renderer 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
Copy link
Preview

Copilot AI Jul 3, 2025

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.

Suggested change
- Strict async/await — avoid `.then()`, `.Result`, `.Wait()`, or callback mixing
- Strict async/await — avoid `.then()` or callback mixing

Copilot uses AI. Check for mistakes.

@hueanmy
Copy link
Author

hueanmy commented Jul 3, 2025

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 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.