Borrowing it
Nothing to install: this file belongs to hydai/taiwan-data-hub. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/hydai/taiwan-data-hub/main/CLAUDE.mdgit clone --depth 1 https://github.com/hydai/taiwan-data-hubWrote 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.
[](https://agentmods.dev/instructions/hydai/taiwan-data-hub/claude-md)<a href="https://agentmods.dev/instructions/hydai/taiwan-data-hub/claude-md"><img src="https://agentmods.dev/badge/instructions/hydai/taiwan-data-hub/claude-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.04296 | $0.04296 |
| Opus 5 | $0.02148 | $0.02148 |
| Sonnet 5 | $0.00859 | $0.00859 |
| Haiku 4.5 | $0.00430 | $0.00430 |
Grade B, and why
taiwan-data-hub CLAUDE.md scanned grade B with 1 finding 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 8d 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
A PreToolUse hook in `~/.claude/settings.json` auto-runs these before `git commit`. How it starts
The opening of the file, as written. The whole thing — 392 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md — Project memory for Taiwan Data Hub
Per-project guidance for Claude Code (and any agentic coding assistant) working in this repository. Loaded into every Claude session — keep short and high-signal.
Project context
Taiwan Data Hub is a fully open-source, self-hostable MCP (Model Context Protocol) service hub that aggregates Taiwan public data sources and exposes them to AI agents like Claude Desktop, Cursor, and Cline.
- Status: pre-alpha · design phase (no implementation code yet)
- License: Apache-2.0
- Canonical design:
docs/DESIGN.md— read this first - Roadmap: Project #2 · 80 sub-issues across 9 milestones
- MVP (v0.1) = M0 + M1 + M2 → 28 P0 issues
Tech stack (versions pinned as of 2026-05-18)
| Layer | Stack |
|---|---|
| Backend | Rust · axum 0.8.8 · sqlx 0.8.6 · polars 0.53 · rmcp 1.7 |
| Frontend | SvelteKit 2.59 · Svelte 5.55 (Runes) · Tailwind 4.3 (CSS-first) · shadcn-svelte 1.2 |
| Data | PostgreSQL 18 (UUIDv7) · Parquet · SeaweedFS (S3-compat) · DragonflyDB · Meilisearch 1.15 |
| Spec | MCP 2025-11-25 · OAuth 2.1 + PKCE · OpenAPI 3.1 (utoipa 5.5) |
| Deploy | Docker Compose (profiles: default / full / obs / dev) · Caddy 2.11 |
Full version table and rationale: docs/DESIGN.md §5.
Critical gotchas (do NOT copy from old examples)
These libraries had breaking changes within the last 12 months. Always check versions before copy-pasting from blog posts or AI training data:
- axum 0.8 — path syntax
/:idpanics at startup; use/{id}. - Tailwind v4 — no
tailwind.config.js; use@themeblock in CSS,@import "tailwindcss", plugin@tailwindcss/postcss.shadowrenamed:shadow-sm→shadow-xs. - Svelte 5 Runes — use
$state/$derived/$effect/$props; never$:orexport let. - rmcp 1.x — not 0.x; trait signatures and imports changed completely.
- utoipa 5.x — use
OpenApiRouter, OpenAPI 3.1 schema paths. - oauth2 / openidconnect 5.x — async client now trait-based.
- thiserror 2.0 — most cases rebuild fine; check changelog for
#[backtrace]. - Paraglide-JS v2 — API renamed:
getLocale()/setLocale()/locales(NOTlanguageTag()/availableLanguageTags); server middleware moved toserver.jsasparaglideMiddleware. - MapLibre GL v5 — style spec & worker config changed.
- echarts v6 — v5 → v6 not fully compatible; do NOT use
svelte-echarts(stale 1.0.0); write a 30-line wrapper. - MinIO is archived (2026-04-25) — use SeaweedFS or Garage instead.
- PostgreSQL 18 — has native
uuidv7(); prefer over manual UUID generation for sortable ids.
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.
- 8d ago First seen · 392 lines · 4,296 tokens per session scan B 04985dd1047f
taiwan-data-hub CLAUDE.md is an instructions file published in the GitHub repository hydai/taiwan-data-hub (1 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 4,296 tokens to every session, about $0.0215 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
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.
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.
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).
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).
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.
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.