xylocopa: Instructions file for Claude Code

CLAUDE.md

xylocopa CLAUDE.md is an instructions file for Claude Code from jyao97/xylocopa. It costs 1,657 tokens per session, scanned A, original, Apache-2.0.

Repository guidance for an AI coding agent working on the Xylocopa project. It defines universal working rules, code-change expectations, visual verification, and Git conventions.

In plain words
What is it for?
Planning and debugging project tasks, tracing UI behavior across the full application, coordinating complex work, and producing screenshots or other visual proof of results.
Why use it?
It tells the agent how to investigate and verify changes, reducing the risk of guessing or fixing only part of a feature’s behavior.

Instructions file for Claude Code

Written for Claude Code: UserPromptSubmit hook event. Also seen: mentions CLAUDE.md; mentions subagents.

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

Reuse

Borrowing it

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

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/jyao97/xylocopa/claude-md.svg)](https://agentmods.dev/instructions/jyao97/xylocopa/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/jyao97/xylocopa/claude-md"><img src="https://agentmods.dev/badge/instructions/jyao97/xylocopa/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 1,657 This file is loaded in full into every session.
When invoked 1,657 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.01657 $0.01657
Opus 5 $0.00829 $0.00829
Sonnet 5 $0.00331 $0.00331
Haiku 4.5 $0.00166 $0.00166

Measured 4d ago against content hash d1d45af83417, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

xylocopa 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 4d 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 · 86 lines

How it starts

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

CLAUDE.md

Read this file at the start of every task. Rarely modified — only update when project structure or conventions change.

Universal Rules

  • Think from first principles. Don't assume the user knows exactly what they want or the best way to get it. Start from the original requirement, question the approach, and suggest a better path if one exists
  • Think step by step. Investigate before coding — read relevant code, trace the full flow, print findings before proposing a fix
  • When a task is complex, break it into sub-tasks and spawn sub-agents to work in parallel
  • Never guess. If unsure, read the code, check logs, or run a test first
  • Every task must produce a visual verification artifact (screenshot, plot, diff, rendered output)
  • If the goal or motivation is unclear, stop and discuss before writing code. If the goal is clear but the path isn't optimal, say so and suggest the better approach
  • For "does X cause Y in the UI" questions, trace the full chain: backend write → event emit → API caller → component state → render condition. Grepping the backend alone is insufficient — feedback often comes from local setState or per-entity refetch, not WS
  • Match assertion strength to evidence. If you only verified part of a claim, say so explicitly — don't write "❌ doesn't trigger" / "0–5s delay" when you only checked one of multiple paths. Downgrade language ("backend doesn't, frontend not checked") instead of presenting a partial check as complete

Do NOT

  • Do not refactor or rename files unless the task explicitly requires it
  • Do not delete or modify tests unless asked
  • Do not change dependencies/package versions without explicit approval
  • Do not modify CLAUDE.md
  • Do not write to memory files (.claude/memory/, MEMORY.md) — only the orchestrator manages persistent memory

Output Rules

  • Keep responses concise — no long explanations unless asked
  • For large outputs (logs, data), write to a file instead of printing to stdout
  • Truncate error logs to the relevant section, don't paste entire stack traces

Read the full file on GitHub · 86 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. 4d ago Changed · +6 lines · +130 tokens per session d1d45af83417
  2. 8d ago First seen · 80 lines · 1,527 tokens per session scan A 8b4baad7bf27

Subscribe to this mod's changes

xylocopa CLAUDE.md is an instructions file published in the GitHub repository jyao97/xylocopa (52 stars, last pushed 3d ago), licensed Apache-2.0. It adds 1,657 tokens to every session, about $0.0083 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-30.

Related

Other instructions, from other repositories

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.

openai/codex · 5,153 tokens

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

microsoft/vscode · 6,785 tokens

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.

vercel/next.js · 7,296 tokens

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.

langchain-ai/langchain · 4,469 tokens

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

microsoft/vscode · 5,001 tokens

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.

github/spec-kit · 7,104 tokens