extended-graph-stat-calculator
Stat Calculator
Create a new node or link stat calculator that integrates with the existing factory pattern in src/statsCalculators/.
Critical
- All internal imports MUST use
"../../internal"— never import from specific files withinsrc/. The project uses a barrel export atsrc/internal.ts. - Every new calculator class, type literal, and label MUST be added to all four registration points (calculator file, factory, type union + label maps,
src/internal.tsexport). Missing any one will cause a build failure or silent omission from the UI. - Run
npm run buildto verify — there is no test framework. A clean build withtsc --noEmit+ esbuild is the only validation.
Instructions
Step 1: Create the calculator file
For a node calculator — create a new file in src/statsCalculators/nodes/ (e.g., src/statsCalculators/nodes/wordCountCalculator.ts following the pattern from src/statsCalculators/nodes/filenameLengthCalculator.ts):
import { GraphologyGraph, GraphStatsDirection, NodeStat, NodeStatCalculator } from "../../internal";
export class WordCountCalculator extends NodeStatCalculator {
More from zpankz/obsidian-skills
viva-llm
Use VIVA LLM for multi-provider chat, voice calls, terminal integration, assistants, skills, MCP tools, and agent mode inside Obsidian. Trigger when the user mentions VIVA LLM, voice chat, realtime voice, LLM providers in Obsidian, or vault-integrated AI chat.
1obsidian-plugin-accessibility
Use this skill when building or reviewing Obsidian plugin UI for keyboard access, ARIA labels, screen reader support, focus handling, or mobile touch targets. Accessibility is treated as mandatory, not optional.
1tasks
Create and query tasks using the Tasks plugin syntax including due dates, recurrence, priorities, and task queries. Use when the user mentions Tasks plugin, recurring tasks, task queries, or advanced task management in Obsidian.
1dataview
Create Dataview queries using DQL (Dataview Query Language), inline queries, and DataviewJS. Use when the user mentions Dataview, DQL, querying notes, listing notes by metadata, or creating dynamic views of vault content.
1defuddle
Extract clean markdown from web pages using Defuddle CLI, removing clutter to save tokens. Use when the user provides a URL to read or analyze.
1datacore
Create Datacore views using JSX/React syntax and the dc.* API. Use when the user mentions Datacore, dc.useQuery, JSX views, or React-based vault queries. Datacore is the successor to Dataview with better performance and interactive views.
1