Tailor
TAILOR
让代码贴合项目——零浪费。
统一的 AI 编码代理工程框架
结合 规格驱动开发(SDD)、自适应实用主义(Lite/Full/Ultra)、渐进式项目记忆(.ai/)、AST 语义代码复用,以及面向 Claude Code、Windsurf、Roo Code / Cline、GitHub Copilot CLI、Zed、Cursor、Codex、Gemini CLI / Antigravity 的原生模型上下文协议(MCP)服务器。
由 Aman Katyar (@AmanKtyr) 创建。
概览与目标
AI 编码助手频繁遭遇两种截然不同的失败模式:
无结构生成(“Vibe Coding”): 代理从松散的提示词中生成代码,引入冗余依赖、脆弱组件以及未经验证的架构变更。
无规格的极端懒惰: 代理生成简化实现,而没有记录需求、约定或架构约束。
Tailor 将这些需求统一为一个纪律严明的多代理工程框架:
规格驱动开发(SDD): 将用户意图转化为形式化的功能规格(
spec.md)、技术方案(plan.md)和分步清单(tasks.md),并由 项目宪法(.ai/CONSTITUTION.md)进行约束。自适应实用主义阶梯: 强制执行 7步决策阶梯(YAGNI -> 现有代码 -> 标准库 -> 原生 API -> 已安装依赖 -> 单行完成 -> 最少代码),并提供可配置的强度级别(
lite、balanced、ultra、strict)。渐进式项目记忆(
.ai/): 自修复、简洁的领域记忆,通过实时漂移修复,将 LLM 上下文 token 开销减少高达 80%。AST 语义代码用: 按确定性索引工作区组件、hooks 和工具,在代码生成之前注入复用审计。
原生 MCP 服务器: 通过标准 JSON-RPC 直接连接 Claude Desktop、Cursor、Zed、Windsurf 和 Antigravity。
Related MCP server: memorix
对比矩阵
| 能力 / 维度 | GitHub spec-kit(Specify) | DietrichGebert ponytail | Tailor 2.0(统一) |
|:--- |:--- |:--- |
|核心范式 | Spec-Driven Development(SDD) | Pragmatism & LOC 削减 | 统一框架:SDD + Applicatism + Hannibal + Reuse + MCP |
| CLI 与运行时 | Python(uv 安装 specify-cli) | 仅提示词(无可执行 CLI) | 零配置 Node/TypeScript CLI(npx @amanktyr/tailor) |
| 项目规范 | .specify/memory/constitution.md | 硬编码提示规则 | .ai/CONSTITUTION.md + .ai/INDEX.md + 实时 ADRs |
| 执行前复用审计 | 无(造成代码重复) | 仅文本规则 | AST 扫描自动将现有组件注入 plan.md |
| 实用主义强度 | 无(易产生冗余) | lite, full,ultra | lite,balanced,ultra,strict 一切 |
| 原生 MCP 服务器 | 无 | 无 | 内建 JSON-RPC 2.0 服务器(tailor mcp / tailor-mcp) |
| 实时漂移检测 | 无 | 无 | 持续 AST 扫描器自动修复过期的项目记忆 |
| 多代理适配器 | 4 个平台 | 5 个平台 | 10+ 平台(Claude、Cursor、Codex、Gemini、Windsurf、Cline、Copilot、Zed) |
| 开源标准 | 标准 GitHub 工作流 | HN/Reddit 传播 | NPM CLI、Skills 标准、MCP 协议及 CI 工作流 |
快速开始与安装
Tailor 可以通过通用Agent Skills 标准、全局 / 本地 CLI或模型上下文协议(MCP)服务器的方式使用。
1. 通用代理安装(skills CLI)
# Install Tailor across all AI coding assistants in your workspace
npx skills add AmanKtyr/Tailor -y
# Or install globally across your machine (-g)
npx skills add AmanKtyr/Tailor -g -y2. NPM CLI 安装
# Install globally
npm install -g @amanktyr/tailor
# Or run directly via npx without installation:
npx @amanktyr/tailor init3. 模型上下文协议(MCP)服务器设置
将 Tailor 添加到你的 claude_desktop_config.json 或 Cursor 的 MCP 设置中:
{
"mcpServers": {
"tailor": {
"command": "npx",
"args": ["-y", "@amanktyr/tailor", "mcp"]
}
}
}CLI 命令参考
# Project Governance & Initialization
tailor init # Conduct discovery, stack selection, and initialize .ai/
tailor constitution # View or regenerate .ai/CONSTITUTION.md
tailor sync # Synchronize all 10+ AI agent adapter files
# Spec-Driven Development (SDD) Workflow
tailor spec init # Initialize specs/ directory and constitution
tailor spec new <feature-name> # Scaffold specs/<id>-<name>/spec.md with user stories
tailor spec plan <id> # Generate reuse-aware technical plan (plan.md)
tailor spec tasks <id> # Generate granular, ordered task checklist (tasks.md)
tailor spec list # View all active feature specs and completion status
# Intelligence, Memory & Security
tailor analyze # Deterministically inspect stack, frameworks, and reusable catalog
tailor memory update # Synchronize .ai/ progressive memory documents
tailor memory drift # Detect drift between active code and recorded memory
tailor security # Run static security rules and credential leak checks
tailor dependencies --check <pkg> # Evaluate package for bloat, redundancy, and licenses
tailor review # Run holistic quality, architecture, and security gates
tailor doctor # Run full system, git, memory, and skill diagnostics
tailor mcp # Start stdio Model Context Protocol (MCP) server7 步实用主义阶梯
在编写任何新的实现或添加依赖之前,AI 代理必须遵循这一强制顺序:
┌────────────────────────────────────────────────────────┐
│ 1. Does this need to exist? (YAGNI) │
│ -> Reject speculative complexity or future-proofing.│
├────────────────────────────────────────────────────────┤
│ 2. Already in this codebase? │
│ -> Search src/components/, src/lib/, src/utils/. │
├────────────────────────────────────────────────────────┤
│ 3. Does the Standard Library do it? │
│ -> Use crypto.randomUUID(), structuredClone(), etc. │
├────────────────────────────────────────────────────────┤
│ 4. Does a Native Platform / Browser API cover it? │
│ -> Use <dialog>, <input type="date">, fetch(). │
├────────────────────────────────────────────────────────┤
│ 5. Does an already-installed dependency solve it? │
│ -> Reuse existing packages in package.json. │
├────────────────────────────────────────────────────────┤
│ 6. Can it be written as a one-liner / inline helper? │
│ -> Avoid creating 50-line wrappers for simple logic.│
├────────────────────────────────────────────────────────┤
│ 7. Only then: Write the minimum amount of clean code. │
│ -> Clean domain boundaries, types, and tests. │
└────────────────────────────────────────────────────────┘通用多代理支持(10+ 平台)
AI 平台 | 集成文件 | 说明 |
Claude Code |
| 加载 |
Cursor IDE |
| 用项目记忆引导 Cursor Composer 与 Chat |
OpenAI Codex / ChatGPT |
| 自动从 |
Gemini CLI / Antigravity |
| 直接在工作区根目录中发现技能 |
Windsurf |
| 通过标准规则文件进行本地发现 |
Roo Code / Cline |
| 在任务执行期间强制执行项目规范 |
GitHub Copilot CLI |
| Copilot 工作区聊天的原生指令 |
OpenCode |
| 开源的代理集成规则 |
Aider |
| 终端结对编程约定 |
Zed Editor |
| Zed AI 助手的自定义指令 |
随时运行 tailor sync 即可同时更新所有适配器文件。
基准测试与量化结果
Tailor 提供了自动化基准测试套件(benchmarks/scripts/run-benchmarks.js),运行在 5 个真实代码库上:
nextjs-app(Next.js 14、React 18、Tailwind CSS、Vitest)django-app(Django 4.2、PostgreSQL、DRF、Pytest)react-app(React、Vite)dotnet-api(ASP.NET Core、C# .NET 8)messy-monolith(Express、遗留依赖、泄露的密钥、eval)
**Benchmark 性能:
项目信号检测: 在 Next.js、Django、React、ASP.NET Core 和 Express 上 100% 准确。
语义复用于匹配: 对用户请求(
modal-> 现有Dialog、fetchUser->getUser)匹配度 100%。依赖治理: 100% 拒绝微小的无意义包(
is-odd、left-pad)拒绝小的无意义包,并对冗余库(axios)提出质疑。安全防御: 100% 检测硬编码的 AWS 凭证、SQL 字符串拼接和危险的
eval()。Token 与 LOC 降低: 生成的代码量与上下文 token 消耗降低 40-70%。
隐私与安全
本地与确定性执行: 零遥测、无隐藏的远程日志记录、无源代码传输。
非破坏性默认规则: 绝不静默覆盖或删除无关文件。
贡献与开发
git clone https://github.com/AmanKtyr/Tailor.git
cd Tailor
npm install
npm run build
npm test
npm run benchmark
node dist/cli/bin.js doctor许可证
MIT © Aman Katiyar 与 Tailor 贡献者所有。
This server cannot be installed
Maintenance
Related MCP Servers
- AlicenseAqualityAmaintenanceA fully featured coding agent that uses symbolic operations (enabled by language servers) and works well even in large code bases. Essentially a free to use alternative to Cursor and Windsurf Agents, Cline, Roo Code and others.2928,339MIT
- AlicenseAqualityAmaintenanceCross-agent memory bridge for AI coding assistants. Persistent knowledge graph shared across 10 IDEs (Cursor, Windsurf, Claude Code, Codex, Copilot, Kiro, Antigravity, OpenCode, Trae, Gemini CLI) via MCP. 22 tools including team collaboration, auto-cleanup, mini-skills, session management, and workspace sync. 100% local, zero API keys required.91,029693Apache 2.0

MatterAI MCP Serverofficial
AlicenseNot gradedqualityCmaintenanceEnables code reviews, implementation planning, and pull request generation for AI agents in IDEs like Cursor and Windsurf.1MIT- AlicenseNot gradedqualityBmaintenanceLocal-first memory, pipelines, learning, feedback, and safe code tools for AI coding agents.MIT
Related MCP Connectors
Cross-agent artifact workspace with provenance across Claude Code, Codex, Cursor, LangGraph.
The project brain for AI coding agents — memory, decisions, sprints, knowledge base via MCP.
Adaptive plan/build/review cycles for AI coding assistants, persisted across sessions.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/AmanKtyr/Tailor'
If you have feedback or need assistance with the MCP directory API, please join our Discord server