Borrowing it
Nothing to install: this file belongs to nikosavola/k-ruoka-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/nikosavola/k-ruoka-mcp/main/.github/copilot-instructions.mdgit clone --depth 1 https://github.com/nikosavola/k-ruoka-mcpWrote 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.
[](https://agentmods.dev/instructions/nikosavola/k-ruoka-mcp/copilot-instructions)<a href="https://agentmods.dev/instructions/nikosavola/k-ruoka-mcp/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/nikosavola/k-ruoka-mcp/copilot-instructions/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.
<a href="https://agentmods.dev/instructions/nikosavola/k-ruoka-mcp/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/nikosavola/k-ruoka-mcp/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00903 | $0.00903 |
| Opus 5 | $0.00451 | $0.00451 |
| Sonnet 5 | $0.00181 | $0.00181 |
| Haiku 4.5 | $0.00090 | $0.00090 |
Grade A, and why
k-ruoka-mcp 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 9d 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.
How it starts
The opening of the file, as written. The whole thing — 61 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Copilot code review instructions
k-ruoka-mcp is an MCP server that manages one K-Plussa account's K-Ruoka shopping cart.
There is no public API, so it drives a real installed Chrome over CDP and issues each
/kr-api/ call as a same-origin fetch() from inside the loaded page. See AGENTS.md
for the full picture; this file is the subset relevant to reviewing a diff.
Do not flag these as bugs
- No status-code check on mutations. K-Ruoka answers
200with the cart unchanged for an unknown item id, and inserts a placeholder for an unknown EAN. Mutations are verified by result (confirm_amount,confirm_absentinbrowser/basket.rs), not by HTTP status. A PR that adds a status check in place of these guards is removing correctness, not adding it. - The basket id is re-read on every write, never cached. That is deliberate: the guards read the basket the write itself returned, so a stale cached id would pass the guard while mutating the wrong cart.
itemIdused interchangeably with EAN would be a real bug, not a style nit: they are different identifiers.itemIdexists only once an item is in the cart;update_cart_item/remove_from_carttake the cart'sitem_id;add_to_carttakes an EAN.- The browser profile directory is never deleted on failure, including in recovery
and retry paths. It holds a real login. A block should relaunch against the same profile;
only an
AuthExpiredresult should trigger re-login. - The User-Agent never contains
HeadlessChrome. Do not suggest restoring a default/stealth user agent string; that substring alone is what triggers Cloudflare's block, perK_RUOKA_USER_AGENT's doc comment. - Requests are throttled to one per 500 ms, process-wide, on purpose (being gentle on K-Ruoka's servers). Don't suggest parallelizing or removing this for "performance."
Testing
KrApi(browser/session.rs) is the seam between the server and K-Ruoka. New logic should be reachable throughMockApi(tests/support/mod.rs) rather than requiring a real browser; flag a PR that adds Chrome-dependent logic with no hermetic test path.- Recovery and readiness policy belongs in pure functions (
plan_recovery,should_replace,clearance_step) precisely so it can be tested without Chrome. A PR that inlines new policy decisions into the Chrome-driving code instead of one of these functions is harder to test and should be flagged. - Tests gated
#[ignore](test-live,test-account) hit the real site or mutate the real cart. Do not suggest removing an#[ignore], and treat a PR that does as a request needing explicit sign-off, not a routine change.
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.
- 9d ago First seen · 61 lines · 903 tokens per session scan A 56b9cdfc9194
k-ruoka-mcp copilot-instructions.md is an instructions file published in the GitHub repository nikosavola/k-ruoka-mcp (1 stars, last pushed 27d ago), licensed Apache-2.0. It adds 903 tokens to every session, about $0.0045 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.
Other instructions, from other repositories
md-feedback copilot-instructions.md
Copilot instructions for yeominux/md-feedback, covering plan review workflow, before implementing any plan, annotation types and mcp setup.
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
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.
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).
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.
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).