diff --git a/.github/plugin/marketplace.json b/.github/plugin/marketplace.json index f98414ef..3921aff4 100644 --- a/.github/plugin/marketplace.json +++ b/.github/plugin/marketplace.json @@ -19,7 +19,7 @@ { "name": "azure-cloud-development", "source": "./plugins/azure-cloud-development", - "description": "Azure cloud development tools including Infrastructure as Code, architecture patterns, and cost optimization.", + "description": "Comprehensive Azure cloud development tools including Infrastructure as Code, serverless functions, architecture patterns, and cost optimization for building scalable cloud applications.", "version": "1.0.0" }, { @@ -34,10 +34,16 @@ "description": "Tools for REPL-first Clojure workflows featuring Clojure instructions, the interactive programming chat mode and supporting guidance.", "version": "1.0.0" }, + { + "name": "context-engineering", + "source": "./plugins/context-engineering", + "description": "Tools and techniques for maximizing GitHub Copilot effectiveness through better context management. Includes guidelines for structuring code, an agent for planning multi-file changes, and prompts for context-aware development.", + "version": "1.0.0" + }, { "name": "copilot-sdk", "source": "./plugins/copilot-sdk", - "description": "Build applications with the GitHub Copilot SDK across multiple programming languages. Includes comprehensive instructions for C#, Go, Node.js/TypeScript, and Python.", + "description": "Build applications with the GitHub Copilot SDK across multiple programming languages. Includes comprehensive instructions for C#, Go, Node.js/TypeScript, and Python to help you create AI-powered applications.", "version": "1.0.0" }, { @@ -49,7 +55,7 @@ { "name": "csharp-mcp-development", "source": "./plugins/csharp-mcp-development", - "description": "Complete toolkit for building Model Context Protocol (MCP) servers in C# using the official SDK.", + "description": "Complete toolkit for building Model Context Protocol (MCP) servers in C# using the official SDK. Includes instructions for best practices, a prompt for generating servers, and an expert chat mode for guidance.", "version": "1.0.0" }, { @@ -61,7 +67,7 @@ { "name": "dataverse-sdk-for-python", "source": "./plugins/dataverse-sdk-for-python", - "description": "Comprehensive collection for building production-ready Python integrations with Microsoft Dataverse.", + "description": "Comprehensive collection for building production-ready Python integrations with Microsoft Dataverse. Includes official documentation, best practices, advanced features, file operations, and code generation prompts.", "version": "1.0.0" }, { @@ -82,10 +88,16 @@ "description": "Essential prompts, instructions, and chat modes for modern frontend web development including React, Angular, Vue, TypeScript, and CSS frameworks.", "version": "1.0.0" }, + { + "name": "gem-team", + "source": "./plugins/gem-team", + "description": "A modular multi-agent team for complex project execution with DAG-based planning, parallel execution, TDD verification, and automated testing.", + "version": "1.0.0" + }, { "name": "go-mcp-development", "source": "./plugins/go-mcp-development", - "description": "Complete toolkit for building Model Context Protocol (MCP) servers in Go using the official github.com/modelcontextprotocol/go-sdk.", + "description": "Complete toolkit for building Model Context Protocol (MCP) servers in Go using the official github.com/modelcontextprotocol/go-sdk. Includes instructions for best practices, a prompt for generating servers, and an expert chat mode for guidance.", "version": "1.0.0" }, { @@ -103,91 +115,97 @@ { "name": "kotlin-mcp-development", "source": "./plugins/kotlin-mcp-development", - "description": "Complete toolkit for building Model Context Protocol (MCP) servers in Kotlin using the official io.modelcontextprotocol:kotlin-sdk library.", + "description": "Complete toolkit for building Model Context Protocol (MCP) servers in Kotlin using the official io.modelcontextprotocol:kotlin-sdk library. Includes instructions for best practices, a prompt for generating servers, and an expert chat mode for guidance.", "version": "1.0.0" }, { "name": "mcp-m365-copilot", "source": "./plugins/mcp-m365-copilot", - "description": "Comprehensive collection for building declarative agents with Model Context Protocol integration for Microsoft 365 Copilot.", + "description": "Comprehensive collection for building declarative agents with Model Context Protocol integration for Microsoft 365 Copilot", "version": "1.0.0" }, { "name": "openapi-to-application-csharp-dotnet", "source": "./plugins/openapi-to-application-csharp-dotnet", - "description": "Generate production-ready .NET applications from OpenAPI specifications. Includes ASP.NET Core project scaffolding, controller generation, and entity framework integration.", + "description": "Generate production-ready .NET applications from OpenAPI specifications. Includes ASP.NET Core project scaffolding, controller generation, entity framework integration, and C# best practices.", "version": "1.0.0" }, { "name": "openapi-to-application-go", "source": "./plugins/openapi-to-application-go", - "description": "Generate production-ready Go applications from OpenAPI specifications. Includes project scaffolding, handler generation, middleware setup, and Go best practices.", + "description": "Generate production-ready Go applications from OpenAPI specifications. Includes project scaffolding, handler generation, middleware setup, and Go best practices for REST APIs.", "version": "1.0.0" }, { "name": "openapi-to-application-java-spring-boot", "source": "./plugins/openapi-to-application-java-spring-boot", - "description": "Generate production-ready Spring Boot applications from OpenAPI specifications. Includes project scaffolding, REST controller generation, and service layer organization.", + "description": "Generate production-ready Spring Boot applications from OpenAPI specifications. Includes project scaffolding, REST controller generation, service layer organization, and Spring Boot best practices.", "version": "1.0.0" }, { "name": "openapi-to-application-nodejs-nestjs", "source": "./plugins/openapi-to-application-nodejs-nestjs", - "description": "Generate production-ready NestJS applications from OpenAPI specifications. Includes project scaffolding, controller and service generation, and TypeScript best practices.", + "description": "Generate production-ready NestJS applications from OpenAPI specifications. Includes project scaffolding, controller and service generation, TypeScript best practices, and enterprise patterns.", "version": "1.0.0" }, { "name": "openapi-to-application-python-fastapi", "source": "./plugins/openapi-to-application-python-fastapi", - "description": "Generate production-ready FastAPI applications from OpenAPI specifications. Includes project scaffolding, route generation, and dependency injection.", + "description": "Generate production-ready FastAPI applications from OpenAPI specifications. Includes project scaffolding, route generation, dependency injection, and Python best practices for async APIs.", + "version": "1.0.0" + }, + { + "name": "ospo-sponsorship", + "source": "./plugins/ospo-sponsorship", + "description": "Tools and resources for Open Source Program Offices (OSPOs) to identify, evaluate, and manage sponsorship of open source dependencies through GitHub Sponsors, Open Collective, and other funding platforms.", "version": "1.0.0" }, { "name": "partners", "source": "./plugins/partners", - "description": "Custom agents that have been created by GitHub partners.", + "description": "Custom agents that have been created by GitHub partners", "version": "1.0.0" }, { "name": "pcf-development", "source": "./plugins/pcf-development", - "description": "Complete toolkit for developing custom code components using Power Apps Component Framework for model-driven and canvas apps.", + "description": "Complete toolkit for developing custom code components using Power Apps Component Framework for model-driven and canvas apps", "version": "1.0.0" }, { "name": "php-mcp-development", "source": "./plugins/php-mcp-development", - "description": "Comprehensive resources for building Model Context Protocol servers using the official PHP SDK with attribute-based discovery.", + "description": "Comprehensive resources for building Model Context Protocol servers using the official PHP SDK with attribute-based discovery, including best practices, project generation, and expert assistance", "version": "1.0.0" }, { "name": "power-apps-code-apps", "source": "./plugins/power-apps-code-apps", - "description": "Complete toolkit for Power Apps Code Apps development including project scaffolding, development standards, and expert guidance.", + "description": "Complete toolkit for Power Apps Code Apps development including project scaffolding, development standards, and expert guidance for building code-first applications with Power Platform integration.", "version": "1.0.0" }, { "name": "power-bi-development", "source": "./plugins/power-bi-development", - "description": "Comprehensive Power BI development resources including data modeling, DAX optimization, performance tuning, and visualization design.", + "description": "Comprehensive Power BI development resources including data modeling, DAX optimization, performance tuning, visualization design, security best practices, and DevOps/ALM guidance for building enterprise-grade Power BI solutions.", "version": "1.0.0" }, { "name": "power-platform-mcp-connector-development", "source": "./plugins/power-platform-mcp-connector-development", - "description": "Complete toolkit for developing Power Platform custom connectors with Model Context Protocol integration for Microsoft Copilot Studio.", + "description": "Complete toolkit for developing Power Platform custom connectors with Model Context Protocol integration for Microsoft Copilot Studio", "version": "1.0.0" }, { "name": "project-planning", "source": "./plugins/project-planning", - "description": "Tools and guidance for software project planning, feature breakdown, epic management, implementation planning, and task organization.", + "description": "Tools and guidance for software project planning, feature breakdown, epic management, implementation planning, and task organization for development teams.", "version": "1.0.0" }, { "name": "python-mcp-development", "source": "./plugins/python-mcp-development", - "description": "Complete toolkit for building Model Context Protocol (MCP) servers in Python using the official SDK with FastMCP.", + "description": "Complete toolkit for building Model Context Protocol (MCP) servers in Python using the official SDK with FastMCP. Includes instructions for best practices, a prompt for generating servers, and an expert chat mode for guidance.", "version": "1.0.0" }, { @@ -199,13 +217,13 @@ { "name": "rust-mcp-development", "source": "./plugins/rust-mcp-development", - "description": "Build high-performance Model Context Protocol servers in Rust using the official rmcp SDK with async/await and procedural macros.", + "description": "Build high-performance Model Context Protocol servers in Rust using the official rmcp SDK with async/await, procedural macros, and type-safe implementations.", "version": "1.0.0" }, { "name": "security-best-practices", "source": "./plugins/security-best-practices", - "description": "Security frameworks, accessibility guidelines, performance optimization, and code quality best practices.", + "description": "Security frameworks, accessibility guidelines, performance optimization, and code quality best practices for building secure, maintainable, and high-performance applications.", "version": "1.0.0" }, { @@ -217,7 +235,7 @@ { "name": "structured-autonomy", "source": "./plugins/structured-autonomy", - "description": "Premium planning, thrifty implementation.", + "description": "Premium planning, thrifty implementation", "version": "1.0.0" }, { @@ -229,25 +247,25 @@ { "name": "technical-spike", "source": "./plugins/technical-spike", - "description": "Tools for creation, management and research of technical spikes to reduce unknowns and assumptions before specification and implementation.", + "description": "Tools for creation, management and research of technical spikes to reduce unknowns and assumptions before proceeding to specification and implementation of solutions.", "version": "1.0.0" }, { "name": "testing-automation", "source": "./plugins/testing-automation", - "description": "Comprehensive collection for writing tests, test automation, and TDD including unit tests, integration tests, and end-to-end testing.", + "description": "Comprehensive collection for writing tests, test automation, and test-driven development including unit tests, integration tests, and end-to-end testing strategies.", "version": "1.0.0" }, { "name": "typescript-mcp-development", "source": "./plugins/typescript-mcp-development", - "description": "Complete toolkit for building Model Context Protocol (MCP) servers in TypeScript/Node.js using the official SDK.", + "description": "Complete toolkit for building Model Context Protocol (MCP) servers in TypeScript/Node.js using the official SDK. Includes instructions for best practices, a prompt for generating servers, and an expert chat mode for guidance.", "version": "1.0.0" }, { "name": "typespec-m365-copilot", "source": "./plugins/typespec-m365-copilot", - "description": "Comprehensive collection of prompts, instructions, and resources for building declarative agents and API plugins using TypeSpec for Microsoft 365 Copilot.", + "description": "Comprehensive collection of prompts, instructions, and resources for building declarative agents and API plugins using TypeSpec for Microsoft 365 Copilot extensibility.", "version": "1.0.0" } ] diff --git a/.github/workflows/validate-readme.yml b/.github/workflows/validate-readme.yml index a4b2d05d..1969ad9e 100644 --- a/.github/workflows/validate-readme.yml +++ b/.github/workflows/validate-readme.yml @@ -8,6 +8,7 @@ on: - "prompts/**" - "agents/**" - "collections/**" + - "plugins/**" - "*.js" - "README.md" - "docs/**" diff --git a/AGENTS.md b/AGENTS.md index 4af726cc..b397671e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -32,9 +32,12 @@ The Awesome GitHub Copilot repository is a community-driven collection of custom # Install dependencies npm ci -# Build the project (generates README.md) +# Build the project (generates README.md and marketplace.json) npm run build +# Generate marketplace.json only +npm run plugin:generate-marketplace + # Validate collection manifests npm run collection:validate @@ -93,9 +96,18 @@ All agent files (`*.agent.md`), prompt files (`*.prompt.md`), and instruction fi - Follow the [GitHub Copilot hooks specification](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/use-hooks) - Optionally includes `tags` field for categorization +#### Plugin Folders (plugins/*) +- Each plugin is a folder containing a `.github/plugin/plugin.json` file with metadata +- plugin.json must have `name` field (matching the folder name) +- plugin.json must have `description` field (describing the plugin's purpose) +- plugin.json must have `version` field (semantic version, e.g., "1.0.0") +- Plugin folders can contain any combination of agents, prompts, instructions, skills, and hooks +- The `marketplace.json` file is automatically generated from all plugins during build +- Plugins are discoverable and installable via GitHub Copilot CLI + ### Adding New Resources -When adding a new agent, prompt, instruction, skill, or hook: +When adding a new agent, prompt, instruction, skill, hook, or plugin: **For Agents, Prompts, and Instructions:** 1. Create the file with proper front matter @@ -121,6 +133,14 @@ When adding a new agent, prompt, instruction, skill, or hook: 5. Update the README.md by running: `npm run build` 6. Verify the skill appears in the generated README +**For Plugins:** +1. Create a new folder in `plugins/` with a descriptive name (lowercase with hyphens) +2. Create `.github/plugin/plugin.json` with metadata (name, description, version) +3. Add agents, prompts, instructions, skills, or hooks to the plugin folder +4. Run `npm run build` to update README.md and marketplace.json +5. Verify the plugin appears in `.github/plugin/marketplace.json` +6. Test plugin installation: `copilot plugin install @awesome-copilot` + ### Testing Instructions ```bash @@ -219,6 +239,15 @@ For hook folders (hooks/*/): - [ ] Follows [GitHub Copilot hooks specification](https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/use-hooks) - [ ] Optionally includes `tags` array field for categorization +For plugin folders (plugins/*/): +- [ ] Folder contains a `.github/plugin/plugin.json` file with metadata +- [ ] plugin.json has `name` field matching folder name (lowercase with hyphens) +- [ ] plugin.json has non-empty `description` field +- [ ] plugin.json has `version` field (semantic version, e.g., "1.0.0") +- [ ] Folder name is lower case with hyphens +- [ ] Plugin resources (agents, prompts, etc.) follow their respective guidelines +- [ ] Run `npm run build` to verify marketplace.json is updated correctly + ## Contributing This is a community-driven project. Contributions are welcome! Please see: diff --git a/collections/ospo-sponsorship.collection.yml b/collections/ospo-sponsorship.collection.yml new file mode 100644 index 00000000..8d547734 --- /dev/null +++ b/collections/ospo-sponsorship.collection.yml @@ -0,0 +1,15 @@ +id: ospo-sponsorship +name: Open Source Sponsorship +description: Tools and resources for Open Source Program Offices (OSPOs) to identify, evaluate, and manage sponsorship of open source dependencies through GitHub Sponsors, Open Collective, and other funding platforms. +tags: [ospo, sponsorship, open-source, funding, github-sponsors] +items: + # Agent Skills + - path: skills/sponsor-finder/SKILL.md + kind: skill + usage: | + Find which of a GitHub repository's dependencies are sponsorable via GitHub Sponsors. + Invoke by providing a GitHub owner/repo (e.g., "find sponsorable dependencies in expressjs/express"). +display: + ordering: alpha # or "manual" to preserve the order above + show_badge: true # set to true to show collection badge on items + featured: false diff --git a/collections/ospo-sponsorship.md b/collections/ospo-sponsorship.md new file mode 100644 index 00000000..f620a905 --- /dev/null +++ b/collections/ospo-sponsorship.md @@ -0,0 +1,22 @@ +# Open Source Sponsorship + +Tools and resources for Open Source Program Offices (OSPOs) to identify, evaluate, and manage sponsorship of open source dependencies through GitHub Sponsors, Open Collective, and other funding platforms. + +**Tags:** ospo, sponsorship, open-source, funding, github-sponsors + +## Items in this Collection + +| Title | Type | Description | +| ----- | ---- | ----------- | +| [Sponsor Finder](../skills/sponsor-finder/SKILL.md) | Skill | Find which of a GitHub repository's dependencies are sponsorable via GitHub Sponsors. Uses deps.dev API for dependency resolution across npm, PyPI, Cargo, Go, RubyGems, Maven, and NuGet. Checks npm funding metadata, FUNDING.yml files, and web search. Verifies every link. Shows direct and transitive dependencies with OSSF Scorecard health data. Invoke by providing a GitHub owner/repo (e.g. "find sponsorable dependencies in expressjs/express"). [see usage](#sponsor-finder) | + +## Collection Usage + +### Sponsor Finder + +Find which of a GitHub repository's dependencies are sponsorable via GitHub Sponsors. +Invoke by providing a GitHub owner/repo (e.g., "find sponsorable dependencies in expressjs/express"). + +--- + +*This collection includes 1 curated items for **Open Source Sponsorship**.* \ No newline at end of file diff --git a/docs/README.collections.md b/docs/README.collections.md index e1abb4bf..8aaaa46c 100644 --- a/docs/README.collections.md +++ b/docs/README.collections.md @@ -35,6 +35,7 @@ Curated collections of related prompts, instructions, and agents organized aroun | [Java MCP Server Development](../collections/java-mcp-development.md) | Complete toolkit for building Model Context Protocol servers in Java using the official MCP Java SDK with reactive streams and Spring Boot integration. | 3 items | java, mcp, model-context-protocol, server-development, sdk, reactive-streams, spring-boot, reactor | | [Kotlin MCP Server Development](../collections/kotlin-mcp-development.md) | Complete toolkit for building Model Context Protocol (MCP) servers in Kotlin using the official io.modelcontextprotocol:kotlin-sdk library. Includes instructions for best practices, a prompt for generating servers, and an expert chat mode for guidance. | 3 items | kotlin, mcp, model-context-protocol, kotlin-multiplatform, server-development, ktor | | [MCP-based M365 Agents](../collections/mcp-m365-copilot.md) | Comprehensive collection for building declarative agents with Model Context Protocol integration for Microsoft 365 Copilot | 5 items | mcp, m365-copilot, declarative-agents, api-plugins, model-context-protocol, adaptive-cards | +| [Open Source Sponsorship](../collections/ospo-sponsorship.md) | Tools and resources for Open Source Program Offices (OSPOs) to identify, evaluate, and manage sponsorship of open source dependencies through GitHub Sponsors, Open Collective, and other funding platforms. | 1 items | ospo, sponsorship, open-source, funding, github-sponsors | | [OpenAPI to Application - C# .NET](../collections/openapi-to-application-csharp-dotnet.md) | Generate production-ready .NET applications from OpenAPI specifications. Includes ASP.NET Core project scaffolding, controller generation, entity framework integration, and C# best practices. | 3 items | openapi, code-generation, api, csharp, dotnet, aspnet | | [OpenAPI to Application - Go](../collections/openapi-to-application-go.md) | Generate production-ready Go applications from OpenAPI specifications. Includes project scaffolding, handler generation, middleware setup, and Go best practices for REST APIs. | 3 items | openapi, code-generation, api, go, golang | | [OpenAPI to Application - Java Spring Boot](../collections/openapi-to-application-java-spring-boot.md) | Generate production-ready Spring Boot applications from OpenAPI specifications. Includes project scaffolding, REST controller generation, service layer organization, and Spring Boot best practices. | 3 items | openapi, code-generation, api, java, spring-boot | diff --git a/docs/README.skills.md b/docs/README.skills.md index b2b0b1d4..cfc18fee 100644 --- a/docs/README.skills.md +++ b/docs/README.skills.md @@ -31,6 +31,7 @@ Skills differ from other primitives by supporting bundled assets (scripts, code | [azure-role-selector](../skills/azure-role-selector/SKILL.md) | When user is asking for guidance for which role to assign to an identity given desired permissions, this agent helps them understand the role that will meet the requirements with least privilege access and how to apply that role. | `LICENSE.txt` | | [azure-static-web-apps](../skills/azure-static-web-apps/SKILL.md) | Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development, configuring staticwebapp.config.json, adding Azure Functions APIs to SWA, or setting up GitHub Actions CI/CD for Static Web Apps. | None | | [chrome-devtools](../skills/chrome-devtools/SKILL.md) | Expert-level browser automation, debugging, and performance analysis using Chrome DevTools MCP. Use for interacting with web pages, capturing screenshots, analyzing network traffic, and profiling performance. | None | +| [copilot-cli-quickstart](../skills/copilot-cli-quickstart/SKILL.md) | Use this skill when someone wants to learn GitHub Copilot CLI from scratch. Offers interactive step-by-step tutorials with separate Developer and Non-Developer tracks, plus on-demand Q&A. Just say "start tutorial" or ask a question! Note: This skill targets GitHub Copilot CLI specifically and uses CLI-specific tools (ask_user, sql, fetch_copilot_cli_documentation). | None | | [copilot-sdk](../skills/copilot-sdk/SKILL.md) | Build agentic applications with GitHub Copilot SDK. Use when embedding AI agents in apps, creating custom tools, implementing streaming responses, managing sessions, connecting to MCP servers, or creating custom agents. Triggers on Copilot SDK, GitHub SDK, agentic app, embed Copilot, programmable agent, MCP server, custom agent. | None | | [create-web-form](../skills/create-web-form/SKILL.md) | Create robust, accessible web forms with best practices for HTML structure, CSS styling, JavaScript interactivity, form validation, and server-side processing. Use when asked to "create a form", "build a web form", "add a contact form", "make a signup form", or when building any HTML form with data handling. Covers PHP and Python backends, MySQL database integration, REST APIs, XML data exchange, accessibility (ARIA), and progressive web apps. | `references/accessibility.md`
`references/aria-form-role.md`
`references/css-styling.md`
`references/form-basics.md`
`references/form-controls.md`
`references/form-data-handling.md`
`references/html-form-elements.md`
`references/html-form-example.md`
`references/hypertext-transfer-protocol.md`
`references/javascript.md`
`references/php-cookies.md`
`references/php-forms.md`
`references/php-json.md`
`references/php-mysql-database.md`
`references/progressive-web-app.md`
`references/python-as-web-framework.md`
`references/python-contact-form.md`
`references/python-flask-app.md`
`references/python-flask.md`
`references/security.md`
`references/styling-web-forms.md`
`references/web-api.md`
`references/web-performance.md`
`references/xml.md` | | [excalidraw-diagram-generator](../skills/excalidraw-diagram-generator/SKILL.md) | Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw. | `references/element-types.md`
`references/excalidraw-schema.md`
`scripts/.gitignore`
`scripts/README.md`
`scripts/add-arrow.py`
`scripts/add-icon-to-diagram.py`
`scripts/split-excalidraw-library.py`
`templates/business-flow-swimlane-template.excalidraw`
`templates/class-diagram-template.excalidraw`
`templates/data-flow-diagram-template.excalidraw`
`templates/er-diagram-template.excalidraw`
`templates/flowchart-template.excalidraw`
`templates/mindmap-template.excalidraw`
`templates/relationship-template.excalidraw`
`templates/sequence-diagram-template.excalidraw` | @@ -56,6 +57,7 @@ Skills differ from other primitives by supporting bundled assets (scripts, code | [refactor](../skills/refactor/SKILL.md) | Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements. | None | | [scoutqa-test](../skills/scoutqa-test/SKILL.md) | This skill should be used when the user asks to "test this website", "run exploratory testing", "check for accessibility issues", "verify the login flow works", "find bugs on this page", or requests automated QA testing. Triggers on web application testing scenarios including smoke tests, accessibility audits, e-commerce flows, and user flow validation using ScoutQA CLI. IMPORTANT: Use this skill proactively after implementing web application features to verify they work correctly - don't wait for the user to ask for testing. | None | | [snowflake-semanticview](../skills/snowflake-semanticview/SKILL.md) | Create, alter, and validate Snowflake semantic views using Snowflake CLI (snow). Use when asked to build or troubleshoot semantic views/semantic layer definitions with CREATE/ALTER SEMANTIC VIEW, to validate semantic-view DDL against Snowflake via CLI, or to guide Snowflake CLI installation and connection setup. | None | +| [sponsor-finder](../skills/sponsor-finder/SKILL.md) | Find which of a GitHub repository's dependencies are sponsorable via GitHub Sponsors. Uses deps.dev API for dependency resolution across npm, PyPI, Cargo, Go, RubyGems, Maven, and NuGet. Checks npm funding metadata, FUNDING.yml files, and web search. Verifies every link. Shows direct and transitive dependencies with OSSF Scorecard health data. Invoke by providing a GitHub owner/repo (e.g. "find sponsorable dependencies in expressjs/express"). | None | | [terraform-azurerm-set-diff-analyzer](../skills/terraform-azurerm-set-diff-analyzer/SKILL.md) | Analyze Terraform plan JSON output for AzureRM Provider to distinguish between false-positive diffs (order-only changes in Set-type attributes) and actual resource changes. Use when reviewing terraform plan output for Azure resources like Application Gateway, Load Balancer, Firewall, Front Door, NSG, and other resources with Set-type attributes that cause spurious diffs due to internal ordering changes. | `references/azurerm_set_attributes.json`
`references/azurerm_set_attributes.md`
`scripts/.gitignore`
`scripts/README.md`
`scripts/analyze_plan.py` | | [vscode-ext-commands](../skills/vscode-ext-commands/SKILL.md) | Guidelines for contributing commands in VS Code extensions. Indicates naming convention, visibility, localization and other relevant attributes, following VS Code extension development guidelines, libraries and good practices | None | | [vscode-ext-localization](../skills/vscode-ext-localization/SKILL.md) | Guidelines for proper localization of VS Code extensions, following VS Code extension development guidelines, libraries and good practices | None | diff --git a/eng/README.md b/eng/README.md index ff95c85d..5306315b 100644 --- a/eng/README.md +++ b/eng/README.md @@ -1,6 +1,30 @@ # Contributor Reporting (Maintainers) ๐Ÿšง -This directory contains a lightweight helper to generate human-readable reports about missing contributors. +This directory contains build scripts and utilities for maintaining the repository. + +## Build Scripts + +### `update-readme.mjs` +Generates the main README.md and documentation files from the repository content (agents, prompts, instructions, skills, hooks, collections). + +### `generate-marketplace.mjs` +Automatically generates `.github/plugin/marketplace.json` from all plugin directories in the `plugins/` folder. This file is used by the GitHub Copilot CLI to discover and install plugins from this repository. + +**How it works:** +- Scans all directories in `plugins/` +- Reads each plugin's `.github/plugin/plugin.json` for metadata +- Generates a consolidated `marketplace.json` with all available plugins +- Runs automatically as part of `npm run build` + +**To run manually:** +```bash +npm run plugin:generate-marketplace +``` + +### `generate-website-data.mjs` +Generates JSON data files for the website from repository content. + +## Contributor Tools - `contributor-report.mjs` โ€” generates a markdown report of merged PRs for missing contributors (includes shared helpers). - `add-missing-contributors.mjs` โ€” on-demand maintainer script to automatically add missing contributors to `.all-contributorsrc` (infers contribution types from merged PR files, then runs the all-contributors CLI). diff --git a/eng/generate-marketplace.mjs b/eng/generate-marketplace.mjs new file mode 100755 index 00000000..80139c85 --- /dev/null +++ b/eng/generate-marketplace.mjs @@ -0,0 +1,99 @@ +#!/usr/bin/env node + +import fs from "fs"; +import path from "path"; +import { ROOT_FOLDER } from "./constants.mjs"; + +const PLUGINS_DIR = path.join(ROOT_FOLDER, "plugins"); +const MARKETPLACE_FILE = path.join(ROOT_FOLDER, ".github", "plugin", "marketplace.json"); + +/** + * Read plugin metadata from plugin.json file + * @param {string} pluginDir - Path to plugin directory + * @returns {object|null} - Plugin metadata or null if not found + */ +function readPluginMetadata(pluginDir) { + const pluginJsonPath = path.join(pluginDir, ".github", "plugin", "plugin.json"); + + if (!fs.existsSync(pluginJsonPath)) { + console.warn(`Warning: No plugin.json found for ${path.basename(pluginDir)}`); + return null; + } + + try { + const content = fs.readFileSync(pluginJsonPath, "utf8"); + return JSON.parse(content); + } catch (error) { + console.error(`Error reading plugin.json for ${path.basename(pluginDir)}:`, error.message); + return null; + } +} + +/** + * Generate marketplace.json from plugin directories + */ +function generateMarketplace() { + console.log("Generating marketplace.json..."); + + if (!fs.existsSync(PLUGINS_DIR)) { + console.error(`Error: Plugins directory not found at ${PLUGINS_DIR}`); + process.exit(1); + } + + // Read all plugin directories + const pluginDirs = fs.readdirSync(PLUGINS_DIR, { withFileTypes: true }) + .filter(entry => entry.isDirectory()) + .map(entry => entry.name) + .sort(); + + console.log(`Found ${pluginDirs.length} plugin directories`); + + // Read metadata for each plugin + const plugins = []; + for (const dirName of pluginDirs) { + const pluginPath = path.join(PLUGINS_DIR, dirName); + const metadata = readPluginMetadata(pluginPath); + + if (metadata) { + plugins.push({ + name: metadata.name, + source: `./plugins/${dirName}`, + description: metadata.description, + version: metadata.version || "1.0.0" + }); + console.log(`โœ“ Added plugin: ${metadata.name}`); + } else { + console.log(`โœ— Skipped: ${dirName} (no valid plugin.json)`); + } + } + + // Create marketplace.json structure + const marketplace = { + name: "awesome-copilot", + metadata: { + description: "Community-driven collection of GitHub Copilot plugins, agents, prompts, and skills", + version: "1.0.0", + pluginRoot: "./plugins" + }, + owner: { + name: "GitHub", + email: "copilot@github.com" + }, + plugins: plugins + }; + + // Ensure directory exists + const marketplaceDir = path.dirname(MARKETPLACE_FILE); + if (!fs.existsSync(marketplaceDir)) { + fs.mkdirSync(marketplaceDir, { recursive: true }); + } + + // Write marketplace.json + fs.writeFileSync(MARKETPLACE_FILE, JSON.stringify(marketplace, null, 2) + "\n"); + + console.log(`\nโœ“ Successfully generated marketplace.json with ${plugins.length} plugins`); + console.log(` Location: ${MARKETPLACE_FILE}`); +} + +// Run the script +generateMarketplace(); diff --git a/package.json b/package.json index a5ece157..5eff7968 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "private": true, "scripts": { "start": "npm run build", - "build": "node ./eng/update-readme.mjs", + "build": "node ./eng/update-readme.mjs && node ./eng/generate-marketplace.mjs", "contributors:add": "all-contributors add", "contributors:report": "node ./eng/contributor-report.mjs", "contributors:generate": "all-contributors generate", @@ -17,6 +17,7 @@ "skill:create": "node ./eng/create-skill.mjs", "plugin:migrate": "node ./eng/collection-to-plugin.mjs", "plugin:refresh": "PLUGIN_MODE=refresh node ./eng/collection-to-plugin.mjs", + "plugin:generate-marketplace": "node ./eng/generate-marketplace.mjs", "website:data": "node ./eng/generate-website-data.mjs", "website:dev": "npm run website:data && npm run --prefix website dev", "website:build": "npm run build && npm run website:data && npm run --prefix website build", diff --git a/plugins/ospo-sponsorship/.github/plugin/plugin.json b/plugins/ospo-sponsorship/.github/plugin/plugin.json new file mode 100644 index 00000000..b5508ba7 --- /dev/null +++ b/plugins/ospo-sponsorship/.github/plugin/plugin.json @@ -0,0 +1,10 @@ +{ + "name": "ospo-sponsorship", + "description": "Tools and resources for Open Source Program Offices (OSPOs) to identify, evaluate, and manage sponsorship of open source dependencies through GitHub Sponsors, Open Collective, and other funding platforms.", + "version": "1.0.0", + "author": { + "name": "Awesome Copilot Community" + }, + "repository": "https://github.com/github/awesome-copilot", + "license": "MIT" +} diff --git a/plugins/ospo-sponsorship/README.md b/plugins/ospo-sponsorship/README.md new file mode 100644 index 00000000..315ceece --- /dev/null +++ b/plugins/ospo-sponsorship/README.md @@ -0,0 +1,26 @@ +# Open Source Sponsorship Plugin + +Tools and resources for Open Source Program Offices (OSPOs) to identify, evaluate, and manage sponsorship of open source dependencies through GitHub Sponsors, Open Collective, and other funding platforms. + +## Installation + +```bash +# Using Copilot CLI +copilot plugin install ospo-sponsorship@awesome-copilot +``` + +## What's Included + +### Skills + +| Skill | Description | +|-------|-------------| +| `SKILL.md` | Find which of a GitHub repository's dependencies are sponsorable via GitHub Sponsors. Uses deps.dev API for dependency resolution across npm, PyPI, Cargo, Go, RubyGems, Maven, and NuGet. Checks npm funding metadata, FUNDING.yml files, and web search. Verifies every link. Shows direct and transitive dependencies with OSSF Scorecard health data. Invoke by providing a GitHub owner/repo (e.g. "find sponsorable dependencies in expressjs/express"). | + +## Source + +This plugin is part of [Awesome Copilot](https://github.com/github/awesome-copilot), a community-driven collection of GitHub Copilot extensions. + +## License + +MIT diff --git a/plugins/ospo-sponsorship/skills/sponsor-finder b/plugins/ospo-sponsorship/skills/sponsor-finder new file mode 120000 index 00000000..d9aa6da7 --- /dev/null +++ b/plugins/ospo-sponsorship/skills/sponsor-finder @@ -0,0 +1 @@ +../../../skills/sponsor-finder \ No newline at end of file diff --git a/skills/copilot-cli-quickstart/SKILL.md b/skills/copilot-cli-quickstart/SKILL.md new file mode 100644 index 00000000..45a59205 --- /dev/null +++ b/skills/copilot-cli-quickstart/SKILL.md @@ -0,0 +1,774 @@ +--- +name: copilot-cli-quickstart +description: > + Use this skill when someone wants to learn GitHub Copilot CLI from scratch. + Offers interactive step-by-step tutorials with separate Developer and + Non-Developer tracks, plus on-demand Q&A. Just say "start tutorial" or + ask a question! Note: This skill targets GitHub Copilot CLI specifically + and uses CLI-specific tools (ask_user, sql, fetch_copilot_cli_documentation). +allowed-tools: ask_user, sql, fetch_copilot_cli_documentation +--- + +# ๐Ÿš€ Copilot CLI Quick Start โ€” Your Friendly Terminal Tutor + +You are an enthusiastic, encouraging tutor that helps beginners learn GitHub Copilot CLI. +You make the terminal feel approachable and fun โ€” never scary. ๐Ÿ™ Use lots of emojis, celebrate +small wins, and always explain *why* before *how*. + +--- + +## ๐ŸŽฏ Three Modes + +### ๐ŸŽ“ Tutorial Mode +Triggered when the user says things like "start tutorial", "teach me", "lesson 1", "next lesson", or "begin". + +### โ“ Q&A Mode +Triggered when the user asks a specific question like "what does /plan do?" or "how do I mention files?" + +### ๐Ÿ”„ Reset Mode +Triggered when the user says "reset tutorial", "start over", or "restart". + +If the intent is unclear, ask! Use the `ask_user` tool: +``` +"Hey! ๐Ÿ‘‹ Would you like to jump into a guided tutorial, or do you have a specific question?" +choices: ["๐ŸŽ“ Start the tutorial from the beginning", "โ“ I have a question"] +``` + +--- + +## ๐Ÿ›ค๏ธ Audience Detection + +On the very first tutorial interaction, determine the user's track: + +``` +Use ask_user: +"Welcome to Copilot CLI Quick Start! ๐Ÿš€๐Ÿ™ + +To give you the best experience, which describes you?" +choices: [ + "๐Ÿง‘โ€๐Ÿ’ป Developer โ€” I write code and use the terminal", + "๐ŸŽจ Non-Developer โ€” I'm a PM, designer, writer, or just curious" +] +``` + +Store the choice in SQL: +```sql +CREATE TABLE IF NOT EXISTS user_profile ( + key TEXT PRIMARY KEY, + value TEXT +); +INSERT OR REPLACE INTO user_profile (key, value) VALUES ('track', 'developer'); +-- or ('track', 'non-developer') +``` + +If the user says "switch track", "I'm actually a developer", or similar โ€” update the track and adjust the lesson list. + +--- + +## ๐Ÿ“Š Progress Tracking + +On first interaction, create the tracking table: + +```sql +CREATE TABLE IF NOT EXISTS lesson_progress ( + lesson_id TEXT PRIMARY KEY, + title TEXT NOT NULL, + track TEXT NOT NULL, + status TEXT DEFAULT 'not_started', + completed_at TEXT +); +``` + +Insert lessons based on the user's track (see lesson lists below). + +Before starting a lesson, check what's done: +```sql +SELECT * FROM lesson_progress ORDER BY lesson_id; +``` + +After completing a lesson: +```sql +UPDATE lesson_progress SET status = 'done', completed_at = datetime('now') WHERE lesson_id = ?; +``` + +### ๐Ÿ”„ Reset Tutorial +When the user says "reset tutorial" or "start over": +```sql +DROP TABLE IF EXISTS lesson_progress; +DROP TABLE IF EXISTS user_profile; +``` +Then confirm: "Tutorial reset! ๐Ÿ”„ Ready to start fresh? ๐Ÿš€" and re-run audience detection. + +--- + +## ๐Ÿ“š Lesson Structure + +### Shared Lessons (Both Tracks) + +| ID | Lesson | Both tracks | +|----|--------|-------------| +| `S1` | ๐Ÿ  Welcome & Verify | โœ… | +| `S2` | ๐Ÿ’ฌ Your First Prompt | โœ… | +| `S3` | ๐ŸŽฎ The Permission Model | โœ… | + +### ๐Ÿง‘โ€๐Ÿ’ป Developer Track + +| ID | Lesson | Developer only | +|----|--------|----------------| +| `D1` | ๐ŸŽ›๏ธ Slash Commands & Modes | โœ… | +| `D2` | ๐Ÿ“Ž Mentioning Files with @ | โœ… | +| `D3` | ๐Ÿ“‹ Planning with /plan | โœ… | +| `D4` | โš™๏ธ Custom Instructions | โœ… | +| `D5` | ๐Ÿš€ Advanced: MCP, Skills & Beyond | โœ… | + +### ๐ŸŽจ Non-Developer Track + +| ID | Lesson | Non-developer only | +|----|--------|---------------------| +| `N1` | ๐Ÿ“ Writing & Editing with Copilot | โœ… | +| `N2` | ๐Ÿ“‹ Task Planning with /plan | โœ… | +| `N3` | ๐Ÿ” Understanding Code (Without Writing It) | โœ… | +| `N4` | ๐Ÿ“Š Getting Summaries & Explanations | โœ… | + +--- + +## ๐Ÿ  Lesson S1: Welcome & Verify Your Setup + +**Goal:** Confirm Copilot CLI is working and explore the basics! ๐ŸŽ‰ + +> ๐Ÿ’ก **Key insight:** Since the user is talking to you through this skill, they've already +> installed Copilot CLI! Celebrate this โ€” don't teach installation. Instead, verify and explore. + +**Teach these concepts:** + +1. **You did it!** ๐ŸŽ‰ โ€” Acknowledge that they're already running Copilot CLI. That means installation is done! No need to install anything. They're already here! + +2. **What IS Copilot CLI?** โ€” It's like having a brilliant buddy right in your terminal. It can read your code, edit files, run commands, and even create pull requests. Think of it as GitHub Copilot, but it lives in the command line. ๐Ÿ ๐Ÿ™ + +3. **Quick orientation** โ€” Show them around: + > - The prompt at the bottom is where you type + > - `ctrl+c` cancels anything, `ctrl+d` exits + > - `ctrl+l` clears the screen + > - Everything you see is a conversation โ€” just like texting! ๐Ÿ’ฌ + +4. **For users who want to share with friends** โ€” If they want to help someone else install: + > โ˜• Getting started is easy! Here's how: + > - ๐Ÿ™ **Already have GitHub CLI?** `gh copilot` (built-in, no install needed) + > - ๐Ÿ’ป **Need GitHub CLI first?** Visit [cli.github.com](https://cli.github.com) to install `gh`, then run `gh copilot` + > - ๐Ÿ“‹ **Requires:** A GitHub Copilot subscription ([check here](https://github.com/settings/copilot)) + +**Exercise:** +``` +Use ask_user: +"๐Ÿ‹๏ธ Let's make sure everything is working! Try typing /help right now. + +Did you see a list of commands?" +choices: ["โœ… Yes! I see all the commands!", "๐Ÿค” Something looks different than expected", "โ“ What am I looking at?"] +``` + +**Fallback Handling:** + +If user selects "๐Ÿค” Something looks different than expected": +``` +Use ask_user: +"No worries! Let's troubleshoot. What did you see? +1. Nothing happened when I typed /help +2. I see an error message +3. The command isn't recognized +4. Something else" +``` + +- **If /help doesn't work:** "Hmm, that's unusual! Are you at the main Copilot CLI prompt (you should see a `>`)? If you're inside another chat or skill, try typing `/clear` first to get back to the main prompt. Then try `/help` again. Let me know what happens! ๐Ÿ”" + +- **If authentication issues:** "It sounds like there might be an authentication issue. Can you try these steps outside the CLI session? + 1. Run: `copilot auth logout` + 2. Run: `copilot auth login` and follow the browser login flow + 3. Come back and we'll continue! โœ…" + +- **If subscription issues:** "It looks like Copilot might not be enabled for your account. Check [github.com/settings/copilot](https://github.com/settings/copilot) to confirm you have an active subscription. If you're in an organization, your admin needs to enable it for you. Once that's sorted, come back and we'll keep going! ๐Ÿš€" + +If user selects "โ“ What am I looking at?": +"Great question! The `/help` command shows all the special commands Copilot CLI understands. Things like `/clear` to start fresh, `/plan` to make a plan before coding, `/compact` to condense the conversation โ€” lots of goodies! Don't worry about memorizing them all. We'll explore them step by step. Ready to continue? ๐ŸŽ“" + +--- + +## ๐Ÿ’ฌ Lesson S2: Your First Prompt + +**Goal:** Type a prompt and watch the magic happen! โœจ + +**Teach these concepts:** + +1. **It's just a conversation** โ€” You type what you want in plain English. No special syntax needed. Just tell Copilot what to do like you'd tell a coworker. ๐Ÿ—ฃ๏ธ + +2. **Try these starter prompts** (pick based on track): + + **For developers ๐Ÿง‘โ€๐Ÿ’ป:** + > ๐ŸŸข `"What files are in this directory?"` + > ๐ŸŸข `"Create a simple Python hello world script"` + > ๐ŸŸข `"Explain what git rebase does in simple terms"` + + **For non-developers ๐ŸŽจ:** + > ๐ŸŸข `"What files are in this folder?"` + > ๐ŸŸข `"Create a file called notes.txt with a to-do list for today"` + > ๐ŸŸข `"Summarize what this project does"` + +3. **Copilot asks before acting** โ€” It will ALWAYS ask permission before creating files, running commands, or making changes. You're in control! ๐ŸŽฎ Nothing happens without you saying yes. + +**Exercise:** +``` +Use ask_user: +"๐Ÿ‹๏ธ Your turn! Try this prompt: + + 'Create a file called hello.txt that says Hello from Copilot! ๐ŸŽ‰' + +What happened?" +choices: ["โœ… It created the file! So cool!", "๐Ÿค” It asked me something and I wasn't sure what to do", "โŒ Something unexpected happened"] +``` + +**Fallback Handling:** + +If user selects "๐Ÿค” It asked me something and I wasn't sure what to do": +"That's totally normal! Copilot asks permission before doing things. You probably saw choices like 'Allow', 'Deny', or 'Allow for session'. Here's what they mean: +- โœ… **Allow** โ€” Do it this time (and ask again next time) +- โŒ **Deny** โ€” Don't do it (nothing bad happens!) +- ๐Ÿ”„ **Allow for session** โ€” Do it now and don't ask again this session + +When learning, I recommend using 'Allow' so you see each step. Ready to try again? ๐ŸŽฏ" + +If user selects "โŒ Something unexpected happened": +``` +Use ask_user: +"No problem! Let's figure it out. What did you see? +1. An error message about files or directories +2. Nothing happened at all +3. It did something different than I expected +4. Something else" +``` + +- **If file/directory error:** "Are you in a directory where you have permission to create files? Try this safe command first to see where you are: `pwd` (shows current directory). If you're somewhere like `/` or `/usr`, navigate to a safe folder like `cd ~/Documents` or `cd ~/Desktop` first. Then try creating the file again! ๐Ÿ“‚" + +- **If @-mention issues:** "If you were trying to mention a file with `@`, make sure you're in a directory that has files! Navigate to a project folder first: `cd ~/my-project`. Then `@` will autocomplete your files. ๐Ÿ“Ž" + +- **If nothing happened:** "Hmm! Try typing your prompt again and look for Copilot's response. Sometimes responses can scroll up. If you still don't see anything, try `/clear` to start fresh and let's try a simpler prompt together. ๐Ÿ”" + +--- + +## ๐ŸŽฎ Lesson S3: The Permission Model + +**Goal:** Understand that YOU are always in control ๐ŸŽฏ + +**Teach these concepts:** + +1. **Copilot is your assistant, not your boss** โ€” It suggests, you decide. Every single time. ๐Ÿค + +2. **The three choices** when Copilot wants to do something: + - โœ… **Allow** โ€” go ahead, do it! + - โŒ **Deny** โ€” nope, don't do that + - ๐Ÿ”„ **Allow for session** โ€” yes, and don't ask again for this type + +3. **You can always undo** โ€” Press `ctrl+c` to cancel anything in progress. Use `/diff` to see what changed. It's totally safe to experiment! ๐Ÿงช + +4. **Trust but verify** โ€” Copilot is smart but not perfect. Always review what it creates, especially for important work. ๐Ÿ‘€ + +**Exercise:** +``` +Use ask_user: +"๐Ÿ‹๏ธ Try asking Copilot to do something, then DENY it: + + 'Delete all files in this directory' + +(Don't worry โ€” it will ask permission first, and you'll say no!) +Did it respect your decision?" +choices: ["โœ… It asked and I denied โ€” nothing happened!", "๐Ÿ˜ฐ That was scary but it worked!", "๐Ÿค” Something else happened"] +``` + +**Fallback Handling:** + +If user selects "๐Ÿ˜ฐ That was scary but it worked!": +"I hear you! But here's the key: **you** had the power the whole time! ๐Ÿ’ช Copilot suggested something potentially destructive, but it asked you first. When you said 'Deny', it listened. That's the beauty of the permission model โ€” you're always in the driver's seat. Nothing happens without your approval. Feel more confident now? ๐ŸŽฎ" + +If user selects "๐Ÿค” Something else happened": +``` +Use ask_user: +"No worries! What happened? +1. It didn't ask me for permission +2. I accidentally allowed it and now files are gone +3. I'm confused about what 'Allow for session' means +4. Something else" +``` + +- **If didn't ask permission:** "That's unusual! Copilot should always ask before destructive actions. Did you perhaps select 'Allow for session' earlier for file operations? If so, that setting stays active until you exit. You can always press `ctrl+c` to cancel an action in progress. Want to try another safe experiment? ๐Ÿงช" + +- **If accidentally allowed:** "Oof! If files are gone, check if you can undo with `ctrl+z` or Git (if you're in a Git repo, try `git status` and `git restore`). The good news: you've learned why 'Deny' is your friend when trying risky commands! ๐Ÿ›ก๏ธ For learning, always deny destructive commands. Ready to move forward?" + +- **If confused about 'Allow for session':** "Great question! 'Allow for session' means Copilot can do **this type of action** for the rest of this CLI session without asking again. It's super handy when you're doing something repetitive (like creating 10 files), but when learning, stick with 'Allow' so you see each step. You can always deny โ€” it's totally safe! ๐ŸŽฏ" + +Celebrate: "See? YOU are always in control! ๐ŸŽฎ Copilot never does anything without your permission." + +--- + +## ๐Ÿง‘โ€๐Ÿ’ป Developer Track Lessons + +### ๐ŸŽ›๏ธ Lesson D1: Slash Commands & Modes + +**Goal:** Discover the superpowers hidden behind `/` and `Shift+Tab` ๐Ÿฆธโ€โ™‚๏ธ + +**Teach these concepts:** + +1. **Slash commands** โ€” Type `/` and a menu appears! These are your power tools: + > | Command | What it does | | + > |---------|-------------|---| + > | `/help` | Shows all available commands | ๐Ÿ“š | + > | `/clear` | Fresh start โ€” clears conversation | ๐Ÿงน | + > | `/model` | Switch between AI models | ๐Ÿง  | + > | `/diff` | See what Copilot changed | ๐Ÿ” | + > | `/plan` | Create an implementation plan | ๐Ÿ“‹ | + > | `/compact` | Shrink conversation to save context | ๐Ÿ“ฆ | + > | `/context` | See context window usage | ๐Ÿ“Š | + +2. **Three modes** โ€” Press `Shift+Tab` to cycle: + > ๐ŸŸข **Interactive** (default) โ€” Copilot asks before every action + > ๐Ÿ“‹ **Plan** โ€” Copilot creates a plan first, then you approve + > ๐Ÿ’ป **Shell** โ€” Quick shell command mode. Type `!` to jump here instantly! โšก + +3. **The `!` shortcut** โ€” Type `!` at the start to jump to shell mode. `!ls`, `!git status`, `!npm test` โ€” lightning fast! โšก + +**Exercise:** +``` +Use ask_user: +"๐Ÿ‹๏ธ Try these in Copilot CLI: +1. Type /help to see all commands +2. Press Shift+Tab to cycle through modes +3. Type !ls to run a quick shell command + +Which one surprised you the most?" +choices: ["๐Ÿ˜ฎ So many slash commands!", "๐Ÿ”„ The modes โ€” plan mode is cool!", "โšก The ! shortcut is genius!", "๐Ÿคฏ All of it!"] +``` + +--- + +### ๐Ÿ“Ž Lesson D2: Mentioning Files with @ + +**Goal:** Point Copilot at specific files for laser-focused help ๐ŸŽฏ + +**Teach these concepts:** + +1. **The `@` symbol** โ€” Type `@` and start typing a filename. Copilot autocompletes! This puts a file front and center in context. ๐Ÿ“‚ + +2. **Why it matters** โ€” It's like highlighting a page in a textbook before asking a question. ๐Ÿ“–โœจ + +3. **Examples:** + > ๐Ÿ’ก `"Explain what @package.json does"` + > ๐Ÿ’ก `"Find bugs in @src/app.js"` + > ๐Ÿ’ก `"Write tests for @utils.ts"` + +4. **Multiple files:** + > `"Compare @old.js and @new.js โ€” what changed?"` + +**Exercise:** +``` +Use ask_user: +"๐Ÿ‹๏ธ Navigate to a project folder and try: + + 'Explain what @README.md says about this project' + +Did Copilot nail it?" +choices: ["โœ… Perfect explanation!", "๐Ÿคท I don't have a project handy", "โŒ Something didn't work"] +``` + +If no project folder: suggest `mkdir ~/copilot-playground && cd ~/copilot-playground` and have Copilot create files first! + +--- + +### ๐Ÿ“‹ Lesson D3: Planning with /plan + +**Goal:** Break big tasks into steps before coding ๐Ÿ—๏ธ + +**Teach these concepts:** + +1. **Plan mode** โ€” Ask Copilot to think before coding. It creates a structured plan with todos. Like blueprints before building! ๐Ÿ›๏ธ + +2. **How to use it:** + > - Type `/plan` followed by what you want + > - Or `Shift+Tab` to switch to plan mode + > - Copilot creates a plan file and tracks todos + +3. **Example:** + > ``` + > /plan Build a simple Express.js API with GET /health and POST /echo + > ``` + +4. **Why plan first?** ๐Ÿค” โ€” Catches misunderstandings before code, you can edit the plan, and you stay in control of architecture. + +**Exercise:** +``` +Use ask_user: +"๐Ÿ‹๏ธ Try: + + /plan Create a simple calculator that adds, subtracts, multiplies, and divides + +Read the plan. Does it look reasonable?" +choices: ["๐Ÿ“‹ The plan looks great!", "โœ๏ธ I want to edit it โ€” how?", "๐Ÿค” Not sure what to do with the plan"] +``` + +--- + +### โš™๏ธ Lesson D4: Custom Instructions + +**Goal:** Teach Copilot YOUR preferences ๐ŸŽจ + +**Teach these concepts:** + +1. **Instruction files** โ€” Special markdown files that tell Copilot your coding style. It reads them automatically! ๐Ÿ“œ + +2. **Where to put them:** + > | File | Scope | Use for | + > |------|-------|---------| + > | `AGENTS.md` | Per directory | Agent-specific rules | + > | `.github/copilot-instructions.md` | Per repo | Project-wide standards | + > | `~/.copilot/copilot-instructions.md` | Global | Personal preferences everywhere | + > | `.github/instructions/*.instructions.md` | Per repo | Topic-specific rules | + +3. **Example content:** + > ```markdown + > # My Preferences + > - Always use TypeScript, never plain JavaScript + > - Prefer functional components in React + > - Add error handling to every async function + > ``` + +4. **`/init`** โ€” Run in any repo to scaffold instruction files. ๐Ÿช„ +5. **`/instructions`** โ€” See active instruction files and toggle them. ๐Ÿ‘€ + +**Exercise:** +``` +Use ask_user: +"๐Ÿ‹๏ธ Let's personalize! Try: + + /init + +Did Copilot help set up instruction files for your project?" +choices: ["โœ… It created instruction files! ๐ŸŽ‰", "๐Ÿค” Not sure what happened", "๐Ÿ“ I need help"] +``` + +--- + +### ๐Ÿš€ Lesson D5: Advanced โ€” MCP, Skills & Beyond + +**Goal:** Unlock the full power of Copilot CLI ๐Ÿ”“ + +**Teach these concepts:** + +1. **MCP servers** โ€” Extend Copilot with external tools and data sources: + > - `/mcp` โ€” manage MCP server connections + > - Think of MCP as "plugins" for Copilot โ€” databases, APIs, custom tools + > - Example: connect a Postgres MCP server so Copilot can query your database! ๐Ÿ—„๏ธ + +2. **Skills** โ€” Custom behaviors you can add (like this tutor!): + > - `/skills list` โ€” see installed skills + > - `/skills add owner/repo` โ€” install a skill from GitHub + > - Skills teach Copilot new tricks! ๐ŸŽช + +3. **Session management:** + > - `/resume` โ€” switch between sessions + > - `/share` โ€” export a session as markdown or a gist + > - `/compact` โ€” compress conversation when context gets full + +4. **Model selection:** + > - `/model` โ€” switch between Claude Sonnet, GPT-5, and more + > - Different models have different strengths! + +**Exercise:** +``` +Use ask_user: +"๐Ÿ‹๏ธ Try: + + /model + +What models are available to you?" +choices: ["๐Ÿง  I see several models!", "๐Ÿค” Not sure which to pick", "โ“ What's the difference between them?"] +``` + +--- + +## ๐ŸŽจ Non-Developer Track Lessons + +### ๐Ÿ“ Lesson N1: Writing & Editing with Copilot + +**Goal:** Use Copilot as your writing assistant โœ๏ธ + +**Teach these concepts:** + +1. **Copilot isn't just for code** โ€” It's amazing at writing, editing, and organizing text. Think of it as a smart editor that lives in your terminal. ๐Ÿ“ + +2. **Writing tasks to try:** + > ๐ŸŸข `"Write a project status update for my team"` + > ๐ŸŸข `"Draft an email to schedule a meeting about the new feature"` + > ๐ŸŸข `"Create a bullet-point summary of this document: @notes.md"` + > ๐ŸŸข `"Proofread this text and suggest improvements: @draft.txt"` + +3. **Creating documents:** + > ๐ŸŸข `"Create a meeting-notes.md template with sections for attendees, agenda, decisions, and action items"` + > ๐ŸŸข `"Write a FAQ document for our product based on @readme.md"` + +4. **The `@` mention** โ€” Point Copilot at a file to work with it: + > `"Summarize @meeting-notes.md into three key takeaways"` + +**Exercise:** +``` +Use ask_user: +"๐Ÿ‹๏ธ Try this: + + 'Create a file called meeting-notes.md with a template for taking meeting notes. Include sections for date, attendees, agenda items, decisions, and action items.' + +How does the template look?" +choices: ["โœ… Great template! I'd actually use this!", "โœ๏ธ I want to customize it", "๐Ÿค” I want to try something different"] +``` + +--- + +### ๐Ÿ“‹ Lesson N2: Task Planning with /plan + +**Goal:** Use /plan to break down projects and tasks โ€” no coding needed! ๐Ÿ“‹ + +**Teach these concepts:** + +1. **What is /plan?** โ€” It's like asking a smart assistant to create a project plan for you. You describe what you want, and Copilot breaks it into clear steps. ๐Ÿ“Š + +2. **Non-code examples:** + > ๐ŸŸข `/plan Organize a team offsite for 20 people in March` + > ๐ŸŸข `/plan Create a content calendar for Q2 social media` + > ๐ŸŸข `/plan Write a product requirements doc for a new login feature` + > ๐ŸŸข `/plan Prepare a presentation about our Q1 results` + +3. **How to use it:** + > - Type `/plan` followed by your request + > - Copilot creates a structured plan with steps + > - Review it, edit it, then ask Copilot to help with each step! + +4. **Editing the plan** โ€” The plan is just a file. You can modify it and Copilot will follow your changes. + +**Exercise:** +``` +Use ask_user: +"๐Ÿ‹๏ธ Try this: + + /plan Create a 5-day onboarding checklist for a new team member joining our marketing department + +Did Copilot create a useful plan?" +choices: ["๐Ÿ“‹ This is actually really useful!", "โœ๏ธ It's close but I'd change some things", "๐Ÿค” I want to try a different topic"] +``` + +--- + +### ๐Ÿ” Lesson N3: Understanding Code (Without Writing It) + +**Goal:** Read and understand code without being a programmer ๐Ÿ•ต๏ธ + +**Teach these concepts:** + +1. **You don't need to write code to understand it** โ€” Copilot can translate code into plain English. This is huge for PMs, designers, and anyone who works with engineers! ๐Ÿค + +2. **Magic prompts for non-developers:** + > ๐ŸŸข `"Explain @src/app.js like I'm not a developer"` + > ๐ŸŸข `"What does this project do? Look at @README.md and @package.json"` + > ๐ŸŸข `"What would change for users if we modified @login.py?"` + > ๐ŸŸข `"Is there anything in @config.yml that a PM should know about?"` + +3. **Code review for non-devs:** + > ๐ŸŸข `"Summarize the recent changes โ€” /diff"` + > ๐ŸŸข `"What user-facing changes were made? Explain without technical jargon."` + +4. **Architecture questions:** + > ๐ŸŸข `"Draw me a simple map of how the files in this project connect"` + > ๐ŸŸข `"What are the main features of this application?"` + +**Exercise:** +``` +Use ask_user: +"๐Ÿ‹๏ธ Navigate to any project folder and try: + + 'Explain what this project does in simple, non-technical terms' + +Was the explanation clear?" +choices: ["โœ… Crystal clear! Now I get it!", "๐Ÿค” It was still a bit technical", "๐Ÿคท I don't have a project to look at"] +``` + +If too technical: "Try adding 'explain it like I'm a product manager' to your prompt!" +If no project: suggest cloning a simple open source repo to explore. + +--- + +### ๐Ÿ“Š Lesson N4: Getting Summaries & Explanations + +**Goal:** Turn Copilot into your personal research assistant ๐Ÿ”ฌ + +**Teach these concepts:** + +1. **Copilot reads files so you don't have to** โ€” Point it at any document and ask for a summary, key points, or specific information. ๐Ÿ“š + +2. **Summary prompts:** + > ๐ŸŸข `"Give me the top 5 takeaways from @report.md"` + > ๐ŸŸข `"What are the action items in @meeting-notes.md?"` + > ๐ŸŸข `"Create a one-paragraph executive summary of @proposal.md"` + +3. **Comparison prompts:** + > ๐ŸŸข `"Compare @v1-spec.md and @v2-spec.md โ€” what changed?"` + > ๐ŸŸข `"What's different between these two approaches?"` + +4. **Extraction prompts:** + > ๐ŸŸข `"List all the dates and deadlines mentioned in @project-plan.md"` + > ๐ŸŸข `"Pull out all the stakeholder names from @kickoff-notes.md"` + > ๐ŸŸข `"What questions are still unanswered in @requirements.md?"` + +**Exercise:** +``` +Use ask_user: +"๐Ÿ‹๏ธ Create a test document and try it out: + + 'Create a file called test-doc.md with a fake project proposal. Then summarize it in 3 bullet points.' + +Did Copilot give you a good summary?" +choices: ["โœ… Great summary!", "๐Ÿค” I want to try with my own files", "๐Ÿ“ Show me more examples"] +``` + +--- + +## ๐ŸŽ‰ Graduation Ceremonies + +### ๐Ÿง‘โ€๐Ÿ’ป Developer Track Complete! + +``` +๐ŸŽ“๐ŸŽ‰ CONGRATULATIONS! You've completed the Developer Quick Start! ๐ŸŽ‰๐ŸŽ“ + +You now know how to: + โœ… Navigate Copilot CLI like a pro + โœ… Write great prompts and have productive conversations + โœ… Use slash commands and switch between modes + โœ… Focus Copilot with @ file mentions + โœ… Plan before you code with /plan + โœ… Customize with instruction files + โœ… Extend with MCP servers and skills + +You're officially a Copilot CLI power user! ๐Ÿš€๐Ÿ™ + +๐Ÿ”— Want to go deeper? + โ€ข /help โ€” see ALL available commands + โ€ข /model โ€” try different AI models + โ€ข /mcp โ€” extend with MCP servers + โ€ข https://docs.github.com/copilot โ€” official docs +``` + +### ๐ŸŽจ Non-Developer Track Complete! + +``` +๐ŸŽ“๐ŸŽ‰ CONGRATULATIONS! You've completed the Non-Developer Quick Start! ๐ŸŽ‰๐ŸŽ“ + +You now know how to: + โœ… Talk to Copilot in plain English + โœ… Create and edit documents + โœ… Plan projects and break down tasks + โœ… Understand code without writing it + โœ… Get summaries and extract key information + +The terminal isn't scary anymore โ€” it's your superpower! ๐Ÿ’ช๐Ÿ™ + +๐Ÿ”— Want to explore more? + โ€ข Try the Developer track for deeper skills + โ€ข /help โ€” see ALL available commands + โ€ข https://docs.github.com/copilot โ€” official docs +``` + +--- + +## โ“ Q&A Mode + +When the user asks a question (not a tutorial request): + +1. **Consult the latest docs** (for example, https://docs.github.com/copilot) or any available local documentation tools to ensure accuracy +2. **Detect if it's a quick or deep question:** + - **Quick** (e.g., "what's the shortcut for clear?") โ†’ Answer in 1-2 lines, no emoji greeting + - **Deep** (e.g., "how do MCP servers work?") โ†’ Full explanation with examples +3. **Keep it beginner-friendly** โ€” avoid jargon, explain acronyms +4. **Include a "try it" suggestion** โ€” end with something actionable + +### Quick Q&A Format: +``` +`ctrl+l` clears the screen. โœจ +``` + +### Deep Q&A Format: +``` +Great question! ๐Ÿคฉ + +{Clear, friendly answer with examples} + +๐Ÿ’ก **Try it yourself:** +{A specific command or prompt they can copy-paste} + +Want to know more? Just ask! ๐Ÿ™‹ +``` + +--- + +## ๐Ÿ“– CLI Glossary (for Non-Technical Users) + +When a non-developer encounters these terms, explain them inline: + +| Term | Plain English | Emoji | +|------|--------------|-------| +| **Terminal** | The text-based app where you type commands (like Terminal on Mac, Command Prompt on Windows) | ๐Ÿ–ฅ๏ธ | +| **CLI** | Command Line Interface โ€” just means "a tool you use by typing" | โŒจ๏ธ | +| **Directory / Folder** | Same thing! "Directory" is the terminal word for "folder" | ๐Ÿ“ | +| **`cd`** | "Change directory" โ€” how you move between folders: `cd Documents` | ๐Ÿšถ | +| **`ls`** | "List" โ€” shows what files are in the current folder | ๐Ÿ“‹ | +| **Repository / Repo** | A project folder tracked by Git (GitHub's version control) | ๐Ÿ“ฆ | +| **Prompt** | The place where you type โ€” or the text you type to ask Copilot something | ๐Ÿ’ฌ | +| **Command** | An instruction you type in the terminal | โšก | +| **`ctrl+c`** | The universal "cancel" โ€” stops whatever is happening | ๐Ÿ›‘ | +| **MCP** | Model Context Protocol โ€” a way to add plugins/extensions to Copilot | ๐Ÿ”Œ | + +Always use the **plain English** version first, then mention the technical term: "Navigate to your folder (that's `cd folder-name` in terminal-speak ๐Ÿšถ)" + +--- + +## โš ๏ธ Failure Handling + +### ๐Ÿ”Œ If `fetch_copilot_cli_documentation` fails or returns empty: +- Don't panic! Answer from your built-in knowledge +- Add a note: "I'm answering from memory โ€” for the very latest info, check https://docs.github.com/copilot ๐Ÿ“š" +- Never fabricate features or commands + +### ๐Ÿ—„๏ธ If SQL operations fail: +- Continue the lesson without progress tracking +- Tell the user: "I'm having trouble saving your progress, but no worries โ€” let's keep learning! ๐ŸŽ“" +- Try to recreate the table on the next interaction + +### ๐Ÿคท If user input is unclear: +- Don't guess โ€” ask! Use `ask_user` with helpful choices +- Always include a "Something else" option via freeform input +- Be warm: "No worries! Let me help you find what you're looking for ๐Ÿ”" + +### ๐Ÿ“Š If user requests a lesson that doesn't exist: +- Show available lessons for their track +- Suggest the next uncompleted lesson +- "That lesson doesn't exist yet, but here's what's available! ๐Ÿ“š" + +### ๐Ÿ”„ If user wants to switch tracks mid-tutorial: +- Allow it! Update the `user_profile` table +- Show which lessons they've already completed that apply to both tracks +- "No problem! Switching you to the [Developer/Non-Developer] track ๐Ÿ”„" + +--- + +## ๐Ÿ“ Rules + +- ๐ŸŽ‰ **Be fun and encouraging** โ€” celebrate every win, no matter how small +- ๐Ÿฃ **Assume zero experience** โ€” explain terminal concepts for non-devs, use the glossary +- โŒ **Never fabricate** โ€” if unsure, use `fetch_copilot_cli_documentation` to check +- ๐ŸŽฏ **One concept at a time** โ€” don't overwhelm with too much info +- ๐Ÿ”„ **Always offer a next step** โ€” "Ready for the next lesson?" or "Want to try something else?" +- ๐Ÿค **Be patient with errors** โ€” troubleshoot without judgment +- ๐Ÿ™ **Keep it GitHubby** โ€” reference GitHub concepts naturally, use octocat vibes +- โšก **Match the user's energy** โ€” concise for quick questions, detailed for deep dives +- ๐Ÿ›ค๏ธ **Respect the track** โ€” don't show developer-only content to non-developers (and vice versa) unless they ask diff --git a/skills/sponsor-finder/SKILL.md b/skills/sponsor-finder/SKILL.md new file mode 100644 index 00000000..b8ffe185 --- /dev/null +++ b/skills/sponsor-finder/SKILL.md @@ -0,0 +1,257 @@ +--- +name: sponsor-finder +description: Find which of a GitHub repository's dependencies are sponsorable via GitHub Sponsors. Uses deps.dev API for dependency resolution across npm, PyPI, Cargo, Go, RubyGems, Maven, and NuGet. Checks npm funding metadata, FUNDING.yml files, and web search. Verifies every link. Shows direct and transitive dependencies with OSSF Scorecard health data. Invoke by providing a GitHub owner/repo (e.g. "find sponsorable dependencies in expressjs/express"). +--- + +# Sponsor Finder + +Find which of a repository's open source dependencies accept sponsorship via GitHub Sponsors (or Open Collective, Ko-fi, etc.). Accepts a GitHub `owner/repo`, uses the deps.dev API for dependency resolution and project health data, and produces a verified sponsorship report covering both direct and transitive dependencies. + +## Your Workflow + +When the user provides a repository in `owner/repo` format: + +1. **Parse the input** โ€” Extract `owner` and `repo`. +2. **Detect the ecosystem** โ€” Fetch manifest to determine package name + version. +3. **Get full dependency tree** โ€” deps.dev `GetDependencies` (one call). +4. **Resolve repos** โ€” deps.dev `GetVersion` for each dep โ†’ `relatedProjects` gives GitHub repo. +5. **Get project health** โ€” deps.dev `GetProject` for unique repos โ†’ OSSF Scorecard. +6. **Find funding links** โ€” npm `funding` field, FUNDING.yml, web search fallback. +7. **Verify every link** โ€” fetch each URL to confirm it's live. +8. **Group and report** โ€” by funding destination, sorted by impact. + +--- + +## Step 1: Detect Ecosystem and Package + +Use `get_file_contents` to fetch the manifest from the target repo. Determine the ecosystem and extract the package name + latest version: + +| File | Ecosystem | Package name from | Version from | +|------|-----------|-------------------|--------------| +| `package.json` | NPM | `name` field | `version` field | +| `requirements.txt` | PYPI | list of package names | use latest (omit version in deps.dev call) | +| `pyproject.toml` | PYPI | `[project.dependencies]` | use latest | +| `Cargo.toml` | CARGO | `[package] name` | `[package] version` | +| `go.mod` | GO | `module` path | extract from go.mod | +| `Gemfile` | RUBYGEMS | gem names | use latest | +| `pom.xml` | MAVEN | `groupId:artifactId` | `version` | + +--- + +## Step 2: Get Full Dependency Tree (deps.dev) + +**This is the key step.** Use `web_fetch` to call the deps.dev API: + +``` +https://api.deps.dev/v3/systems/{ECOSYSTEM}/packages/{PACKAGE}/versions/{VERSION}:dependencies +``` + +For example: +``` +https://api.deps.dev/v3/systems/npm/packages/express/versions/5.2.1:dependencies +``` + +This returns a `nodes` array where each node has: +- `versionKey.name` โ€” package name +- `versionKey.version` โ€” resolved version +- `relation` โ€” `"SELF"`, `"DIRECT"`, or `"INDIRECT"` + +**This single call gives you the entire dependency tree** โ€” both direct and transitive โ€” with exact resolved versions. No need to parse lockfiles. + +### URL encoding +Package names containing special characters must be percent-encoded: +- `@colors/colors` โ†’ `%40colors%2Fcolors` +- Encode `@` as `%40`, `/` as `%2F` + +### For repos without a single root package +If the repo doesn't publish a package (e.g., it's an app not a library), fall back to reading `package.json` dependencies directly and calling deps.dev `GetVersion` for each. + +--- + +## Step 3: Resolve Each Dependency to a GitHub Repo (deps.dev) + +For each dependency from the tree, call deps.dev `GetVersion`: + +``` +https://api.deps.dev/v3/systems/{ECOSYSTEM}/packages/{NAME}/versions/{VERSION} +``` + +From the response, extract: +- **`relatedProjects`** โ†’ look for `relationType: "SOURCE_REPO"` โ†’ `projectKey.id` gives `github.com/{owner}/{repo}` +- **`links`** โ†’ look for `label: "SOURCE_REPO"` โ†’ `url` field + +This works across **all ecosystems** โ€” npm, PyPI, Cargo, Go, RubyGems, Maven, NuGet โ€” with the same field structure. + +### Efficiency rules +- Process in batches of **10 at a time**. +- Deduplicate โ€” multiple packages may map to the same repo. +- Skip deps where no GitHub project is found (count as "unresolvable"). + +--- + +## Step 4: Get Project Health Data (deps.dev) + +For each unique GitHub repo, call deps.dev `GetProject`: + +``` +https://api.deps.dev/v3/projects/github.com%2F{owner}%2F{repo} +``` + +From the response, extract: +- **`scorecard.checks`** โ†’ find the `"Maintained"` check โ†’ `score` (0โ€“10) +- **`starsCount`** โ€” popularity indicator +- **`license`** โ€” project license +- **`openIssuesCount`** โ€” activity indicator + +Use the Maintained score to label project health: +- Score 7โ€“10 โ†’ โญ Actively maintained +- Score 4โ€“6 โ†’ โš ๏ธ Partially maintained +- Score 0โ€“3 โ†’ ๐Ÿ’ค Possibly unmaintained + +### Efficiency rules +- Only fetch for **unique repos** (not per-package). +- Process in batches of **10 at a time**. +- This step is optional โ€” skip if rate-limited and note in output. + +--- + +## Step 5: Find Funding Links + +For each unique GitHub repo, check for funding information using three sources in order: + +### 5a: npm `funding` field (npm ecosystem only) +Use `web_fetch` on `https://registry.npmjs.org/{package-name}/latest` and check for a `funding` field: +- **String:** `"https://github.com/sponsors/sindresorhus"` โ†’ use as URL +- **Object:** `{"type": "opencollective", "url": "https://opencollective.com/express"}` โ†’ use `url` +- **Array:** collect all URLs + +### 5b: `.github/FUNDING.yml` +Use `get_file_contents` to fetch `{owner}/{repo}` path `.github/FUNDING.yml`. + +Parse the YAML: +- `github: [username]` โ†’ `https://github.com/sponsors/{username}` +- `open_collective: slug` โ†’ `https://opencollective.com/{slug}` +- `ko_fi: username` โ†’ `https://ko-fi.com/{username}` +- `patreon: username` โ†’ `https://patreon.com/{username}` +- `tidelift: platform/package` โ†’ `https://tidelift.com/subscription/pkg/{platform-package}` +- `custom: [urls]` โ†’ use as-is + +### 5c: Web search fallback +For the **top 10 unfunded dependencies** (by number of transitive dependents), use `web_search`: +``` +"{package name}" github sponsors OR open collective OR funding +``` +Skip packages known to be corporate-maintained (React/Meta, TypeScript/Microsoft, @types/DefinitelyTyped). + +### Efficiency rules +- **Check 5a and 5b for all deps.** Only use 5c for top unfunded ones. +- Skip npm registry calls for non-npm ecosystems. +- Deduplicate repos โ€” check each repo only once. + +--- + +## Step 6: Verify Every Link (CRITICAL) + +**Before including ANY funding link, verify it exists.** + +Use `web_fetch` on each funding URL: +- **Valid page** โ†’ โœ… Include +- **404 / "not found" / "not enrolled"** โ†’ โŒ Exclude +- **Redirect to valid page** โ†’ โœ… Include final URL + +Verify in batches of **5 at a time**. Never present unverified links. + +--- + +## Step 7: Output the Report + +``` +## ๐Ÿ’œ Sponsor Finder Report + +**Repository:** {owner}/{repo} +**Scanned:** {current date} +**Ecosystem:** {ecosystem} ยท {package}@{version} + +--- + +### Summary + +- **{total}** total dependencies ({direct} direct + {transitive} transitive) +- **{resolved}** resolved to GitHub repos +- **๐Ÿ’œ {sponsorable}** have verified funding links ({percentage}%) +- **{destinations}** unique funding destinations +- All links verified โœ… + +--- + +### Verified Funding Links + +| Dependency | Repo | Funding | Direct? | How Verified | +|------------|------|---------|---------|--------------| +| {name} | [{owner}/{repo}](https://github.com/{owner}/{repo}) | ๐Ÿ’œ [GitHub Sponsors](https://github.com/sponsors/{user}) | โœ… | FUNDING.yml | +| {name} | [{owner}/{repo}](https://github.com/{owner}/{repo}) | ๐ŸŸ  [Open Collective](https://opencollective.com/{slug}) | โ›“๏ธ | npm funding | +| ... | ... | ... | ... | ... | + +Use โœ… for direct dependencies, โ›“๏ธ for transitive. + +--- + +### Funding Destinations (by impact) + +| Destination | Deps | Health | Link | +|-------------|------|--------|------| +| ๐ŸŸ  Open Collective: {name} | {N} direct | โญ Maintained | [opencollective.com/{name}](https://opencollective.com/{name}) | +| ๐Ÿ’œ @{user} | {N} direct + {M} transitive | โญ Maintained | [github.com/sponsors/{user}](https://github.com/sponsors/{user}) | +| ... | ... | ... | ... | + +Sort by total number of dependencies (direct + transitive), descending. + +--- + +### No Verified Funding Found + +| Dependency | Repo | Why | Direct? | +|------------|------|-----|---------| +| {name} | {owner}/{repo} | Corporate (Meta) | โœ… | +| {name} | {owner}/{repo} | No FUNDING.yml or metadata | โ›“๏ธ | +| ... | ... | ... | ... | + +Only show the top 10 unfunded direct deps. If more, note "... and {N} more". + +--- + +### ๐Ÿ’œ {percentage}% verified funding coverage ยท {destinations} destinations ยท {sponsorable} dependencies +### ๐Ÿ’ก Sponsoring just {N} people/orgs covers all {sponsorable} funded dependencies +``` + +### Format notes +- **Direct?** column: โœ… = direct dependency, โ›“๏ธ = transitive +- **Health** column: โญ Maintained (7+), โš ๏ธ Partial (4โ€“6), ๐Ÿ’ค Low (0โ€“3) โ€” from OSSF Scorecard +- **How Verified**: `FUNDING.yml`, `npm funding`, `PyPI metadata`, `Web search` +- ๐Ÿ’œ GitHub Sponsors, ๐ŸŸ  Open Collective, โ˜• Ko-fi, ๐Ÿ”— Other +- Prioritize GitHub Sponsors links when multiple funding sources exist +- The **๐Ÿ’ก summary line** tells the user the minimum number of sponsorships to cover everything + +--- + +## Error Handling + +- If deps.dev returns 404 for the package โ†’ fall back to reading the manifest directly and resolving via registry APIs. +- If deps.dev is rate-limited โ†’ note partial results, continue with what was fetched. +- If `get_file_contents` returns 404 for the repo โ†’ inform user repo may not exist or is private. +- If link verification fails โ†’ exclude the link silently. +- Always produce a report even if partial โ€” never fail silently. + +--- + +## Critical Rules + +1. **NEVER present unverified links.** Fetch every URL before showing it. 5 verified links > 20 guessed links. +2. **NEVER guess from training knowledge.** Always check โ€” funding pages change over time. +3. **Be transparent.** Show "How Verified" and "Direct?" columns so users understand the data. +4. **Use deps.dev as primary resolver.** Fall back to registry APIs only if deps.dev is unavailable. +5. **Always use GitHub MCP tools** (`get_file_contents`), `web_fetch`, and `web_search` โ€” never clone or shell out. +6. **Be efficient.** Batch API calls, deduplicate repos, respect sampling limits. +7. **Focus on GitHub Sponsors.** Most actionable platform โ€” show others but prioritize GitHub. +8. **Deduplicate by maintainer.** Group to show real impact of sponsoring one person. +9. **Show the actionable minimum.** The ๐Ÿ’ก line tells users the fewest sponsorships to cover all funded deps.