i1n-cli copilot-instructions.md

Project instructions for i1n, a tool that keeps translations in structured files and can send or retrieve them from its service. They define the source language, file layout, writing tone, and command-line commands.

In plain words
What is it for?
They guide developers when adding translation keys, editing locale files, pushing or pulling translations, and generating translation type definitions.
Why use it?
They prevent user-facing text from being hardcoded or translation variables from being changed accidentally.

Instructions file for GitHub Copilot

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/pakvothe/i1n-cli/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/Pakvothe/i1n-cli

Made for: GitHub Copilot.

Per session 436 This file is loaded in full into every session.
When invoked 436 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.00436 $0.00436
Opus 5 $0.00218 $0.00218
Sonnet 5 $0.00087 $0.00087
Haiku 4.5 $0.00044 $0.00044

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

Security

Grade A, and why

i1n-cli copilot-instructions.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.

.github/copilot-instructions.md · 37 lines

What it actually says

i1n — Localization as Code

This project uses i1n for managing translations.

Project Setup

  • Format: nested-json
  • Locales directory: locales
  • Source language: en_us
  • Framework: generic

Translation File Structure

locales/{lang}/{namespace}.json — Nested JSON objects.

// locales/en_us/common.json
{ "greeting": "Hello {name}", "errors": { "not_found": "Not found" } }

Tone & Voice

When writing or modifying translation values, use a technical tone. Precise and technical. Prioritize accuracy and domain-specific terminology. Be concise and unambiguous.

CLI Commands

  • i1n push — Push local translation files to i1n. Supports --translate [langs] to trigger AI translation after push.
  • i1n pull — Pull translations from i1n and write local files. Also generates TypeScript type definitions (i1n.d.ts).
  • i1n init — Re-initialize or reconfigure i1n in this project.
  • i1n setup-ai — Regenerate AI assistant rules for this project.

Rules

  • Always use translation keys instead of hardcoded strings for user-facing text.
  • Place new keys in the appropriate namespace file under locales/.
  • Never translate interpolation variables. Keep {name}, {{name}}, %{name}, etc. exactly as-is in every language. Match the variable syntax already used in the project.
  • After adding or modifying translation keys, run i1n push to sync changes. If the user has configured target languages, use i1n push --translate to also trigger AI translation.
  • Never modify i1n.d.ts directly — it is auto-generated by i1n pull.
  • Never commit i1n.config.json — it contains the API key and is gitignored.
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 · 37 lines · 436 tokens per session scan A fe072fff9e03

Subscribe to this mod's changes

i1n-cli copilot-instructions.md is an instructions file published in the GitHub repository Pakvothe/i1n-cli (2 stars, last pushed 17d ago), licensed MIT. It adds 436 tokens to every session, about $0.0022 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.