ContextWeaver: Skill for Claude Code

.agents/skills/trellis-check/SKILL.md

trellis-check is a skill for Claude Code, Codex from hsingjui/ContextWeaver. It costs 54 tokens per session (845 once invoked), scanned A, original, MIT.

A checklist and workflow for reviewing recently changed code against project rules and standard checks. It includes linting, type checking, tests, and review of how data moves between parts of the program.

In plain words
What is it for?
Use it after implementing a change or before committing to inspect the diff, read applicable task documents and specs, run checks, and fix failures.
Why use it?
It helps catch broken behavior, missing tests, leftover debug code, unsafe type workarounds, and changes that do not match the project's specifications before a commit.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 ./.trellis/scripts/get_context.py --mode packages.

Reuse

Borrowing it

Nothing to install: this file belongs to hsingjui/ContextWeaver. 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/hsingjui/ContextWeaver/main/.agents/skills/trellis-check/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/hsingjui/ContextWeaver

Made for: Claude Code, Codex.

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 trellis-check

README.md
[![agentmods](https://agentmods.dev/badge/skills/hsingjui/contextweaver/trellis-check/github.svg)](https://agentmods.dev/skills/hsingjui/contextweaver/trellis-check)
Your own site
<a href="https://agentmods.dev/skills/hsingjui/contextweaver/trellis-check"><img src="https://agentmods.dev/badge/skills/hsingjui/contextweaver/trellis-check/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 trellis-check

Your own site · 80×15
<a href="https://agentmods.dev/skills/hsingjui/contextweaver/trellis-check"><img src="https://agentmods.dev/badge/skills/hsingjui/contextweaver/trellis-check.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 845 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.00054 $0.00845
Opus 5.5 $0.00022 $0.00338
Sonnet 5.5 $0.00011 $0.00169
Haiku 4.5 $0.00005 $0.00085

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

Security

Grade A, and why

trellis-check 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 1mo 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/trellis-check/SKILL.md · 112 lines

How it starts

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

Code Quality Check

Comprehensive quality verification for recently written code. Combines spec compliance, cross-layer safety, and pre-commit checks.


Step 1: Identify What Changed

git diff --name-only HEAD
git status

Step 2: Read Task Artifacts and Applicable Specs

Read the current task artifacts in order:

  • prd.md
  • design.md if present
  • implement.md if present
python3 ./.trellis/scripts/get_context.py --mode packages

For each changed package/layer, read the spec index and follow its Quality Check section:

cat .trellis/spec/<package>/<layer>/index.md

Read the specific guideline files referenced — the index is a pointer, not the goal.

Step 3: Run Project Checks

Run the project's lint, type-check, and test commands. Fix any failures before proceeding.

Step 4: Review Against Checklist

Code Quality

  • Linter passes?
  • Type checker passes (if applicable)?
  • Tests pass?
  • No debug logging left in?
  • No suppressed warnings or type-safety bypasses?

Test Coverage

  • New function → unit test added?
  • Bug fix → regression test added?
  • Changed behavior → existing tests updated?

Spec Sync

  • Does .trellis/spec/ need updates? (new patterns, conventions, lessons learned)

"If I fixed a bug or discovered something non-obvious, should I document it so future me won't hit the same issue?" → If YES, update the relevant spec doc.

Scope Discipline

  • Any tidying of code the task did not require?
  • Any abstraction, config or extension point added for a case that does not exist yet?
  • Any speculative fallback for a state that cannot occur?
  • Any file changed that the acceptance criteria do not mention?
  • Any workaround added at the caller instead of a fix where the behavior actually lives?

Step 5: Cross-Layer Dimensions (if applicable)

Skip this step if your change is confined to a single layer.

A. Data Flow (changes touch 3+ layers)

Read the full file on GitHub · 112 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. 1mo ago First seen · 112 lines · 54 tokens per session scan A dfb0600e95c1

Subscribe to this mod's changes

trellis-check is a skill published in the GitHub repository hsingjui/ContextWeaver (297 stars, last pushed 1mo ago), licensed MIT. It adds 54 tokens to every session and 845 once invoked, about $0.0002 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-09-07.

Related

Other skills, from other repositories

ring:adding-multi-tenancy

Adding database-per-tenant isolation into a Go service end-to-end via an 11-gate cycle: detects the stack, audits compliance, then dispatches backend agents to implement tenantId-from-JWT routing through the lib-commons v5 dispatch layer (config, middleware, repositories, metrics, tests) and runs reviewers. Use when…

LerianStudio/ring · 95 tokens

ring:testing-skills-with-subagents

Hardening a skill so it resists rationalization under pressure: run combined-pressure scenarios on a subagent without the skill (RED), capture excuses verbatim, write/edit the skill (GREEN), then plug loopholes (REFACTOR) until compliance holds. Use when deploying or editing a discipline-enforcing skill that an agent…

LerianStudio/ring · 90 tokens

code-review

AI-powered code review and PR analysis. Performs systematic reviews covering security vulnerabilities, code quality, style compliance, architectural integrity, test coverage, and performance considerations. Works with PR diffs, commit ranges, file changes, or raw code snippets. Primary keyword clusters: AI code review…

JPeetz/agent-skills · 137 tokens

launch-gate

Pre-launch production readiness gate. Comprehensive go/no-go checklist covering SLAs, monitoring, backups, load testing, security, accessibility, legal, rollback, and runbook completeness. Runs at any phase boundary — not just final launch. Use when asking "are we ready to ship this phase?".

rana/skills · 62 tokens

validator-role-skill

Professional software QA and code review skill for ensuring code quality, comprehensive test coverage, standards compliance, and security through rigorous testing and validation workflows.

incyd/claude-crypto-research-tools · 36 tokens

adk-go-self-review

Review an ADK Go change the way a maintainer will — a fresh-context pass over the whole diff, five lenses (correctness and tests, scope, simplicity, style, adk-python parity), and the mutation check that proves your tests pin the change. Use before opening a PR, before any later push that changes code, and when asked…

google/adk-go · 87 tokens