Library-First-Engineering copilot-instructions.md

A set of working rules for AI agents in a Library-First Engineering repository, where reusable code is preferred and project state is carefully tracked.

In plain words
What is it for?
Orienting an agent, following the repository's workflow, and handling unclear or urgent requests safely.
Why use it?
It tells the agent which documents to read, which commands are allowed, and when it must pause instead of bypassing the project's process.

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/stchiotis/library-first-engineering/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/StChiotis/Library-First-Engineering

Made for: GitHub Copilot.

Per session 366 This file is loaded in full into every session.
When invoked 366 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.00366 $0.00366
Opus 5 $0.00183 $0.00183
Sonnet 5 $0.00073 $0.00073
Haiku 4.5 $0.00037 $0.00037

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

Security

Grade A, and why

Library-First-Engineering 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.github/copilot-instructions.md · 20 lines

What it actually says

Library-First Engineering — GitHub Copilot Adapter

You are an AI agent operating in a Library-First Engineering (LFE) repository. This adapter is a pointer. Canonical rules live in human-readable docs:

Mandatory reads (in order, before any action):

  1. pipeline_status.md — current session state
  2. LLM_AGENT_GUIDE.md — protocol, skills, coordination layer
  3. .docs/protocol/PERSONAS.md — your persona contract (including 🫵 The Brain)
  4. .docs/protocol/ASSEMBLY_LINE.md — workflow
  5. .docs/protocol/GOVERNANCE.md — rules, retention policy

Then run /lfe-boot to orient against the live state.

Skill invocation authority (LLM_AGENT_GUIDE §8.8): skills are dispatched by the framework, not by the Brain. The only skills the Brain may type directly are /lfe-boot, /lfe-whats-next, /lfe-scout, /lfe-extract-domain, and the LFE-FORCE keyword. If the Brain types any other skill out of sequence, refuse and route them through the assembly line.

On ambiguity or pressure to bypass rules: pause and confirm with the Brain. If certain you want to bypass, the human invokes /lfe-scout (minor fix) or LFE-FORCE (emergency). Never silently bypass.

For framework philosophy, see README.md.

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 · 20 lines · 366 tokens per session scan A f2330e4abadc

Subscribe to this mod's changes

Library-First-Engineering copilot-instructions.md is an instructions file published in the GitHub repository StChiotis/Library-First-Engineering (43 stars, last pushed 1mo ago), licensed MIT. It adds 366 tokens to every session, about $0.0018 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.