Back to Skills

doc-query

Targeted query capabilities for machine-readable codebase documentation with cross-reference tracking, call graph analysis, and workflow automation. Enables fast lookups of classes, functions, dependencies, and function relationships without parsing source code.

6stars1forksUpdated 3/10/2026

Security Assessment

Safe(100/100)
Security Score100/100

About doc-query

The `doc-query` skill provides advanced querying capabilities for machine-readable codebase documentation, allowing developers to efficiently explore and understand complex codebases without directly parsing source code. By leveraging documentation generated via the `sdd doc generate` command, it enables users to locate classes, functions, modules, and dependencies quickly. This skill solves the common problem of navigating large and intricate codebases, reducing the time and effort needed to gather contextual information and analyze code relationships manually.

Key features of `doc-query` include entity lookup for exact or pattern-based searches, cross-reference tracking to find callers, callees, class instantiations, and imports, as well as call graph visualization with configurable depth and direction. It offers module summaries that combine docstrings, hot spots, dependencies, and key entities in a single view. Structured outputs make integration with scripts or downstream tools straightforward, while complexity analysis and dependency mapping help identify refactoring candidates and understand module relationships. High-level workflow commands automate multi-step processes such as feature tracing, impact analysis, and data flow tracking, consolidating several manual steps into a single intelligent operation.

This skill is particularly useful for software engineers, QA testers, and technical leads who need to explore codebases, plan changes, or implement new features efficiently. Typical use cases include starting new tasks, bug fixing, feature implementation, refactoring high-complexity code, impact analysis, test planning, and overall code exploration. By providing fast, structured access to detailed documentation and intelligent analysis tools, `doc-query` streamlines development workflows, reduces potential errors, and supports informed decision-making in complex software projects.

FAQ

How do I start using doc-query for a new module?

Begin with the `scope` command to get a comprehensive module analysis. Use `--plan` for summaries and complexity metrics, or `--implement` for function-level details and call graphs.

Can doc-query analyze source code directly?

No, it only queries machine-readable documentation generated by `sdd doc generate`. It does not parse or execute source code.

Which programming languages are supported?

doc-query works with any codebase that has machine-readable documentation generated by the SDD toolkit. It does not depend on a specific language but relies on the documentation format.

Can I visualize function call relationships?

Yes, the `call-graph` command provides configurable visualizations of function callers and callees, supporting depth and direction customization.

What should I avoid using doc-query for?

Do not use it before generating documentation with `sdd doc generate`, for reading raw source code, or for analyzing runtime behavior. It is intended solely for documentation-based queries.

All Files

2 files
SKILL.md33.3 KB
View
config.yaml2.1 KB
View

Install doc-query

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill