neko-master: Skill for Claude Code

.claude/skills/add-stats-dimension/SKILL.md

add-stats-dimension is a skill for Claude Code from foru17/neko-master. It costs 52 tokens per session (1,027 once invoked), scanned A, original, MIT.

A checklist for adding or changing a statistics table or dimension in a data collector. A dimension is a field used to group or filter measurements, such as a backend or traffic category.

In plain words
What is it for?
Use it when changing SQLite tables, indexes, traffic recording, retention rules, ClickHouse parity, or statistics query APIs.
Why use it?
It keeps the database schema, traffic writes, retention, ClickHouse copy, and query APIs aligned so data does not silently go missing.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is foru17/neko-master's own configuration. It tells Claude Code how to work on neko-master itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything neko-master configures →

About the project

Neko Master is a dashboard that collects and visualizes network traffic from local gateway environments. It is for monitoring, auditing, and analyzing traffic across multiple gateways, with the catalogue entries providing instructions and skills for working with the dashboard.

foru17/neko-master · 3,929 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to foru17/neko-master. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/foru17/neko-master/main/.claude/skills/add-stats-dimension/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/foru17/neko-master

Made for: Claude Code.

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 add-stats-dimension

README.md
[![agentmods](https://agentmods.dev/badge/skills/foru17/neko-master/add-stats-dimension/github.svg)](https://agentmods.dev/skills/foru17/neko-master/add-stats-dimension)
Your own site
<a href="https://agentmods.dev/skills/foru17/neko-master/add-stats-dimension"><img src="https://agentmods.dev/badge/skills/foru17/neko-master/add-stats-dimension/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 add-stats-dimension

Your own site · 80×15
<a href="https://agentmods.dev/skills/foru17/neko-master/add-stats-dimension"><img src="https://agentmods.dev/badge/skills/foru17/neko-master/add-stats-dimension.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,027 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.00052 $0.01027
Opus 5 $0.00026 $0.00513
Sonnet 5 $0.00010 $0.00205
Haiku 4.5 $0.00005 $0.00103

Measured 9d ago against content hash d811d785105f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

add-stats-dimension 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 9d 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.

.claude/skills/add-stats-dimension/SKILL.md · 54 lines

How it starts

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

Add / Change a Stats Dimension

The stats pipeline has one write implementation but several coupled registries. Missing any step below produces silent data loss or drift — none of it fails loudly. Work through the checklist in order.

1. Schema (single source of truth)

  • Add the CREATE TABLE / CREATE INDEX statements to apps/collector/src/database/schema.ts (SCHEMA + INDEXES). Nothing else creates tables.
  • Existing databases only get IF NOT EXISTS DDL from schema.ts. Column additions and index drops need an explicit migration in apps/collector/src/modules/db/db.ts init() (see the ALTER TABLE ... ADD COLUMN and DROP INDEX IF EXISTS precedents there).
  • Do NOT add expression indexes on (total_download + total_upload) — hot queries filter by backend_id first, so the planner never uses them (verified with EXPLAIN QUERY PLAN); they only amplify writes.

2. Write path (exactly one)

  • All traffic writes go through batchUpdateTrafficStats in apps/collector/src/database/repositories/traffic-writer.repository.ts. updateTrafficStats is a thin wrapper over it — never add a second write implementation.
  • Add your aggregation map in the batch loop and the upsert in the appropriate transaction group. The whole flush is one outer transaction; keep it that way (a partial commit + buffer retry double-counts).
  • CSV-style association columns (ips, rules, chains, domains) must dedupe with the delimiter-aware pattern — bare INSTR(list, value) treats a.com as present when aa.com is:
INSTR(',' || col || ',', ',' || @value || ',') > 0
  • Respect reduceWrites semantics: detail tables are skipped when ClickHouse is the read source (shouldReduceSqliteWrites in modules/stats/stats-write-mode.ts). Decide whether your table is "core" (always written) or "detail" (skippable) and place it in the matching branch.

3. Rule naming contract (if the dimension involves rules)

  • Rule stats key on the top-level policy group (last chain hop) for multi-hop chains — buildRuleName in src/shared/utils/rule-name.ts is the only place this logic lives. The frontend matches these names against gateway rule targets (rule.proxy), so changing the key breaks the flow graph and rule matching (this regressed once in v1.3.9; see docs/dev/deep-review-2026-07.md).

Read the full file on GitHub · 54 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. 9d ago First seen · 54 lines · 52 tokens per session scan A d811d785105f

Subscribe to this mod's changes

add-stats-dimension is a skill published in the GitHub repository foru17/neko-master (3,929 stars, last pushed 1mo ago), licensed MIT. It adds 52 tokens to every session and 1,027 once invoked, about $0.0003 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.

Related

Other skills, from other repositories

data-viz-renderer

Generate self-contained HTML/SVG infographics from JSON data, including stat cards, bar charts, flow diagrams, and mixed dashboards. Offers 8 color palettes and built-in icons with no external dependencies. Triggered when users request data visualization, infographics, charts, or dashboards.

zebbern/claude-code-guide · 62 tokens

metabase-data-app-semantic-layer

Use when building, creating, or editing data apps that should query Metabase tables and metrics through generated schema files like metabase.data.ts or .metabase.data.ts.

metabase/metabase · 42 tokens

building-incident-response-dashboard

Builds real-time incident response dashboards in Splunk, Elastic, or Grafana to provide SOC analysts and leadership with situational awareness during active incidents, tracking affected systems, containment status, IOC spread, and response timeline. Use when IR teams need unified visibility during incident…

26zl/cybersec-toolkit · 66 tokens

grafana-dashboard

Create, view, and manage Grafana dashboards with panels and datasources.

Datus-ai/Datus-agent · 18 tokens

superset-dashboard

Create, view, and manage Superset dashboards with charts and datasets.

Datus-ai/Datus-agent · 17 tokens

dashboard-designer

Use this skill when designing a data dashboard—choosing KPIs, structuring layout, applying visual hierarchy, or deciding which BI tool to use. Trigger phrases: 'design a dashboard', 'build a KPI dashboard', 'what should my dashboard show', 'help me layout a dashboard', 'dashboard for monitoring'. Not for building…

NickCrew/Claude-Cortex · 95 tokens