agentleFS
MicrosoftKnown publishermicrosoft/omnichannel-chat-sdk/.github/copilot-instructions.md

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.

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
  1. Very specific:

    Install Dependencies: Run npm install to install all required dependencies

    line 5
  2. Very specific:

    Build the SDK: Run npm run build:tsc to build the SDK

    line 6
  3. Very specific:

    Linting: Run npm run lint to check for any code style

    line 8
  4. Distinctive:

    When creating pull requests, follow these guidelines:

    line 12
  5. Very specific:

    Code Standards: Ensure your code adheres to the project's coding standards defined in docs/copilot/CODING_GUIDELINES.md

    line 14
  6. Distinctive:

    Commit Messages: Write clear and concise commit messages following conventional commit format

    line 15
  7. Distinctive:

    Documentation: Update documentation if necessary, including JSDoc comments

    line 17
  8. Distinctive:

    Test Verification: Ensure all tests pass before submitting the pull request

    line 18
  9. Distinctive:

    Clarification: If you are not sure about something, ask for clarification in the pull request comments

    line 21
  10. Distinctive:

    Incremental Changes: Consider breaking significant changes into smaller pull requests for easier review

    line 22
  11. Distinctive:

    ASK FIRST: Always ask for permission before making any code modifications

    line 27
  12. Distinctive:

    WAIT FOR APPROVAL: Do not proceed until receiving explicit "yes" or "proceed" confirmation

    line 29
  13. Distinctive:

    NO ASSUMPTIONS: Never assume what the user wants - always clarify requirements

    line 30
  14. Distinctive:

    When a user requests a change, respond with:

    line 34
  15. Distinctive:

    Wait for explicit confirmation before implementing

    line 39
  16. Distinctive:

    Changelog: Always include a one-line summary of the change at the top of CHANGELOG.md under [Unreleased] section:

    line 43
  17. Distinctive:

    Documentation: Add diagrams and explanations to help reviewers understand entry points and follow changes

    line 48
  18. Very specific:

    MUST follow: All patterns and guidelines specified in docs/copilot/CODING_GUIDELINES.md

    line 53
  19. Distinctive:

    Code Quality: Write clear, concise, and well-documented code

    line 55
  20. Distinctive:

    Comments: Add meaningful comments to explain complex business logic

    line 56
  21. Distinctive:

    Telemetry: Always implement the startScenario() → completeScenario()/failScenario() pattern

    line 62
  22. Distinctive:

    Error Structure: Use ChatSDKExceptionDetails structure for all error handling

    line 63
  23. Distinctive:

    Type Safety: Follow strict TypeScript practices with proper type definitions

    line 64
  24. Very specific:

    Platform Compatibility: Consider cross-platform compatibility (Browser, Node.js, React Native)

    line 65
  25. Distinctive:

    Method Structure: Follow the standard async method pattern defined in coding guidelines

    line 66
  26. Distinctive:

    Test Coverage: Ensure unit tests pass and maintain coverage standards

    line 71
  27. Distinctive:

    Component Dependencies: When changes affect multiple components, clearly highlight this with warnings and impact analysis

    line 72
  28. Distinctive:

    No Silent Changes: Do not make dependency updates without explicit approval

    line 77
  29. Distinctive:

    No Silent Failures: Every error must be properly logged with telemetry

    line 78
  30. Distinctive:

    No Type Safety Violations: Avoid using 'any' type without proper justification

    line 79
  31. Distinctive:

    No Inconsistent Patterns: Follow established patterns consistently across the codebase

    line 80

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
copilot-instructions.md

GitHub Copilot Instructions for Omnichannel Chat SDK

Build Process

To build the Omnichannel Chat SDK, follow these steps:

  1. Install Dependencies: Run npm install to install all required dependencies
  2. Build the SDK: Run npm run build:tsc to build the SDK
  3. Run Tests: Execute npm run test to run all unit tests and ensure everything is functioning correctly
  4. Linting: Run npm run lint to check for any code style

Pull Request Guidelines

When creating pull requests, follow these guidelines:

  1. Code Standards: Ensure your code adheres to the project's coding standards defined in docs/copilot/CODING_GUIDELINES.md
  2. Commit Messages: Write clear and concise commit messages following conventional commit format
  3. Testing: Include comprehensive tests for any new functionality or bug fixes
  4. Documentation: Update documentation if necessary, including JSDoc comments
  5. Test Verification: Ensure all tests pass before submitting the pull request
  6. Collaboration: ALWAYS ask for explicit confirmation before proceeding with changes. Do not make any code modifications until explicitly authorized by the requester.
  7. Authorization Required: For every change request, provide a detailed plan of what will be modified and wait for explicit approval before implementing
  8. Clarification: If you are not sure about something, ask for clarification in the pull request comments
  9. 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:

  1. "I understand you want to [describe the request]"
  2. "Here's what I propose to change: [detailed plan]"
  3. "This will affect: [list of files and components]"
  4. "Do you want me to proceed with these changes? (Yes/No)"
  5. Wait for explicit confirmation before implementing
  6. Incremental Changes: Consider breaking significant changes into smaller pull requests for easier review
  7. Bug Fixes: Include a description of the issue and how it was resolved
  8. 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
  9. Testing Strategy: Suggest manual tests and possible edge cases
  10. 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.md when 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.