wiki-query-cli

wiki-query-cli is a skill for Claude Code, Codex from rossoctl/examples. It costs 0 tokens per session (731 once invoked), scanned A, original, Apache-2.0.

A command-line tool for searching and reading a wiki memory service. The command line is a text-based way to run programs and inspect results.

In plain words
What is it for?
Use it to list wiki content, search one or all topics, read pages, inspect recent changes, find backlinks, and view tags or page relationships.
Why use it?
It gives developers one place to find topics, pages, tags, activity, backlinks, and related page connections instead of browsing files manually.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to list wiki content, search one or all topics, read pages, inspect recent changes, find backlinks, and view tags or page relationships.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rossoctl/examples/wiki-query-cli
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.

Any agent
npx skills add rossoctl/examples --skill wiki-query-cli
Clone the repo
git clone --depth 1 https://github.com/rossoctl/examples

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wiki-query-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/rossoctl/examples/wiki-query-cli/github.svg)](https://agentmods.dev/skills/rossoctl/examples/wiki-query-cli)
Your own site
<a href="https://agentmods.dev/skills/rossoctl/examples/wiki-query-cli"><img src="https://agentmods.dev/badge/skills/rossoctl/examples/wiki-query-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wiki-query-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/rossoctl/examples/wiki-query-cli"><img src="https://agentmods.dev/badge/skills/rossoctl/examples/wiki-query-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 731 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00000 $0.00731
Opus 5.5 $0.00000 $0.00292
Sonnet 5.5 $0.00000 $0.00146
Haiku 4.5 $0.00000 $0.00073

Measured 1mo ago against content hash 43b703a4cda5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wiki-query-cli 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 1mo 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.

mcp/wiki_memory_tool/skills/wiki-query-cli/SKILL.md · 121 lines

How it starts

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

kwiki Query Agent (CLI)

Query the wiki memory service using the wiki_cli.py command-line tool.

Prerequisites

The wiki service must be running on http://localhost:8321. Run from the wiki_memory_tool/ directory.

Procedure

1. List Topics

uv run python wiki_cli.py query list-topics

2. List Pages in a Topic

uv run python wiki_cli.py query list-pages {topic_id}

3. Search a Topic

uv run python wiki_cli.py query search {topic_id} "search terms"

Optional: --limit N to control result count.

4. Search All Topics (Global)

uv run python wiki_cli.py query search-all "search terms"

5. Read a Page

uv run python wiki_cli.py query read {topic_id} {path}

Returns page content with frontmatter metadata if present.

6. Activity Feed

uv run python wiki_cli.py query activity              # Global
uv run python wiki_cli.py query activity {topic_id}   # Topic-specific

7. Backlinks

uv run python wiki_cli.py query backlinks {topic_id} {path}

8. Tags

uv run python wiki_cli.py query tags {topic_id}              # List all tags
uv run python wiki_cli.py query tag {topic_id} {tag_name}    # Pages by tag

9. Page Graph

uv run python wiki_cli.py query graph {topic_id}

10. Drafts

uv run python wiki_cli.py query drafts {topic_id}

Authentication

GitHub Login (recommended for users)

uv run python wiki_cli.py --base-url https://wiki-service.example.com login
uv run python wiki_cli.py whoami
uv run python wiki_cli.py logout

Once logged in, the CLI uses your GitHub identity for all requests. Token is cached at ~/.wiki-memory/token.json.

SPIFFE Headers (agent mode)

Without a cached token, the CLI uses simulated Query Agent SPIFFE headers with OBO user.

Options

Flag Default Description
--base-url http://localhost:8321 Service URL
--user [email protected] User identity for OBO
--trust-domain rossoctl.example.com SPIFFE trust domain

Read the full file on GitHub · 121 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. 1mo ago First seen · 121 lines · 0 tokens per session scan A 43b703a4cda5

Subscribe to this mod's changes

wiki-query-cli is a skill published in the GitHub repository rossoctl/examples (11 stars, last pushed yesterday), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 731 tokens. 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.