aiyu-multi-agent / skills
Cursor rule8 starsChanged 7 months agoApache-2.0View on GitHub
MCP (Model Context Protocol) server building principles. Tool design, resource patterns, best practices.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 4,371 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository139 other files it gives its agents.
- .cursor/rules/00-project-overview.mdcCursor rule
- .cursor/rules/01-gemini-protocol.mdcCursor rule
- .cursor/rules/agents/accessibility-specialist.mdcCursor rule
- .cursor/rules/agents/angular-developer.mdcCursor rule
- .cursor/rules/agents/backend-orchestrator.mdcCursor rule
- .cursor/rules/agents/backend-specialist.mdcCursor rule
- .cursor/rules/agents/business-logic-developer.mdcCursor rule
- .cursor/rules/agents/bypass-specialist.mdcCursor rule
- .cursor/rules/agents/chief-machine-engineer.mdcCursor rule
- .cursor/rules/agents/cli.mdcCursor rule
- .cursor/rules/agents/cloud-architect.mdcCursor rule
- .cursor/rules/agents/code-archaeologist.mdcCursor rule
- .cursor/rules/agents/compliance-officer.mdcCursor rule
- .cursor/rules/agents/creative-technologist.mdcCursor rule
- .cursor/rules/agents/database-architect.mdcCursor rule
- .cursor/rules/agents/data-layer-developer.mdcCursor rule
- .cursor/rules/agents/data-scientist.mdcCursor rule
- .cursor/rules/agents/debugger.mdcCursor rule
- .cursor/rules/agents/delphi-developer.mdcCursor rule
- .cursor/rules/agents/design-system-architect.mdcCursor rule
- .cursor/rules/agents/devops-engineer.mdcCursor rule
- .cursor/rules/agents/docker-developer.mdcCursor rule
- .cursor/rules/agents/documentation-writer.mdcCursor rule
- .cursor/rules/agents/electric-specialist.mdcCursor rule
- .cursor/rules/agents/elite-orchestrator.mdcCursor rule
- .cursor/rules/agents/elite-tech-leader.mdcCursor rule
- .cursor/rules/agents/ethical-hacker.mdcCursor rule
- .cursor/rules/agents/explorer-agent.mdcCursor rule
- .cursor/rules/agents/express-developer.mdcCursor rule
- .cursor/rules/agents/finops-analyst.mdcCursor rule
- .cursor/rules/agents/frontend-orchestrator.mdcCursor rule
- .cursor/rules/agents/frontend-specialist.mdcCursor rule
- .cursor/rules/agents/fullstack-developer.mdcCursor rule
- .cursor/rules/agents/game-developer.mdcCursor rule
- .cursor/rules/agents/go-developer.mdcCursor rule
- .cursor/rules/agents/hard-negative-tester.mdcCursor rule
- .cursor/rules/agents/html5-css-developer.mdcCursor rule
- .cursor/rules/agents/i18n-specialist.mdcCursor rule
- .cursor/rules/agents/incident-responder.mdcCursor rule
- .cursor/rules/agents/iot-specialist.mdcCursor rule
- .cursor/rules/agents/junior-orchestrator.mdcCursor rule
- .cursor/rules/agents/kali-copilot.mdcCursor rule
- .cursor/rules/agents/linux-administrator.mdcCursor rule
- .cursor/rules/agents/load-balancer-specialist.mdcCursor rule
- .cursor/rules/agents/math-specialist.mdcCursor rule
- .cursor/rules/agents/mechatronic-specialist.mdcCursor rule
- .cursor/rules/agents/migration-specialist.mdcCursor rule
- .cursor/rules/agents/mobile-developer.mdcCursor rule
- .cursor/rules/agents/n8n-automation.mdcCursor rule
- .cursor/rules/agents/network-engineer.mdcCursor rule
- .cursor/rules/agents/nextjs-developer.mdcCursor rule
- .cursor/rules/agents/nodejs-nest-developer.mdcCursor rule
- .cursor/rules/agents/orchestrator.mdcCursor rule
- .cursor/rules/agents/package-finder.mdcCursor rule
- .cursor/rules/agents/penetration-tester.mdcCursor rule
- .cursor/rules/agents/pentest-planner.mdcCursor rule
- .cursor/rules/agents/performance-optimizer.mdcCursor rule
- .cursor/rules/agents/php-developer.mdcCursor rule
- .cursor/rules/agents/platform-engineer.mdcCursor rule
- .cursor/rules/agents/plc-specialist.mdcCursor rule
- The first 60 shown.
The file
We split this mcp-builder.mdc into the rules it gives an agent
2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 109
Don't expose internal details
- Distinctive: line 138
Don't log secrets
≈ “Common” is an estimate: at least 1 in 5 of the 7,324 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
---
description: "MCP (Model Context Protocol) server building principles. Tool design, resource patterns, best practices."
alwaysApply: false
---
# Skill: mcp-builder
> **Cursor Agent-Requested Rule** — applied when AI determines relevance.
---
# MCP Builder
> Principles for building MCP servers.
---
## 1. MCP Overview
### What is MCP?
Model Context Protocol - standard for connecting AI systems with external tools and data sources.
### Core Concepts
| Concept | Purpose |
|---------|---------|
| **Tools** | Functions AI can call |
| **Resources** | Data AI can read |
| **Prompts** | Pre-defined prompt templates |
---
## 2. Server Architecture
### Project Structure
```
my-mcp-server/
├── src/
│ └── index.ts # Main entry
├── package.json
└── tsconfig.json
```
### Transport Types
| Type | Use |
|------|-----|
| **Stdio** | Local, CLI-based |
| **SSE** | Web-based, streaming |
| **WebSocket** | Real-time, bidirectional |
---
## 3. Tool Design Principles
### Good Tool Design
| Principle | Description |
|-----------|-------------|
| Clear name | Action-oriented (get_weather, create_user) |
| Single purpose | One thing well |
| Validated input | Schema with types and descriptions |
| Structured output | Predictable response format |
### Input Schema Design
| Field | Required? |
|-------|-----------|
| Type | Yes - object |
| Properties | Define each param |
| Required | List mandatory params |
| Description | Human-readable |
---
## 4. Resource Patterns
### Resource Types
| Type | Use |
|------|-----|
| Static | Fixed data (config, docs) |
| Dynamic | Generated on request |
| Template | URI with parameters |
### URI Patterns
| Pattern | Example |
|---------|---------|
| Fixed | `docs://readme` |
| Parameterized | `users://{userId}` |
| Collection | `files://project/*` |
---
## 5. Error Handling
### Error Types
| Situation | Response |
|-----------|----------|
| Invalid params | Validation error message |
| Not found | Clear "not found" |
| Server error | Generic error, log details |
### Best Practices
- Return structured errors
- Don't expose internal details
- Log for debugging
- Provide actionable messages
---
## 6. Multimodal Handling
### Supported Types
| Type | Encoding |
|------|----------|
| Text | Plain text |
| Images | Base64 + MIME type |
| Files | Base64 + MIME type |
---
## 7. Security Principles
### Input Validation
- Validate all tool inputs
- Sanitize user-provided data
- Limit resource access
### API Keys
- Use environment variables
- Don't log secrets
- Validate permissions
---
## 8. Configuration
### Claude Desktop Config
| Field | Purpose |
|-------|---------|
| command | Executable to run |
| args | Command arguments |
| env | Environment variables |
---
## 9. Testing
### Test Categories
| Type | Focus |
|------|-------|
| Unit | Tool logic |
| Integration | Full server |
| Contract | Schema validation |
---
## 10. Best Practices Checklist
- [ ] Clear, action-oriented tool names
- [ ] Complete input schemas with descriptions
- [ ] Structured JSON output
- [ ] Error handling for all cases
- [ ] Input validation
- [ ] Environment-based configuration
- [ ] Logging for debugging
---
> **Remember:** MCP tools should be simple, focused, and well-documented. The AI relies on descriptions to use them correctly.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

