copilot-setting: Instructions file for GitHub Copilot

.github/instructions/xml-config.instructions.md

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

A set of rules for writing and reviewing Spring XML, Hibernate mapping files, web.xml, and Maven build files. Maven is a tool that builds Java projects and manages their libraries.

In plain words
What is it for?
Editing or checking XML configuration, Hibernate mappings, and Maven POM files in projects using Spring Core 3.2, Hibernate 4.2, and Java 8.
Why use it?
It keeps older Java and Spring configurations consistent, including dependency versions, library scopes, transaction setup, and Java 8 compatibility.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is zexion7873/copilot-setting's own configuration. It tells GitHub Copilot how to work on copilot-setting 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 copilot-setting configures →

Reuse

Borrowing it

Nothing to install: this file belongs to zexion7873/copilot-setting. 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/zexion7873/copilot-setting/main/.github/instructions/xml-config.instructions.md
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 xml-config.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/zexion7873/copilot-setting/xml-config/github.svg)](https://agentmods.dev/instructions/zexion7873/copilot-setting/xml-config)
Your own site
<a href="https://agentmods.dev/instructions/zexion7873/copilot-setting/xml-config"><img src="https://agentmods.dev/badge/instructions/zexion7873/copilot-setting/xml-config/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 copilot-setting xml-config.instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/zexion7873/copilot-setting/xml-config"><img src="https://agentmods.dev/badge/instructions/zexion7873/copilot-setting/xml-config.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,876 This file is loaded in full into every session.
When invoked 1,876 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.01876 $0.01876
Opus 5.5 $0.00750 $0.00750
Sonnet 5.5 $0.00375 $0.00375
Haiku 4.5 $0.00188 $0.00188

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

Security

Grade A, and why

copilot-setting xml-config.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 1mo 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/instructions/xml-config.instructions.md · 61 lines

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.

XML Configuration Conventions

Conventions for Spring XML config (applicationContext*.xml), Hibernate hbm.xml mappings, and Maven POM files. Transaction management rules: instructions/spring-hibernate.instructions.md.

Spring XML

  • One config file per concern (e.g., applicationContext-dao.xml, applicationContext-service.xml)
  • Bean IDs: camelCase, descriptive (orderService, transactionManager)
  • Transaction: <tx:advice> + <aop:config> on service layer — see instructions/spring-hibernate.instructions.md
  • Transaction manager bean is org.springframework.orm.hibernate4.HibernateTransactionManager with the sessionFactory from org.springframework.orm.hibernate4.LocalSessionFactoryBean — the hibernate3 package and DataSourceTransactionManager both leave the Session unbound, so every getCurrentSession() throws
  • A <tx:advice> with no <aop:config><aop:advisor advice-ref="..."/> is inert: nothing auto-proxies a bare advice, the context starts clean with no warning, and every service method runs non-transactional. An advisor whose pointcut matches nothing fails the same silent way — verify by observing a rollback, not by reading the XML
  • <tx:method>: read-only="true" for get* / find* / list* / count*, and rollback-for on any method that throws a checked exception — without it Spring commits the transaction the service threw to abort (instructions/spring-hibernate.instructions.md)
  • A test-scoped context declares its own dataSource — never point it at the live database: test-class @Transactional auto-rollback does not cover DDL or anything a stored procedure commits

Spring Security XML

Spring Security 3.2 predates the 4.0 secure-by-default flip. Every rule here is a default a 4.x-trained model assumes it does not have to write.

  • <csrf/> and <headers/> are both off unless declared inside <http> (4.0 turned both on by default) — omit them and the app has neither CSRF protection nor security headers, with no error. The 3.2 XSD has no disabled attribute on <csrf>, so a <csrf disabled="true"/> copied from 4.x fails schema validation
  • A bare <headers/> installs the full 3.2 default set (nosniff, X-Frame-Options: DENY, X-XSS-Protection, cache-control, HSTS on HTTPS). Adding any child element replaces the whole set rather than extending it — <headers><frame-options policy="SAMEORIGIN"/></headers> silently drops the other four; list every header you still want. 4.0's defaults-disabled attribute does not exist in 3.2
  • <http use-expressions="true"> is required before any access="hasRole(...)" — 3.2 defaults it to false (4.0 flipped it), and without it the expression is parsed as a literal config attribute that no voter supports, aborting context startup with IllegalArgumentException: Unsupported configuration attributes
  • hasRole('X') in 3.2 matches the granted authority exactly and adds no ROLE_ prefix (4.0 introduced the prefixing) — write hasRole('ROLE_ADMIN'). This one fails silently: the user holding ROLE_ADMIN is simply denied with a 403, no startup error and nothing in the log
  • Password encoding: <password-encoder hash="bcrypt"/> under <authentication-provider> (needs spring-security-crypto); never pair it with <salt-source> — bcrypt salts internally and the parser rejects the combination outright (instructions/security.instructions.md)
  • Force HTTPS with one mechanism, not both: <intercept-url requires-channel="https"/> here, or <transport-guarantee>CONFIDENTIAL</transport-guarantee> in web.xml. Behind a TLS-terminating proxy either one loops redirects unless Tomcat's RemoteIpValve is configured

Read the full file on GitHub · 61 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. 1mo ago Changed · +18 lines · +1,002 tokens per session 1ee957cc5bac
  2. 1mo ago Changed · -4 lines · -50 tokens per session 6c8ce15db930
  3. 2mo ago First seen · 47 lines · 924 tokens per session scan A cdf589f00b96

Subscribe to this mod's changes

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

copilot-setting xml-config.instructions.md compared with instructions from other repositories

copilot-setting xml-config.instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
copilot-setting xml-config.instructions.mdzexion7873/copilot-settingInstructions file11mo agoMITA1,876GitHub Copilot
ai-agent-rules-generator copilot.instructions.mdsavedpixel/ai-agent-rules-generatorInstructions file86mo agoMITA3,431GitHub Copilot
ai-agent-rules-generator agent-observations.instructions.mdsavedpixel/ai-agent-rules-generatorInstructions file86mo agoMITA1,787GitHub Copilot
ai-agent-rules-generator task.instructions.mdsavedpixel/ai-agent-rules-generatorInstructions file86mo agoMITA1,703GitHub Copilot
ai-agent-rules-generator doc-sync.instructions.mdsavedpixel/ai-agent-rules-generatorInstructions file86mo agoMITA1,652GitHub Copilot
ai-agent-rules-generator browsetools.instructions.mdsavedpixel/ai-agent-rules-generatorInstructions file86mo agoMITA490GitHub Copilot
ai-agent-rules-generator devtools.instructions.mdsavedpixel/ai-agent-rules-generatorInstructions file86mo agoMITA399GitHub Copilot