EGC: Instructions file for Kiro

.kiro/steering/lessons-learned.md

EGC lessons-learned.md is an instructions file for Kiro from Fmarzochi/EGC. It costs 664 tokens per session, scanned A, a copy of lessons-learned, Apache-2.0.

A project notes file for recording coding patterns, team preferences, common mistakes, and design decisions. It is edited by people, while a hook can suggest patterns after agent sessions.

In plain words
What is it for?
Use it to document conventions such as API error handling, import order, and other decisions unique to the project.
Why use it?
It gives the coding agent and team a shared reference for project-specific rules that ordinary linting may not capture.

Instructions file for Kiro

Written for Kiro: installed under .kiro/.

This is Fmarzochi/EGC's own configuration. It tells Kiro how to work on EGC 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 EGC configures →

Reuse

Borrowing it

Nothing to install: this file belongs to Fmarzochi/EGC. 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/Fmarzochi/EGC/main/.kiro/steering/lessons-learned.md
Clone the repo
git clone --depth 1 https://github.com/Fmarzochi/EGC

Made for: Kiro.

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 EGC lessons-learned.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/fmarzochi/egc/lessons-learned/github.svg)](https://agentmods.dev/instructions/fmarzochi/egc/lessons-learned)
Your own site
<a href="https://agentmods.dev/instructions/fmarzochi/egc/lessons-learned"><img src="https://agentmods.dev/badge/instructions/fmarzochi/egc/lessons-learned/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for EGC lessons-learned.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/fmarzochi/egc/lessons-learned"><img src="https://agentmods.dev/badge/instructions/fmarzochi/egc/lessons-learned.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 664 This file is loaded in full into every session.
When invoked 664 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 95% copy Near-identical to another mod 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.00664 $0.00664
Opus 5.5 $0.00266 $0.00266
Sonnet 5.5 $0.00133 $0.00133
Haiku 4.5 $0.00066 $0.00066

Measured 3mo ago against content hash d5f4951cf585, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

EGC lessons-learned.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 3mo 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

This is a copy

95% identical to lessons-learned — 7 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.kiro/steering/lessons-learned.md · 85 lines

How it starts

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

Lessons Learned

This file captures project-specific patterns, coding preferences, common pitfalls, and architectural decisions that emerge during development. It serves as a workaround for continuous learning by allowing you to document patterns manually.

How to use this file:

  1. The extract-patterns hook will suggest patterns after agent sessions
  2. Review suggestions and add genuinely useful patterns below
  3. Edit this file directly to capture team conventions
  4. Keep it focused on project-specific insights, not general best practices

Project-Specific Patterns

Document patterns unique to this project that the team should follow.

Example: API Error Handling

// Always use our custom ApiError class for consistent error responses
throw new ApiError(404, 'Resource not found', { resourceId });

Code Style Preferences

Document team preferences that go beyond standard linting rules.

Example: Import Organization

// Group imports: external, internal, types
import { useState } from 'react';
import { Button } from '@/components/ui';
import type { User } from '@/types';

Kiro Hooks

install.sh is additive-only: it won't update existing installations

The installer skips any file that already exists in the target (if [ ! -f ... ]). Running it against a folder that already has .kiro/ will not overwrite or update hooks, agents, or steering files. To push updates to an existing project, manually copy the changed files or remove the target files first before re-running the installer.

README.md mirrors hook configurations: keep them in sync

The hooks table and Example 5 in README.md document the action type (runCommand vs askAgent) and behavior of each hook. When changing a hook's then.type or behavior, update both the hook file and the corresponding README entries to avoid misleading documentation.

Prefer askAgent over runCommand for file-event hooks

runCommand hooks on fileEdited or fileCreated events spawn a new terminal session every time they fire, creating friction. Use askAgent instead so the agent handles the task inline. Reserve runCommand for userTriggered hooks where a manual, isolated terminal run is intentional (e.g., quality-gate).

Read the full file on GitHub · 85 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. 3mo ago First seen · 85 lines · 664 tokens per session scan A d5f4951cf585

Subscribe to this mod's changes

EGC lessons-learned.md is an instructions file published in the GitHub repository Fmarzochi/EGC (72 stars, last pushed today), licensed Apache-2.0. It adds 664 tokens to every session, about $0.0027 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 95% identical to lessons-learned, differing in 7 lines, and is treated as a copy.

Related

EGC lessons-learned.md compared with instructions from other repositories

EGC lessons-learned.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
EGC lessons-learned.mdFmarzochi/EGCInstructions file72todayApache-2.0A664Kiro
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,887GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file144ktodayMITA7,230Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file150ktodayMITA4,951Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file291ktodayMITA4,396Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,303GitHub Copilot