AgentSkillsCN

mcp-tools

运用context7进行文档查询,借助gh_grep实现GitHub代码搜索,助力MCP工具的高效使用。

SKILL.md
--- frontmatter
name: mcp-tools
description: MCP tools skill for using context7 for documentation lookup and gh_grep for GitHub code search
license: MIT
compatibility: opencode
metadata:
  audience: developers
  workflow: research

MCP Tools Skill

Available MCP Tools

context7 - Documentation Reference

Use context7 to look up official documentation for frameworks and libraries.

When to Use:

  • Before implementing any feature with a framework
  • When unsure about API usage or best practices
  • When encountering errors with a library
  • When learning new technologies

Usage Pattern:

code
Use context7 to look up [framework/library] documentation for [specific topic]

Examples:

  • "use context7 to look up Next.js App Router documentation"
  • "use context7 to look up TailwindCSS flexbox utilities"
  • "use context7 to look up shadcn Button component API"
  • "use context7 to look up Framer Motion animation variants"

gh_grep - GitHub Code Search

Use gh_grep to search for real-world implementation examples on GitHub.

When to Use:

  • When looking for implementation patterns
  • When debugging complex issues
  • When learning how others solved similar problems
  • When looking for best practices in production code

Usage Pattern:

code
Use gh_grep to search for [implementation pattern] in [context]

Examples:

  • "use gh_grep to find Next.js authentication implementations"
  • "use gh_grep to search for TurboRepo monorepo configurations"
  • "use gh_grep to find Azure Container Apps GitHub Actions workflows"

Best Practices

  1. Always Reference Docs First

    • Use context7 before implementing anything new
    • Check for version-specific documentation
    • Look for migration guides when updating
  2. Combine Tools for Complete Context

    • context7 for official docs and API reference
    • gh_grep for real-world patterns and examples
    • webfetch for additional resources when needed
  3. Error Resolution

    • When encountering errors, search with gh_grep for similar issues
    • Check if others have faced the same problem
    • Look for documented fixes or workarounds

Integration with Other Skills

  • Frontend tasks: Use context7 for React, TailwindCSS, shadcn docs
  • Backend tasks: Use context7 for Express, FastAPI, database docs
  • DevOps tasks: Use context7 for Docker, GitHub Actions docs
  • Debugging tasks: Use gh_grep to find similar error patterns