omnichannel-chat-sdk
Copilot instructions67 starsChanged 6 months agoMITView on GitHub
When creating pull requests, follow these guidelines:
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this copilot-instructions.md into the rules it gives an agent
31 rules. About 0 are common, 25 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈25
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 5
Install Dependencies: Run npm install to install all required dependencies
- Very specific: line 6
Build the SDK: Run npm run build:tsc to build the SDK
- Very specific: line 8
Linting: Run npm run lint to check for any code style
- Distinctive: line 12
When creating pull requests, follow these guidelines:
- Very specific: line 14
Code Standards: Ensure your code adheres to the project's coding standards defined in docs/copilot/CODING_GUIDELINES.md
- Distinctive: line 15
Commit Messages: Write clear and concise commit messages following conventional commit format
- Distinctive: line 17
Documentation: Update documentation if necessary, including JSDoc comments
- Distinctive: line 18
Test Verification: Ensure all tests pass before submitting the pull request
- Distinctive: line 21
Clarification: If you are not sure about something, ask for clarification in the pull request comments
- Distinctive: line 22
Incremental Changes: Consider breaking significant changes into smaller pull requests for easier review
- Distinctive: line 27
ASK FIRST: Always ask for permission before making any code modifications
- Distinctive: line 29
WAIT FOR APPROVAL: Do not proceed until receiving explicit "yes" or "proceed" confirmation
- Distinctive: line 30
NO ASSUMPTIONS: Never assume what the user wants - always clarify requirements
- Distinctive: line 34
When a user requests a change, respond with:
- Distinctive: line 39
Wait for explicit confirmation before implementing
- Distinctive: line 43
Changelog: Always include a one-line summary of the change at the top of CHANGELOG.md under [Unreleased] section:
- Distinctive: line 48
Documentation: Add diagrams and explanations to help reviewers understand entry points and follow changes
- Very specific: line 53
MUST follow: All patterns and guidelines specified in docs/copilot/CODING_GUIDELINES.md
- Distinctive: line 55
Code Quality: Write clear, concise, and well-documented code
- Distinctive: line 56
Comments: Add meaningful comments to explain complex business logic
- Distinctive: line 62
Telemetry: Always implement the startScenario() → completeScenario()/failScenario() pattern
- Distinctive: line 63
Error Structure: Use ChatSDKExceptionDetails structure for all error handling
- Distinctive: line 64
Type Safety: Follow strict TypeScript practices with proper type definitions
- Very specific: line 65
Platform Compatibility: Consider cross-platform compatibility (Browser, Node.js, React Native)
- Distinctive: line 66
Method Structure: Follow the standard async method pattern defined in coding guidelines
- Distinctive: line 71
Test Coverage: Ensure unit tests pass and maintain coverage standards
- Distinctive: line 72
Component Dependencies: When changes affect multiple components, clearly highlight this with warnings and impact analysis
- Distinctive: line 77
No Silent Changes: Do not make dependency updates without explicit approval
- Distinctive: line 78
No Silent Failures: Every error must be properly logged with telemetry
- Distinctive: line 79
No Type Safety Violations: Avoid using 'any' type without proper justification
- Distinctive: line 80
No Inconsistent Patterns: Follow established patterns consistently across the codebase
≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub Copilot Instructions for Omnichannel Chat SDK
Build Process
To build the Omnichannel Chat SDK, follow these steps:
- Install Dependencies: Run
npm installto install all required dependencies - Build the SDK: Run
npm run build:tscto build the SDK - Run Tests: Execute
npm run testto run all unit tests and ensure everything is functioning correctly - Linting: Run
npm run lintto check for any code style
Pull Request Guidelines
When creating pull requests, follow these guidelines:
- Code Standards: Ensure your code adheres to the project's coding standards defined in
docs/copilot/CODING_GUIDELINES.md - Commit Messages: Write clear and concise commit messages following conventional commit format
- Testing: Include comprehensive tests for any new functionality or bug fixes
- Documentation: Update documentation if necessary, including JSDoc comments
- Test Verification: Ensure all tests pass before submitting the pull request
- Collaboration: ALWAYS ask for explicit confirmation before proceeding with changes. Do not make any code modifications until explicitly authorized by the requester.
- Authorization Required: For every change request, provide a detailed plan of what will be modified and wait for explicit approval before implementing
- Clarification: If you are not sure about something, ask for clarification in the pull request comments
- Incremental Changes: Consider breaking significant changes into smaller pull requests for easier review
GitHub Copilot Behavior Guidelines
Response Protocol
- ASK FIRST: Always ask for permission before making any code modifications
- PROPOSE CHANGES: Present a clear plan of what will be changed and why
- WAIT FOR APPROVAL: Do not proceed until receiving explicit "yes" or "proceed" confirmation
- NO ASSUMPTIONS: Never assume what the user wants - always clarify requirements
- SUMMARIZE IMPACT: Explain potential side effects or dependencies before implementing
Example Response Pattern
When a user requests a change, respond with:
- "I understand you want to [describe the request]"
- "Here's what I propose to change: [detailed plan]"
- "This will affect: [list of files and components]"
- "Do you want me to proceed with these changes? (Yes/No)"
- Wait for explicit confirmation before implementing
- Incremental Changes: Consider breaking significant changes into smaller pull requests for easier review
- Bug Fixes: Include a description of the issue and how it was resolved
- Changelog: Always include a one-line summary of the change at the top of CHANGELOG.md under [Unreleased] section:
- Fixed: for bugs
- Changed: for improvements or modified functionality
- Added: for new features or components
- Testing Strategy: Suggest manual tests and possible edge cases
- Documentation: Add diagrams and explanations to help reviewers understand entry points and follow changes
Coding Standards
Essential Requirements
- MUST follow: All patterns and guidelines specified in
docs/copilot/CODING_GUIDELINES.md - MUST use: Prompt templates from
docs/copilot/PROMPT_TEMPLATES.mdwhen working with Copilot - Code Quality: Write clear, concise, and well-documented code
- Comments: Add meaningful comments to explain complex business logic
- Testing: Include comprehensive unit tests to verify functionality
- Error Handling: Handle errors gracefully with proper telemetry logging
- Review Process: Code must be reviewed by at least one other developer before merging
Omnichannel Chat SDK Specific Requirements
- Telemetry: Always implement the startScenario() → completeScenario()/failScenario() pattern
- Error Structure: Use ChatSDKExceptionDetails structure for all error handling
- Type Safety: Follow strict TypeScript practices with proper type definitions
- Platform Compatibility: Consider cross-platform compatibility (Browser, Node.js, React Native)
- Method Structure: Follow the standard async method pattern defined in coding guidelines
- Configuration: Respect feature flags and disable patterns throughout the codebase
Development Workflow
- Dependencies: Suggest library updates or new dependencies, but do not implement unless explicitly requested
- Test Coverage: Ensure unit tests pass and maintain coverage standards
- Component Dependencies: When changes affect multiple components, clearly highlight this with warnings and impact analysis
- Breaking Changes: Identify and document any breaking changes with migration guidance
Prohibited Actions
- No Unauthorized Changes: NEVER make code changes without explicit user approval. Always propose changes and wait for confirmation
- No Silent Changes: Do not make dependency updates without explicit approval
- No Silent Failures: Every error must be properly logged with telemetry
- No Type Safety Violations: Avoid using 'any' type without proper justification
- No Inconsistent Patterns: Follow established patterns consistently across the codebase
Reference Documents
- Coding Guidelines:
docs/copilot/CODING_GUIDELINES.md- Comprehensive coding standards and patterns - Prompt Templates:
docs/copilot/PROMPT_TEMPLATES.md- Ready-to-use templates for common development tasks - Development Guide:
docs/DEVELOPMENT_GUIDE.md- General development setup and guidelines - Troubleshooting:
docs/TROUBLESHOOTING_GUIDE.md- Common issues and solutions
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

