Golem-Agents-Legion gal-rust.instructions.md

Golem-Agents-Legion gal-rust.instructions.md is an instructions file for GitHub Copilot from monkey1wizard/Golem-Agents-Legion. It costs 386 tokens per session, scanned A, original, MIT.

A set of Rust coding rules for the Golem-Agents-Legion project. It covers formatting, naming, error handling, and safe representation of monetary values.

In plain words
What is it for?
Use it when writing or reviewing code in the project's Rust workspace, especially errors, names, and money-related types.
Why use it?
It gives contributors a consistent standard and helps catch mistakes with Rust tooling and currency calculations.

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/monkey1wizard/golem-agents-legion/gal-rust
Clone the repo
git clone --depth 1 https://github.com/monkey1wizard/Golem-Agents-Legion

Made for: GitHub Copilot.

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 Golem-Agents-Legion gal-rust.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/monkey1wizard/golem-agents-legion/gal-rust.svg)](https://agentmods.dev/instructions/monkey1wizard/golem-agents-legion/gal-rust)
Your own site
<a href="https://agentmods.dev/instructions/monkey1wizard/golem-agents-legion/gal-rust"><img src="https://agentmods.dev/badge/instructions/monkey1wizard/golem-agents-legion/gal-rust.svg" alt="Measured on agentmods" height="20"></a>
Per session 386 This file is loaded in full into every session.
When invoked 386 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.00386 $0.00386
Opus 5 $0.00193 $0.00193
Sonnet 5 $0.00077 $0.00077
Haiku 4.5 $0.00039 $0.00039

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

Security

Grade A, and why

Golem-Agents-Legion gal-rust.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 today.

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/instructions/gal-rust.instructions.md · 38 lines

What it actually says

Rust Conventions

GAL's own development standard for the crates/ Rust workspace — not a rule injected into downstream repos as house style.

Baseline

Official tooling is authoritative:

  • Must pass cargo fmt and cargo clippy.
  • Naming follows the Rust API Guidelines — Naming (C-CASE, built on RFC 430): casing, acronyms (Uuid not UUID), and trait/constructor conventions.

Precedence — common standard first, house style second. The Rust API Guidelines above win on any conflict. GAL's house style in naming.md (word choice, word order, the UpperCamelCase headword form) applies only where the standard leaves a free choice and never overrides it.

GAL Deltas

Real deviations from — or additions to — the official baseline, kept because they solve a problem the baseline doesn't cover:

  • Error handling: Result<T, E> with thiserror for libraries, anyhow for applications. Never unwrap() in production.

  • Monetary values: rust_decimal::Decimal, never f32/f64 — floating point cannot represent currency exactly.

    use rust_decimal::Decimal;
    
    pub struct PriceItem {
        pub name: String,
        pub amount: Decimal,
    }
    
  • Comments and docs: always English (CJK allowed only in string literals for testing).

  • Test placement: unit tests in mod tests at the bottom of the source file; integration tests in the crate's tests/ directory.

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. today First seen · 38 lines · 386 tokens per session scan A f5106c66de9d

Subscribe to this mod's changes

Golem-Agents-Legion gal-rust.instructions.md is an instructions file published in the GitHub repository monkey1wizard/Golem-Agents-Legion (15 stars, last pushed 2d ago), licensed MIT. It adds 386 tokens to every session, about $0.0019 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-09-04.