Code Query

VerifiedSafe

Search the codebase and Obsidian vault together for relevant implementation and project context.

Sby Skills Guide Bot
DevelopmentIntermediate
7/28/2026
Claude Code
#code-search#obsidian#knowledge-base#context-retrieval#codebase-navigation

Recommended for

Automated summary

Searches both the codebase and an Obsidian vault for a question or term, returning code locations alongside the project notes that explain them.

Strengths

  • Combines two complementary sources: the source code and the vault's task notes, Topics and Events.
  • Returns consolidated, actionable output: file:line locations, wikilinks to related notes, and a short synthesis.
  • Locates before reading (rg -l, narrow globs) so only the needed slice of code is loaded.
  • Uses the unison MCP server for Unison projects instead of falling back to unsuitable text search.

Limitations

  • Assumes an Obsidian vault reachable through the vault skill; without it the context half does nothing.
  • Output quality tracks note quality: a thinly documented vault yields few explanations.
  • Does not verify or run the code it finds — it is search and synthesis, not validation.
When to use it

Reach for it when you ask how a feature works or where it lives and you also want the surrounding decisions and project notes.

When not to use it

Skip it for a plain exact-string lookup in a single repository, where rg or grep is enough.

Security analysis

Safe
Quality score85/100

The skill only instructs searching and reading code and notes via existing tools like rg and an MCP server. It does not perform destructive actions, exfiltrate data, execute arbitrary payloads, or disable safety mechanisms. No declared tools are required to be marked as risky; the actions are read-only and legitimate.

No concerns found

How this analysis is made

Examples

Trace the authentication flow
/code-query authentication flow
Understand error handling
/code-query how errors are handled
Find database connection code and notes
/code-query database connection

name: code-query description: Search the codebase and Obsidian vault together for relevant implementation and project context. Use when the user asks how something works, where it is implemented, or wants related notes alongside code results.

Code Query

Answer a "how does X work / where is X" question from both the code and the vault. The vault half is the point — code search alone misses the decisions, tickets and topic notes that explain why the code is the way it is.

Usage

/code-query <search-term>

$ARGUMENTS is the search term or question.

Actions

  1. Search the codebase. For Unison projects use the unison MCP server; otherwise locate first (rg -l, narrow globs) and read only the slice needed.
  2. Search the vault for related context — task notes, Topics, Events — via the vault skill.
  3. Return consolidated results:
    • code locations as file:line
    • related vault notes as wikilinks
    • a short summary tying the two together

Examples

/code-query authentication flow
/code-query how errors are handled
/code-query database connection

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/code-query-ms47vqqt/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/code-query-ms47vqqt' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/code-query-ms47vqqt/download' --output '.skill-downloads/code-query-ms47vqqt/SKILL.md.part' && mv '.skill-downloads/code-query-ms47vqqt/SKILL.md.part' '.skill-downloads/code-query-ms47vqqt/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/code-query-ms47vqqt/SKILL.md' && test -s '.skill-downloads/code-query-ms47vqqt/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/code-query' && cp -R '.skill-downloads/code-query-ms47vqqt' '.claude/skills/code-query'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/code-query-ms47vqqt'

openskills read 'code-query-ms47vqqt'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/code-query-ms47vqqt/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills