interface-contracts

interface-contracts is a skill for Claude Code from navapbc/digital-service-orchestra. It costs 125 tokens per session (1,342 once invoked), scanned A, original, Apache-2.0.

A workflow for defining shared interfaces between parts of a software system, including typed contracts, behaviour notes, and tests for those contracts.

In plain words
What is it for?
It helps plan parallel development, define shared service interfaces, and test that implementations follow the same contract.
Why use it?
It makes boundaries between components explicit, reducing confusion when multiple developers or agents build pieces that must work together.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Part of the dso plugin — 37 skills, 4 commands, 53 agents shipped together

Good fit It helps plan parallel development, define shared service interfaces, and test that implementations follow the same contract.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/navapbc/digital-service-orchestra/interface-contracts
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.

Any agent
npx skills add navapbc/digital-service-orchestra --skill interface-contracts
Clone the repo
git clone --depth 1 https://github.com/navapbc/digital-service-orchestra

Made for: Claude Code.

Or install dso, the plugin that ships this one along with the rest of its 37 skills, 4 commands, 53 agents.

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 interface-contracts

README.md
[![agentmods](https://agentmods.dev/badge/skills/navapbc/digital-service-orchestra/interface-contracts/github.svg)](https://agentmods.dev/skills/navapbc/digital-service-orchestra/interface-contracts)
Your own site
<a href="https://agentmods.dev/skills/navapbc/digital-service-orchestra/interface-contracts"><img src="https://agentmods.dev/badge/skills/navapbc/digital-service-orchestra/interface-contracts/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 interface-contracts

Your own site · 80×15
<a href="https://agentmods.dev/skills/navapbc/digital-service-orchestra/interface-contracts"><img src="https://agentmods.dev/badge/skills/navapbc/digital-service-orchestra/interface-contracts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 125 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,342 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.00125 $0.01342
Opus 5 $0.00063 $0.00671
Sonnet 5 $0.00025 $0.00268
Haiku 4.5 $0.00013 $0.00134

Measured 7d ago against content hash 6a857358da4f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

interface-contracts 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 7d 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.

plugins/dso/skills/interface-contracts/SKILL.md · 147 lines

How it starts

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

Interface Contracts for Parallel Development

When planning new features or tasks, proactively identify interface boundaries that enable parallel development between agents. Formal interface contracts allow multiple agents to work simultaneously on different components that will integrate together.

When to Create an Interface Contract

Create interface contract if ANY:
  - Multiple components need to communicate? → Yes
  - Work can be parallelized across agents? → Yes
  - 3+ tasks blocked by same dependency? → Yes
Otherwise: No interface needed

Interface Contract Requirements

Every interface contract must include:

  1. Abstract base class or Protocol with @abstractmethod decorators
  2. Complete type hints for all parameters and return values
  3. Comprehensive docstrings documenting behavior, not just structure
  4. Unit test file with tests that verify the contract (can test against mock/stub implementations)

Example from This Codebase

# src/services/extraction/base.py
from abc import ABC, abstractmethod

class ExtractionProvider(ABC):
    """Contract for document extraction providers.

    Implementations must handle PDF, DOCX, and TXT formats.
    All methods are thread-safe and may be called concurrently.
    """

    @abstractmethod
    def extract_text(self, file_path: str) -> ExtractionResult:
        """Extract text content from a document.

        Args:
            file_path: Absolute path to the document file.

        Returns:
            ExtractionResult containing:
            - text: The extracted text content
            - metadata: Document metadata dict
            - page_count: Number of pages (1 for non-paginated)

        Raises:
            FileNotFoundError: If file_path does not exist
            UnsupportedFormatError: If file format is not supported
            ExtractionError: If extraction fails for other reasons

        Thread Safety:
            This method is thread-safe and may be called concurrently.
        """
        pass

Read the full file on GitHub · 147 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. 7d ago First seen · 147 lines · 125 tokens per session scan A 6a857358da4f

Subscribe to this mod's changes

interface-contracts is a skill published in the GitHub repository navapbc/digital-service-orchestra (6 stars, last pushed yesterday), licensed Apache-2.0. It adds 125 tokens to every session and 1,342 once invoked, about $0.0006 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-09-03.