# Research

> Search QMD-indexed project and main cross-project LLM wikis for past patterns, decisions, solutions, and pitfalls before planning or implementation. Use before feature planning, bug fixing, refactoring, architecture work, or code changes when a project wiki may exist.

- **Type:** Skill
- **Install:** `agentstack add skill-ivankuznetsov-llm-wiki-research`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [ivankuznetsov](https://agentstack.voostack.com/s/ivankuznetsov)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [ivankuznetsov](https://github.com/ivankuznetsov)
- **Source:** https://github.com/ivankuznetsov/llm-wiki/tree/main/skills/research

## Install

```sh
agentstack add skill-ivankuznetsov-llm-wiki-research
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Wiki Research

Search the project wiki and main cross-project wiki before planning or implementation. Produce a concise Past Knowledge section that downstream planning or coding can use.

## Step 1: Identify Context

Determine:

- Current project name: `basename "$(git rev-parse --show-toplevel 2>/dev/null || pwd)"`
- Parent of project: `dirname "$(git rev-parse --show-toplevel)"`
- Whether `wiki/` exists in the repo.
- Whether `.llm-wiki/config.json` exists and contains `main_wiki_path`.
- Whether `~/wikis/master/wiki/` exists.
- Whether `~/wikis/main/wiki/` exists.
- Whether `/wikis/master/wiki/` exists.
- Whether `/wikis/main/wiki/` exists.
- Whether QMD MCP tools, `qmd` CLI, or only `rg` are available.

If no main cross-project wiki exists, say that explicitly. Ask the user for a main wiki folder when cross-project context is important, or suggest running `bootstrap` to create `/wikis/master/wiki/`.

## Step 2: Search With the Best Available Tool

### Preferred: QMD MCP

Use at most two QMD MCP query calls. Do not fire many QMD calls in parallel; combine related searches into the `searches` array.

Project search:

```json
{
  "searches": [
    { "type": "lex", "query": "" },
    { "type": "vec", "query": "" }
  ],
  "collections": [""],
  "limit": 10
}
```

Main cross-project search:

```json
{
  "searches": [
    { "type": "lex", "query": "" },
    { "type": "vec", "query": "patterns for " }
  ],
  "collections": ["master"],
  "limit": 10
}
```

Use the `master` QMD collection for the main cross-project wiki when available. If the environment uses a `main` collection instead, query `main`.

Read the top 3-5 relevant pages with QMD get or multi-get.

### Fallback: QMD CLI

```bash
qmd query "" --collection ""
qmd query "" --collection master
# or, if the cross-project wiki is indexed as main:
qmd query "" --collection main
```

### Fallback: ripgrep

```bash
rg "" wiki/ --type md -C 2
rg "" "" --type md -C 2
rg "" ~/wikis/master/wiki/ --type md -C 2
rg "" ~/wikis/main/wiki/ --type md -C 2
rg "" ../wikis/master/wiki/ --type md -C 2
rg "" ../wikis/main/wiki/ --type md -C 2
```

Skip missing directories gracefully.

## Step 3: Read Important Pages

Prioritize:

- `wiki/decisions.md`
- `wiki/technical-debt.md`
- `wiki/gaps.md`
- `wiki/architecture.md`
- `/patterns.md`
- `/learnings.md`
- `~/wikis/master/wiki/patterns.md`
- `~/wikis/master/wiki/learnings.md`
- `~/wikis/main/wiki/patterns.md`
- `~/wikis/main/wiki/learnings.md`
- `/wikis/master/wiki/patterns.md`
- `/wikis/master/wiki/learnings.md`
- `/wikis/main/wiki/patterns.md`
- `/wikis/main/wiki/learnings.md`

Only cite or summarize pages actually read.

## Step 4: Produce Past Knowledge

Return this structure:

```markdown
### Past Knowledge

**Relevant wiki pages:**
- ...

**Applicable patterns:**
- ...

**Past decisions that constrain this work:**
- ...

**Known pitfalls:**
- ...

**Reusable components:**
- ...

**Gaps this work could fill:**
- ...
```

If no wiki exists, say that explicitly and suggest running `bootstrap`.

## Rules

- Search wiki context before codebase exploration when wiki context exists.
- Do not claim wiki facts unless a page was read.
- Prefer concise synthesis over dumping search results.
- Preserve uncertainty and missing coverage as gaps.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [ivankuznetsov](https://github.com/ivankuznetsov)
- **Source:** [ivankuznetsov/llm-wiki](https://github.com/ivankuznetsov/llm-wiki)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-ivankuznetsov-llm-wiki-research
- Seller: https://agentstack.voostack.com/s/ivankuznetsov
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
