research

An interactive setup command for an empty or disorganised Obsidian vault, which is a folder of linked Markdown notes.

In plain words
What is it for?
Use it to bootstrap a schema for a vault with no usable organisation; structured vaults should use the regular bootstrap workflow.
Why use it?
It helps decide whether the vault needs a new structure and explores its contents before creating one.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/smixs/autograph/research
Clone the repo
git clone --depth 1 https://github.com/smixs/autograph
Per session 47 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,426 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00047 $0.01426
Opus 5 $0.00023 $0.00713
Sonnet 5 $0.00009 $0.00285
Haiku 4.5 $0.00005 $0.00143

Measured 2d ago against content hash 50e02515fa86, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

research scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/research.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/autograph:research — interactive bootstrap

You are orchestrating an interactive bootstrap of a chaotic or empty Obsidian vault. The user invoked /autograph:research $ARGUMENTS. Treat $ARGUMENTS as the vault path. If empty, ask for it with AskUserQuestion.

This command only runs when the vault lacks a usable schema and structure. For structured vaults, redirect the user to the normal bootstrap workflow (references/bootstrap-workflow.md in the autograph skill).

Workflow

Phase 1 — Gate (is /research the right tool?)

Run discovery to see what we have:

uv run <skill-dir>/scripts/discover.py "$VAULT" --verbose > /tmp/autograph-discovery.json
uv run <skill-dir>/scripts/research.py plan "$VAULT" > /tmp/autograph-plan.json

Read /tmp/autograph-plan.json. It contains gate with fields:

  • files_total, folders_total
  • has_schema_json (bool)
  • frontmatter_coverage (0–1)
  • verdict: "chaos" | "structured" | "empty"

If verdict == "structured": stop. Tell the user:

This vault already has a workable structure (N files, X% with frontmatter, schema.json present). /research is for empty or chaotic vaults. Use discover.pygenerate_schema.pyswarm_prepare.py from the autograph skill instead.

Do not proceed to Phase 2 unless the user overrides.

If verdict == "empty" (≤ ~20 files): skip Phase 3 swarm — go straight to Q&A (Phase 2) + manual schema draft.

If verdict == "chaos": continue to Phase 2.

Phase 2 — First-wave Q&A

Use AskUserQuestion to establish intent. Ask up to 4 at once:

  1. Purpose — personal / work / research / mixed
  2. Expected domains — free-form list, show 3–5 folder names already present as hints
  3. Content language — ru / en / mixed / other
  4. Schema ambition — minimal (3–5 types) / standard (6–10) / full taxonomy (10–15)

Store answers in memory — you will feed them to Phase 4.

Phase 3 — Swarm exploration (only for chaos)

/tmp/autograph-plan.json contains a manifests array. Each manifest has a non-overlapping subset of files (≤ 20 each) bin-packed by folder. Spawn parallel Agent calls — one per manifest, up to 5 in a single message — with subagent_type: "general-purpose".

Read the full file on GitHub · 111 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 111 lines · 47 tokens per session scan A 50e02515fa86

Subscribe to this mod's changes

research is a command published in the GitHub repository smixs/autograph (67 stars, last pushed 28d ago), licensed MIT. It adds 47 tokens to every session and 1,426 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.