मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग15k · #11035

trellis-update-spec

यह क्या करती है

यह स्किल काम के दौरान सीखी बातों को प्रोजेक्ट के spec दस्तावेज़ों में दर्ज करती है। यह उन टीमों के लिए है जो चाहती हैं कि आगे के सत्र उन सबक से शुरू हों।

कब इस्तेमाल करें

  • ✓जब आप कोई काम पूरा करते हैं या बग ठीक करते हैं और कुछ ऐसा सीखते हैं जो सहेजने लायक है।
  • ✓जब आपको कोडबेस में कोई नया पैटर्न या परंपरा मिलती है।
  • ✓जब कोई बदलाव command, API, database या integration को छूता है और उसका कॉन्ट्रैक्ट दर्ज होना चाहिए।

Skill का लिंक

https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-update-spec/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/mindfold-ai/Trellis/blob/main/.agents/skills/trellis-update-spec/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“हमने upload API बदला है। spec अपडेट कीजिए, ताकि आगे का काम नए कॉन्ट्रैक्ट के अनुसार हो।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट सबक से मेल खाती spec फ़ाइल खोजता है और उसमें एक ठोस प्रविष्टि लिखता है, जिसमें signatures, कॉन्ट्रैक्ट, त्रुटि के मामले, उदाहरण और जाँचने वाले टेस्ट होते हैं। spec सामान्य सिद्धांतों तक सीमित न रहकर विशिष्ट रहती है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Update Code-Spec - Capture Executable Contracts

When you learn something valuable (from debugging, implementing, or discussion), use this to update the relevant code-spec documents.

Timing: After completing a task, fixing a bug, or discovering a new pattern


Code-Spec First Rule (CRITICAL)

In this project, "spec" for implementation work means code-spec:

  • Executable contracts (not principle-only text)
  • Concrete signatures, payload fields, env keys, and boundary behavior
  • Testable validation/error behavior

If the change touches infra or cross-layer contracts, code-spec depth is mandatory.

Mandatory Triggers

Apply code-spec depth when the change includes any of:

  • New/changed command or API signature
  • Cross-layer request/response contract change
  • Database schema/migration change
  • Infra integration (storage, queue, cache, secrets, env wiring)

Mandatory Output (7 Sections)

For triggered tasks, include all sections below:

  1. Scope / Trigger
  2. Signatures (command/API/DB)
  3. Contracts (request/response/env)
  4. Validation & Error Matrix
  5. Good/Base/Bad Cases
  6. Tests Required (with assertion points)
  7. Wrong vs Correct (at least one pair)

When to Update Code-Specs

Trigger Example Target Spec
Implemented a feature Added a new integration or module Relevant spec file
Made a design decision Chose extensibility pattern over simplicity Relevant spec + "Design Decisions" section
Fixed a bug Found a subtle issue with error handling Relevant spec (e.g., error-handling docs)
Discovered a pattern Found a better way to structure code Relevant spec file
Hit a gotcha Learned that X must be done before Y Relevant spec + "Common Mistakes" section
Established a convention Team agreed on naming pattern Quality guidelines
New thinking trigger "Don't forget to check X before doing Y" guides/*.md (as a checklist item)

Key Insight: Code-spec updates are NOT just for problems. Every feature implementation contains design decisions and contracts that future AI/developers need to execute safely.


Spec Structure Overview

.trellis/spec/
├── <layer>/           # Per-layer coding standards (e.g., backend/, frontend/, api/)
│   ├── index.md       # Overview and links
│   └── *.md           # Topic-specific guidelines
└── guides/            # Thinking checklists (NOT coding specs!)
    ├── index.md       # Guide index
    └── *.md           # Topic-specific guides

CRITICAL: Code-Spec vs Guide - Know the Difference

Type Location Purpose Content Style
Code-Spec <layer>/*.md Tell AI "how to implement safely" Signatures, contracts, matrices, cases, test points
Guide guides/*.md Help AI "what to think about" Checklists, questions, pointers to specs

Decision Rule: Ask yourself:

  • "This is how to write the code" → Put in a spec layer directory
  • "This is what to consider before writing" → Put in guides/

Example:

Learning Wrong Location Correct Location
"Use API X not API Y for this task" ❌ guides/ (too specific for a thinking guide) ✅ Relevant spec file (concrete convention)
"Remember to check X when doing Y" ❌ Spec file (too abstract for a spec) ✅ guides/ (thinking checklist)

Guides should be short checklists that point to specs, not duplicate the detailed rules.


Update Process

Step 1: Identify What You Learned

Answer these questions:

  1. What did you learn? (Be specific)
  2. Why is it important? (What problem does it prevent?)
  3. Where does it belong? (Which spec file?)

Step 2: Classify the Update Type

Type Description Action
Design Decision Why we chose approach X over Y Add to "Design Decisions" section
Project Convention How we do X in this project Add to relevant section with examples
New Pattern A reusable approach discovered Add to "Patterns" section
Forbidden Pattern Something that causes problems Add to "Anti-patterns" or "Don't" section
Common Mistake Easy-to-make error Add to "Common Mistakes" section
Convention Agreed-upon standard Add to relevant section
Gotcha Non-obvious behavior Add warning callout
अक्सर पूछे जाने वाले सवाल

code-spec क्या है?

वह spec जिसमें ठोस signatures, डेटा फ़ील्ड और त्रुटि व्यवहार हों जिन्हें टेस्ट किया जा सके, न कि केवल सामान्य सिद्धांत।

गहरा फ़ॉर्मेट कब ज़रूरी है?

command, API कॉन्ट्रैक्ट, database schema या infrastructure integration में बदलाव के लिए स्किल इसे ज़रूरी मानती है।

इसमें कौन-से भाग शामिल होते हैं?

दायरा, signatures, कॉन्ट्रैक्ट, validation और त्रुटि तालिका, अच्छे और बुरे मामले, ज़रूरी टेस्ट, और गलत बनाम सही का उदाहरण।

जानकारी

लेखक का मूल विवरण

Captures executable contracts and coding conventions into .trellis/spec/ documents. Use when learning something valuable from debugging, implementing, or discussion that should be preserved for future sessions.

repo: mindfold-ai/Trellis

लोकप्रियता

GitHub स्टार
15k
रैंकिंग में स्थान
#11035
लाइसेंस
AGPL-3.0
अपडेट की गई
29/9/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

first-principles-thinking

15k

योजना या डिज़ाइन को बुनियादी सच्चाइयों में तोड़कर और उनसे ऊपर तर्क करके जाँचने में आपके एजेंट की मदद करती है, आदत या परंपरा पर भरोसा किए बिना।

AI और एजेंटप्रॉम्प्ट और LLM

python-design

15k

साफ़ मॉड्यूल, सरल इंटरफ़ेस और कम छिपी जटिलताओं वाली Python command-line स्क्रिप्ट लिखने और समीक्षा करने में आपके एजेंट की मदद करती है।

कोडिंगAPI और सर्वर (backend)

trellis-before-dev

15k

कोड लिखना शुरू करने से पहले प्रोजेक्ट के कोडिंग दिशानिर्देश और कार्य-नोट्स पढ़ने में आपके एजेंट की मदद करती है, ताकि वह टीम की परंपराओं का पालन करे।

AI और एजेंटएजेंट

trellis-brainstorm

15k

एक समय में एक उपयोगी सवाल पूछकर, कोड जाँचकर और एक संकीर्ण दायरे पर सहमति बनाकर नए फ़ीचर या अस्पष्ट काम को स्पष्ट करने में आपके एजेंट की मदद करती है।

प्रोडक्टिविटीटास्क और प्रोजेक्ट

मिलती-जुलती skills