### Python Project Setup for Copilot Source: https://awesome-copilot.github.com/learning-hub/using-copilot-coding-agent Example configuration for a Python project, including setting up the Python version, installing dependencies, and running tests. ```yaml steps: - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.12' - name: Install dependencies run: pip install -r requirements.txt - name: Run tests run: pytest ``` -------------------------------- ### Start and Continue Session Example Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/02-context-and-conversations Demonstrates the workflow of starting a session, referencing files, performing actions, exiting, and then resuming the session with 'copilot --continue'. ```bash cd /path/to/copilot-cli-for-beginners copilot> @samples/book-app-project/books.py @samples/book-app-project/book_app.py Trace how a book goes from user input to being saved in data.json. > @samples/book-app-project/data.json What happens if this file is missing or corrupted? > /rename data-flow-analysis > /exit Then resume with: copilot --continue ``` -------------------------------- ### Multi-Language Project Setup for Copilot Source: https://awesome-copilot.github.com/learning-hub/using-copilot-coding-agent Example configuration for a multi-language project, demonstrating setup for both Node.js and Python dependencies, frontend build, and running all tests. ```yaml steps: - name: Install Node.js dependencies run: npm ci - name: Install Python dependencies run: pip install -r requirements.txt - name: Build frontend run: npm run build - name: Run all tests run: npm test && pytest ``` -------------------------------- ### Configure Copilot Setup Steps Source: https://awesome-copilot.github.com/learning-hub/using-copilot-coding-agent Define the steps for setting up your project environment for Copilot. This includes installing dependencies, building the project, and verifying tests pass. ```yaml steps: - name: Install dependencies run: npm ci - name: Build the project run: npm run build - name: Verify tests pass run: npm test ``` -------------------------------- ### Example SKILL.md Structure Source: https://awesome-copilot.github.com/learning-hub/using-copilot-coding-agent This is an example of a SKILL.md file, defining the skill's name, description, and usage instructions. It guides the agent on when and how to apply the skill. ```markdown --- name: database-migrations description: 'Guide for creating safe database migrations. Use when asked to modify database schema or create migrations.' --- When creating database migrations, follow this process: 1. Run "./scripts/check-schema.sh" to validate current state2. Create a new migration file following the naming convention: `YYYYMMDD_description.sql`3. Always include a rollback section4. Test the migration against a local database before committing ``` -------------------------------- ### Install Plugin by Name and Marketplace (CLI) Source: https://awesome-copilot.github.com/learning-hub/installing-and-using-plugins Installs a plugin using its name and the marketplace it belongs to via the Copilot CLI. ```bash copilot plugin install database-data-management@awesome-copilot ``` -------------------------------- ### Clone Repository and Start Copilot CLI Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/01-setup-and-first-steps Clone the course repository and start an interactive Copilot CLI session to review code. ```bash # Clone the course repository if you're working locally and haven't alreadygit clone https://github.com/github/copilot-cli-for-beginnerscd copilot-cli-for-beginners # Start Copilotcopilot ``` -------------------------------- ### Browse MCP Servers from Registry Source: https://awesome-copilot.github.com/learning-hub/understanding-mcp-servers Use this command to view and select available MCP servers from the registry for guided installation. ```bash /mcp registry ``` -------------------------------- ### Skill Structure: Examples Source: https://awesome-copilot.github.com/learning-hub/creating-effective-skills Illustrates how to provide 'Good Example' and 'What to Avoid' sections for a skill. ```markdown ### Good Example[Show desired output] ### What to Avoid[Show problematic patterns] ``` -------------------------------- ### Install Individual Plugins from Awesome Copilot Repository Source: https://awesome-copilot.github.com/learning-hub/installing-and-using-plugins Install specific plugins from the awesome-copilot repository by specifying the plugin name and the repository. Each plugin bundles related agents and skills. ```bash copilot plugin install context-engineering@awesome-copilot ``` ```bash copilot plugin install azure-cloud-development@awesome-copilot ``` ```bash copilot plugin install frontend-web-dev@awesome-copilot ``` -------------------------------- ### Install GitHub Copilot CLI with npm Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/00-quick-start Use this command to install the GitHub Copilot CLI if you have Node.js installed. ```bash npm install -g @github/copilot ``` -------------------------------- ### Verify Codespace Setup Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/00-quick-start Run this command in a Codespace to confirm Python and the sample app are working. ```bash cd samples/book-app-project && python book_app.py help ``` -------------------------------- ### MCP Server Configuration Example Source: https://awesome-copilot.github.com/learning-hub/understanding-mcp-servers Define MCP servers in a JSON configuration file. This example shows how to configure PostgreSQL and filesystem servers, specifying their commands, arguments, and environment variables. ```json { "servers": { "postgres": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-postgres"], "env": { "DATABASE_URL": "postgresql://user:pass@localhost:5432/mydb" } }, "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "./docs"] } } } ``` -------------------------------- ### Install Copilot CLI via npm or Script Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/00-quick-start If the brew installation fails, use npm or the provided install script to install the Copilot CLI. This is a troubleshooting step for installation issues. ```bash # If brew failed, try npm: npm install -g @github/copilot # Or the install script: curl -fsSL https://gh.io/copilot-install | bash ``` -------------------------------- ### Test Copilot CLI Installation Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/00-quick-start Verify your Copilot CLI installation by saying hello and asking about its capabilities. This is the first step after signing in. ```bash > Say hello and tell me what you can help with ``` ```bash > /exit ``` -------------------------------- ### Start GitHub Copilot CLI Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/00-quick-start Run this command in the terminal to start the GitHub Copilot CLI and initiate the authentication process. ```bash copilot ``` -------------------------------- ### Install GitHub Copilot CLI with WinGet Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/00-quick-start Install the GitHub Copilot CLI on Windows using WinGet. ```bash winget install GitHub.Copilot ``` -------------------------------- ### Install Specific MCP Server by Name Source: https://awesome-copilot.github.com/learning-hub/understanding-mcp-servers Install a particular MCP server directly by its name from the registry. ```bash /mcp install @modelcontextprotocol/server-postgres ``` -------------------------------- ### List Installed Skills Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/05-skills Displays all skills currently installed and available in Copilot CLI. ```bash > /skills list Available skills:- security-audit: Security-focused code review checking OWASP Top 10- generate-tests: Generate comprehensive unit tests with edge cases- code-checklist: Team code quality checklist... ``` -------------------------------- ### Install Microsoft Learn MCP Server Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/06-mcp-servers Installs the Microsoft Learn MCP server and its associated agent skills using the Copilot CLI command. This adds capabilities for concepts, tutorials, API lookups, and code samples. ```bash copilot > /plugin install microsoftdocs/mcp ``` -------------------------------- ### Install GitHub Copilot CLI with Install Script Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/00-quick-start Use this command to install the GitHub Copilot CLI on macOS or Linux via a script. ```bash curl -fsSL https://gh.io/copilot-install | bash ``` -------------------------------- ### Install Plugin in Interactive Session (CLI) Source: https://awesome-copilot.github.com/learning-hub/installing-and-using-plugins Installs a plugin from within an interactive Copilot CLI session. ```bash /plugin install database-data-management@awesome-copilot ``` -------------------------------- ### Scoping Instructions to Entire Project Source: https://awesome-copilot.github.com/learning-hub/defining-custom-instructions Example of using the wildcard glob pattern to apply instructions to all files in the entire project. ```yaml applyTo: '**' ``` -------------------------------- ### Install GitHub Copilot CLI with Homebrew Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/00-quick-start Install the GitHub Copilot CLI on macOS or Linux using Homebrew. ```bash brew install copilot-cli ``` -------------------------------- ### Manage Plugins in Copilot CLI Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/05-skills Commands for listing installed plugins, browsing the plugin marketplace, and installing new plugins. ```bash > /plugin list # Shows installed plugins > /plugin marketplace # Browse available plugins > /plugin install # Install a plugin from the marketplace ``` -------------------------------- ### GitHub Copilot CLI Configuration File Example Source: https://awesome-copilot.github.com/learning-hub/copilot-configuration-basics This is an example of the global configuration file for GitHub Copilot CLI, located at ~/.copilot-cli/config.json. It shows basic settings for editor preference and suggestion enablement. ```json { "editor": "vim", "suggestions": true } ``` -------------------------------- ### Skill SKILL.md with Argument Hint Source: https://awesome-copilot.github.com/learning-hub/creating-effective-skills A complete example of a SKILL.md frontmatter including the optional 'argument-hint' for improved user guidance. ```markdown --- name: generate-tests description: 'Generate comprehensive unit tests for the selected code, covering happy path, edge cases, and error conditions' argument-hint: 'Enter function, class, or file to test' --- ``` -------------------------------- ### Example Agent Front Matter Specifying Tools Source: https://awesome-copilot.github.com/learning-hub/github-copilot-terminology-glossary This snippet shows how to declare the tools an agent requires in its front matter. It includes 'codebase', 'terminalCommand', and 'github' as examples of built-in tools. ```yaml tools: ['codebase', 'terminalCommand', 'github'] ``` -------------------------------- ### Agent Invocation Syntax Example Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/05-skills Shows the syntax for invoking an agent, either by selecting from a list after typing '/agent' or using a command-line argument. ```bash /agent (select from list) or copilot --agent (command line) ``` -------------------------------- ### Configure Filesystem MCP Server Source: https://awesome-copilot.github.com/learning-hub/understanding-mcp-servers Example configuration for controlled access to specific directories using the filesystem MCP server. ```json { "filesystem": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "./data", "./config"] } } ``` -------------------------------- ### SKILL.md Frontmatter Example Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/05-skills Defines the basic metadata for a Copilot skill, including its name, a description of its function, and its license. ```yaml --- name: code-checklist description: Comprehensive code quality checklist with security, performance, and maintainability checks license: MIT --- ``` -------------------------------- ### Example Instruction File Source: https://awesome-copilot.github.com/learning-hub/copilot-configuration-basics Defines project-wide TypeScript coding conventions. Apply to all .ts and .tsx files. ```markdown --- description: 'TypeScript coding conventions for this project' applyTo: '**/*.ts, **/*.tsx' --- When writing TypeScript code: - Use strict type checking - Prefer interfaces over type aliases for object types - Always handle null/undefined with optional chaining - Use async/await instead of raw promises ``` -------------------------------- ### Add a new MCP server Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/06-mcp-servers Initiates an interactive setup process to add a new MCP server to your configuration. ```bash /mcp add ``` -------------------------------- ### README.md Metadata for Hooks Source: https://awesome-copilot.github.com/learning-hub/automating-with-hooks Example of a README.md file used to provide metadata and documentation for a hook. Includes name, description, and tags. ```markdown --- name: 'Auto Format' description: 'Automatically formats code using project formatters before commits' tags: ['formatting', 'code-quality'] --- # Auto Format Runs your project's configured formatter (Prettier, Black, gofmt, etc.)automatically before the agent commits changes. ## Setup 1. Ensure your formatter is installed and configured2. Copy the hooks.json to your `.github/hooks/` directory3. Adjust the formatter command for your project ``` -------------------------------- ### Initialize Project Configuration Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/04-agents-and-custom-instructions Use the /init command to automatically generate tailored instruction files for your project. Copilot scans your project and creates the necessary configuration files, which you can then edit. ```bash copilot> /init ``` -------------------------------- ### Create a test file and query it Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/02-context-and-conversations Demonstrates creating a simple Python file and then using Copilot CLI with the @ syntax to understand its content. This is a quick way to test Copilot CLI's file analysis capabilities without a full project setup. ```bash echo "def greet(name): return 'Hello ' + name" > test.py copilot> What does @test.py do? ``` -------------------------------- ### Get Information About a Specific Skill Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/05-skills Retrieves detailed information about a particular installed skill, including its source, location, and description. ```bash > /skills info security-audit Skill: security-auditSource: ProjectLocation: .github/skills/security-audit/SKILL.mdDescription: Security-focused code review checking OWASP Top 10 vulnerabilities ``` -------------------------------- ### Generate Pytest Command Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/03-development-workflows Ask Copilot CLI for the correct shell command to run your tests. This example shows how to get the command for running pytest tests in a specific project directory. ```bash copilot > How do I run the tests? Show me the pytest command. # Copilot CLI responds:# cd samples/book-app-project && python -m pytest tests/# Or for verbose output: python -m pytest tests/ -v# To see print statements: python -m pytest tests/ -s ``` -------------------------------- ### Load Copilot Plugins from a Local Directory Source: https://awesome-copilot.github.com/learning-hub/installing-and-using-plugins Start Copilot with the --plugin-dir flag to load plugins directly from a local directory without marketplace installation. This is useful for testing local plugins. ```bash copilot --plugin-dir /path/to/my-plugin ``` -------------------------------- ### Get Best Practices with Context7 MCP Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/06-mcp-servers Utilize the Context7 MCP to retrieve best practices related to specific technologies or coding patterns. This example queries for Python best practices concerning JSON data persistence. ```copilot-cli copilot # Step 3: Use Context7 MCP for best practices> What are Python best practices for JSON data persistence? ``` -------------------------------- ### Example Beginner Prompts for Copilot CLI Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/01-setup-and-first-steps Try these simple, natural language prompts to explore Copilot CLI's capabilities. These prompts do not require a code repository. ```bash > Explain what a dataclass is in Python in simple terms ``` ```bash > Write a function that sorts a list of dictionaries by a specific key ``` ```bash > What's the difference between a list and a tuple in Python? ``` ```bash > Give me 5 best practices for writing clean Python code ``` -------------------------------- ### Initialize Theme Handling Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/00-quick-start Sets the initial theme based on local storage or system preferences. Handles 'dark', 'light', and 'auto' settings. ```javascript (function() { const STORAGE_KEY = 'awesome-copilot-theme'; const stored = localStorage.getItem(STORAGE_KEY); if (stored === 'dark' || stored === 'light') { document.documentElement.setAttribute('data-theme', stored); } })(); ``` -------------------------------- ### Example Plan Mode Output Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/01-setup-and-first-steps This is a sample output from Copilot CLI's Plan Mode, outlining the steps for implementing a 'mark as read' command. It includes updating the command handler, implementing the handler function, updating help text, and testing the flow. ```text 📋 Implementation Plan Step 1: Update the command handler in book_app.py - Add new elif branch for "mark" command - Create handle_mark_as_read() function Step 2: Implement the handler function - Prompt user for book title - Call collection.mark_as_read(title) - Display success/failure message Step 3: Update help text - Add "mark" to available commands list - Document the command usage Step 4: Test the flow - Add a book - Mark it as read - Verify status changes in list output Proceed with implementation? [Y/n] ``` -------------------------------- ### Example Copilot Workflow Stages Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/07-putting-it-all-together Demonstrates a multi-stage workflow using Copilot commands for understanding a project, analyzing specific code, and identifying tasks. ```shell # Start Copilot in interactive modecopilot # PHASE 1: Get the big picture with context> @samples/book-app-project/ Explain the high-level architecture of this codebase # PHASE 2: Understand a specific flow> @samples/book-app-project/book_app.py Walk me through what happens> when a user runs "python book_app.py add" # PHASE 3: Get expert analysis with an agent> /agent# Select "python-reviewer" > @samples/book-app-project/books.py Are there any design issues,> missing error handling, or improvements you would recommend? # PHASE 4: Find something to work on (MCP provides GitHub access)> List open issues labeled "good first issue" # PHASE 5: Start contributing> Pick the simplest open issue and outline a plan to fix it ``` -------------------------------- ### Install gh aw CLI Extension Source: https://awesome-copilot.github.com/learning-hub/agentic-workflows Installs the GitHub CLI extension for managing agentic workflows. ```bash gh extension install github/gh-aw ``` -------------------------------- ### Agent Creation Commands Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/04-agents-and-custom-instructions Demonstrates creating agent configuration files using shell redirection and then invoking these agents from the Copilot CLI. ```bash # Create the agents directory (if it doesn't exist)mkdir -p .github/agents # Create a code reviewer agentcat > .github/agents/reviewer.agent.md << 'EOF' ---name: reviewerdescription: Senior code reviewer focused on security and best practices--- # Code Reviewer Agent You are a senior code reviewer focused on code quality. **Review priorities:**1. Security vulnerabilities2. Performance issues3. Maintainability concerns4. Best practice violations **Output format:**Provide issues as a numbered list with severity tags:[CRITICAL], [HIGH], [MEDIUM], [LOW] EOF # Create a documentation agentcat > .github/agents/documentor.agent.md << 'EOF' ---name: documentordescription: Technical writer for clear and complete documentation--- # Documentation Agent You are a technical writer who creates clear documentation. **Documentation standards:**- Start with a one-sentence summary- Include usage examples- Document parameters and return values- Note any gotchas or limitations EOF # Now use themcopilot --agent reviewer> Review @samples/book-app-project/books.py # Or switch agents copilot> /agent # Select "documentor" > Document @samples/book-app-project/books.py ``` -------------------------------- ### Configure Filesystem and Context7 MCP Servers Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/06-mcp-servers Example of a complete mcp-config.json file that defines both the local filesystem and Context7 MCP servers. This configuration specifies the command and arguments needed to run these servers. ```json { "mcpServers": { "filesystem": { "type": "local", "command": "npx", "args": ["-y", "@modelcontextprotocol/server-filesystem", "."] "tools": ["*"] }, "context7": { "type": "local", "command": "npx", "args": ["-y", "@upstash/context7-mcp"] "tools": ["*"] } } } ``` -------------------------------- ### Agentic Workflow Frontmatter Example Source: https://awesome-copilot.github.com/learning-hub/agentic-workflows Example of the required and optional frontmatter fields for an agentic workflow markdown file. ```yaml --- name: "My New Workflow" description: "A clear description of what this workflow does" on: schedule: daily permissions: contents: read safe-outputs: create-issue: title-prefix: "[my-workflow] " labels: [automated] --- ``` -------------------------------- ### Add Marketplace from GitHub Repository (CLI) Source: https://awesome-copilot.github.com/learning-hub/installing-and-using-plugins Registers a new plugin marketplace from a GitHub repository using the Copilot CLI. ```bash copilot plugin marketplace add anthropics/claude-code ``` -------------------------------- ### Query Pytest Best Practices Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/06-mcp-servers Use the Context7 Server to look up documentation and best practices for libraries like pytest. This example shows how to query for best practices related to pytest fixtures. ```bash copilot > What are the best practices for using pytest fixtures? From pytest Documentation: Fixtures - Use fixtures to provide a fixed baseline for tests: import pytest @pytest.fixture def sample_books(): return [ {"title": "1984", "author": "George Orwell", "year": 1949}, {"title": "Dune", "author": "Frank Herbert", "year": 1965}, ] def test_find_by_author(sample_books): # fixture is automatically passed as argument results = [b for b in sample_books if "Orwell" in b["author"]] assert len(results) == 1 Best practices:- Use fixtures instead of setup/teardown methods- Use tmp_path fixture for temporary files- Use monkeypatch for modifying environment- Scope fixtures appropriately (function, class, module, session) ``` -------------------------------- ### Good Description Example Source: https://awesome-copilot.github.com/learning-hub/creating-effective-skills An example of a well-written skill description that includes trigger keywords and contextual cues for effective agent matching. ```text 'Generate conventional commit messages by analyzing staged git changes and applying the Conventional Commits specification' ``` -------------------------------- ### Create Configuration Directories Source: https://awesome-copilot.github.com/learning-hub/copilot-configuration-basics Creates the necessary directory structure for Copilot configuration files in the repository root. ```bash mkdir -p .github/{agents,skills,instructions} ``` -------------------------------- ### Understand Codebase Overview Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/02-context-and-conversations Quickly grasp the functionality and quality issues of an entire project by providing the project directory to Copilot CLI. This helps in prioritizing fixes and understanding the overall structure. ```bash copilot > @samples/book-app-project/>> In one paragraph, what does this app do and what are its biggest quality issues? ``` -------------------------------- ### Add Marketplace from Local Path (CLI) Source: https://awesome-copilot.github.com/learning-hub/installing-and-using-plugins Registers a new plugin marketplace from a local file path using the Copilot CLI. ```bash copilot plugin marketplace add /path/to/local-marketplace ``` -------------------------------- ### Example Terraform Expert Agent Source: https://awesome-copilot.github.com/learning-hub/copilot-configuration-basics Defines a custom agent for specialized workflows, such as infrastructure management. This example agent is an expert in Terraform and cloud infrastructure. ```markdown --- description: 'Terraform infrastructure-as-code specialist' tools: ['filesystem', 'terminal'] name: 'Terraform Expert' --- You are an expert in Terraform and cloud infrastructure.Guide users through creating, reviewing, and deploying infrastructure code. ``` -------------------------------- ### Automatic Agent Invocation Examples Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/04-agents-and-custom-instructions Examples of how Explore and Task agents are invoked automatically for relevant tasks like running tests or exploring code. ```bash > Run the test suite # Uses Task agent ``` ```bash > Explore how book data is loaded # Uses Explore agent ``` -------------------------------- ### Start a New CLI Session Source: https://awesome-copilot.github.com/learning-hub/copilot-configuration-basics Initiates a new conversation in GitHub Copilot CLI while keeping the current session in the background. An optional prompt can be provided to start the new session. ```bash /new [prompt] ``` ```bash /new Add error handling to the login flow ``` -------------------------------- ### Configure PostgreSQL MCP Server Source: https://awesome-copilot.github.com/learning-hub/understanding-mcp-servers Example configuration for connecting to a PostgreSQL database. Sensitive values like DATABASE_URL should use input variables for security. ```json { "postgres": { "command": "npx", "args": ["-y", "@modelcontextprotocol/server-postgres"], "env": { "DATABASE_URL": "${input:databaseUrl}" } } } ``` -------------------------------- ### Example Comprehensive Pytest Structure Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/03-development-workflows This is an example of the comprehensive test structure that Copilot CLI can generate, covering happy paths, find operations, edge cases, data persistence, and special characters. ```python class TestBookCollection: # Happy path def test_add_book_creates_new_book(self): ... def test_list_books_returns_all_books(self): ... # Find operations def test_find_book_by_title_case_insensitive(self): ... def test_find_book_by_title_returns_none_when_not_found(self): ... def test_find_by_author_partial_match(self): ... def test_find_by_author_case_insensitive(self): ... # Edge cases def test_add_book_with_empty_title(self): ... def test_remove_nonexistent_book(self): ... def test_mark_as_read_nonexistent_book(self): ... # Data persistence def test_save_books_persists_to_json(self): ... def test_load_books_handles_missing_file(self): ... def test_load_books_handles_corrupted_json(self): ... # Special characters def test_add_book_with_unicode_characters(self): ... def test_find_by_author_with_special_characters(self): ... ``` -------------------------------- ### Get Quick Help with Programmatic Mode Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/01-setup-and-first-steps Use the `-p` flag to ask quick questions and receive immediate answers without an interactive session. Useful for getting help on specific tasks. ```bash copilot -p "How do I read a JSON file in Python?" ``` -------------------------------- ### Browse Plugins in Marketplace (CLI) Source: https://awesome-copilot.github.com/learning-hub/installing-and-using-plugins Browses plugins available in a specified marketplace using the Copilot CLI. ```bash copilot plugin marketplace browse awesome-copilot ``` -------------------------------- ### Copying Sample Agent to Personal Folder Source: https://awesome-copilot.github.com/learning-hub/cli-for-beginners/04-agents-and-custom-instructions Copy a sample agent file from the project's .github/agents directory to your global ~/.copilot/agents/ directory for use in any project. ```bash cp .github/agents/python-reviewer.agent.md ~/.copilot/agents/ ```