trellis-update-spec

Capture executable contracts and coding conventions into .trellis/spec documents.

92|8|Updated May 15, 2026
One-click install
npx skills add https://github.com/LonelyHerbivore/Trellis-Herbivore --skill trellis-update-spec
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trellis-update-spec
Source: https://github.com/LonelyHerbivore/Trellis-Herbivore/tree/main/.cursor/skills/trellis-update-spec
Command: npx skills add https://github.com/LonelyHerbivore/Trellis-Herbivore --skill trellis-update-spec

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

It prevents valuable implementation knowledge from being lost to chat history by turning debugging results, bug fixes, and design decisions into reusable, executable code-spec documents.

Core Features & Use Cases

  • Captures executable contracts: records concrete signatures, payload fields, env keys, and boundary/error behavior so future work can be done safely.
  • Guides when spec depth is mandatory: escalates to full code-spec detail for command/API/DB contract changes, migrations, and cross-layer infrastructure integration.
  • Standardizes spec updates: enforces a consistent 7-section output template (scope, signatures, contracts, validation matrix, cases, tests, wrong vs correct) and keeps code-spec separate from thinking guides.

Quick Start

Use trellis-update-spec after you finish implementing a feature or fixing a bug so it updates the relevant .trellis/spec documents with the exact contracts and test expectations.

Frequently Asked Questions about trellis-update-spec

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I document code contracts after debugging or fixing a bug?

To document code contracts after debugging, you capture executable signatures, payload fields, and error behavior into .trellis/spec documents. This ensures future AI agents or developers can reproduce safe behavior across different sessions without relying on chat history.

When do I need full executable spec depth for API changes?

Full executable spec depth is mandatory for command, API, or database contract changes, migrations, and cross-layer infrastructure integration. It records concrete validation matrices and boundary error behavior so future work can execute safely.

What is the best way to standardize spec updates for AI coding workflows?

Standardizing spec updates for AI workflows requires a consistent seven-section template covering scope, signatures, contracts, validation matrices, cases, tests, and wrong versus correct examples. This keeps executable code specifications separate from thinking guides.

Can I use this to record validation and error matrices for refactoring?

Yes, you can use it to record validation and error matrices during refactoring. It captures good, base, and bad cases alongside required test points, ensuring the refactored code maintains safe behavior and conforms to the original executable contracts.

Does this spec format support capturing wrong versus correct examples?

Yes, the spec format supports capturing wrong versus correct examples when relevant triggers are met. This clarifies boundary conditions and prevents future implementation mistakes by explicitly showing incorrect approaches alongside the correct executable code.

Why are executable code contracts needed for cross-layer infrastructure?

Executable code contracts are needed for cross-layer infrastructure to standardize request and response payloads, environment keys, and error handling. Without them, integration knowledge is lost to chat history, making safe reproduction across sessions impossible.