Skip to content
Back to skills

Usage

ASecurity

Query LeanKG knowledge graph for code understanding. Use when exploring a codebase, finding functions, tracing dependencies, or calculating impact radius.

  • 220 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added May 26, 2026
developmentgit

Works with

  • mcp

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add FreePeak/LeanKG --skill usage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Usage?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Usage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/freepeak-usage/badge)](https://www.skillsdirectory.com/skills/freepeak-usage)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Query LeanKG knowledge graph for code understanding. Use when exploring a codebase, finding functions, tracing dependencies, or calculating impact radius.
---

Use LeanKG tools to explore and understand code:

- `mcp_status` - Check if LeanKG is initialized
- `mcp_init` - Initialize LeanKG for a project: `mcp_init { path: "<project>/.leankg" }`
- `mcp_index` - Index a directory: `mcp_index { path: "<project>/src" }`
- `search_code` - Find code elements: `search_code { query: "<function_name>" }`
- `find_function` - Locate a function: `find_function { name: "<name>" }`
- `query_file` - Find files: `query_file { query: "<filename>" }`
- `get_impact_radius` - Calculate blast radius: `get_impact_radius { file: "<path>", depth: <n> }`
- `get_dependencies` - Get imports: `get_dependencies { file: "<path>" }`
- `get_dependents` - Get dependents: `get_dependents { file: "<path>" }`
- `get_context` - Get file context: `get_context { file: "<path>" }`
- `get_call_graph` - Get call chains: `get_call_graph { file: "<path>" }`
- `get_tested_by` - Get test coverage: `get_tested_by { file: "<path>" }`

**Rule: Use LeanKG first, before grep/ripgrep.**

LeanKG auto-initializes on first use. If `.leankg` does not exist, it creates one automatically. If index is stale (>5 min since last git commit), it re-indexes automatically.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.