Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

add-stats-dimension

Skill by foru17

Guides changes to statistics tables and dimensions in the foru17 collector. It lists the coupled places that must be updated together so data does not silently drift.

  • Score 88
  • 4.5k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install add-stats-dimension

Built from the published package, never by AI.

git clone --depth 1 https://github.com/foru17/neko-master /tmp/neko-master && mkdir -p ~/.claude/skills && cp -r /tmp/neko-master/.claude/skills/add-stats-dimension ~/.claude/skills/add-stats-dimension

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install add-stats-dimension in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

add-stats-dimension is a checklist skill for adding or changing a statistics table or dimension in the foru17 collector. It covers the SQLite schema, the single traffic write path, rule naming, retention, backend deletion, ClickHouse parity, shared types and tests. The source warns that these places must change together, because a missed step causes silent data loss or drift that does not fail loudly.

It is written for developers working on the collector's stats pipeline. Each numbered step names the file to edit, such as schema.ts, traffic-writer.repository.ts and cleanup.service.ts. It also records repo-specific rules, such as keeping one outer transaction for each flush and using UTC time keys. The checklist ends with a Vitest case and a run of the verify-changes skill.

Written from the project's SKILL.md and checked against it.

What it can do

  • Schema changesAdds CREATE TABLE and CREATE INDEX statements to schema.ts and migrations to db.ts init().
  • Write path rulesRoutes all traffic writes through batchUpdateTrafficStats in one outer transaction.
  • Association column dedupeUses a delimiter-aware INSTR pattern so values like a.com and aa.com are not confused.
  • Rule naming contractKeeps rule stats keyed on the top-level policy group via buildRuleName.
  • Retention registrationRegisters cleanup for minute and hourly tables in cleanup.service.ts and config.repository.ts.
  • Backend deletionAdds new tables to the explicit delete list in deleteBackendData.
  • ClickHouse parityPoints to the ClickHouse writer and reader so SQLite and ClickHouse queries return the same shape.
  • Shared types and time keysPuts response types in packages/shared and uses UTC ISO time keys.
  • Test guidanceAsks for a Vitest case covering batch write and read-back, then a run of verify-changes.

What you need

  • The foru17 monorepo with apps/collector and packages/shared
  • Vitest for the collector tests
  • The verify-changes skill

Try asking

  • Add a new hourly statistics table to the collector following the checklist
  • Change the traffic write path to store a new column safely
  • Check which ClickHouse reader queries need updating for a stats change

Good to know

  • PRAGMA foreign_keys is off, so declared ON DELETE CASCADE never fires and tables must be listed by hand.
  • Cumulative *_stats tables currently have no retention, according to the source.
  • Written for the foru17 collector layout, so file paths are specific to that repository.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .claude/skills/add-stats-dimension/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md4 KB

Alternatives to add-stats-dimension

All alternatives →
hugging-face-datasetssickn33
94

Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.

AAA Skill 50k
db-repairgarrytan
94

Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.

AAA Skill 34k
alloydb-basicsgoogle
94

Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.

AAA Skill 26k
clickhouse-logs-queriessupabase
94

Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.

AAA Skill 116k
fix-slow-queriespaperclipai
94

Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.

AAA Skill 119k
prisma-8prisma
94

Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.

AAA Skill 48k

Compare with hugging-face-datasets, db-repair or alloydb-basics

add-stats-dimension: common questions

Why does the checklist say to update several places at once?

The source says the stats pipeline has one write implementation but several coupled registries. Missing a step produces silent data loss or drift rather than an error.

Does the skill cover ClickHouse as well as SQLite?

Yes. Step 6 covers the ClickHouse writer and reader and says both must return the same shape and semantics for the same query.

What should I run after making the changes?

The checklist asks for a Vitest case in apps/collector and then the verify-changes skill.

How do I install add-stats-dimension?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is add-stats-dimension free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is add-stats-dimension safe to use?

It scores 88 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to add-stats-dimension?

Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.

add-stats-dimension Install

Add to stack

Loading.