Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 16, 2025

Overview

Creates comprehensive AI coding instructions for the CometVisu project to help AI agents understand the codebase architecture, development workflows, and project-specific conventions.

What's Included

The new .github/copilot-instructions.md documents:

Architecture

  • Qooxdoo Framework integration: OOP class system with qx.Class.define(), property system, and event bus patterns
  • Dual UI structures:
    • Pure Structure (classic DOM-based widgets with XML parsing)
    • Tile Structure (modern web components with custom elements)
  • Backend communication: Multi-backend support (KNX/knxd, OpenHAB, MQTT) with centralized state management via cv.data.Model
  • Configuration system: XML-based configs with schema validation and templating

Development Workflows

  • Build commands (npx qx compile --watch, npm run source)
  • Testing patterns (Karma/Jasmine unit tests, Protractor E2E tests)
  • Containerized development environment setup (distrobox)
  • Debugging techniques and test mode configuration

Code Conventions

  • Qooxdoo class structure patterns with namespacing
  • Widget implementation process (class + parser for Pure, custom elements for Tile)
  • Naming conventions (PascalCase classes, camelCase properties, __private members, M mixin prefix)
  • Required GPL-3.0 license headers
  • Asset declaration patterns for external resources

Common Patterns

  • Singleton-based state management with address subscriptions
  • Plugin system with lazy loading
  • Mixin-based architecture (MVisibility, MRefresh, etc.)
  • Resource path handling via Qooxdoo ResourceManager

Why This Helps

AI coding agents working on CometVisu will now understand:

  • The "big picture" of how the two UI structures differ and when to use each
  • Critical build/test commands that aren't obvious from file inspection
  • Qooxdoo-specific patterns that differ from standard JavaScript practices
  • How the backend communication and state management flows work
  • Project-specific conventions like the mixin naming scheme and parser registration

This should significantly reduce the learning curve for AI agents contributing to the project and help them make more appropriate architectural decisions.

Original prompt

Analyze this codebase to generate or update .github/copilot-instructions.md for guiding AI coding agents.

Focus on discovering the essential knowledge that would help an AI agents be immediately productive in this codebase. Consider aspects like:

  • The "big picture" architecture that requires reading multiple files to understand - major components, service boundaries, data flows, and the "why" behind structural decisions
  • Critical developer workflows (builds, tests, debugging) especially commands that aren't obvious from file inspection alone
  • Project-specific conventions and patterns that differ from common practices
  • Integration points, external dependencies, and cross-component communication patterns

Source existing AI conventions from **/{.github/copilot-instructions.md,AGENT.md,AGENTS.md,CLAUDE.md,.cursorrules,.windsurfrules,.clinerules,.cursor/rules/**,.windsurf/rules/**,.clinerules/**,README.md} (do one glob search).

Guidelines (read more at https://aka.ms/vscode-instructions-docs):

  • If .github/copilot-instructions.md exists, merge intelligently - preserve valuable content while updating outdated sections
  • Write concise, actionable instructions (~20-50 lines) using markdown structure
  • Include specific examples from the codebase when describing patterns
  • Avoid generic advice ("write tests", "handle errors") - focus on THIS project's specific approaches
  • Document only discoverable patterns, not aspirational practices
  • Reference key files/directories that exemplify important patterns

Update .github/copilot-instructions.md for the user, then ask for feedback on any unclear or incomplete sections to iterate.

Die benutzende Person hat die folgenden Dateien aus dem eigenen Arbeitsbereich angehängt:

  • source/class/cv/ui/structure/tile/components/Chart.js

Created from VS Code via the GitHub Pull Request extension.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Update GitHub Copilot instructions for codebase guidance Add .github/copilot-instructions.md for AI coding agent guidance Oct 16, 2025
Copilot AI requested a review from peuter October 16, 2025 19:24
Copilot finished work on behalf of peuter October 16, 2025 19:24
@peuter peuter marked this pull request as ready for review October 16, 2025 19:25
@peuter peuter merged commit 329a8ca into develop Oct 16, 2025
12 checks passed
@peuter peuter deleted the copilot/update-copilot-instructions branch October 17, 2025 15:56
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.

2 participants