scan-qrcode-mcp: Instructions file for Codex

AGENTS.md

scan-qrcode-mcp AGENTS.md is an instructions file for Codex, OpenCode from ericyangpan/scan-qrcode-mcp. It costs 602 tokens per session, scanned A, original, MIT.

A repository instruction document for the `ericyangpan/scan-qrcode-mcp` project. It describes the expected folders, development commands, TypeScript style, naming rules, and testing practices.

In plain words
What is it for?
Use it when developing or reviewing that repository, especially when adding source files, tests, scripts, assets, package scripts, or TypeScript code.
Why use it?
It gives contributors a shared understanding of how the project should be organized, built, tested, formatted, and extended. This reduces uncertainty when working on the QR-code MCP server.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md.

This is ericyangpan/scan-qrcode-mcp's own configuration. It tells Codex and OpenCode how to work on scan-qrcode-mcp 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 scan-qrcode-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to ericyangpan/scan-qrcode-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.

Copy the file
curl -O https://raw.githubusercontent.com/ericyangpan/scan-qrcode-mcp/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/ericyangpan/scan-qrcode-mcp

Made for: Codex, OpenCode.

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 scan-qrcode-mcp AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/ericyangpan/scan-qrcode-mcp/agents-md/github.svg)](https://agentmods.dev/instructions/ericyangpan/scan-qrcode-mcp/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/ericyangpan/scan-qrcode-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/ericyangpan/scan-qrcode-mcp/agents-md/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 scan-qrcode-mcp AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/ericyangpan/scan-qrcode-mcp/agents-md"><img src="https://agentmods.dev/badge/instructions/ericyangpan/scan-qrcode-mcp/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 602 This file is loaded in full into every session.
When invoked 602 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 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.1 $0.00602 $0.00602
Opus 5.5 $0.00241 $0.00241
Sonnet 5.5 $0.00120 $0.00120
Haiku 4.5 $0.00060 $0.00060

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

Security

Grade A, and why

scan-qrcode-mcp AGENTS.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 2mo 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.

AGENTS.md · 65 lines

How it starts

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

Repository Guidelines

Project Structure & Module Organization

  • Root: README, LICENSE, and project configs.
  • src/: Source code for the QR code MCP server (e.g., src/server.ts, src/routes/, src/services/).
  • tests/: Automated tests mirroring src/ structure (e.g., tests/services/qrcode.spec.ts).
  • scripts/: Helper scripts for local dev or CI (optional).
  • assets/: Sample QR images and fixtures for tests/examples (optional).

Example layout:

src/
  server.ts
  routes/
  services/
  utils/
tests/
  services/
assets/

Build, Test, and Development Commands

  • npm i or pnpm i: Install dependencies.
  • npm run dev: Start the server in watch mode (TypeScript + nodemon/ts-node).
  • npm run build: Compile TypeScript to dist/.
  • npm test: Run unit tests with coverage.
  • npm run lint / npm run format: Lint and format the codebase.

Note: Add these scripts to package.json once the scaffolding is in place.

Coding Style & Naming Conventions

  • Language: TypeScript preferred; 2‑space indentation.
  • Files: kebab-case (e.g., qrcode-service.ts); tests end with .spec.ts.
  • Naming: camelCase for variables/functions, PascalCase for classes/types, UPPER_SNAKE_CASE for env constants.
  • Tools: ESLint (typescript-eslint), Prettier for formatting. Keep imports sorted and paths relative to src/.

Testing Guidelines

  • Framework: Vitest or Jest; aim for ≥80% line coverage on services/utils.
  • Structure: Mirror src/ in tests/; use fixtures in assets/.
  • Conventions: *.spec.ts; one behavior per test, explicit assertions.
  • Run: npm test locally and ensure CI passes before opening a PR.

Commit & Pull Request Guidelines

  • Commits: Follow Conventional Commits (e.g., feat(server): add health endpoint).
  • PRs: Include a clear description, linked issues (e.g., Closes #12), screenshots or logs when relevant, and notes on breaking changes or migrations.
  • Scope: Keep PRs small and focused; include tests and update docs.

Read the full file on GitHub · 65 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. 2mo ago First seen · 65 lines · 602 tokens per session scan A 9a5a028a3672

Subscribe to this mod's changes

scan-qrcode-mcp AGENTS.md is an instructions file published in the GitHub repository ericyangpan/scan-qrcode-mcp (0 stars, last pushed 1y ago), licensed MIT. It adds 602 tokens to every session, about $0.0024 per session on Opus 5.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.

Related

scan-qrcode-mcp AGENTS.md compared with instructions from other repositories

scan-qrcode-mcp AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
scan-qrcode-mcp AGENTS.mdericyangpan/scan-qrcode-mcpInstructions file01y agoMITA602Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file275k2d agoMITA4,313Codex, OpenCode