Skip to content

Comments

docs: add CLAUDE.md for AI assistant guidance#28

Open
VictorQueiroz wants to merge 1 commit intomasterfrom
claude/add-claude-documentation-q3rZg
Open

docs: add CLAUDE.md for AI assistant guidance#28
VictorQueiroz wants to merge 1 commit intomasterfrom
claude/add-claude-documentation-q3rZg

Conversation

@VictorQueiroz
Copy link
Collaborator

Comprehensive documentation for AI assistants including:

  • Project architecture overview (C++ native bindings + TypeScript wrapper)
  • Codebase structure and file organization
  • Build commands and development workflow
  • Testing setup with AVA framework
  • Code style conventions for C++ and TypeScript
  • Key types and common usage patterns

https://claude.ai/code/session_01Kyf3yi9trukuTDfGjgYTP1

Comprehensive documentation for AI assistants including:
- Project architecture overview (C++ native bindings + TypeScript wrapper)
- Codebase structure and file organization
- Build commands and development workflow
- Testing setup with AVA framework
- Code style conventions for C++ and TypeScript
- Key types and common usage patterns

https://claude.ai/code/session_01Kyf3yi9trukuTDfGjgYTP1
Copilot AI review requested due to automatic review settings January 31, 2026 02:34
Copy link

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

This PR adds comprehensive AI assistant guidance documentation (CLAUDE.md) to help AI assistants understand and work with the xdotool codebase. The document covers project architecture, build setup, code structure, development workflows, and usage patterns.

Changes:

  • Added CLAUDE.md with detailed documentation covering the C++ native module architecture, TypeScript wrapper layer, async task system, build configuration, testing setup, and common usage patterns

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +32 to +47
│ └── tasks/ # Individual async task implementations
│ ├── ActivateWindow.cpp/h
│ ├── EnterText.cpp/h
│ ├── GetFocusedWindow.cpp/h
│ ├── GetImage.cpp/h
│ ├── GetMouseLocation.cpp/h
│ ├── GetViewportDimensions.cpp/h
│ ├── GetWindowPID.cpp/h
│ ├── GetWindowProperty.cpp/h
│ ├── GetWindowSize.cpp/h
│ ├── MoveMouse.cpp/h
│ ├── QueryKeymap.cpp/h
│ ├── SearchWindows.cpp/h
│ ├── SendKeysequence.cpp/h
│ ├── Sync.cpp/h
│ └── WindowHasProperty.cpp/h
Copy link

Copilot AI Jan 31, 2026

Choose a reason for hiding this comment

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

The task file list is missing GetActiveKeysToKeycodeList.cpp/h which exists in src/tasks/ but is commented out in CMakeLists.txt. Additionally, GetWindowProperty.cpp/h is listed but is not actually exposed as a method in XdoTool (though the task file exists and is compiled).

For completeness, consider either:

  1. Adding GetActiveKeysToKeycodeList.cpp/h to the list with a note that it's currently commented out in the build
  2. Removing or noting that GetWindowProperty.cpp/h is not exposed in the public API
  3. Only listing tasks that are actively used and exposed in the API

Copilot uses AI. Check for mistakes.
- Linux with X11 (Xorg)
- libxdo (xdotool library)
- libx11
- Boost
Copy link

Copilot AI Jan 31, 2026

Choose a reason for hiding this comment

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

Boost is listed as a system requirement but is not actually used in the codebase. There are no Boost includes in the source files and no Boost dependencies in CMakeLists.txt. This requirement should be removed unless there's a specific reason it's needed.

Suggested change
- Boost

Copilot uses AI. Check for mistakes.
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