スキル一覧に戻る
antoniocascais

c7

by antoniocascais

My Claude Code toolkit: skills, commands, agents, hooks, and reusable workflow configs. Grab what you need.

4🍴 0📅 2026年1月21日
GitHubで見るManusで実行

SKILL.md


name: c7 description: Fetches up-to-date library documentation from Context7 and saves to /tmp/context7/. Use when needing current API docs, code examples, library references, SDK documentation, or checking latest library versions. Triggers: context7, c7, library docs, fetch docs, current documentation, api reference. allowed-tools:

  • Bash(scripts/c7.sh:*)
  • AskUserQuestion

c7 - Context7 Documentation Fetcher

Fetch-only skill. Does NOT read docs into context.

Usage

Fetch documentation

scripts/c7.sh <library-name> "<query>"

Example:

scripts/c7.sh nextjs "app router middleware"

List cached docs

scripts/c7.sh --list

Force re-fetch (bypass cache)

scripts/c7.sh --force <library-name> "<query>"

Workflow

  1. Run scripts/c7.sh <library> "<query>"

  2. Handle output:

    • CACHED: <path> (Xh old) → Use AskUserQuestion: "Documentation for X is already cached (Y hours old). Use cached version or fetch fresh?"
      • If re-fetch → run with --force
      • If use cached → inform user of location, done
    • Success (path printed) → inform user: "Documentation saved to "
    • NOT_FOUND: → Use AskUserQuestion: "Library not found in Context7. How should I proceed?" with options like retry with different name, skip, etc.
    • RATE_LIMITED: → inform user rate limit hit, stop
    • API_ERROR: → inform user of error, stop
  3. Done. Do NOT read the file into context.

Exit Codes

CodeOutputAction
0filepathSuccess - report location
0CACHED: pathAsk user: use cache or re-fetch?
1NOT_FOUND:Ask user for alternatives
2RATE_LIMITED:Inform user, stop
3API_ERROR:Inform user, stop
4FUZZY_MATCH:Ask user: "Context7 matched X instead of Y. Use this or try different name?"

スコア

総合スコア

70/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

+10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です