From agent-knowledge
Analyzes dependency files (package.json, requirements.txt, go.mod, Cargo.toml) and source imports to suggest 5-10 key libraries for knowledge store indexing, skipping test/lint/build tools. Supports JS/TS, Python, Go, Rust.
npx claudepluginhub chris-xperimntl/agent-knowledgeThis skill is limited to using the following tools:
Analyze project dependencies and suggest important libraries to add to knowledge stores.
Accesses definitive source code of project dependencies via vector search and direct file reads for API signatures, error debugging, internals, configs, and tests.
Analyzes project tech stack by reading files like package.json, Gemfile, pyproject.toml, tsconfig.json, Dockerfiles, and GitHub workflows to extract and store facts on languages, frameworks, tools, databases, and conventions in memory.
Launches isolated agent to fetch code context for repos/libraries via DeepWiki, Context7, Exa, git clone. Invoke /get-context [repo-url] [--method=all]; auto-detects local deps.
Share bugs, ideas, or general feedback.
Analyze project dependencies and suggest important libraries to add to knowledge stores.
Find dependency files using Glob tool:
**/package.json (JavaScript/TypeScript projects)**/requirements.txt (Python projects)**/go.mod (Go projects)**/Cargo.toml (Rust projects)Read and parse dependencies:
Scan for import statements using Glob + Read:
Select the IMPORTANT dependencies — not all of them. Apply these criteria:
Get existing stores using mcp__agent-knowledge__execute with command "stores":
Find repository URLs using WebSearch:
Present selectable list using AskUserQuestion:
First, show a summary of what was found:
## Dependency Analysis
Scanned 342 source files and found 24 dependencies.
Already indexed: typescript, express, jest
Then use AskUserQuestion with multiSelect to let the user choose which to add:
{
"questions": [{
"question": "Which dependencies would you like to add to your knowledge stores?",
"header": "Add deps",
"multiSelect": true,
"options": [
{
"label": "react (Recommended)",
"description": "147 imports across 52 files - https://github.com/facebook/react"
},
{
"label": "lodash",
"description": "89 imports across 31 files - https://github.com/lodash/lodash"
},
{
"label": "axios",
"description": "45 imports across 18 files - https://github.com/axios/axios"
},
{
"label": "zod",
"description": "32 imports across 12 files - https://github.com/colinhacks/zod"
}
]
}]
}
Note: Maximum 4 options per question (AskUserQuestion limit). If more than 4 dependencies, show top 4 and mention others in summary.
For each selected dependency, invoke the Skill tool:
Skill(skill="agent-knowledge:add-repo", args="<repo-url> --name=<package-name>")
Example for react selection:
Skill(skill="agent-knowledge:add-repo", args="https://github.com/facebook/react --name=react")
## Added to Knowledge Stores
✓ react - https://github.com/facebook/react
✓ lodash - https://github.com/lodash/lodash
Indexing started. Check progress with /agent-knowledge:check-status
No external dependencies found in this project.
Make sure you have a dependency manifest file:
- package.json (JavaScript/TypeScript)
- requirements.txt or pyproject.toml (Python)
- go.mod (Go)
- Cargo.toml (Rust)
If the user types a custom response instead of selecting options, try to parse package names from their input and search for the corresponding repositories.