Get the FREE Ultimate OpenClaw Setup Guide →

suggest-awesome-github-copilot-prompts

Scanned
npx machina-cli add skill github/awesome-copilot/suggest-awesome-github-copilot-prompts --openclaw
Files (1)
SKILL.md
6.3 KB

Suggest Awesome GitHub Copilot Prompts

Analyze current repository context and suggest relevant prompt files from the GitHub awesome-copilot repository that are not already available in this repository.

Process

  1. Fetch Available Prompts: Extract prompt list and descriptions from awesome-copilot README.prompts.md. Must use #fetch tool.
  2. Scan Local Prompts: Discover existing prompt files in .github/prompts/ folder
  3. Extract Descriptions: Read front matter from local prompt files to get descriptions
  4. Fetch Remote Versions: For each local prompt, fetch the corresponding version from awesome-copilot repository using raw GitHub URLs (e.g., https://raw.githubusercontent.com/github/awesome-copilot/main/prompts/<filename>)
  5. Compare Versions: Compare local prompt content with remote versions to identify:
    • Prompts that are up-to-date (exact match)
    • Prompts that are outdated (content differs)
    • Key differences in outdated prompts (tools, description, content)
  6. Analyze Context: Review chat history, repository files, and current project needs
  7. Compare Existing: Check against prompts already available in this repository
  8. Match Relevance: Compare available prompts against identified patterns and requirements
  9. Present Options: Display relevant prompts with descriptions, rationale, and availability status including outdated prompts
  10. Validate: Ensure suggested prompts would add value not already covered by existing prompts
  11. Output: Provide structured table with suggestions, descriptions, and links to both awesome-copilot prompts and similar local prompts AWAIT user request to proceed with installation or updates of specific prompts. DO NOT INSTALL OR UPDATE UNLESS DIRECTED TO DO SO.
  12. Download/Update Assets: For requested prompts, automatically:
    • Download new prompts to .github/prompts/ folder
    • Update outdated prompts by replacing with latest version from awesome-copilot
    • Do NOT adjust content of the files
    • Use #fetch tool to download assets, but may use curl using #runInTerminal tool to ensure all content is retrieved
    • Use #todos tool to track progress

Context Analysis Criteria

🔍 Repository Patterns:

  • Programming languages used (.cs, .js, .py, etc.)
  • Framework indicators (ASP.NET, React, Azure, etc.)
  • Project types (web apps, APIs, libraries, tools)
  • Documentation needs (README, specs, ADRs)

🗨️ Chat History Context:

  • Recent discussions and pain points
  • Feature requests or implementation needs
  • Code review patterns
  • Development workflow requirements

Output Format

Display analysis results in structured table comparing awesome-copilot prompts with existing repository prompts:

Awesome-Copilot PromptDescriptionAlready InstalledSimilar Local PromptSuggestion Rationale
code-review.prompt.mdAutomated code review prompts❌ NoNoneWould enhance development workflow with standardized code review processes
documentation.prompt.mdGenerate project documentation✅ Yescreate_oo_component_documentation.prompt.mdAlready covered by existing documentation prompts
debugging.prompt.mdDebug assistance prompts⚠️ Outdateddebugging.prompt.mdTools configuration differs: remote uses 'codebase' vs local missing - Update recommended

Local Prompts Discovery Process

  1. List all *.prompt.md files in .github/prompts/ directory
  2. For each discovered file, read front matter to extract description
  3. Build comprehensive inventory of existing prompts
  4. Use this inventory to avoid suggesting duplicates

Version Comparison Process

  1. For each local prompt file, construct the raw GitHub URL to fetch the remote version:
    • Pattern: https://raw.githubusercontent.com/github/awesome-copilot/main/prompts/<filename>
  2. Fetch the remote version using the #fetch tool
  3. Compare entire file content (including front matter and body)
  4. Identify specific differences:
    • Front matter changes (description, tools, mode)
    • Tools array modifications (added, removed, or renamed tools)
    • Content updates (instructions, examples, guidelines)
  5. Document key differences for outdated prompts
  6. Calculate similarity to determine if update is needed

Requirements

  • Use githubRepo tool to get content from awesome-copilot repository prompts folder
  • Scan local file system for existing prompts in .github/prompts/ directory
  • Read YAML front matter from local prompt files to extract descriptions
  • Compare local prompts with remote versions to detect outdated prompts
  • Compare against existing prompts in this repository to avoid duplicates
  • Focus on gaps in current prompt library coverage
  • Validate that suggested prompts align with repository's purpose and standards
  • Provide clear rationale for each suggestion
  • Include links to both awesome-copilot prompts and similar local prompts
  • Clearly identify outdated prompts with specific differences noted
  • Don't provide any additional information or context beyond the table and the analysis

Icons Reference

  • ✅ Already installed and up-to-date
  • ⚠️ Installed but outdated (update available)
  • ❌ Not installed in repo

Update Handling

When outdated prompts are identified:

  1. Include them in the output table with ⚠️ status
  2. Document specific differences in the "Suggestion Rationale" column
  3. Provide recommendation to update with key changes noted
  4. When user requests update, replace entire local file with remote version
  5. Preserve file location in .github/prompts/ directory

Source

git clone https://github.com/github/awesome-copilot/blob/main/plugins/awesome-copilot/skills/suggest-awesome-github-copilot-prompts/SKILL.mdView on GitHub

Overview

This skill analyzes your repository context and chat history to surface relevant GitHub Copilot prompt files from the awesome-copilot project. It checks for duplicates with local prompts, flags outdated prompts, and presents a curated set of options with rationale and links, helping you keep prompts fresh and aligned with project needs.

How This Skill Works

It fetches the global prompt list from awesome-copilot's README.prompts.md, scans .github/prompts/ for local prompts and reads their descriptions, then fetches remote versions for comparison. It identifies up-to-date, outdated, and duplicate prompts, analyzes your context, and outputs a structured suggestions table with links to remote prompts and local equivalents; actions are only performed when explicitly requested.

When to Use It

  • When starting a new project and you want to bootstrap with relevant Copilot prompts from awesome-copilot.
  • When integrating Copilot prompts into an existing repository to avoid duplicates and ensure coverage.
  • When auditing prompts to identify outdated ones that need updates due to repo changes or new patterns.
  • When preparing for a release or onboarding, to align prompts with the project’s tech stack.
  • When maintaining a multi-repo setup and ensuring consistency of prompts across repositories.

Quick Start

  1. Step 1: Run the analysis to fetch available prompts from awesome-copilot and scan local .github/prompts/.
  2. Step 2: Review the generated suggestions table with descriptions and links.
  3. Step 3: If you want to install or update prompts, request specific prompts for action; updates will occur only after your approval.

Best Practices

  • Align prompts with your project's tech stack and runtime (languages, frameworks, tools).
  • Cross-check local prompts against the awesome-copilot list to avoid duplicates.
  • Verify outdated prompts by comparing content with remote versions before updating.
  • Document the rationale for each suggested prompt to aid future maintenance.
  • Review suggested prompts in a staging area before applying changes to the main repo.

Example Use Cases

  • Auditing a Node.js API repo to surface relevant Copilot prompts and remove duplicates.
  • Onboarding a new Python data science project with up-to-date prompts tailored for data exploration.
  • Updating an ASP.NET Core web app's prompts to match current repository patterns and naming conventions.
  • Cleaning a multi-language monorepo by aligning prompts across frontend, backend, and tooling prompts.
  • Enhancing a documentation-heavy project with prompts targeted to docs generation and ADR workflows.

Frequently Asked Questions

Add this skill to your agents
Sponsor this space

Reach thousands of developers