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.
npx agentmods add instructions/zexion7873/copilot-setting/testinggit clone --depth 1 https://github.com/zexion7873/copilot-settingWhat 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 | $0.00609 | $0.00609 |
| Opus 5 | $0.00304 | $0.00304 |
| Sonnet 5 | $0.00122 | $0.00122 |
| Haiku 4.5 | $0.00061 | $0.00061 |
Grade A, and why
copilot-setting testing.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 yesterday.
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.
What it actually says
Testing Conventions
Java 8 language rules apply: instructions/java.instructions.md.
Framework Boundary (JUnit 5 / Spring Boot Forbidden)
- JUnit 4 —
org.junit.Test,@Before/@After,Assert.assertEquals. Noorg.junit.jupiter.*/@BeforeEach/@ExtendWith - Spring Test 3.2 —
@RunWith(SpringJUnit4ClassRunner.class)+@ContextConfiguration. No@SpringBootTest/@WebMvcTest/@ExtendWith(SpringExtension.class) - Mockito —
@RunWith(MockitoJUnitRunner.class)orMockitoAnnotations.initMocks(this). No@ExtendWith(MockitoExtension.class) - Assertions:
Assert.*or HamcrestassertThat; AssertJ only if already on the classpath
Structure
- One behavior per test; name
methodName_condition_expectedResult; Arrange–Act–Assert, visually separated - No interdependence (isolated, any order); no logic (loops / conditionals) inside a test
Integration Tests
@ContextConfigurationagainst a test-scoped XML context, not production beans- Test-class
@Transactionalauto-rollback is sanctioned — test-only; does NOT violate the production<tx:advice>-only rule (instructions/spring-hibernate.instructions.md) - Never hit a real external service — stub at the boundary
Data & Mocks
- Mock collaborators at the layer boundary (DAO in service tests); no shared mutable static fixtures
- Deterministic: no
new Date()/ unseeded random — inject a fixed clock or seed
Anti-Patterns
| Pattern | Problem | Fix |
|---|---|---|
org.junit.jupiter.api.Test |
JUnit 5 | org.junit.Test |
@SpringBootTest |
No Spring Boot | @RunWith(SpringJUnit4ClassRunner.class) + @ContextConfiguration |
@BeforeEach / @AfterEach |
JUnit 5 lifecycle | @Before / @After |
@ExtendWith(MockitoExtension.class) |
JUnit 5 extension | @RunWith(MockitoJUnitRunner.class) |
Thread.sleep() for async |
Flaky, slow | Await a condition / synchronous executor |
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.
- yesterday First seen · 42 lines · 609 tokens per session scan A 64149ce265d6
copilot-setting testing.instructions.md is an instructions file published in the GitHub repository zexion7873/copilot-setting (1 stars, last pushed 28d ago), licensed MIT. It adds 609 tokens to every session, about $0.0030 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
ai-agent-rules-generator copilot.instructions.md
Glitch WooCommerce Payment Gateway plugin coding guidelines — auto-doc sync for plugin, features, and infrastructure.
ai-agent-rules-generator agent-observations.instructions.md
Mandatory agent observation logging — anomalies, recommendations, and critical findings must be disclosed before commit.
ai-agent-rules-generator task.instructions.md
Task execution rules for Glitch WooCommerce Payment Gateway engineering work.
ai-agent-rules-generator doc-sync.instructions.md
Documentation sync rules — which docs to update when code changes.
ai-agent-rules-generator browsetools.instructions.md
Browser verification rules for Glitch WooCommerce Payment Gateway using Chrome DevTools MCP.
ai-agent-rules-generator devtools.instructions.md
Browser DevTools and local development access credentials.