project-conventions

project-conventions is a cursor rule for Cursor from LinXiaoTao/FuckClaude. It costs 1,416 tokens per session, scanned A, original, MIT.

A set of project-specific rules for an Astro and TypeScript website. It defines the site structure, bilingual content requirements, styling conventions, and where different kinds of content belong.

In plain words
What is it for?
Use it when adding pages, translations, news, guides, community posts, detection signals, or structured metadata to this project.
Why use it?
It keeps new code and content consistent with the existing architecture instead of scattering settings, translations, and pages across the wrong files.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when adding pages, translations, news, guides, community posts, detection signals, or structured metadata to this project.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/linxiaotao/fuckclaude/project-conventions
About the project

FuckClaude is a bilingual web tool that checks browser-visible signals and estimates whether Claude Code might identify the environment as belonging to a China-based user. It is for people who want to inspect signals such as the system timezone and proxy hostname without sending data over the network, since the scan runs locally. The catalogue rule and skill provide agent-oriented guidance related to the tool.

LinXiaoTao/FuckClaude · 1,105 stars · on GitHub · fuck-claude.vercel.app

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/LinXiaoTao/FuckClaude

Made for: Cursor.

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 project-conventions

README.md
[![agentmods](https://agentmods.dev/badge/rules/linxiaotao/fuckclaude/project-conventions/github.svg)](https://agentmods.dev/rules/linxiaotao/fuckclaude/project-conventions)
Your own site
<a href="https://agentmods.dev/rules/linxiaotao/fuckclaude/project-conventions"><img src="https://agentmods.dev/badge/rules/linxiaotao/fuckclaude/project-conventions/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 project-conventions

Your own site · 80×15
<a href="https://agentmods.dev/rules/linxiaotao/fuckclaude/project-conventions"><img src="https://agentmods.dev/badge/rules/linxiaotao/fuckclaude/project-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,416 This file is loaded in full into every session.
When invoked 1,416 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.01416 $0.01416
Opus 5.5 $0.00566 $0.00566
Sonnet 5.5 $0.00283 $0.00283
Haiku 4.5 $0.00142 $0.00142

Measured 19d ago against content hash 9bd38f430dc4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

project-conventions 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 19d 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.

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.

.cursor/rules/project-conventions.mdc · 44 lines

How it starts

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

FuckClaude Project Conventions

Tech Stack & Architecture

  • Framework: Astro (SSG/SSR hybrid via @astrojs/vercel) + TypeScript.
  • Production Domain: https://fuck-claude.vercel.app (canonical). Custom domains (fuckclaude.tech, www.fuckclaude.tech) 308 redirect to this origin.
  • Styling: Scoped CSS using site-wide CSS variables (var(--surface), var(--border), var(--accent), var(--mono), etc.).
  • Mobile header: The shared .nav / .nav__actions / .brand__text styles live in src/layouts/BaseLayout.astro. At max-width: 560px the brand collapses to the logo and .nav__actions wraps onto a second row. New header items must not break this; verify documentElement.scrollWidth === viewport width at 320/360/375/414px on /, /zh/, /guides/, /news/.
  • Grids and long tokens: Use minmax(min(Npx, 100%), 1fr) for auto-fill grids, and overflow-wrap: anywhere on cards that render user-facing text with long identifiers (env vars, model names).

Bilingual & i18n

  • Supported languages: zh (paths prefixed with /zh/) and en (paths at /).
  • All user-facing strings must be defined in src/i18n/ui.ts for both languages.
  • Breadcrumbs, alternate hreflang links, and JSON-LD must stay in sync across /zh/ and root versions.
  • Automatic client/server redirects based on browser language are strictly forbidden per Google SEO guidelines.
  • Use src/components/LocaleSuggestBanner.astro to render a non-blocking suggestion banner when browser language differs from current page language.

News & Community Content

  • News: Maintained in src/config/news.ts. Items include bilingual title, summary, takeaway, category tag, and source link. publishedAt must match the date on the cited source page (for example the Transparency Hub's "Last updated" date), not the date the item was added.
  • Non-official news items (media or community reports, such as regional ban waves): cite the original publisher in sourceName, cross-check at least two independent sources, and state that Anthropic has not confirmed causes or scale. Do not cite vendor blogs that sell a competing service as the sole source.
  • Social / X Community Posts: Maintained in src/config/community-posts.ts and rendered via src/components/CommunityPosts.astro. Must retain direct links to original X posts, author name, handle, profile link, tags, and practical takeaways. Verify each post before adding it (author, date, text) through https://api.fxtwitter.com/<handle>/status/<id>. Never add posts that cannot be verified, and do not repeat advice that tells users to open replacement accounts after a ban. Available tags are defined in POST_TAGS; each tag also needs a data-tag colour rule in CommunityPosts.astro.
  • News filtering: ClaudeNews.astro and getLatestNews() accept categories; the guides hub shows only policy and security items, after the guide catalog.
  • Community post links: Every post in community-posts.ts sets relatedGuideSlug; CommunityPosts.astro renders it as a "Related guide" link.

Read the full file on GitHub · 44 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. 19d ago Changed · +11 lines · +755 tokens per session 9bd38f430dc4
  2. 28d ago Changed · +2 lines · +162 tokens per session 92a401d0f73e
  3. 1mo ago Changed · +2 lines · +46 tokens per session e4d4cab55b85
  4. 1mo ago Changed · +3 lines · +54 tokens per session 74670c54f7a9
  5. 1mo ago Changed · +1 lines · +43 tokens per session ba786dea7db2
  6. 1mo ago First seen · 25 lines · 356 tokens per session scan A 1fd1a25ce62f

Subscribe to this mod's changes

project-conventions is a cursor rule published in the GitHub repository LinXiaoTao/FuckClaude (1,105 stars, last pushed yesterday), licensed MIT. It adds 1,416 tokens to every session, about $0.0057 per session on Opus 5.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-09-06.