local-ydb-toolkit AGENTS.md

local-ydb-toolkit AGENTS.md is an instructions file for Codex, OpenCode from astandrik/local-ydb-toolkit. It costs 2,200 tokens per session, scanned A, original, MIT.

Project instructions for a TypeScript workspace that provides reusable tools for local YDB deployments, a local MCP server, and a GitHub Actions setup component. YDB is a database system that can be run on a developer's own machine or environment.

In plain words
What is it for?
Developing or checking the local YDB operation library, starting its command-line server, testing its TypeScript workspaces, and maintaining its GitHub Actions setup assets.
Why use it?
It documents how the core operation library, server wrapper, and automation files fit together, so contributors can build, type-check, test, and compare response formats consistently.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions Codex.

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 instructions/astandrik/local-ydb-toolkit/agents-md
Clone the repo
git clone --depth 1 https://github.com/astandrik/local-ydb-toolkit

Made for: Codex, OpenCode.

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 local-ydb-toolkit AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/astandrik/local-ydb-toolkit/agents-md.svg)](https://agentmods.dev/instructions/astandrik/local-ydb-toolkit/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/astandrik/local-ydb-toolkit/agents-md"><img src="https://agentmods.dev/badge/instructions/astandrik/local-ydb-toolkit/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 2,200 This file is loaded in full into every session.
When invoked 2,200 The same file — it is already loaded in full.
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.1 $0.02200 $0.02200
Opus 5 $0.01100 $0.01100
Sonnet 5 $0.00440 $0.00440
Haiku 4.5 $0.00220 $0.00220

Measured 6d ago against content hash 63b21341e25c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

local-ydb-toolkit AGENTS.md 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 6d 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.

AGENTS.md · 91 lines

How it starts

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

local-ydb-toolkit - Agent Instructions

Build & Run

  • npm ci - Install exact workspace dependencies for CI-parity checks.
  • npm install - Install workspace dependencies during local development.
  • npm run build - Build @local-ydb-toolkit/core and then @astandrik/local-ydb-mcp.
  • npm run build -w @local-ydb-toolkit/core - Build only the core package.
  • npm run build -w @astandrik/local-ydb-mcp - Build only the MCP server package.
  • npm run typecheck - Type-check all workspaces with package-specific tsconfig.typecheck.json files.
  • npm run compare:formats -w @astandrik/local-ydb-mcp - Compare JSON and TOON response sizes when changing MCP response formatting.
  • node packages/mcp-server/dist/index.js - Start the stdio MCP server after a successful build.

Overview

This repository contains a reusable Codex skill for operating local-ydb deployments, a TypeScript npm workspace that exposes the same operations through a local stdio MCP server, and CI assets for the astandrik/setup-local-ydb GitHub Action. The runtime package is split between a core operation library and an MCP server wrapper.

Testing

  • npm test - Run all Vitest tests matching packages/**/*.test.ts.
  • npm test -- packages/core/test/validation.test.ts - Run one core test file.
  • npm test -- packages/mcp-server/test/tools.test.ts - Run one MCP server test file.
  • npm test -- -t "config validation" - Run tests matching a Vitest name pattern.

Run npm test and npm run typecheck before handing off TypeScript changes. GitHub CI uses Node 24 and runs npm ci, npm run build, npm test, and npm run typecheck. The live MCP integration workflow also builds the server, starts YDB through astandrik/setup-local-ydb@v1, and runs node scripts/ci/verify-live-mcp-server.mjs; treat that as Docker/YDB integration coverage, not a default local check.

Project Structure

  • packages/core/ - TypeScript library for config validation, command execution, local-ydb checks, and mutating operation plans.
  • packages/mcp-server/ - Stdio MCP server that registers public local_ydb_* tools and delegates to @local-ydb-toolkit/core.
  • packages/mcp-server/src/tools/ - MCP tool registry, argument schemas, input schemas, instructions, and handler context.
  • packages/mcp-server/src/prompts.ts - Guided MCP prompt templates for diagnosis, bootstrap, upgrades, auth hardening, and storage reduction.
  • packages/mcp-server/src/response-format.ts and packages/mcp-server/src/responses.ts - MCP response shaping, including optional TOON text content while keeping structuredContent JSON.
  • skills/local-ydb/ - Codex skill content, references, agent metadata, scripts, and assets.
  • examples/local-ydb.config.example.json - Example local and SSH target profiles; keep real secrets and host details out of committed configs.
  • scripts/ci/ - GitHub Actions verification scripts for live MCP and setup-local-ydb smoke coverage.
  • .github/workflows/ - CI, live MCP integration, setup-local-ydb smoke, and release/publish workflows.
  • server.json - Official MCP Registry metadata for io.github.astandrik/local-ydb-mcp.
  • MCP_TOOL_TEST_SCENARIOS.md - Manual MCP tool scenarios.
  • vitest.config.ts - Vitest configuration and workspace alias for @local-ydb-toolkit/core.
  • ../local-ydb-toolkit-ui - Sibling checkout for the public website when present; keep website-facing product metadata in sync when this repo changes public discovery or install surfaces.

Read the full file on GitHub · 91 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. 6d ago First seen · 91 lines · 2,200 tokens per session scan A 63b21341e25c

Subscribe to this mod's changes

local-ydb-toolkit AGENTS.md is an instructions file published in the GitHub repository astandrik/local-ydb-toolkit (4 stars, last pushed yesterday), licensed MIT. It adds 2,200 tokens to every session, about $0.0110 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-31.