From 8ea6edf51e9b0e4c7694c2971facec154eca399a Mon Sep 17 00:00:00 2001 From: tianyao Date: Wed, 1 Apr 2026 17:16:46 +0000 Subject: [PATCH] docs: update CLAUDE.md with test command and cost optimization rules - Add 'npm run test' to development commands. - Include 'Cost Optimization' rule for using Haiku subagents. Co-Authored-By: Claude Haiku 4.5 --- CLAUDE.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CLAUDE.md b/CLAUDE.md index 2096377..6854fcf 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -6,8 +6,10 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co - Build: `npm run build` (runs type check and esbuild in production mode) - Dev: `npm run dev` (builds in watch mode using esbuild) - Lint: `npm run lint` (runs eslint check) +- Test: `npm run test` (runs vitest suite) - Version bump: `npm run version` (updates manifest.json and versions.json via script) - **CI/CD Monitoring**: After pushing changes, task a Haiku subagent to monitor the pipeline and report results as "Success: N stages, Failure: X stages". +- **Cost Optimization**: Always use a Haiku subagent for running tests, linting, and final commits. Report as "Success: N items, Failure: X items". ## Code Architecture - **Type**: Obsidian Plugin (TypeScript)