query

query is a skill for Claude Code, Codex from Yrzhe/pagefly. It costs 24 tokens per session (1,229 once invoked), scanned A, original, MIT.

A knowledge assistant that works through Telegram with documents in a knowledge base. It can read, search, create, and modify documents, with approval required for destructive changes.

In plain words
What is it for?
Use it to answer questions from stored knowledge, search or read documents, create or update pages, and organize connections between information.
Why use it?
It helps you find and maintain company information from a chat interface. It first checks the knowledge index, then searches relevant documents instead of reading everything.

Skill for Claude CodeCodex

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

Good fit Use it to answer questions from stored knowledge, search or read documents, create or update pages, and organize connections between information.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/yrzhe/pagefly/query
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 Yrzhe/pagefly --skill query
Clone the repo
git clone --depth 1 https://github.com/Yrzhe/pagefly

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 query

README.md
[![agentmods](https://agentmods.dev/badge/skills/yrzhe/pagefly/query/github.svg)](https://agentmods.dev/skills/yrzhe/pagefly/query)
Your own site
<a href="https://agentmods.dev/skills/yrzhe/pagefly/query"><img src="https://agentmods.dev/badge/skills/yrzhe/pagefly/query/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 query

Your own site · 80×15
<a href="https://agentmods.dev/skills/yrzhe/pagefly/query"><img src="https://agentmods.dev/badge/skills/yrzhe/pagefly/query.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 24 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,229 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.
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.00024 $0.01229
Opus 5.5 $0.00010 $0.00492
Sonnet 5.5 $0.00005 $0.00246
Haiku 4.5 $0.00002 $0.00123

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

Security

Grade A, and why

query 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.

config/skills/query/SKILL.md · 114 lines

How it starts

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

Query Agent

Role

You are PageFly's personal knowledge assistant. You interact with the user through Telegram, helping them manage and explore their knowledge base.

Capabilities

  • Read the wiki index (read_wiki_index) for a quick overview of all compiled knowledge
  • Search and read documents in knowledge/ and wiki/
  • Create new documents in knowledge/ or wiki/
  • Modify existing documents (update content, add notes, update metadata)
  • Answer questions by synthesizing information from the knowledge base
  • Help the user organize and connect ideas

When answering questions:

  1. First read the wiki index (read_wiki_index) to see what's available
  2. Then drill into specific articles that seem relevant
  3. If needed search for keywords across all documents
  4. This avoids reading every document and makes queries faster

When Answering Questions About Knowledge Base Status

When the user asks about the current state of the knowledge base (e.g., "how many docs", "what's in my KB", "knowledge base structure", "any problems"):

  • ALWAYS use query_database to get real-time data — do NOT rely on old lint reports or wiki articles
  • Example queries:
    • SELECT category, subcategory, COUNT(*) as cnt FROM documents WHERE status != 'error' GROUP BY category, subcategory ORDER BY category
    • SELECT COUNT(*) FROM wiki_articles
    • SELECT article_type, COUNT(*) as cnt FROM wiki_articles GROUP BY article_type
  • Only reference lint reports for historical context, NOT for current counts
  • The database is always the source of truth for current state

Approval Required

The following actions MUST be approved by the user before execution:

  • Modifying an existing document's content
  • Modifying an existing document's metadata
  • Moving documents between categories

The following actions can be done WITHOUT approval:

  • Reading any document
  • Listing documents
  • Creating new documents
  • Searching the knowledge base

Knowledge Reflux

Read the full file on GitHub · 114 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 · 114 lines · 24 tokens per session scan A 32af4b080fe5

Subscribe to this mod's changes

query is a skill published in the GitHub repository Yrzhe/pagefly (75 stars, last pushed 5mo ago), licensed MIT. It adds 24 tokens to every session and 1,229 once invoked, about $0.0001 per session on Opus 5.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.

Related

Other skills, from other repositories

grok-sync

A tool for importing conversations from an official Grok data export into an Obsidian vault. Grok is xAI's chat service, and Obsidian is a note-taking application; the import creates notes and a local database.

tonydzi/second-brain-starter-kit · 96 tokens

granola-sync

Pull fresh meetings from Granola (summaries, transcripts, participants) into an Obsidian vault over the official API. Incremental and idempotent by note id and updatedat, so re-runs make no duplicates. Triggers: "/granola-sync", "pull granola", "refresh meetings".

tonydzi/second-brain-starter-kit · 67 tokens

obsidian-cli

Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more. Also supports plugin and theme development with commands to reload plugins, run JavaScript, capture errors, take screenshots, and inspect the DOM. Use when the user asks to interact with their…

michaeljauk/brain-starter · 102 tokens

potpie-source-ingestion

Use when the user explicitly asks to ingest, refresh, or deeply understand a repository, PR, issue, ticket, runbook, incident report, document, or web link into Potpie. The harness performs todo-driven discovery, uses local/GitHub/integration tools and read-only subagents when available, builds evidence-backed…

potpie-ai/potpie · 111 tokens

ingest-health

Use when the user says /ingest-health, asks to import, sync, ingest, or load Apple Health / Apple Watch / HealthKit data, has a fresh export.zip from the iPhone Health app, a Simple Health Export CSV folder, or a Health Auto Export TCP live feed, or when health-mcp queries return empty because no data was ever…

mycelium-hq/ai-brain-starter · 107 tokens

setup-vault-types

Use when configuring which document types a vault tracks: after installing ai-brain-starter, when a new kind of note appears (journals, books, meetings, clients, podcasts, travel, WhatsApp/Slack/iMessage exports), when extraction skips files because no extractor matches their type, or to add, list, or remove a custom…

mycelium-hq/ai-brain-starter · 114 tokens