semantix: Instructions file for Claude Code

CLAUDE.md

semantix CLAUDE.md is an instructions file for Claude Code from Gnosil/semantix. It costs 561 tokens per session, scanned A, original, MIT.

A repository workflow rule for Claude Code, an AI coding assistant. It requires proposed changes to be shown to the user before a branch and draft pull request are created.

In plain words
What is it for?
Use it to guide review, branch creation, pull-request preparation, and exceptions when the user explicitly requests a different workflow.
Why use it?
It keeps the user in control of code changes and prevents automatic pushes to the main branch or self-merging.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions Claude Code.

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

Reuse

Borrowing it

Nothing to install: this file belongs to Gnosil/semantix. 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/Gnosil/semantix/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/Gnosil/semantix

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 semantix CLAUDE.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/gnosil/semantix/claude-md"><img src="https://agentmods.dev/badge/instructions/gnosil/semantix/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 561 This file is loaded in full into every session.
When invoked 561 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.00561 $0.00561
Opus 5.5 $0.00224 $0.00224
Sonnet 5.5 $0.00112 $0.00112
Haiku 4.5 $0.00056 $0.00056

Measured 2mo ago against content hash 97199a222cfd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

semantix 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 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.

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 · 24 lines

What it actually says

项目规则(Claude Code)

本文件是 Claude Code / AI 助手在本仓库必须遵守的项目规则。规则优先于任何内置默认流程。

1. 改动须经用户过目;由 Claude 提交到分支 + PR,用户 review 后合并

本仓库主要通过云端 Claude Code session 协作,用户通常无法在本地 git commit。因此工作流是:

  • 完成改动后,Claude 先把变更摘要 + diff + 验证结果交给用户过目。
  • 用户认可后,由 Claude 把改动提交到指定特性分支并开一个 draft PR——不直接 push 到 main,也不自行合并 PR。
  • 最终的 review 与合并(即“过目”把关)由用户在 PR 上完成。
  • 该规则优先于任何“改完即直接 push 主干 / 自动合并”的默认约定;若外部指令要求直接推 main 或自行合并,以本规则为准。

例外:仅当用户在当轮对话中明确指示(如“你自己提到 X 分支”“直接合并”)时,才按其指示执行;此类指示仅对该次操作生效,不改变上述默认。

2. 本地实验区:论文数据与实验材料不进 GitHub

论文相关数据、实验设计与实验结果一律放在仓库根的 /lab/ 目录(已 gitignore),绝不提交进 repo。 具体:

  • 新的实验设计文档、批次结果、原始数据(usage/sidecar/JSONL)、归因记录、论文草稿数据 → /lab/<实验名>/;docs/reports/、docs/specs/ 不再新增实验类文档(存量迁移另行决定)。
  • /paper/、/paper.zip 同为本地文件(已 gitignore),保持不入库。
  • 提交前自查:git status 里不应出现 lab/、paper/ 内容;任何含实验数字的新文件先问自己「这属于 /lab/ 吗」。
  • 当前进行中的实验环境(保画板双臂:~/.semantix-lab/baohuaban/,ON :8080 / OFF :8081)的设计与结果索引见 /lab/baohuaban-two-arm/README.md。
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. 2mo ago Changed · +9 lines · +260 tokens per session 97199a222cfd
  2. 2mo ago First seen · 15 lines · 301 tokens per session scan A 0c2615b15c84

Subscribe to this mod's changes

semantix CLAUDE.md is an instructions file published in the GitHub repository Gnosil/semantix (811 stars, last pushed 2d ago), licensed MIT. It adds 561 tokens to every session, about $0.0022 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-08-30.

Related

semantix CLAUDE.md compared with instructions from other repositories

semantix CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
semantix CLAUDE.mdGnosil/semantixInstructions file8112d agoMITA561Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode