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 skills/rohanmistry231/claude-code-project-structure-learning-repository/testingnpx skills add rohanmistry231/Claude-Code-Project-Structure-Learning-Repository --skill testinggit clone --depth 1 https://github.com/rohanmistry231/Claude-Code-Project-Structure-Learning-RepositoryWrote 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/skills/rohanmistry231/claude-code-project-structure-learning-repository/testing)<a href="https://agentmods.dev/skills/rohanmistry231/claude-code-project-structure-learning-repository/testing"><img src="https://agentmods.dev/badge/skills/rohanmistry231/claude-code-project-structure-learning-repository/testing.svg" alt="Measured on agentmods" 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 | $0.00000 | $0.00558 |
| Opus 5 | $0.00000 | $0.00279 |
| Sonnet 5 | $0.00000 | $0.00112 |
| Haiku 4.5 | $0.00000 | $0.00056 |
Grade A, and why
testing 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 5d 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 — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: Testing
Description
Write, run, or fix tests for the Blog API using pytest and httpx.
When to Use
Trigger this skill when the user says:
- "write tests", "add tests", "test this"
- "tests are failing", "fix the tests"
- "what's the test coverage?"
- "/test"
Instructions
When WRITING new tests
-
Locate the correct test file. Tests live in
arc/tests/. Match the source file:arc/routes/posts.py→arc/tests/test_posts.pyarc/services/post_service.py→arc/tests/test_post_service.py
-
Use the shared test fixtures from
conftest.py. Never create a new database or app instance inline — use the fixtures:def test_something(client, db_session): ... -
Follow the Arrange / Act / Assert pattern.
def test_create_post_returns_201(client): # Arrange payload = {"title": "Hello", "body": "World", "author_id": 1} # Act response = client.post("/posts", json=payload) # Assert assert response.status_code == 201 assert response.json()["title"] == "Hello" -
Name tests descriptively. Format:
test_<what>_<expected_result>- Good:
test_get_post_returns_404_when_not_found - Bad:
test_post,test_1
- Good:
-
Test the sad path too. For every happy-path test, add at least one test for the failure case (missing field, wrong type, unauthorized, not found).
When FIXING failing tests
- Read the full error output carefully before changing anything.
- Check if the test is wrong (asserting the wrong thing) or the code is wrong.
- If the schema or route signature changed, update the test to match — but note it in your reply.
- Never delete a test to make it pass.
When RUNNING tests
Run: pytest arc/tests/ -v --tb=short
For a single file: pytest arc/tests/test_posts.py -v
For coverage: pytest arc/tests/ --cov=arc --cov-report=term-missing
Output Format
When writing tests, show the complete test function(s), then say:
"Run with: pytest arc/tests/<filename>.py::test_<name> -v"
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 5d ago First seen · 73 lines · 0 tokens per session scan A a1cd24c0e48d
testing is a skill published in the GitHub repository rohanmistry231/Claude-Code-Project-Structure-Learning-Repository (2 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 558 tokens. 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 skills, from other repositories
rulesync
Generates and syncs AI rule configuration files (.cursorrules, CLAUDE.md, copilot-instructions.md) across 20+ coding tools from a single source. Use when syncing AI rules, running rulesync commands, importing or generating rule files, or managing shared AI coding configurations.
establishing-project-context
Use when the user asks to establish shared project language, or project work exposes a conflicting, renamed, or deprecated domain term that needs active semantic modeling. Routine small tasks stay on the fast path.
autoprompt
Explicit-only useful-first orchestration. Invoke /autoprompt to turn a mission into one executable roadmap, build dependency-safe lanes, and verify the result with independent reviewers. Never infer invocation from ordinary requests. Never resume from leftover artifacts without an explicit resume instruction.
gitnexus
将 GitNexus 作为受控可选代码智能能力接入,用于 brownfield MCP 查询、影响面分析、 detectchanges、多仓分析和更深代码图谱证据。输出必须回落到 /team- 主链和 artifacts。.
loop
Full execution protocol for MODE: LOOP — the compound-engineering loop: brainstorm → plan → build → review → improve, iterating under defense-in-depth stop conditions with generator/critic separation, durable resumable state, and mandatory compounding learning capture. Loaded on demand by the architect when the loop…
restore-internals-seams-in-finally-blocks-after-each-test
When delegating a task affected by this skill, include.