get_it CLAUDE.md

Repository instructions for developing and testing get_it, a Dart and Flutter package that helps code find shared services such as configuration or databases.

In plain words
What is it for?
Use them to understand the package, run Flutter tests and analysis, format Dart code, check publishing readiness, and run the example app.
Why use it?
They put the package overview, development commands, testing steps, and code-quality checks in one reference for contributors.

Instructions file

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.

agentmods
npx agentmods add instructions/flutter-it/get_it/claude-md
Clone the repo
git clone --depth 1 https://github.com/flutter-it/get_it
Per session 1,867 This file is loaded in full into every session.
When invoked 1,867 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01867 $0.01867
Opus 5 $0.00933 $0.00933
Sonnet 5 $0.00373 $0.00373
Haiku 4.5 $0.00187 $0.00187

Measured 2d ago against content hash 714fd767cd81, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

get_it 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 2d 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 · 289 lines

How it starts

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

CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

Package Overview

get_it is a simple, fast (O(1)) Service Locator for Dart and Flutter projects. It provides dependency injection capabilities without code generation or reflection.

Key characteristics:

  • Pure Dart package (no Flutter dependency required)
  • No code generation or build_runner
  • Extremely fast O(1) lookup using Dart Maps
  • Type-safe with compile-time checking
  • Supports multiple registration types: factories, singletons, lazy singletons

Development Commands

Testing

# Run all tests
flutter test

# Run specific test file
flutter test test/get_it_test.dart
flutter test test/async_test.dart
flutter test test/scope_test.dart

# Run tests with verbose output
flutter test --verbose

Code Quality

# Analyze code
flutter analyze

# Format code
dart format .

# Publish dry-run (check before publishing)
flutter pub publish --dry-run

Example App

# Run the example app
cd example
flutter run

# Return to package root
cd ..

Core Architecture

Registration System

GetIt uses a hierarchical scope system with type-based registration:

  1. Base scope - Default scope, always exists
  2. Pushed scopes - Stack of scopes that can shadow lower scope registrations
  3. Type registration - Each type can have multiple registrations (unnamed or named instances)

Key Data Structures

  • _GetItImplementation - Singleton implementation of the GetIt interface
  • _Scope - Represents a registration scope with its own object registry
  • _ObjectRegistration<T, P1, P2> - Holds registration metadata and instances
    • Stores creation functions (sync/async, with/without parameters)
    • Manages instance lifecycle (creation, disposal, ready state)
    • Tracks dependencies and ready signals
  • _TypeRegistration - Maps types to their object registrations within a scope

Read the full file on GitHub · 289 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. 2d ago First seen · 289 lines · 1,867 tokens per session scan A 714fd767cd81

Subscribe to this mod's changes

get_it CLAUDE.md is an instructions file published in the GitHub repository flutter-it/get_it (1,471 stars, last pushed 6mo ago), licensed MIT. It adds 1,867 tokens to every session, about $0.0093 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

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

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

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,182 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,345 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

next.js 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