AGENT SKILL

code-index

Use when you need to find something in a tree you have not read, understand what depends on what, or get oriented in a dependency's source. Triggers: where is X, what calls this, what does this dependency export, index this repo, build an index, search the codebase, orient me in this code, structure of this repo. An exact string or a known symbol is grep, not this.

License 许可
GPL-3.0
最近更新
2026-11-13
Stars
★ 0
Forks
0

01 前言 Front Matter

name
code-index
description
Use when you need to find something in a tree you have not read, understand what depends on what, or get oriented in a dependency's source. Triggers: where is X, what calls this, what does this dependency export, index this repo, build an index, search the codebase, orient me in this code, structure of this repo. An exact string or a known symbol is grep, not this.

03 SKILL.md 正文

Code index

A question you cannot spell costs one index call, not twenty greps. The index answers where something lives (search) and what depends on what (the graph). It does not replace grep: for an exact token, grep is faster and exact.

Which tool

Question Call
where a concept lives, asked in prose search (top_k at most 20, default 5)
what breaks if I change it impact
symbols of a file, or around a line context with file or file:line
what a node connects to structure with op=explain
how A reaches B structure with op=path
is the index there, how far behind status
exact string, error message, known symbol grep

Rules

  • Without the MCP tools the same calls are shell verbs: qsm-index search <repo> "<query>", qsm-index impact <repo> <node>, qsm-index structure <repo> explain|path <node>. One impact call lists every transitive caller with its file and line, which grep needs one hop per call to reach, so start a "what calls this, and what calls that" question there.

  • Pass an absolute path inside the repository, because a relative one returns an error.

  • structure, impact and context need a built graph. None, or status says behind: call reindex. It returns at once and builds in the background, so check status later, never in a loop. A stale answer opens with index is stale; <action>: do what it says.

  • unknown from impact means the graph found no user, not that none exist, because dynamic and cross-language uses are invisible to it. Grep the name before saying it is safe.

  • An error naming a missing command means a tool is not installed: say so and continue with grep. Do not retry the same call.

Red flags

  • When you have sent several reworded search calls, read the files, because the index does not have it.
  • When you are about to treat search output as the answer, read the places it lists, because it says where to look, not what is there.
  • When you are about to claim a dependency exports something because search surfaced it, check the entry point, because a hit shows presence, not export.

Say it in the reply

Name the call and the tree: searched <tree> for <query>, three hits, read two. On an error, say which and what you did instead, in one line.

04 同仓库更多 Skills

qsmark-labs
qsmark-labs/qsm-marketplace

worktrunk

Use when working with git worktrees or wt (worktrunk): creating, switching, merging or removing a branch workspace, configuring wt (project or personal config, workflow hooks around switch, commit and merge, commit-message generation, hook approvals), or a wt command that failed. Triggers: make a worktree for this branch, wt merge, wt remove, configure wt, .config/wt.toml, run tests before merge, install deps when a worktree is created, wt hook, wt switch does not cd, nastav wt, wt nefunguje.

★ 0
qsmark-labs
qsmark-labs/qsm-marketplace

web-ladder

Use when a task needs something the internet holds: look something up, search the web, find which page answers a question, read a page, check a library's current docs, a page that needs a browser or shows a captcha. Runs one research loop: searxng search, keywords, cases, search again up to three times, Context7 for a library, Tavily when the keywords will not come, one page in a browser, the person on a wall. Triggers: look this up, search the web, find out online, read this page, check the docs, the page is blocked, captcha, najdi na webu, otevri tu stranku. A multi-round question goes to the qsm-web:web-research agent; one tool's commands are its own skill (searxng, browserbox, opensrc).

★ 0
qsmark-labs
qsmark-labs/qsm-marketplace

searxng

Use when running a web search through the person's own SearXNG instance with qsm-web searxng: choosing a search profile or engines, the instance, time range or language, reading its JSON, a suspended engine. Triggers: search with searxng, qsm-web searxng, search profile, niche search, academic search, IT search, vyhledavaci profil, searxng is down, which engines. The research loop around it is the web-ladder skill.

★ 0
qsmark-labs
qsmark-labs/qsm-marketplace

opensrc

Use when the source code of an open-source library or repository is needed on disk to read: the docs are silent, the behaviour must be checked in code, the version the project pins. Runs qsm-web opensrc get with a package spec or a repository address. Triggers: get the source of this package, clone this library, read the library's code, qsm-web opensrc, stahni zdrojak knihovny. Library docs are the Context7 skill; the research loop is the web-ladder skill.

★ 0
qsmark-labs
qsmark-labs/qsm-marketplace

browserbox

Use when one page needs a real browser through qsm-web browserbox: content built by script, a page that blocks plain fetching, a captcha to solve or hand to the person, a scripted sequence of clicks, a login the person is present for. Triggers: open it in a browser, the page is empty without JavaScript, captcha, take over the browser, run these steps on the page, log in to this site, browserbox. When to reach for a browser at all is the web-ladder skill.

★ 0
qsmark-labs
qsmark-labs/qsm-marketplace

usage

Use when the user wants a review of how they use Claude Code, or setup hands over after a first install: review my Claude Code usage, audit my setup, what does my setup cost, where did my tokens go, clean up my Claude Code, usage report, zkontroluj moje pouzivani. One walkthrough of four stages (machine, work, habits, extensions), questions after each, then one plan. A question about one topic (which hooks are slow) goes to that topic's skill; this session's tokens alone is `/qsm-usage`.

★ 0