Skip to content
Skills Library
Programming · Testing

contracts

/contracts

Defines the @evidence checklists every maintained ttsc declaration and test answers, and their evidence.config.json wiring. Use when writing or reviewing maintained source or tests, or changing Evidence selection.

Licence
Apache-2.0
Last repository change
13.11.2026

Assessment and security

90/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content25 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
6
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

Defines the @evidence checklists every maintained ttsc declaration and test answers, and their evidence.config.json wiring. Use when writing or reviewing maintained source or tests, or changing Evidence selection.

Original author description

Defines the @evidence checklists every maintained ttsc declaration and test answers, and their evidence.config.json wiring. Use when writing or reviewing maintained source or tests, or changing Evidence selection.

How it works

  1. Answering
  2. Selection
  3. Editing The Checklists
Original SKILL.md headings · 34 lines, 399 words
SKILL.md preview
---
name: contracts
description: Defines the @evidence checklists every maintained ttsc declaration and test answers, and their evidence.config.json wiring. Use when writing or reviewing maintained source or tests, or changing Evidence selection.
---

# Contracts

Each checklist H2 is a question that every selected declaration answers in its doc comment. A package's `evidence.config.json` selects the checklists; `pnpm evidence` checks that answers exist, and [review](../review/SKILL.md) checks that they are true and complete.

| Checklist | Asks about |
| --- | --- |
| [common.md](common.md) | Method, design, shortcuts, and documentation of production code |
| [portability.md](portability.md) | Native filesystem, path, and process boundaries |
| [performance.md](performance.md) | Computation cost, reuse, and resource lifetime |
| [testing.md](testing.md) | Behavior, expectations, and cases of every test |
| [e2e.md](e2e.md) | Boundaries, shared preparation, and isolation of E2E tests |

## Answering

1. Before writing, read the declaration and everything its H2 asks about, such as its callees, callers, tests, and platforms.
2. Answer every fact the H2 asks for, from what the code actually does. A partial, generic, or untrue answer is a defect, not a pass.
3. If the code falls short of the question, fix the code, and state any gap that remains instead of claiming the requirement is met.
4. Write `@evidence contracts/<file>.md#<anchor> <reason>` after a blank comment line, and `@evidenceExclude` the same way only for an item that does not apply, never for a whole file.

## Selection

- From a package, `pnpm exec evidence list` and `pnpm exec evidence inspect '<target>'` show what a selector reaches.
- For a declaration the adapter cannot address, keep its native doc comment and place its checklist answers and tags on the nearest supported owner shown by `list` and `inspect`.
- `Claims: 3/4 active` means a selector matched nothing, without a diagnostic, and `Coverage` counts checklist sections, not declarations.
- A Go package of unexported declarations, such as `packages/evidence/native`, selects no production host, so [review](../review/SKILL.md) covers it. A `declare module "@ttsc/lint"` augmentation reports `typescript-ambient-module` until the adapter resolves it.
- Exclude only generated, copied, or dependency material with verified provenance, and omit a pure re-export barrel whose targets span disjoint claims.
- Never narrow a selector or lower a severity to pass the check.
- Enroll tests in the existing Evidence step of `build.yml`, and record entries the adapter cannot address, such as anonymous callbacks or dynamic registrations, for [review](../review/SKILL.md).

## Editing The Checklists

Tens of thousands of tags cite their paths and H2s, so adding, renaming, or removing an H2 needs an authorized migration of every answer. Keep one chapter per question.
Files in this package (6)
  • SKILL.md 3 KB
  • common.md 2 KB
  • e2e.md 2 KB
  • performance.md 1 KB
  • portability.md 1 KB
  • testing.md 2 KB

Versions

RepositoryScoreLicence
This page · systemfsoftware/systemfsoftware90Apache-2.0
ericrisco/rsc-harness100MIT
ramboz/jig100MIT
ramboz/jig100MIT
ramboz/jig100MIT
Alejo2075/claude-code-aws100MIT
Tyler-R-Kendrick/agent-skills100MIT
dithiothreitol/jdg-ksiegowy95MIT
samchon/typia85MIT

Database snapshot: 13.11.2026 · package version cc60d25c7c68 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 90project/evidence
    Defines the evidence graph domain model for @ttsc/evidence — the tag grammar, node kinds, hierarchy, reference resolution, obligation coverage, reference policies, and exclusions. Use before changing rule semantics, the tag grammar, the configuration surface, or a diagnostic…
  • 80benchmark/evidence
    Defines how an @ttsc/evidence benchmark campaign is set up, launched under frozen inputs, run, supervised, recovered, and reported, from issue creation through pull-request completion. Use whenever operating, supervising, or reporting a benchmark run.
  • 100declaration-contracts
    Declaration contracts for packages and untyped JavaScript APIs. Use when authoring, repairing, testing, augmenting, or publishing .d.ts files; model runtime exports, globals, callbacks, overloads, and package type entry points. Not for purely type-level utilities or tsconfig selection.
  • 82test-evidence-storage
    Use when changing test evidence collection, publication, paths, retention, or scratch-directory cleanup.
  • 100update-downstream-packages
    Use when rolling a newly published package release through every maintained consumer repository and verifying CI.
  • 81phpbb-core-bugfixes
    Investigate and fix phpBB core bugs across maintained branches with focused regressions, preserved legacy behavior, branch-specific source checks, and upstream-ready evidence. Event-only RFCs use the event-RFC skill. Use when reproducing or fixing a phpBB core bug, writing its…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.