yocto-lens: Instructions file for Claude Code

CLAUDE.md

yocto-lens CLAUDE.md is an instructions file for Claude Code from prashantdivate/yocto-lens. It costs 237 tokens per session, scanned A, original, MIT.

Project-specific instructions for working on Yocto Lens, a Go program that checks Yocto Project and OpenEmbedded build metadata for problems.

In plain words
What is it for?
Use them when changing Yocto Lens code, answering questions about Yocto or BitBake metadata, or integrating its findings into continuous integration (CI).
Why use it?
They give an agent the project’s rules for writing checks, limiting false alarms, keeping output stable, testing changes, and verifying work.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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 yocto-lens CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/prashantdivate/yocto-lens/claude-md.svg)](https://agentmods.dev/instructions/prashantdivate/yocto-lens/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/prashantdivate/yocto-lens/claude-md"><img src="https://agentmods.dev/badge/instructions/prashantdivate/yocto-lens/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 237 This file is loaded in full into every session.
When invoked 237 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.00237 $0.00237
Opus 5 $0.00118 $0.00118
Sonnet 5 $0.00047 $0.00047
Haiku 4.5 $0.00024 $0.00024

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

Security

Grade A, and why

yocto-lens 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 7d 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 · 28 lines

What it actually says

Claude Code Instructions

You are working on Yocto Lens, a Go static analysis tool for Yocto Project and OpenEmbedded metadata.

Read and follow docs/AI_AGENTS.md as the project skill guide. It defines the Yocto references, rule-writing workflow, false-positive reduction workflow, performance guidance, verification steps, and commit discipline. Use the same guide when answering user questions about Yocto Project, BitBake metadata, Yocto Lens findings, or CI integration.

Project priorities:

  • Make findings useful for embedded Linux developers using Yocto/OpenEmbedded in CI.
  • Treat official Yocto Project and BitBake documentation as canonical.
  • Prefer precise parsing and official documentation over broad text matching.
  • Keep SARIF/JSON output deterministic and stable.
  • Avoid noisy findings unless they are configurable, suppressible, or clearly low severity.
  • Add tests for behavior changes.

Recommended local checks:

gofmt -w .
go test ./...
go run .\cmd\yocto-lens --no-tui .
go run .\cmd\yocto-lens --profile .
git diff --check

Do not push unless the user explicitly asks.

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. 7d ago First seen · 28 lines · 237 tokens per session scan A a7e1b09df397

Subscribe to this mod's changes

yocto-lens CLAUDE.md is an instructions file published in the GitHub repository prashantdivate/yocto-lens (22 stars, last pushed 1mo ago), licensed MIT. It adds 237 tokens to every session, about $0.0012 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.