start-vibing 4.0.2 → 4.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/package.json +1 -1
  2. package/template/.claude/CLAUDE.md +86 -20
  3. package/template/.claude/agents/sd-audit.md +197 -0
  4. package/template/.claude/agents/sd-fix-verify-semantic.md +112 -0
  5. package/template/.claude/agents/sd-fix-verify-technical.md +36 -0
  6. package/template/.claude/agents/sd-fix.md +194 -0
  7. package/template/.claude/agents/sd-research.md +61 -0
  8. package/template/.claude/agents/sd-synthesis.md +74 -0
  9. package/template/.claude/commands/super-design.md +15 -0
  10. package/template/.claude/hooks/super-design-session-start.sh +4 -0
  11. package/template/.claude/settings.json +14 -0
  12. package/template/.claude/skills/codebase-knowledge/SKILL.md +145 -0
  13. package/template/.claude/skills/codebase-knowledge/TEMPLATE.md +35 -0
  14. package/template/.claude/skills/codebase-knowledge/domains/claude-system.md +93 -0
  15. package/template/.claude/skills/composition-patterns/SKILL.md +89 -0
  16. package/template/.claude/skills/docs-tracker/SKILL.md +239 -0
  17. package/template/.claude/skills/mcp-builder/SKILL.md +236 -0
  18. package/template/.claude/skills/quality-gate/scripts/check-all.sh +83 -0
  19. package/template/.claude/skills/react-best-practices/SKILL.md +146 -0
  20. package/template/.claude/skills/security-scan/reference/owasp-top-10.md +257 -0
  21. package/template/.claude/skills/security-scan/scripts/scan.py +190 -0
  22. package/template/.claude/skills/super-design/README.md +37 -0
  23. package/template/.claude/skills/super-design/SKILL.md +105 -0
  24. package/template/.claude/skills/super-design/hooks/guard-paths.py +35 -0
  25. package/template/.claude/skills/super-design/hooks/post-edit-lint.py +57 -0
  26. package/template/.claude/skills/super-design/references/audit-methodology.md +513 -0
  27. package/template/.claude/skills/super-design/references/change-detection-playbook.md +1432 -0
  28. package/template/.claude/skills/super-design/references/design-theory.md +706 -0
  29. package/template/.claude/skills/super-design/references/fix-agent-playbook.md +118 -0
  30. package/template/.claude/skills/super-design/references/market-research-playbook.md +773 -0
  31. package/template/.claude/skills/super-design/references/playwright-mcp-reference.md +1057 -0
  32. package/template/.claude/skills/super-design/references/skills-subagents-reference.md +784 -0
  33. package/template/.claude/skills/super-design/references/superpowers-and-distribution.md +136 -0
  34. package/template/.claude/skills/super-design/scripts/detect-changes.sh +61 -0
  35. package/template/.claude/skills/super-design/scripts/diff-tokens.sh +13 -0
  36. package/template/.claude/skills/super-design/scripts/discover-routes.sh +45 -0
  37. package/template/.claude/skills/super-design/scripts/extract-tokens.mjs +41 -0
  38. package/template/.claude/skills/super-design/scripts/hash-pages.sh +42 -0
  39. package/template/.claude/skills/super-design/scripts/validate-state.sh +15 -0
  40. package/template/.claude/skills/super-design/scripts/verify-audit.sh +19 -0
  41. package/template/.claude/skills/super-design/templates/audit-state.schema.json +57 -0
  42. package/template/.claude/skills/super-design/templates/findings.schema.json +57 -0
  43. package/template/.claude/skills/super-design/templates/fix-history.md.tpl +26 -0
  44. package/template/.claude/skills/super-design/templates/overview.md.tpl +52 -0
  45. package/template/.claude/skills/test-coverage/reference/playwright-patterns.md +260 -0
  46. package/template/.claude/skills/test-coverage/scripts/coverage-check.sh +52 -0
  47. package/template/.claude/skills/typeui-ant/SKILL.md +133 -0
  48. package/template/.claude/skills/typeui-application/SKILL.md +128 -0
  49. package/template/.claude/skills/typeui-artistic/SKILL.md +133 -0
  50. package/template/.claude/skills/typeui-bento/SKILL.md +127 -0
  51. package/template/.claude/skills/typeui-bold/SKILL.md +127 -0
  52. package/template/.claude/skills/typeui-clean/SKILL.md +128 -0
  53. package/template/.claude/skills/typeui-dashboard/SKILL.md +133 -0
  54. package/template/.claude/skills/typeui-doodle/SKILL.md +142 -0
  55. package/template/.claude/skills/typeui-dramatic/SKILL.md +127 -0
  56. package/template/.claude/skills/typeui-enterprise/SKILL.md +132 -0
  57. package/template/.claude/skills/typeui-neobrutalism/SKILL.md +127 -0
  58. package/template/.claude/skills/typeui-paper/SKILL.md +127 -0
  59. package/template/.claude/skills/ui-ux-audit/QUICK-START.md +450 -0
  60. package/template/.claude/skills/ui-ux-audit/README.md +470 -0
  61. package/template/.claude/skills/ui-ux-audit/templates/audit-report.md +591 -0
  62. package/template/.claude/skills/ui-ux-audit/templates/competitor-analysis.md +363 -0
  63. package/template/.claude/skills/ui-ux-audit/templates/component-spec.md +491 -0
  64. package/template/.claude/skills/ui-ux-audit/templates/improvement-recommendation.md +450 -0
  65. package/template/.claude/skills/web-design-guidelines/SKILL.md +39 -0
  66. package/template/.claude/skills/webapp-testing/SKILL.md +96 -0
  67. package/template/.claude/skills/workflow-state/workflow-state.json +77 -0
