trellis-update-spec

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

1|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/MaplumeX/Milesto --skill trellis-update-spec-maplumex
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: trellis-update-spec
Source: https://github.com/MaplumeX/Milesto/tree/main/.agents/skills/trellis-update-spec
Command: npx skills add https://github.com/MaplumeX/Milesto --skill trellis-update-spec-maplumex

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 contracts, conventions, and gotchas repeatedly. ## Core Features & Use Cases - Executable Contract Capture: Records concrete signatures, request/response fields, environment keys, and validation/error matrices rather than abstract principles. - Spec vs Guide Classification: Routes learnings to the correct location, placing implementation rules in layer-specific spec files and thinking checklists in guides/. - Structured Update Templates: Provides ready-made templates for design decisions, conventions, patterns, anti-patterns, common mistakes, and gotchas. - Use Case: After fixing a subtle cross-layer API bug, use this Skill to document the corrected request contract, error matrix, and a wrong-vs-correct example in the relevant .trellis/spec/ file so future sessions avoid the same mistake. ## Quick Start Ask the AI to update the code-spec with what was just learned from fixing the bug, including the signature, contract, and a wrong-versus-correct example.

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?▼

Identify what you learned, classify it as a design decision, convention, pattern, or gotcha, then add it to the relevant .trellis/spec/ file using the provided templates. Include concrete code examples and explain why the rule exists, not just what it is.

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

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

When is code-spec depth mandatory for a change?▼

Code-spec depth is mandatory when a change includes a new or changed command or API signature, a cross-layer request/response contract change, a database schema or migration change, or infra integration such as storage, queues, caches, secrets, or env wiring.

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

It must include all seven sections: 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 implementation detail be added to the spec?▼

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