Tailor

Tailor

Unified AI coding-agent framework combining Spec-Driven Development (SDD), AST semantic code reuse, and progressive project memory (.ai/) for Claude Code, Cursor, Windsurf, and Zed.

Category
访问服务器

README

<div align="center">

TAILOR

<img src="./assets/tailor-mascot.jpg" alt="Tailor - Reuse-First AI Engineering" width="800" style="border-radius: 8px; margin: 16px 0;" />

Make the code fit the project — with zero waste.

The Unified AI Coding-Agent Engineering Framework
Combining Spec-Driven Development (SDD), Adaptive Pragmatism (Lite/Full/Ultra), Progressive Project Memory (.ai/), AST Semantic Code Reuse, and a Native Model Context Protocol (MCP) Server for Claude Code, Cursor, Codex, Gemini CLI / Antigravity, Windsurf, Roo Code / Cline, GitHub Copilot CLI, and Zed.

Created by Aman Katiyar (@AmanKtyr).

License: MIT Node: >=18 TypeScript: Strict Tests: Vitest Benchmarks: 100% MCP: Supported


</div>

Overview & Objectives

AI coding assistants frequently encounter two distinct failure modes:

  1. Unstructured Generation ("Vibe Coding"): Agents generate code from loose prompts, introducing redundant dependencies, duplicate components, and unvetted architectural changes.
  2. Extreme Laziness without Specifications: Agents produce abbreviated implementations without documented requirements, contracts, or architectural constraints.

Tailor unifies these requirements into a disciplined, multi-agent engineering framework:

  • Spec-Driven Development (SDD): Transforms user intent into formal feature specifications (spec.md), technical plans (plan.md), and granular checklists (tasks.md), governed by a Project Constitution (.ai/CONSTITUTION.md).
  • Adaptive Pragmatism Ladder: Enforces the 7-step decision ladder (YAGNI -> Existing Code -> Stdlib -> Native API -> Installed Dep -> One-liner -> Minimal Code) with configurable intensity levels (lite, balanced, ultra, strict).
  • Progressive Project Memory (.ai/): Self-healing, compact domain memory reducing LLM context token overhead by up to 80% with live drift repair.
  • AST Semantic Code Reuse: Deterministically indexes workspace components, hooks, and utilities to inject reuse audits prior to code generation.
  • Native MCP Server: Connects directly to Claude Desktop, Cursor, Zed, Windsurf, and Antigravity via standard JSON-RPC.

Comparison Matrix

Capability / Dimension GitHub spec-kit (Specify) DietrichGebert ponytail Tailor 2.0 (Unified)
Core Paradigm Spec-Driven Development (SDD) Pragmatism & LOC reduction Unified Framework: SDD + Pragmatism + Memory + Reuse + MCP
CLI & Runtime Python (uv tool install specify-cli) Prompt-only (no executable CLI) Zero-Config Node/TypeScript CLI (npx @amanktyr/tailor)
Project Constitution .specify/memory/constitution.md Hardcoded prompt rule .ai/CONSTITUTION.md + .ai/INDEX.md + Live ADRs
Pre-Execution Reuse Audit None (causes duplicated code) Text rule only AST scan automatically injects existing components into plan.md
Pragmatism Intensity None (tends to generate bloat) lite, full, ultra lite, balanced, ultra, strict embedded everywhere
Native MCP Server None None Built-in JSON-RPC 2.0 Server (tailor mcp / tailor-mcp)
Live Drift Detection None None Continuous AST scanner auto-repairs stale project memory
Multi-Agent Adapters 4 platforms 5 platforms 10+ Platforms (Claude, Cursor, Codex, Gemini, Windsurf, Cline, Copilot, Zed)
Open Source Standards Standard GitHub HN/Reddit buzz NPM CLI, Skills standard, MCP protocol, and CI workflows

Quick Start & Installation

Tailor can be utilized via the universal Agent Skills standard, as a Global / Local CLI, or as a Model Context Protocol (MCP) Server.

1. Universal Agent Installation (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 -y

2. NPM CLI Installation

# Install globally
npm install -g @amanktyr/tailor

# Or run directly via npx without installation:
npx @amanktyr/tailor init

3. Model Context Protocol (MCP) Server Setup

Add Tailor to your claude_desktop_config.json or Cursor MCP settings:

{
  "mcpServers": {
    "tailor": {
      "command": "npx",
      "args": ["-y", "@amanktyr/tailor", "mcp"]
    }
  }
}

CLI Command Reference

# 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) server

The 7-Step Pragmatism Ladder

Before writing any new implementation or adding dependencies, AI agents follow this mandatory sequence:

┌────────────────────────────────────────────────────────┐
│ 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.       │
└────────────────────────────────────────────────────────┘

Universal Multi-Agent Support (10+ Platforms)

AI Platform Integration File Description
Claude Code CLAUDE.md Loads .ai/CONSTITUTION.md and enforces Reuse-First rules
Cursor IDE .cursorrules & .cursor/rules/tailor.mdc Guides Cursor Composer & Chat with project memory
OpenAI Codex / ChatGPT AGENTS.md Resolved automatically from .agents/skills/
Gemini CLI / Antigravity GEMINI.md & workspace integration Discovers skills directly in workspace root
Windsurf .windsurfrules Native discovery via standard rules file
Roo Code / Cline .clinerules Enforces project constitution during task execution
GitHub Copilot CLI .github/copilot-instructions.md Native instructions for Copilot workspace chat
OpenCode .opencode/rules/tailor.md Open-source agent integration rules
Aider .aider.conventions.md Terminal pair programming conventions
Zed Editor .zed/prompt.md Custom instructions for Zed AI assistant

Run tailor sync at any time to update all adapter files simultaneously.


Benchmarks & Measurable Results

Tailor includes an automated benchmark suite (benchmarks/scripts/run-benchmarks.js) running across 5 real fixture codebases:

  • 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, legacy dependencies, leaked secrets, eval)

Benchmark Performance:

  • Project Signal Detection: 100% accurate across Next.js, Django, React, ASP.NET Core, and Express.
  • Semantic Reuse Matching: 100% match for user requests (modal -> existing Dialog, fetchUser -> getUser).
  • Dependency Governance: 100% rejection of trivial micro-packages (is-odd, left-pad) and challenge on redundant libraries (axios).
  • Security Defenses: 100% detection of hardcoded AWS credentials, SQL string concatenation, and dangerous eval().
  • Token & LOC Reduction: 40-70% reduction in generated code volume and context token consumption.

Privacy & Security

  • Local & Deterministic Execution: Zero telemetry, no hidden remote logging, and no source code transmission.
  • Non-destructive Defaults: Never silently overwrites or deletes unrelated files.

Contributing & Development

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

License

MIT © Aman Katiyar & Tailor Contributors

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选