Borrowing it
Nothing to install: this file belongs to BlueEventHorizon/Swift-Selena. 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/BlueEventHorizon/Swift-Selena/main/CLAUDE.mdgit clone --depth 1 https://github.com/BlueEventHorizon/Swift-SelenaWrote 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/blueeventhorizon/swift-selena/claude-md)<a href="https://agentmods.dev/instructions/blueeventhorizon/swift-selena/claude-md"><img src="https://agentmods.dev/badge/instructions/blueeventhorizon/swift-selena/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/blueeventhorizon/swift-selena/claude-md"><img src="https://agentmods.dev/badge/instructions/blueeventhorizon/swift-selena/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.04674 | $0.04674 |
| Opus 5 | $0.02337 | $0.02337 |
| Sonnet 5 | $0.00935 | $0.00935 |
| Haiku 4.5 | $0.00467 | $0.00467 |
Grade A, and why
Swift-Selena 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 10d 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.
How it starts
The opening of the file, as written. The whole thing — 232 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
Swift-Selena = MCP Server for Swift code analysis (Swift Package)
AI Interaction Language [MANDATORY]
すべての対話は日本語で実施すること
- 技術用語・英単語はそのまま使用可能
- ソースコードのコメントも日本語で記述
- ファイル記述も日本語。ただし修正前のファイルがすでに英語記述の場合は、そのまま英語記述
Important Constraints [MANDATORY]
- NEVER modify Xcode project files (
*.xcodeproj/) without explicit permission- 注: フォルダーベース登録済みのため、ファイル追加時は変更不要
- NEVER modify Info.plist or XCConfig files without explicit permission
- 要件定義書(specs/{feature}/requirements/)が最優先(すべてのドキュメントに優先)
- 文書不整合の即時報告:
rules/、specs/、.claude/内の文書で不整合・矛盾を発見した場合、作業を中断して最優先でユーザーに報告すること - Use existing code before creating new ones (Tools/, Library/)
- 既存コード参考必須: 新規コード作成前に、既存の類似実装を検索して参考にすること
- ファイルヘッダーのCreated by: git config user.nameの値を使用
- 作業開始時の文書検索: 文書読解が必要な作業は、
/forge:query-db-rules/forge:query-db-specsで関連文書を特定し、該当する文書を読んでから作業に入ること - DB インデックス自動更新: rules/ 配下の文書を追加・変更・削除したら
/forge:update-db-rules、specs/{feature}/requirements/ または specs/{feature}/design/ 配下の文書を追加・変更・削除したら/forge:update-db-specsを実行すること - DB インデックス直接編集禁止:
.claude/doc-advisor/および.claude/doc-db/配下のインデックスファイルは直接編集せず、/forge:update-db-rules//forge:update-db-specsで更新すること - Swift-Selena MCP の利用検討: Swift-Selena MCP が接続されている場合、コードの分析・解析作業で MCP の説明から効率的・効果的か判定し、利用を検討すること(実験は不要、MCP の説明で判断)
- Xcode MCP の利用検討: Xcode MCP が接続されている場合、Skill(
/xcode:build//xcode:test)が対応していない場面でのみ、MCP の説明から効果的か判定し、利用を検討すること - MCP サーバー再起動を伴うテストはユーザー依頼必須: MCP サーバー(Swift-Selena MCP 等)の再起動を要するエンドツーエンドテスト(コード変更後の挙動確認、キャッシュ破棄を伴う動作確認など)は、AI が独断で実施せず、必ずユーザーに再起動を依頼してから実施すること
- AI 側からは別プロセスである MCP サーバーを再起動できない
- 再起動が必要な場合は、再起動手順(バイナリ再ビルド要否、必要なキャッシュ削除、確認したい挙動)を明示してユーザーに依頼する
- ユニットテストでの代替検証で済む場合はそれを優先し、E2E 検証の要否を判断する
- バージョン表記規約(Issue #38 で確立。プロジェクト全体で参照すべき正規):
- canonical(真実の源):
Sources/Constants.swiftのAppConstants.version(例:"0.6.10")。/forge:update-versionで更新する - git tag:
MAJOR.MINOR.PATCH形式(vプレフィックスなし、例:0.6.10)。既存 16 個の tag と整合 - CHANGELOG.md header (新規 entry):
## VERSION - YYYY-MM-DD形式(vプレフィックスなし、例:## 0.6.10 - 2026-05-27)。過去 entry (## v0.6.X形式) は historical record として遡及修正しない .version-config.yamlのtag_formatは"{version}"(vなし)- 例外:
README.md/README.ja.md内の「機能 X は v0.6.3 以降で利用可能」等の機能登場版マーカーはv付きを許容(独立した文脈表記) - 検証:
scripts/verify_version_consistency.shで canonical(Sources/Constants.swift)・CHANGELOG 先頭 entry・.version-config.yamlのtag_format/version_file/version_pathの一致を確認。CI ワークフロー.github/workflows/version_check.ymlで PR ごとに自動検証 - Formula は verify script 対象外:
Formula/swift-selena.rbのtag:/revision:は git object 識別子(revision= tag が指す commit の SHA)に従属し、rebase / squash で SHA が変わり得るため、version 文字列の静的一致を検査する verify script の必須チェックには含めない。Formula の整合性は後述の release フロー(tag 確定後のgit rev-parse {version}^{commit}と Formularevisionの一致確認)とbrew install実検証で担保する
- canonical(真実の源):
- リリースタグは main 履歴上の「version bump commit」に作成する:
{version}形式(vプレフィックスなし)のリリースタグは、必ず main にマージ済みの version bump commit(後述 ①) に対して作成することdevelop等の作業ブランチで先行してgit tagを打たない(main にマージし、main へ checkout してから打つ)- tag は merge commit ではなく ① の commit に打つ。これにより
revision(= ① の SHA)を merge 前に確定でき、Formula を version bump と同一 PR に同梱できる - タグ作成前に
git branch --show-currentで main に居ること、git merge-base --is-ancestor <①のSHA> mainで ① が main 履歴に含まれることを確認する - 誤った commit / ブランチで作成したタグは
git tag -d <tag> && git push <remote> :<tag>で削除し、正しい commit で切り直す
- release の運用順序(Formula 同梱・単一マージ): tag を version bump commit(①)に打つことで
revisionを merge 前に確定できるため、Formula 更新を version bump と同一 PR に同梱し、main へのマージを 1 回に集約する。以下の 2 フェーズで実施する- Phase 1 — bump PR(作業ブランチ):
/forge:update-version <target> <patch|minor|major>を実行(Sources/Constants.swift更新 + CHANGELOG への新規 entry 挿入)し、commit ①(Constants + CHANGELOG のみ)として commitgit rev-parse HEADで ① の SHA を取得Formula/swift-selena.rbのtag:を{version}、revision:を ① の SHA に更新し、commit ②(Formula のみ)として commitscripts/verify_version_consistency.sh(version 文字列の一致)+brew style Formula/swift-selena.rb(Formula 文法)でローカル検証- push し、PR を作成・マージ(
develop等の作業ブランチ)
- Phase 2 — main マージ + tag(main 上):
6.
developの変更をmainに--no-ffマージ(① の SHA を保存するため。squash / rebase マージは不可)→ push 7.mainに checkout しgit branch --show-currentで確認 →git tag {version} <①のSHA>→git push <remote> {version}8.scripts/verify_release_tag.sh {version}で「tag が指す commit == Formula のrevision(① の SHA)」かつ「Formulatag:== {version}」を検証(不一致ならexit 1)。CIrelease_tag_check.ymlでも tag push 時に main の Formula に対し自動検証される 9. tap 反映後、brew install --build-from-sourceで実 install 検証(serverInfo.version == {version})
- Phase 1 — bump PR(作業ブランチ):
- 既存 release artifact の drift について(documented limitation): 本規約は HEAD 以降で commit される変更にのみ適用される。既存 release tag(例:
0.6.10)のソース内AppConstants.version等が drift していても、本規約では遡及修正しない(git 履歴の整合性保持)。Homebrew で install される既存 release バイナリのserverInfo.versionが canonical と一致しない場合、それは「既知の historical drift」として受容し、次回 release で初めて完全整合する
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.
- 10d ago First seen · 232 lines · 4,674 tokens per session scan A ecd31599d563
Swift-Selena CLAUDE.md is an instructions file published in the GitHub repository BlueEventHorizon/Swift-Selena (5 stars, last pushed 1mo ago), licensed MIT. It adds 4,674 tokens to every session, about $0.0234 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-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).
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.
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.