Add comprehensive AI assistant instructions for HPCC-JS-WASM repository #315
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
This PR adds comprehensive copilot instructions to help future AI assistants (GitHub Copilot, ChatGPT, Claude, etc.) understand and work effectively with the HPCC-JS-WASM monorepo.
Problem
The HPCC-JS-WASM repository has a complex structure with:
Without proper guidance, AI assistants often struggle to:
Solution
Added comprehensive AI assistant documentation:
📁 Root-level Instructions
.copilot-summary.md- Navigation guide for all instructions.copilot-instructions.md- Repository overview and architecture (6.6KB).copilot-workflow.md- Step-by-step development workflows (6.6KB).copilot-patterns.md- Package usage patterns and quick reference (6.6KB).copilot-troubleshooting.md- Comprehensive debugging guide (8.8KB)📦 Package-specific Instructions
packages/graphviz/.copilot-package.md- Graphviz-specific guidance (6.7KB)packages/duckdb/.copilot-package.md- DuckDB-specific guidance (10.5KB)⚙️ IDE Integration
.vscode/settings.jsonwith AI-friendly configurationsREADME.mdto reference copilot instructionsKey Features
🏗️ Architecture Understanding
🔧 Development Workflows
npm ci → npm run build-ws → npm run lintnpm run install-build-deps → npm run build-cpp → npm run build-ws🎯 Package Patterns
Clear guidance for each WASM library:
🐛 Troubleshooting Coverage
Validation
✅ Linting passes: All code style checks pass
✅ Expected behavior: Build failures documented and explained
✅ TypeScript works: Packages can be developed without full WASM builds
✅ Comprehensive coverage: ~38KB of detailed guidance
Benefits for Future AI Sessions
Example Usage
When an AI assistant encounters this repository, they can:
This documentation significantly improves the AI assistant experience when working with this complex WebAssembly monorepo.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.