mini-taiwan-pulse: Instructions file for Claude Code

CLAUDE.md

mini-taiwan-pulse CLAUDE.md is an instructions file for Claude Code from ianlkl11234s/mini-taiwan-pulse. It costs 1,833 tokens per session, scanned A, original, MIT.

Development rules for Mini Taiwan Pulse, a React and TypeScript map application using Vite, Mapbox GL, Three.js, and Supabase. It also describes project memory files and commands for development, type checking, testing, and adding map layers.

In plain words
What is it for?
Use it when adding map layers, checking TypeScript, running tests or the development server, inspecting RPC performance, or consulting recorded project pitfalls.
Why use it?
It records local rules that may differ from general React practice, including required validation and data-access boundaries.

Instructions file for Claude Code

Written for Claude Code: SessionStart hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md.

This is ianlkl11234s/mini-taiwan-pulse's own configuration. It tells Claude Code how to work on mini-taiwan-pulse 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 mini-taiwan-pulse configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ianlkl11234s/mini-taiwan-pulse. 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/ianlkl11234s/mini-taiwan-pulse/master/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/ianlkl11234s/mini-taiwan-pulse

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 mini-taiwan-pulse CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ianlkl11234s/mini-taiwan-pulse/claude-md/github.svg)](https://agentmods.dev/instructions/ianlkl11234s/mini-taiwan-pulse/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/ianlkl11234s/mini-taiwan-pulse/claude-md"><img src="https://agentmods.dev/badge/instructions/ianlkl11234s/mini-taiwan-pulse/claude-md/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 mini-taiwan-pulse CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ianlkl11234s/mini-taiwan-pulse/claude-md"><img src="https://agentmods.dev/badge/instructions/ianlkl11234s/mini-taiwan-pulse/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,833 This file is loaded in full into every session.
When invoked 1,833 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.01833 $0.01833
Opus 5 $0.00916 $0.00916
Sonnet 5 $0.00367 $0.00367
Haiku 4.5 $0.00183 $0.00183

Measured yesterday against content hash 4919e3fdf68e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

mini-taiwan-pulse CLAUDE.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 yesterday.

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.md · 102 lines

How it starts

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

Mini Taiwan Pulse — 開發規則

React 19 + TypeScript + Vite (port 3721) · Mapbox GL + Three.js · Supabase (gis-platform)

詳細版規則見 docs/development-rules.md

與全域準則的優先級:全域 ~/.claude/CLAUDE.md 已含通用開發準則(Think Before Coding / Simplicity / Surgical / Goal-Driven);本檔為專案具體化規則,衝突時以下方為準(特別是 Simplicity 對「新增 Layer 7 步驟 + UX 四鐵則」、Surgical 對「跨檔 register 多處」的例外)。不確定算不算違反專案鐵則時,先問用戶。

Session 記憶迴圈

SessionStart hook 只提供短路由,不預載 STATUS/BACKLOG/PRINCIPLES。有接手需求才依 .claude/memory/README.md 查相關段落;似曾相識的 bug 搜 .claude/pitfalls/。明確收尾時依 wrap-up 的 scope/evidence/release matrix 留本次紀錄,提交/發布沿用各自授權。框架機制按需查 .claude/FRAMEWORK.md

常用指令

指令 用途
npm run dev 啟動 dev server (port 3721)
npx tsc -b TypeScript 驗證(commit 前必跑,禁用 --noEmit
npm test 跑測試(含 layerConsistency 擋漏接圖例)
/new-layer <name> 新增 layer 骨架(強烈建議走,免漏 manifest/spec/邏輯檔三步 + 四鐵則)
/check-rpc <name> 自動 EXPLAIN 判斷 RPC 效能

必守規則

1. TypeScript 驗證

npx tsc -b(project references,禁用 --noEmit)— commit 前必跑。

2. 資料來源管理

資料來源契約(動態走 public.* RPC / Statistics 一律走 R2 snapshot / 靜態走 CDN 資產 / 禁前端直打 realtime.*)→ docs/development-rules.md §1

3. 資料載入必須有 Loading UI ⚠️

所有非同步載入必註冊 loadingRegistry,禁靜默 .rpc().then() → development-rules §2

4. 資料庫優化(Pre-aggregate Pattern)

RPC >1s 或 >10k rows 必套 pre-aggregate → docs/supabase-optimization.md + /supabase-optimize skill + /check-rpc

5. 新增 Layer 強制順序 ⚠️

新增 Layer → /new-layer 產骨架 + layer-onboarding skill 驗收;接線順序見 development-rules §4。 AR-22 Phase 4 起登記簿不再手寫:一筆 layerManifest.ts entry + 一筆 layerParamsSpec.ts 規格派生 6 張表,你只寫實質邏輯(loader / hook / overlay)。layerConsistency 測試驗 manifest 完整性(沒 entry / 欄位空殼 / 用 null 靜默豁免鐵則 → 紅)。

5a. 圖層 UX 四鐵則(⚠️ 缺一不可)

圖層 UX 四鐵則(opacity / 圖例 / popup / select)→ development-rules §4a + layer-onboarding Step 3-4

Read the full file on GitHub · 102 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. yesterday Changed 4919e3fdf68e
  2. 11d ago First seen · 102 lines · 1,833 tokens per session scan A 362f21828cfe

Subscribe to this mod's changes

mini-taiwan-pulse CLAUDE.md is an instructions file published in the GitHub repository ianlkl11234s/mini-taiwan-pulse (504 stars, last pushed today), licensed MIT. It adds 1,833 tokens to every session, about $0.0092 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 instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens