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 पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
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:
- Scope / Trigger
- Signatures (command/API/DB)
- Contracts (request/response/env)
- Validation & Error Matrix
- Good/Base/Bad Cases
- Tests Required (with assertion points)
- 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:
- What did you learn? (Be specific)
- Why is it important? (What problem does it prevent?)
- 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
कमेंट
- …
इस repository की और skills
first-principles-thinking
15kयोजना या डिज़ाइन को बुनियादी सच्चाइयों में तोड़कर और उनसे ऊपर तर्क करके जाँचने में आपके एजेंट की मदद करती है, आदत या परंपरा पर भरोसा किए बिना।
python-design
15kसाफ़ मॉड्यूल, सरल इंटरफ़ेस और कम छिपी जटिलताओं वाली Python command-line स्क्रिप्ट लिखने और समीक्षा करने में आपके एजेंट की मदद करती है।
trellis-before-dev
15kकोड लिखना शुरू करने से पहले प्रोजेक्ट के कोडिंग दिशानिर्देश और कार्य-नोट्स पढ़ने में आपके एजेंट की मदद करती है, ताकि वह टीम की परंपराओं का पालन करे।
trellis-brainstorm
15kएक समय में एक उपयोगी सवाल पूछकर, कोड जाँचकर और एक संकीर्ण दायरे पर सहमति बनाकर नए फ़ीचर या अस्पष्ट काम को स्पष्ट करने में आपके एजेंट की मदद करती है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।