xp
БесплатноБез исполняемых скриптовНе проверенExtreme Programming adapted for AI-human pair development. Use when the user says "/xp", "follow XP", "pair with me", mentions agile/YAGNI/TDD/simple-design…
от mswell★ 74 звезды на GitHubОб этом скилле
XP — Extreme Programming with AI Agents
When activating this skill, also read the reference files:
read /home/mswell/.pi/agent/skills/xp/references/practices.md read /home/mswell/.pi/agent/skills/xp/references/roles.md
practices.md— the 12 XP practices adapted for AI.roles.md— Driver/Navigator roles and pairing anti-patterns.
Quick Reference
CYCLE: Plan → RED test → GREEN impl → Refactor → Commit + Tag
RULE: 1 cycle at a time. Pause for human review before the next one.
TOOLS: bash(scout) → edit(impl) → bash(tests) → context_tag → harness
YAGNI: build only what the test requires. Delete dead code. No "just in case" work.
When to Use
Activate when:
- The user says
/xp, "follow XP", "let's do XP", "pair with me" - The user mentions agile, YAGNI, simple design, continuous refactoring, or TDD
- The user wants to build a feature incrementally with tests and feedback loops
- The user wants a clear human-AI role split during development
Do not activate when:
- It is a one-off 3-line fix with no tests (use
diagnoseor solve it directly) - The user is exploring without commitment (use the
prototypeskill) - The user explicitly asked to skip ceremony and only wants the code
Philosophy
Extreme Programming takes good software engineering practices and pushes them to the extreme. Code reviews become continuous (pair programming). Tests become relentless (TDD). Design improvement becomes constant (refactoring). Planning becomes frequent (small releases).
With AI agents, XP evolves even further. The AI does not get tired, does not lose focus, and can review every line of code as it is written. But the human brings judgment, domain knowledge, and the ability to say "no." The pair — human + AI — is more powerful than either one alone, but only when they work together with clear roles and shared values.
This skill is the methodology that governs how you and your AI agent collaborate. It is not a tool or framework — it is a discipline.
The Five Values
These are the foundation. Every practice and every workflow decision traces back to these.
Communication
- Share context explicitly. The AI doesn't have your mental model. Describe what you're building, why, and what "done" looks like before starting.
- Read before writing. Always understand the existing codebase before proposing changes.
- Ask, don't assume. When requirements are unclear, ask the human. A 30-second question saves a 30-minute wrong implementation.
- Explain your reasoning. When the AI makes a decision, it should articulate why — not just what.
Simplicity
The YAGNI principle — You Aren't Gonna Need It.
- Build only what's needed today. Don't add "flexibility" for a future that may never come.
- One test, one implementation. Each cycle should be the smallest possible unit of progress.
- Delete code fearlessly. If something isn't used, remove it.
- Simplest thing that works. Before proposing a clever solution, ask: does a straightforward approach work?
Feedback
Kent Beck said: "Optimism is an occupational hazard of programming. Feedback is the treatment."
- Run tests and lint after every change. No exceptions.
- Show, don't tell. When the AI completes a task, the human should see the result — run the code, show the output.
- Fast feedback loops. Keep each cycle short enough that the human can review and redirect within minutes.
- Verify assumptions. If the AI is unsure about a library API or convention, check it — don't guess.
Courage
- Refactor without fear. The AI can refactor large sections while tests confirm correctness.
- Throw away bad code. If a direction isn't working, delete it and start over.
- Try experiments. The AI can prototype three approaches in the time it takes a human to try one.
- Push back. If the human's request would lead to a bad design, the AI should say so — respectfully, with reasoning.
Respect
- Follow project conventions. Read existing code, match its style, use its patterns.
- Understand before changing. Never modify code you haven't read.
- Respect the human's time. Don't generate walls of code without explanation. Don't commit without permission.
- Preserve intent. When refactoring, behavior must stay the same.
Workflow
1. Plan — Define One Small Task
Pick the smallest possible piece of work that delivers value:
Bad: "Add authentication"
Good: "Add a login endpoint that accepts email+password and returns a JWT"
Before starting, confirm with the human:
- What does "done" look like?
- Which behaviors matter most?
- Are there constraints or conventions to follow?
2. Test — Write One Test
Write a single test that describes the expected behavior. The test should fail — this confirms you're testing the right thing.
RED: Write one test → test fails
If the project does not have a test framework yet:
- Identi
Установить xp в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл xp?
Extreme Programming adapted for AI-human pair development. Use when the user says "/xp", "follow XP", "pair with me", mentions agile/YAGNI/TDD/simple-design, or wants to build features incrementally with feedback loops and clear human-AI roles.
Как установить скилл xp?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл xp запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic