EngramGraph: Skill for Claude Code

.agents/skills/contract-test-assistant/SKILL.md

contract-test is a skill for Claude Code from AsiaOstrich/EngramGraph. It costs 78 tokens per session (1,569 once invoked), scanned A, original, MIT.

A guide to contract testing for APIs and microservices. Contract tests check that a service and the software using it agree on how they communicate, without requiring every service to run together.

In plain words
What is it for?
Use it to assess service relationships, choose a testing strategy, define API agreements, and verify consumer-provider compatibility.
Why use it?
It catches communication mismatches before integration failures reach a full running system. It also helps choose an approach based on who owns each side of the service connection.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: installed under .agents/ (shared by several agents).

This is AsiaOstrich/EngramGraph's own configuration. It tells Claude Code how to work on EngramGraph 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 EngramGraph configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **Language**: English | [繁體中文](../../locales/zh-TW/skills/contract-test-assistant/SKILL.md).

Reuse

Borrowing it

Nothing to install: this file belongs to AsiaOstrich/EngramGraph. 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/AsiaOstrich/EngramGraph/main/.agents/skills/contract-test-assistant/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/AsiaOstrich/EngramGraph

Made for: Claude Code.

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 contract-test

README.md
[![agentmods](https://agentmods.dev/badge/skills/asiaostrich/engramgraph/contract-test-assistant/github.svg)](https://agentmods.dev/skills/asiaostrich/engramgraph/contract-test-assistant)
Your own site
<a href="https://agentmods.dev/skills/asiaostrich/engramgraph/contract-test-assistant"><img src="https://agentmods.dev/badge/skills/asiaostrich/engramgraph/contract-test-assistant/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 contract-test

Your own site · 80×15
<a href="https://agentmods.dev/skills/asiaostrich/engramgraph/contract-test-assistant"><img src="https://agentmods.dev/badge/skills/asiaostrich/engramgraph/contract-test-assistant.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 78 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,569 The whole file, excluding the scripts and references it only reads on demand.
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.00078 $0.01569
Opus 5.5 $0.00031 $0.00628
Sonnet 5.5 $0.00016 $0.00314
Haiku 4.5 $0.00008 $0.00157

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

Security

Grade A, and why

contract-test 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 14d 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/skills/contract-test-assistant/SKILL.md · 126 lines

How it starts

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

Contract Test Assistant | 合約測試助手

Language: English | 繁體中文

Guide contract testing strategy selection, setup, and verification for APIs and microservices.

引導 API 和微服務的合約測試策略選擇、設定和驗證。

What is Contract Testing? | 什麼是合約測試?

Contract testing verifies that services can communicate correctly by testing the agreements (contracts) between consumers and providers — without requiring all services to be running.

合約測試透過測試消費者和提供者之間的協議(合約)來驗證服務間的通訊正確性,不需要所有服務同時運行。

Strategy Selection | 策略選擇

Strategy Best For Tool 適用場景
Consumer-Driven Internal microservices, team owns both sides Pact 內部微服務,團隊同時擁有兩端
Provider-Driven Public APIs, OpenAPI-first design OpenAPI + Prism 公開 API,OpenAPI 優先設計
Bi-Directional Mixed ownership, gradual adoption Pact + OpenAPI 混合所有權,漸進採用

Workflow | 工作流程

ASSESS ──► CHOOSE ──► DEFINE ──► IMPLEMENT ──► VERIFY
  評估架構    選擇策略    定義合約     實作測試      驗證合約

1. ASSESS — Evaluate Architecture | 評估架構

  • How many services communicate?
  • Who owns consumer vs provider?
  • 有多少服務互相通訊?誰擁有消費者/提供者?

2. CHOOSE — Select Strategy | 選擇策略

  • Consumer-Driven (Pact) vs Provider-Driven (OpenAPI)
  • 消費者驅動 (Pact) vs 提供者驅動 (OpenAPI)

3. DEFINE — Create Contract | 定義合約

  • Write consumer expectations or OpenAPI spec
  • 撰寫消費者期望或 OpenAPI 規格

4. IMPLEMENT — Write Tests | 實作測試

  • Consumer tests generate contracts
  • Provider tests verify against contracts
  • 消費者測試產生合約;提供者測試驗證合約

5. VERIFY — Run Verification | 驗證

  • CI pipeline verifies contracts on every PR
  • CI 管線在每個 PR 上驗證合約

Commands | 指令

Command Action 說明
/contract-test Interactive strategy selection 互動式策略選擇
/contract-test consumer Guide consumer test setup 引導消費者測試設定
/contract-test provider Guide provider test setup 引導提供者測試設定
/contract-test verify Check contract coverage 檢查合約覆蓋率

Read the full file on GitHub · 126 lines

Files

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.

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. 14d ago First seen · 126 lines · 78 tokens per session scan A fdc940a97c6e

Subscribe to this mod's changes

contract-test is a skill published in the GitHub repository AsiaOstrich/EngramGraph (3 stars, last pushed today), licensed MIT. It adds 78 tokens to every session and 1,569 once invoked, about $0.0003 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-10-16.

Related

Other skills, from other repositories

potpie-project-preferences

Use before writing, modifying, reviewing, refactoring, or testing code so repo/project preferences surface: error handling, file structure, frameworks, logging, dependency choices, testing, security, API style, and naming. Also use after code work when a reusable project preference should be recorded.

potpie-ai/potpie · 63 tokens

verify

Drive/evidence recipe for verifying wenlan changes at their real surfaces (daemon HTTP, CLI, MCP stdio). The handle file the built-in verify protocol expects; launch primitives live in the run-wenlan skill, deeper machinery (mutation audit, behavior trace, weekly sweep) in the prove skill.

wenlan-app/wenlan · 63 tokens

kivgraph

Use Kivgraph's local MCP server to search symbols, read their source, and follow references, dependencies, cross-repository consumers and graph status in the indexed code graph.

Luqueee/kivgraph · 39 tokens

mushroom

Live graph memory for agents — query and create entities, derive relationships by rule, explain why two things are associated, read the graph at a past commit, ask what a change would do, and answer as one role. Trigger on: memory, remember, recall, relationship, entity, association, why are X and Y related, as of…

MatthewSherlin/mushroomdb · 0 tokens

mem0-test-integration

Verify a Mem0 integration produced by /mem0-integrate. Runs in the same workspace on the same branch (loose coupling) — installs dependencies, runs the repo's native test suite, then exercises a real end-to-end smoke flow against the user's API key. Produces a scorecard. TRIGGER when: user has just run /mem0-integrate…

mem0ai/mem0 · 207 tokens

prowler-test-api

Testing patterns for Prowler API: JSON:API, Celery tasks, RLS isolation, RBAC. Trigger: When writing tests for api/ (JSON:API requests/assertions, cross-tenant isolation, RBAC, Celery tasks, viewsets/serializers).

prowler-cloud/prowler · 62 tokens