trellis-update-spec

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

4|1|Updated Apr 29, 2026
One-click install
npx skills add https://github.com/ZipperCode/lingma2api --skill trellis-update-spec-zippercode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trellis-update-spec
Source: https://github.com/ZipperCode/lingma2api/tree/main/.opencode/skills/trellis-update-spec
Command: npx skills add https://github.com/ZipperCode/lingma2api --skill trellis-update-spec-zippercode

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Valuable lessons learned during debugging, feature implementation, and design discussions are often lost between sessions, forcing developers and AI agents to rediscover the same patterns and repeat the same mistakes. ## Core Features & Use Cases - Executable Contract Capture: Records concrete signatures, request/response fields, environment keys, and validation/error matrices rather than vague principles. - Structured Update Workflow: Guides classification of learnings into design decisions, conventions, patterns, anti-patterns, common mistakes, and gotchas with ready-to-use Markdown templates. - Spec vs Guide Separation: Enforces a clear distinction between code-specs (how to implement) in layer directories and thinking checklists in guides/. - Use Case: After fixing a subtle API error-handling bug, use this Skill to document the validation matrix, wrong-vs-correct examples, and required tests in the relevant .trellis/spec/ file so future sessions avoid the same issue. ## Quick Start Ask the AI to update the code-spec 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 coding conventions learned during development?

Classify the learning as a design decision, convention, pattern, anti-pattern, common mistake, or gotcha, then add it to the relevant .trellis/spec/ file using the provided Markdown templates. Include concrete code examples and explain why the rule exists.

What is the difference between a code-spec and a guide in Trellis?

Code-specs live in layer directories and describe how to implement safely with signatures, contracts, and test points. Guides live in guides/ and are short thinking checklists pointing to specs, covering what to consider before writing code.

When should I update the spec after a code change?

Update after implementing a feature, fixing a bug, making a design decision, discovering a pattern, or hitting a gotcha. Changes touching APIs, database schemas, or infra integrations trigger mandatory seven-section code-spec documentation.

What sections are required for infrastructure or cross-layer changes?

Seven sections are mandatory: Scope/Trigger, Signatures, Contracts, Validation & Error Matrix, Good/Base/Bad Cases, Tests Required with assertion points, and at least one Wrong vs Correct pair.

Does this skill require any scripts or external dependencies?

No. It is a pure instruction-based workflow defined entirely in SKILL.md. It operates by reading and editing Markdown files under .trellis/spec/ and requires no scripts, packages, or external services.