Agent SkillsFradSer/dotclaude › get-context

get-context

GitHub

自动解析代码上下文查询,将目标分类为仓库、库或自然语言问题,并调用研究代理通过多种工具获取信息,生成综合摘要。

code-context/skills/get-context/SKILL.md FradSer/dotclaude

Trigger Scenarios

用户询问代码库或技术概念 需要获取项目依赖背景 比较不同技术方案

Install

npx skills add FradSer/dotclaude --skill get-context -g -y
More Options

Non-standard path

npx skills add https://github.com/FradSer/dotclaude/tree/main/code-context/skills/get-context -g -y

Use without installing

npx skills use FradSer/dotclaude@get-context

指定 Agent (Claude Code)

npx skills add FradSer/dotclaude --skill get-context -a claude-code -g -y

安装 repo 全部 skill

npx skills add FradSer/dotclaude --all -g -y

预览 repo 内 skill

npx skills add FradSer/dotclaude --list

SKILL.md

Frontmatter
{
    "name": "get-context",
    "description": "Execute this when the user requests code context for a repository, library, or any natural-language code\/technology question using DeepWiki, Context7, Exa, git clone, and\/or web search+fetch.",
    "allowed-tools": [
        "Task"
    ],
    "argument-hint": "<query | repo-slug | library-name> [more targets...] [--method=deepwiki,context7,exa,clone,web,all]",
    "user-invocable": true
}

get-context

Launch a code-context:context-researcher agent that executes the full workflow in an isolated context. The input is arbitrary: a natural-language question, a repo slug, a library name, or several of these at once.

Argument parsing

  1. Split $ARGUMENTS into positional targets and the optional --method flag.
    • --method= accepts a comma-separated list from deepwiki,context7,exa,clone,web,all. Default: all.
    • Quoted strings are one target: "compare zustand vs jotai state management" is a single natural-language query.
    • Multiple positional tokens are multiple targets: facebook/react zustand = two targets.
  2. Classify each target:
    • GitHub slug (owner/repo) or git URL → repo target (DeepWiki / clone).
    • Bare name matching a known package ecosystem (react, fastapi, next) or with a version hint (react@18) → library target (Context7).
    • Anything else (a question, a comparison, a concept) → natural-language target (Exa / web search).
  3. Empty input: read dependency manifests in the current working directory (package.json, go.mod, pyproject.toml, Cargo.toml) and use detected dependencies as targets.

Prompt template

Pass the parsed targets and method list to the agent verbatim — do not pre-resolve them in the main context.

Code context request.

Targets (classify each as repo / library / natural-language query):
<positional targets, one per line; or "auto-detect from local dependency manifests" if empty>

Methods to use (in priority order; "all" = let agent choose per target):
<comma-separated method list, default "all">

Local context already known: <one line on what the cwd already contains, or "none">

Execute

Launch code-context:context-researcher using the prompt template above. The agent returns a synthesized summary; the main context stays clean regardless of lookup volume.

Version History

  • 6f2a0b2 Current 2026-08-20 10:58

Same Skill Collection

.claude/skills/reflect-skills-from-memory/SKILL.md
acpx/skills/use-acpx/SKILL.md
antigravity/skills/delegate/SKILL.md
antigravity/skills/research/SKILL.md
code-context/skills/code-context/SKILL.md
git-agent/skills/commit-and-push/SKILL.md
git-agent/skills/commit/SKILL.md
git-agent/skills/init/SKILL.md
git-agent/skills/related/SKILL.md
git/skills/commit-and-push/SKILL.md
git/skills/commit/SKILL.md
git/skills/finish-feature/SKILL.md
git/skills/finish-hotfix/SKILL.md
git/skills/finish-release/SKILL.md
git/skills/start-feature/SKILL.md
git/skills/start-hotfix/SKILL.md
git/skills/start-release/SKILL.md
github/skills/create-issues/SKILL.md
github/skills/create-pr/SKILL.md
github/skills/resolve-issues/SKILL.md
github/skills/review-pr/SKILL.md
hardware/skills/use-kicad-cli/SKILL.md
hardware/skills/use-openscad/SKILL.md
interfaces/skills/better-interface/SKILL.md
lark/skills/SKILL.md
marketing/skills/SKILL.md
mattpocock/skills/deprecated/design-an-interface/SKILL.md
mattpocock/skills/deprecated/qa/SKILL.md
mattpocock/skills/deprecated/request-refactor-plan/SKILL.md
mattpocock/skills/deprecated/ubiquitous-language/SKILL.md
mattpocock/skills/engineering/ask-matt/SKILL.md
mattpocock/skills/engineering/bdd/SKILL.md
mattpocock/skills/engineering/code-review/SKILL.md
mattpocock/skills/engineering/codebase-design/SKILL.md
mattpocock/skills/engineering/diagnosing-bugs/SKILL.md
mattpocock/skills/engineering/domain-modeling/SKILL.md
mattpocock/skills/engineering/grill-with-docs/SKILL.md
mattpocock/skills/engineering/implement/SKILL.md
mattpocock/skills/engineering/improve-codebase-architecture/SKILL.md
mattpocock/skills/engineering/prototype/SKILL.md
mattpocock/skills/engineering/research/SKILL.md
mattpocock/skills/engineering/resolving-merge-conflicts/SKILL.md
mattpocock/skills/engineering/setup-matt-pocock-skills/SKILL.md
mattpocock/skills/engineering/tdd/SKILL.md
mattpocock/skills/engineering/to-spec/SKILL.md
mattpocock/skills/engineering/to-tickets/SKILL.md
mattpocock/skills/engineering/triage/SKILL.md
mattpocock/skills/engineering/wayfinder/SKILL.md
mattpocock/skills/engineering/wizard/SKILL.md

Metadata

Files
0
Version
6f2a0b2
Hash
6dc2a530
Indexed
2026-08-20 10:58

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-04 14:26
浙ICP备14020137号-1 $bản đồ khách truy cập$