copilot-setting copilot-instructions.md

copilot-setting copilot-instructions.md is an instructions file for GitHub Copilot from zexion7873/copilot-setting. It costs 524 tokens per session, scanned A, original, MIT.

A project-wide instruction set for GitHub Copilot, covering communication, coding rules, file operations, and a fixed Java 8, Spring 3.2, Hibernate 4.2, and MySQL stack.

In plain words
What is it for?
Use it to guide Copilot when writing, reviewing, or changing code in this Java web project, including Maven configuration, XML setup, database work, and JSP views.
Why use it?
It keeps generated code and replies consistent with an older technology stack, where newer APIs may compile but fail during review or at runtime.

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/zexion7873/copilot-setting/copilot-instructions
Clone the repo
git clone --depth 1 https://github.com/zexion7873/copilot-setting

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 copilot-setting copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/zexion7873/copilot-setting/copilot-instructions.svg)](https://agentmods.dev/instructions/zexion7873/copilot-setting/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/zexion7873/copilot-setting/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/zexion7873/copilot-setting/copilot-instructions.svg" alt="Measured on agentmods" height="20"></a>
Per session 524 This file is loaded in full into every session.
When invoked 524 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.00524 $0.00524
Opus 5 $0.00262 $0.00262
Sonnet 5 $0.00105 $0.00105
Haiku 4.5 $0.00052 $0.00052

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

Security

Grade A, and why

copilot-setting 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 3d 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.

.github/copilot-instructions.md · 36 lines

How it starts

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

Global Copilot Instructions

Language & Communication

  • Always respond in Traditional Chinese (繁體中文).
  • Code, variable names, comments, and commit messages must be in English.
  • Keep responses concise and direct.

Tech Stack

  • Java 8 — WAR packaging, deployed to servlet container (not embedded server)
  • Maven
  • Spring Framework 3.2 — not 4.x/5.x. No @RestController, no @Conditional. XML config + <tx:advice> for transactions
  • Spring Security 3.2 — XML namespace config
  • Hibernate 4.2 — native Session API (not JPA), hbm.xml mappings (not annotations), getCurrentSession()
  • MySQL 8.0 — InnoDB, utf8mb4
  • SLF4J 1.7 + Logback
  • JSP + JSTL 1.2 — view layer

Hard boundary — not a style preference. Do NOT use APIs, annotations, or patterns from newer versions of these frameworks. The pull toward modern idioms is a bias to resist, not a hint to follow — and the build won't catch it: many such symbols compile clean and fail only at review or runtime. If unsure whether something exists in these versions, read the matching instructions/ file before writing code; never guess.

Coding Philosophy

  • State assumptions explicitly. If uncertain, ask — don't guess.
  • If multiple interpretations exist, present them. Don't pick silently.
  • Prefer what already exists — a codebase pattern, the stdlib, an already-installed dependency — before writing new code.
  • Minimum code that solves the problem — no speculative abstractions, no features beyond what was asked.
  • Touch only what the task requires; match existing style, even if you'd do it differently.
  • Clean up orphans YOUR changes created. Don't remove pre-existing dead code — mention it, don't delete it.

File Operations

  • Never use cat/echo/printf/tee with >/>>/<< EOF to write file content — VS Code terminal integration corrupts these (tab completion, escaping, exit 130).
  • Create / modify files with the file editing tools (Write / Edit).
  • Terminal remains fine for package management, builds, tests, git, ls/mkdir/rm, and downloads that don't pipe into files.

Read the full file on GitHub · 36 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. 3d ago First seen · 36 lines · 524 tokens per session scan A d36e007a4293

Subscribe to this mod's changes

copilot-setting copilot-instructions.md is an instructions file published in the GitHub repository zexion7873/copilot-setting (1 stars, last pushed 1mo ago), licensed MIT. It adds 524 tokens to every session, about $0.0026 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.