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/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.
<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="Reviewed on agentmods" width="80" 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.5 | $0.01718 | $0.01718 |
| Sonnet 5.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 2mo 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.
- 2mo 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 5mo ago), licensed Apache-2.0. It adds 4,296 tokens to every session, about $0.0172 per session on Opus 5.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.
taiwan-data-hub CLAUDE.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| taiwan-data-hub CLAUDE.mdhydai/taiwan-data-hub | Instructions file | 1 | 5mo ago | Apache-2.0 | B | 4,296 | Claude Code |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | yesterday | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |