trellis-update-spec

Captures executable contracts and coding conventions into .trellis/spec/ documentation files.

2|Updated Jun 2, 2026
One-click install
npx skills add https://github.com/42team-ru/teampilot --skill trellis-update-spec-42team-ru
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trellis-update-spec
Source: https://github.com/42team-ru/teampilot/tree/main/.cursor/skills/trellis-update-spec
Command: npx skills add https://github.com/42team-ru/teampilot --skill trellis-update-spec-42team-ru

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Valuable lessons from debugging sessions, feature implementations, and design discussions are often lost between sessions, forcing developers and AI assistants to rediscover the same patterns and mistakes. This Skill turns those learnings into persistent, executable code-spec documents. ## Core Features & Use Cases - Structured Spec Updates: Classifies learnings into design decisions, conventions, patterns, anti-patterns, common mistakes, and gotchas, each with a dedicated Markdown template. - Mandatory 7-Section Contract Format: Enforces signatures, request/response contracts, validation and error matrices, Good/Base/Bad cases, and required tests for infra or cross-layer changes. - Code-Spec vs Guide Separation: Directs concrete implementation rules into layer-specific spec files and thinking checklists into guides/ to keep documentation organized. - Use Case: After fixing a subtle bug in an API error-handling flow, use this Skill to document the root cause, the correct contract, and a Wrong vs Correct example in the relevant backend spec so future sessions avoid the same mistake. ## Quick Start Ask the assistant to update the relevant .trellis/spec document with what was just learned from the completed task or bug fix.

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 a bug fix so future sessions don't repeat it?

Classify the learning as a Common Mistake or Gotcha, then add it to the relevant spec file using the provided template with symptom, cause, fix, and prevention. Include a code example and explain why the mistake happens.

What is the difference between a code-spec and a guide in .trellis/spec?

Code-specs live in layer directories and contain executable contracts: signatures, payload fields, and error matrices. Guides live in guides/ and are short thinking checklists pointing to specs, covering what to consider before writing code.

When is the mandatory 7-section spec format required?

The 7-section format is mandatory when a change involves new or changed command/API signatures, cross-layer request/response contracts, database schema or migration changes, or infra integrations like storage, queues, caches, or env wiring.

What sections must an infra or cross-layer spec update include?

It must include Scope/Trigger, Signatures, Contracts, Validation & Error Matrix, Good/Base/Bad Cases, Tests Required with assertion points, and at least one Wrong vs Correct pair.

Should every small implementation detail be added to the spec?

No. Update the spec only if future AI or developers need the knowledge to understand, maintain, or extend the feature, or to avoid repeating mistakes. Purely one-off implementation details can be skipped.