Skip to content
Skills Library
Programming · Analysis

hald-query

/hald-query

Use when the user asks about code ownership or expertise ("who knows...", "who should review..."), architectural decisions ("why did we...", "what was the reason for..."), code history or evolution ("how did ... evolve", "history of..."), module coupling or dependencies ("what depends on...", "what changes together..."), knowledge silos or bus factor ("who's the only person who knows...", "what if X leaves"), entity relationships ("how is X connected to Y"), or codebase overview ("tell me about the architecture", "what are the main components"). Use for any question that requires understanding

Repository
hald ↗
Licence
MIT
Last repository change
06.06.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 06.06.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when the user asks about code ownership or expertise ("who knows...", "who should review..."), architectural decisions ("why did we...", "what was the reason for..."), code history or evolution ("how did ... evolve", "history of..."), module coupling or dependencies ("what depends on...", "what changes together..."), knowledge silos or bus factor ("who's the only person who knows...", "what if X leaves"), entity relationships ("how is X connected to Y"), or codebase overview ("tell me about the architecture", "what are the main components"). Use for any question that requires understanding

Triggers from the description

who knows...who should review...why did we...what was the reason for...how did ... evolvehistory of...what depends on...what changes together...
Original author description

Use when the user asks about code ownership or expertise ("who knows...", "who should review..."), architectural decisions ("why did we...", "what was the reason for..."), code history or evolution ("how did ... evolve", "history of..."), module coupling or dependencies ("what depends on...", "what changes together..."), knowledge silos or bus factor ("who's the only person who knows...", "what if X leaves"), entity relationships ("how is X connected to Y"), or codebase overview ("tell me about the architecture", "what are the main components"). Use for any question that requires understanding

How it works

  1. Before You Query
  2. MCP Tools
  3. Response Pattern
  4. Examples
Original SKILL.md headings · 68 lines, 616 words
SKILL.md preview
---
name: hald-query
description: Use when the user asks about code ownership or expertise ("who knows...", "who should review..."), architectural decisions ("why did we...", "what was the reason for..."), code history or evolution ("how did ... evolve", "history of..."), module coupling or dependencies ("what depends on...", "what changes together..."), knowledge silos or bus factor ("who's the only person who knows...", "what if X leaves"), entity relationships ("how is X connected to Y"), or codebase overview ("tell me about the architecture", "what are the main components"). Use for any question that requires understanding the repository's history beyond what's in the current code.
---

# Hald Query

## Before You Query

Call `hald_stats` to check if the index exists. If the tool returns an error containing "no such table", "unable to open", or "No index found", the repo hasn't been indexed yet — tell the user and suggest running `hald_index` (see the hald-index skill).

## MCP Tools

### `hald_query`
For free-form questions. Pass the user's question and let the tool decide between local search (entity-centric) and global search (thematic). The tool returns structured graph data — **you synthesize the narrative**.

### `hald_find_expert`
For "who knows X" questions. Pass the module/file path. Returns ranked experts with commit counts, recency, and breadth.

### `hald_trace_decision`
For "why did we..." questions. Pass the topic. Returns a timeline of commits, people involved, and extracted decision context.

### `hald_show_coupling`
For dependency and coupling questions. Pass the module path. Returns co-change data showing what modules tend to change together and their blast radius.

### `hald_get_entity`
For looking up a specific person, module, technology, or decision. Pass an entity ID (e.g., `person:alice-chen`), exact name (e.g., `Alice Chen`), or a search term. Returns full details: type, description, aliases, activity timeline, and relationships.

### `hald_get_path`
For "how is X connected to Y" questions. Pass two entity names or IDs. Returns the shortest relationship path through the knowledge graph — showing how people, modules, technologies, and decisions are connected via authorship, usage, and co-change edges.

### `hald_find_silos`
For bus factor and knowledge risk questions. Returns modules with only one active maintainer (bus factor = 1) and orphaned modules (no active maintainer). Useful for team planning, onboarding priorities, and risk assessment.

### `hald_stats`
Check if the index exists and how fresh it is. Call this first if you're unsure whether the repo has been indexed.

## Response Pattern

1. **Check index first.** If unsure whether the repo is indexed, call `hald_stats`. If the index doesn't exist or is empty, suggest `hald_index` before proceeding.
2. **Choose the right tool.** Match the question type:
   - Who knows X? → `hald_find_expert`
   - Why did we...? → `hald_trace_decision`
   - What changes with X? → `hald_show_coupling`
   - What's our bus factor? → `hald_find_silos`
   - How is X connected to Y? → `hald_get_path`
   - Tell me about entity X → `hald_get_entity`
   - Everything else → `hald_query`
3. **Synthesize, don't dump.** The tools return structured data (entities, relations, community summaries, text units). Weave this into a clear, actionable narrative. Don't just list the raw data.
4. **Cite evidence.** When the tool returns specific commits or text units, reference them naturally (e.g., "Based on commits from March 2024, Alice led the migration...").
5. **Acknowledge gaps.** If the graph doesn't have enough data, say so. Suggest additional indexing or narrower queries.

## Examples

**User:** "Who should review changes to the billing module?"
**You:** Call `hald_find_expert` with module `src/billing`. Synthesize: who knows the code, how recently active, which specific areas they've touched.

**User:** "Why did we switch from Webpack to Vite?"
**You:** Call `hald_trace_decision` with topic "Webpack to Vite migration". Synthesize the timeline: who drove it, when, and what commits reveal about the motivation.

**User:** "Give me an overview of the codebase architecture"
**You:** Call `hald_query` with the question (global search over community summaries). Synthesize the top communities into an architecture overview.

**User:** "What's the bus factor for our payment system?"
**You:** Call `hald_find_silos`. Filter results for payment-related modules. Report which modules have single maintainers and who they are.

**User:** "How is Alice connected to the auth module?"
**You:** Call `hald_get_path` with from "Alice" and to "auth". Walk through the path: Alice authored module X, which co-changes with auth.

**User:** "Tell me everything about the database layer"
**You:** Call `hald_get_entity` with query "database layer". Report its type, description, relationships, and activity timeline.

Versions

The database has no other skills named hald-query.

Database snapshot: 13.11.2026 · package version 366a0add5b9c (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100history-analyzer
    Analyze git history for hotspots, coupling, and knowledge distribution. Use when user asks "who knows this code", "what files change most", "hotspots", "bus factor", "knowledge silos", or needs to understand code evolution.
  • 100hald-index
    Use when the user asks to index, re-index, or set up Hald for their repository, when a query tool returns an error indicating no index exists, when the user asks about index status or freshness, or when they mention "hald" in the context of setup or configuration.
  • 100git-history-forensics
    Mines a git repository's history with concrete git log commands to find churn hotspots, code ownership and bus-factor risk, change coupling between files, and activity trends. Use when assessing an unfamiliar codebase, prioritising refactoring or review effort, estimating…
  • 95bus-factor
    Builds a knowledge-risk heatmap of a git repository. Runs git blame across tracked files, finds the ones owned by a single person, computes a bus factor per file, directory, and author, and renders a light-theme website that shows where knowledge is concentrated. Use when the…
  • 90uds-architecture
    Use when choosing or reviewing application structure, module boundaries, dependency direction, logic ownership, or significant architectural decisions.
  • 95graphify
    Use for any question about a codebase, its architecture, file relationships, or project content — especially when graphify-out/ exists, where the question should be treated as a graphify query first. Turns any input (code, docs, papers, images, videos) into a persistent…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.