@@ -0,0 +1,89 @@
1
+ ---
2
+ name: vercel-composition-patterns
3
+ description:
4
+ React composition patterns that scale. Use when refactoring components with
5
+ boolean prop proliferation, building flexible component libraries, or
6
+ designing reusable APIs. Triggers on tasks involving compound components,
7
+ render props, context providers, or component architecture. Includes React 19
8
+ API changes.
9
+ license: MIT
10
+ metadata:
11
+ author: vercel
12
+ version: '1.0.0'
13
+ ---
14
+
15
+ # React Composition Patterns
16
+
17
+ Composition patterns for building flexible, maintainable React components. Avoid
18
+ boolean prop proliferation by using compound components, lifting state, and
19
+ composing internals. These patterns make codebases easier for both humans and AI
20
+ agents to work with as they scale.
21
+
22
+ ## When to Apply
23
+
24
+ Reference these guidelines when:
25
+
26
+ - Refactoring components with many boolean props
27
+ - Building reusable component libraries
28
+ - Designing flexible component APIs
29
+ - Reviewing component architecture
30
+ - Working with compound components or context providers
31
+
32
+ ## Rule Categories by Priority
33
+
34
+ | Priority | Category | Impact | Prefix |
35
+ | -------- | ----------------------- | ------ | --------------- |
36
+ | 1 | Component Architecture | HIGH | `architecture-` |
37
+ | 2 | State Management | MEDIUM | `state-` |
38
+ | 3 | Implementation Patterns | MEDIUM | `patterns-` |
39
+ | 4 | React 19 APIs | MEDIUM | `react19-` |
40
+
41
+ ## Quick Reference
42
+
43
+ ### 1. Component Architecture (HIGH)
44
+
45
+ - `architecture-avoid-boolean-props` - Don't add boolean props to customize
46
+ behavior; use composition
47
+ - `architecture-compound-components` - Structure complex components with shared
48
+ context
49
+
50
+ ### 2. State Management (MEDIUM)
51
+
52
+ - `state-decouple-implementation` - Provider is the only place that knows how
53
+ state is managed
54
+ - `state-context-interface` - Define generic interface with state, actions, meta
55
+ for dependency injection
56
+ - `state-lift-state` - Move state into provider components for sibling access
57
+
58
+ ### 3. Implementation Patterns (MEDIUM)
59
+
60
+ - `patterns-explicit-variants` - Create explicit variant components instead of
61
+ boolean modes
62
+ - `patterns-children-over-render-props` - Use children for composition instead
63
+ of renderX props
64
+
65
+ ### 4. React 19 APIs (MEDIUM)
66
+
67
+ > **⚠️ React 19+ only.** Skip this section if using React 18 or earlier.
68
+
69
+ - `react19-no-forwardref` - Don't use `forwardRef`; use `use()` instead of `useContext()`
70
+
71
+ ## How to Use
72
+
73
+ Read individual rule files for detailed explanations and code examples:
74
+
75
+ ```
76
+ rules/architecture-avoid-boolean-props.md
77
+ rules/state-context-interface.md
78
+ ```
79
+
80
+ Each rule file contains:
81
+
82
+ - Brief explanation of why it matters
83
+ - Incorrect code example with explanation
84
+ - Correct code example with explanation
85
+ - Additional context and references
86
+
87
+ ## Full Compiled Document
88
+
89
+ For the complete guide with all rules expanded: `AGENTS.md`
@@ -0,0 +1,239 @@
1
+ ---
2
+ name: docs-tracker
3
+ description: "ALWAYS invoke AFTER implementation completes. Detects modified files via git diff, creates/updates docs. Do NOT skip — documentation is mandatory for all changes."
4
+ allowed-tools: Read, Glob, Grep, Bash
5
+ ---
6
+
7
+ # Docs Tracker - Automatic Documentation System
8
+
9
+ ## Purpose
10
+
11
+ This skill automates documentation maintenance:
12
+
13
+ - **Detects** modified files via git diff
14
+ - **Compares** with existing documentation
15
+ - **Creates** docs for new files
16
+ - **Updates** docs for modified files
17
+ - **Removes** docs for deleted files
18
+ - **Generates** automatic changelog
19
+
20
+ ---
21
+
22
+ ## Execution Flow
23
+
24
+ ```
25
+ 1. DETECT CHANGES → git diff --name-status
26
+
27
+ 2. CLASSIFY CHANGES → A=Added, M=Modified, D=Deleted
28
+
29
+ 3. CHECK EXISTING DOCS → docs/, codebase-knowledge/domains/
30
+
31
+ 4. EXECUTE ACTIONS → Create, update, or remove docs
32
+ ```
33
+
34
+ ---
35
+
36
+ ## Detection Commands
37
+
38
+ ### Changes Since Last Commit
39
+
40
+ ```bash
41
+ git diff --name-status HEAD~1
42
+ ```
43
+
44
+ ### Changes vs Main
45
+
46
+ ```bash
47
+ git diff --name-status main..HEAD
48
+ ```
49
+
50
+ ### Added Files
51
+
52
+ ```bash
53
+ git diff --name-status main..HEAD | grep "^A"
54
+ ```
55
+
56
+ ### Modified Files
57
+
58
+ ```bash
59
+ git diff --name-status main..HEAD | grep "^M"
60
+ ```
61
+
62
+ ### Deleted Files
63
+
64
+ ```bash
65
+ git diff --name-status main..HEAD | grep "^D"
66
+ ```
67
+
68
+ ### Detailed File Diff
69
+
70
+ ```bash
71
+ git diff main..HEAD -- path/to/file.ts
72
+ ```
73
+
74
+ ---
75
+
76
+ ## File → Doc Mapping
77
+
78
+ | File Type | Related Documentation |
79
+ | --------------------- | --------------------------------------------- |
80
+ | `server/routers/*.ts` | `codebase-knowledge/domains/[domain].md` |
81
+ | `server/models/*.ts` | `codebase-knowledge/domains/[domain].md` |
82
+ | `app/**/page.tsx` | `docs/flows/[feature].md` |
83
+ | `components/**/*.tsx` | `docs/components/[component].md` (if complex) |
84
+ | `lib/**/*.ts` | `docs/utils/[lib].md` (if exported) |
85
+
86
+ ---
87
+
88
+ ## Update Rules
89
+
90
+ ### CREATE Doc When:
91
+
92
+ - [ ] New file in `server/routers/` → Update domain
93
+ - [ ] New file in `server/models/` → Update domain
94
+ - [ ] New page in `app/` → Create flow doc if complex
95
+ - [ ] New complex component → Consider doc
96
+
97
+ ### UPDATE Doc When:
98
+
99
+ - [ ] tRPC procedure changed signature
100
+ - [ ] Model changed schema
101
+ - [ ] Page changed main flow
102
+ - [ ] Connections between domains changed
103
+
104
+ ### REMOVE Doc When:
105
+
106
+ - [ ] File was deleted
107
+ - [ ] Feature was completely removed
108
+ - [ ] Component was discontinued
109
+
110
+ ---
111
+
112
+ ## Changelog Template
113
+
114
+ ```markdown
115
+ ## [Unreleased] - YYYY-MM-DD
116
+
117
+ ### Added
118
+
119
+ - New feature X in `path/to/file.ts`
120
+ - New component Y
121
+
122
+ ### Changed
123
+
124
+ - Changed behavior of Z
125
+ - Refactored module W
126
+
127
+ ### Fixed
128
+
129
+ - Fixed bug in A
130
+ - Resolved issue #123
131
+
132
+ ### Removed
133
+
134
+ - Removed obsolete feature B
135
+
136
+ ### Docs Updated
137
+
138
+ - Updated `codebase-knowledge/domains/[domain].md`
139
+ - Created `docs/flows/[feature].md`
140
+ ```
141
+
142
+ ---
143
+
144
+ ## Pre-Commit Checklist
145
+
146
+ ### 1. Detect Changes
147
+
148
+ ```bash
149
+ git diff --name-status --cached
150
+ ```
151
+
152
+ ### 2. For Each Modified File
153
+
154
+ - [ ] Which domain does it belong to?
155
+ - [ ] Is domain updated in `codebase-knowledge/domains/`?
156
+ - [ ] Has flow doc in `docs/flows/`? Needs update?
157
+ - [ ] Commit hash will be added to domain?
158
+
159
+ ### 3. For Added Files
160
+
161
+ - [ ] Which domain? Add to file list
162
+ - [ ] Needs own doc or just update domain?
163
+ - [ ] Connections with other domains?
164
+
165
+ ### 4. For Deleted Files
166
+
167
+ - [ ] Remove from `codebase-knowledge/domains/`
168
+ - [ ] Remove flow doc if exists
169
+ - [ ] Update connections in related domains
170
+
171
+ ---
172
+
173
+ ## Integration with Codebase-Knowledge
174
+
175
+ ### Update Domain After Change
176
+
177
+ ```markdown
178
+ ## Domain Update: [name]
179
+
180
+ ### Changes Detected
181
+
182
+ | File | Status | Description |
183
+ | ------------ | -------- | -------------- |
184
+ | path/file.ts | Modified | [what changed] |
185
+
186
+ ### Required Updates in domains/[domain].md
187
+
188
+ - [ ] Update "Last Update" with date and commit
189
+ - [ ] Add/remove files from list
190
+ - [ ] Update "Recent Commits"
191
+ - [ ] Check "Connections" if integration changed
192
+ - [ ] Update "Attention Points" if applicable
193
+ ```
194
+
195
+ ---
196
+
197
+ ## Output Format
198
+
199
+ ```markdown
200
+ ## DOCS TRACKER - Report
201
+
202
+ ### Changes Detected
203
+
204
+ - **Added:** X files
205
+ - **Modified:** Y files
206
+ - **Deleted:** Z files
207
+
208
+ ### Docs That Need Update
209
+
210
+ | Doc | Type | Action | Priority |
211
+ | ---------------- | ------ | ------ | -------- |
212
+ | domains/auth.md | domain | update | HIGH |
213
+ | flows/feature.md | flow | create | MEDIUM |
214
+
215
+ ### Actions Executed
216
+
217
+ - [x] Updated `domains/auth.md` with commit abc123
218
+ - [x] Created `flows/new-feature.md`
219
+ - [x] Removed `flows/obsolete.md`
220
+
221
+ ### Changelog Generated
222
+
223
+ [changelog preview]
224
+ ```
225
+
226
+ ---
227
+
228
+ ## Critical Rules
229
+
230
+ 1. **ALWAYS run before commit** - Outdated docs are technical debt
231
+ 2. **NEVER ignore new files** - Every file deserves documentation
232
+ 3. **KEEP changelog updated** - Facilitates releases
233
+ 4. **SYNC with codebase-knowledge** - It's the source of truth
234
+
235
+ ---
236
+
237
+ ## Version
238
+
239
+ - **v2.0.0** - Generic template
@@ -0,0 +1,236 @@
1
+ ---
2
+ name: mcp-builder
3
+ description: Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
4
+ license: Complete terms in LICENSE.txt
5
+ ---
6
+
7
+ # MCP Server Development Guide
8
+
9
+ ## Overview
10
+
11
+ Create MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. The quality of an MCP server is measured by how well it enables LLMs to accomplish real-world tasks.
12
+
13
+ ---
14
+
15
+ # Process
16
+
17
+ ## 🚀 High-Level Workflow
18
+
19
+ Creating a high-quality MCP server involves four main phases:
20
+
21
+ ### Phase 1: Deep Research and Planning
22
+
23
+ #### 1.1 Understand Modern MCP Design
24
+
25
+ **API Coverage vs. Workflow Tools:**
26
+ Balance comprehensive API endpoint coverage with specialized workflow tools. Workflow tools can be more convenient for specific tasks, while comprehensive coverage gives agents flexibility to compose operations. Performance varies by client—some clients benefit from code execution that combines basic tools, while others work better with higher-level workflows. When uncertain, prioritize comprehensive API coverage.
27
+
28
+ **Tool Naming and Discoverability:**
29
+ Clear, descriptive tool names help agents find the right tools quickly. Use consistent prefixes (e.g., `github_create_issue`, `github_list_repos`) and action-oriented naming.
30
+
31
+ **Context Management:**
32
+ Agents benefit from concise tool descriptions and the ability to filter/paginate results. Design tools that return focused, relevant data. Some clients support code execution which can help agents filter and process data efficiently.
33
+
34
+ **Actionable Error Messages:**
35
+ Error messages should guide agents toward solutions with specific suggestions and next steps.
36
+
37
+ #### 1.2 Study MCP Protocol Documentation
38
+
39
+ **Navigate the MCP specification:**
40
+
41
+ Start with the sitemap to find relevant pages: `https://modelcontextprotocol.io/sitemap.xml`
42
+
43
+ Then fetch specific pages with `.md` suffix for markdown format (e.g., `https://modelcontextprotocol.io/specification/draft.md`).
44
+
45
+ Key pages to review:
46
+ - Specification overview and architecture
47
+ - Transport mechanisms (streamable HTTP, stdio)
48
+ - Tool, resource, and prompt definitions
49
+
50
+ #### 1.3 Study Framework Documentation
51
+
52
+ **Recommended stack:**
53
+ - **Language**: TypeScript (high-quality SDK support and good compatibility in many execution environments e.g. MCPB. Plus AI models are good at generating TypeScript code, benefiting from its broad usage, static typing and good linting tools)
54
+ - **Transport**: Streamable HTTP for remote servers, using stateless JSON (simpler to scale and maintain, as opposed to stateful sessions and streaming responses). stdio for local servers.
55
+
56
+ **Load framework documentation:**
57
+
58
+ - **MCP Best Practices**: [📋 View Best Practices](./reference/mcp_best_practices.md) - Core guidelines
59
+
60
+ **For TypeScript (recommended):**
61
+ - **TypeScript SDK**: Use WebFetch to load `https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.md`
62
+ - [⚡ TypeScript Guide](./reference/node_mcp_server.md) - TypeScript patterns and examples
63
+
64
+ **For Python:**
65
+ - **Python SDK**: Use WebFetch to load `https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.md`
66
+ - [🐍 Python Guide](./reference/python_mcp_server.md) - Python patterns and examples
67
+
68
+ #### 1.4 Plan Your Implementation
69
+
70
+ **Understand the API:**
71
+ Review the service's API documentation to identify key endpoints, authentication requirements, and data models. Use web search and WebFetch as needed.
72
+
73
+ **Tool Selection:**
74
+ Prioritize comprehensive API coverage. List endpoints to implement, starting with the most common operations.
75
+
76
+ ---
77
+
78
+ ### Phase 2: Implementation
79
+
80
+ #### 2.1 Set Up Project Structure
81
+
82
+ See language-specific guides for project setup:
83
+ - [⚡ TypeScript Guide](./reference/node_mcp_server.md) - Project structure, package.json, tsconfig.json
84
+ - [🐍 Python Guide](./reference/python_mcp_server.md) - Module organization, dependencies
85
+
86
+ #### 2.2 Implement Core Infrastructure
87
+
88
+ Create shared utilities:
89
+ - API client with authentication
90
+ - Error handling helpers
91
+ - Response formatting (JSON/Markdown)
92
+ - Pagination support
93
+
94
+ #### 2.3 Implement Tools
95
+
96
+ For each tool:
97
+
98
+ **Input Schema:**
99
+ - Use Zod (TypeScript) or Pydantic (Python)
100
+ - Include constraints and clear descriptions
101
+ - Add examples in field descriptions
102
+
103
+ **Output Schema:**
104
+ - Define `outputSchema` where possible for structured data
105
+ - Use `structuredContent` in tool responses (TypeScript SDK feature)
106
+ - Helps clients understand and process tool outputs
107
+
108
+ **Tool Description:**
109
+ - Concise summary of functionality
110
+ - Parameter descriptions
111
+ - Return type schema
112
+
113
+ **Implementation:**
114
+ - Async/await for I/O operations
115
+ - Proper error handling with actionable messages
116
+ - Support pagination where applicable
117
+ - Return both text content and structured data when using modern SDKs
118
+
119
+ **Annotations:**
120
+ - `readOnlyHint`: true/false
121
+ - `destructiveHint`: true/false
122
+ - `idempotentHint`: true/false
123
+ - `openWorldHint`: true/false
124
+
125
+ ---
126
+
127
+ ### Phase 3: Review and Test
128
+
129
+ #### 3.1 Code Quality
130
+
131
+ Review for:
132
+ - No duplicated code (DRY principle)
133
+ - Consistent error handling
134
+ - Full type coverage
135
+ - Clear tool descriptions
136
+
137
+ #### 3.2 Build and Test
138
+
139
+ **TypeScript:**
140
+ - Run `npm run build` to verify compilation
141
+ - Test with MCP Inspector: `npx @modelcontextprotocol/inspector`
142
+
143
+ **Python:**
144
+ - Verify syntax: `python -m py_compile your_server.py`
145
+ - Test with MCP Inspector
146
+
147
+ See language-specific guides for detailed testing approaches and quality checklists.
148
+
149
+ ---
150
+
151
+ ### Phase 4: Create Evaluations
152
+
153
+ After implementing your MCP server, create comprehensive evaluations to test its effectiveness.
154
+
155
+ **Load [✅ Evaluation Guide](./reference/evaluation.md) for complete evaluation guidelines.**
156
+
157
+ #### 4.1 Understand Evaluation Purpose
158
+
159
+ Use evaluations to test whether LLMs can effectively use your MCP server to answer realistic, complex questions.
160
+
161
+ #### 4.2 Create 10 Evaluation Questions
162
+
163
+ To create effective evaluations, follow the process outlined in the evaluation guide:
164
+
165
+ 1. **Tool Inspection**: List available tools and understand their capabilities
166
+ 2. **Content Exploration**: Use READ-ONLY operations to explore available data
167
+ 3. **Question Generation**: Create 10 complex, realistic questions
168
+ 4. **Answer Verification**: Solve each question yourself to verify answers
169
+
170
+ #### 4.3 Evaluation Requirements
171
+
172
+ Ensure each question is:
173
+ - **Independent**: Not dependent on other questions
174
+ - **Read-only**: Only non-destructive operations required
175
+ - **Complex**: Requiring multiple tool calls and deep exploration
176
+ - **Realistic**: Based on real use cases humans would care about
177
+ - **Verifiable**: Single, clear answer that can be verified by string comparison
178
+ - **Stable**: Answer won't change over time
179
+
180
+ #### 4.4 Output Format
181
+
182
+ Create an XML file with this structure:
183
+
184
+ ```xml
185
+ <evaluation>
186
+ <qa_pair>
187
+ <question>Find discussions about AI model launches with animal codenames. One model needed a specific safety designation that uses the format ASL-X. What number X was being determined for the model named after a spotted wild cat?</question>
188
+ <answer>3</answer>
189
+ </qa_pair>
190
+ <!-- More qa_pairs... -->
191
+ </evaluation>
192
+ ```
193
+
194
+ ---
195
+
196
+ # Reference Files
197
+
198
+ ## 📚 Documentation Library
199
+
200
+ Load these resources as needed during development:
201
+
202
+ ### Core MCP Documentation (Load First)
203
+ - **MCP Protocol**: Start with sitemap at `https://modelcontextprotocol.io/sitemap.xml`, then fetch specific pages with `.md` suffix
204
+ - [📋 MCP Best Practices](./reference/mcp_best_practices.md) - Universal MCP guidelines including:
205
+ - Server and tool naming conventions
206
+ - Response format guidelines (JSON vs Markdown)
207
+ - Pagination best practices
208
+ - Transport selection (streamable HTTP vs stdio)
209
+ - Security and error handling standards
210
+
211
+ ### SDK Documentation (Load During Phase 1/2)
212
+ - **Python SDK**: Fetch from `https://raw.githubusercontent.com/modelcontextprotocol/python-sdk/main/README.md`
213
+ - **TypeScript SDK**: Fetch from `https://raw.githubusercontent.com/modelcontextprotocol/typescript-sdk/main/README.md`
214
+
215
+ ### Language-Specific Implementation Guides (Load During Phase 2)
216
+ - [🐍 Python Implementation Guide](./reference/python_mcp_server.md) - Complete Python/FastMCP guide with:
217
+ - Server initialization patterns
218
+ - Pydantic model examples
219
+ - Tool registration with `@mcp.tool`
220
+ - Complete working examples
221
+ - Quality checklist
222
+
223
+ - [⚡ TypeScript Implementation Guide](./reference/node_mcp_server.md) - Complete TypeScript guide with:
224
+ - Project structure
225
+ - Zod schema patterns
226
+ - Tool registration with `server.registerTool`
227
+ - Complete working examples
228
+ - Quality checklist
229
+
230
+ ### Evaluation Guide (Load During Phase 4)
231
+ - [✅ Evaluation Guide](./reference/evaluation.md) - Complete evaluation creation guide with:
232
+ - Question creation guidelines
233
+ - Answer verification strategies
234
+ - XML format specifications
235
+ - Example questions and answers
236
+ - Running an evaluation with the provided scripts
@@ -0,0 +1,83 @@
1
+ #!/bin/bash
2
+ # Quality Gate - Run All Checks
3
+ # Usage: bash .claude/skills/quality-gate/scripts/check-all.sh
4
+
5
+ set -e
6
+
7
+ echo "========================================"
8
+ echo " QUALITY GATE - ALL CHECKS"
9
+ echo "========================================"
10
+ echo ""
11
+
12
+ # Colors
13
+ RED='\033[0;31m'
14
+ GREEN='\033[0;32m'
15
+ YELLOW='\033[1;33m'
16
+ NC='\033[0m' # No Color
17
+
18
+ FAILED=0
19
+
20
+ # 1. TypeCheck
21
+ echo "1/5 Running TypeCheck..."
22
+ if bun run typecheck 2>&1; then
23
+ echo -e "${GREEN}✓ TypeCheck passed${NC}"
24
+ else
25
+ echo -e "${RED}✗ TypeCheck failed${NC}"
26
+ FAILED=1
27
+ fi
28
+ echo ""
29
+
30
+ # 2. Lint
31
+ echo "2/5 Running Lint..."
32
+ if bun run lint 2>&1; then
33
+ echo -e "${GREEN}✓ Lint passed${NC}"
34
+ else
35
+ echo -e "${RED}✗ Lint failed${NC}"
36
+ FAILED=1
37
+ fi
38
+ echo ""
39
+
40
+ # 3. Unit Tests
41
+ echo "3/5 Running Unit Tests..."
42
+ if bun run test 2>&1; then
43
+ echo -e "${GREEN}✓ Unit tests passed${NC}"
44
+ else
45
+ echo -e "${RED}✗ Unit tests failed${NC}"
46
+ FAILED=1
47
+ fi
48
+ echo ""
49
+
50
+ # 4. E2E Tests (optional - check if exists)
51
+ echo "4/5 Running E2E Tests..."
52
+ if [ -f "playwright.config.ts" ]; then
53
+ if bun run test:e2e 2>&1; then
54
+ echo -e "${GREEN}✓ E2E tests passed${NC}"
55
+ else
56
+ echo -e "${YELLOW}⚠ E2E tests failed (non-blocking)${NC}"
57
+ fi
58
+ else
59
+ echo -e "${YELLOW}⚠ E2E tests skipped (no playwright config)${NC}"
60
+ fi
61
+ echo ""
62
+
63
+ # 5. Build
64
+ echo "5/5 Running Build..."
65
+ if bun run build 2>&1; then
66
+ echo -e "${GREEN}✓ Build passed${NC}"
67
+ else
68
+ echo -e "${RED}✗ Build failed${NC}"
69
+ FAILED=1
70
+ fi
71
+ echo ""
72
+
73
+ # Summary
74
+ echo "========================================"
75
+ echo " SUMMARY"
76
+ echo "========================================"
77
+ if [ $FAILED -eq 0 ]; then
78
+ echo -e "${GREEN}All quality gates passed!${NC}"
79
+ exit 0
80
+ else
81
+ echo -e "${RED}Some quality gates failed!${NC}"
82
+ exit 1
83
+ fi