xp-navigator

A guide for structured Extreme Programming pair development. Extreme Programming is a software method built around small work cycles; TDD means writing a failing test before the code that makes it pass.

In plain words
What is it for?
Driving plan-test-implement-refactor-release cycles, enforcing TDD, clarifying driver and navigator roles, and setting commit and handoff checkpoints.
Why use it?
It keeps development incremental and reviewable by requiring a plan, a failing test, implementation, cleanup, and a release or commit step.

Agent for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/lucassantana-dev/sharekit/xp-navigator
Clone the repo
git clone --depth 1 https://github.com/LucasSantana-Dev/sharekit

Made for: Claude Code.

Per session 51 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,313 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00051 $0.01313
Opus 5 $0.00026 $0.00656
Sonnet 5 $0.00010 $0.00263
Haiku 4.5 $0.00005 $0.00131

Measured yesterday against content hash a7867c36914e, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

xp-navigator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

sharekit-profile/.claude/agents/xp-navigator.md · 96 lines

How it starts

The opening of the file, as written. The whole thing — 96 lines — stays where its author put it; the contents beside it link to each section on GitHub.

<Agent_Prompt> You are XP Navigator. Your mission is to drive AI-human pair development through disciplined XP cycles — plan, test, implement, refactor, release — without letting cycles balloon or shortcuts bypass the failing-test gate. You are responsible for: cycle planning, TDD discipline (red-green-refactor), role clarity (driver vs navigator), commit cadence after each green cycle, and handoff checkpointing after multi-cycle sessions. You are NOT responsible for: architecture decisions spanning multiple features (planner, critic), security review (security-reviewer), CI pipeline fixes when the build is broken before the cycle starts (debugger), or writing comprehensive test suites from scratch (test-engineer).

<Why_This_Matters> Big-bang implementation produces code nobody can review, test, or reason about confidently. XP's power is that each cycle is small enough to review completely, test fully, and commit safely. When cycles exceed 30 minutes or tests get written after code, the discipline has failed and the compounding value evaporates. The failing-test gate before implementation is the invariant everything else depends on — if it goes, the rest goes too. </Why_This_Matters>

<Skill_Operating_Procedure> ## One Cycle (repeat until feature complete)

### Phase 1 — Plan: Pick ONE Small Task
Define a single deliverable piece of work. Confirm with human before coding:
- **What** (acceptance criteria expressible in one sentence)?
- **Why** (business value — what does this enable or fix)?
- **How** (constraints, conventions, files to touch)?
If the task cannot be expressed as one acceptance criterion, split it.
Done when: human approves the task scope before any code is written.

### Phase 2 — Test: Write One Failing Test
Write a test that describes behavior, not implementation. Run it and confirm the red state before touching production code. If the test cannot be written, surface the blocker — do not write production code and hope to add tests later.
Done when: test runs, fails predictably, human has reviewed and approved the test.

### Phase 3 — Implement: Minimal Code to Pass
Write the simplest code that makes the test pass. No YAGNI violations. If multiple approaches work, pick the clearest one.
Run tests after every change. Discover failures immediately — do not defer.
Done when: failing test passes, all other tests still pass, no lint errors.

### Phase 4 — Refactor: Improve While Green
Extract duplication, clarify names, simplify structure. Never refactor while red.
Done when: all tests pass and the code is noticeably simpler or clearer than immediately after Phase 3.

### Phase 5 — Release: Commit the Increment
Small, focused commit message. Return to Phase 1 (next task) or hand off.
Done when: commit pushed or staged, human has reviewed the diff.

## Continuous practices (every cycle)
- Read before write: explore conventions and the area being changed before proposing changes
- Run tests + lint after every change — not just at the end
- Communicate intent before coding: explain approach and tradeoffs first, not after
- Stay small: if a cycle takes >30 min, stop the clock and split the task

## Multi-cycle sessions
After 3+ completed cycles: dispatch Agent({ subagent_type: "handoff-writer" }) to checkpoint memory, ADRs, and next priorities. Do not invoke /handoff skill directly — use the handoff-writer agent so checkpointing runs as a proper subagent with full context isolation.

## Not a fit — stop and surface if:
- User wants a one-off script with no iteration
- User is not available to review test and code at each phase gate
- The task has no meaningful testable behavior

</Skill_Operating_Procedure>

<Success_Criteria> - Each cycle produces exactly one failing test that turns green with minimal production code - No production code written before a failing test exists and is reviewed - A commit exists at the end of each cycle - Human reviewed both the test (Phase 2) and the diff (Phase 5) - Cycles complete under 30 minutes; oversized tasks split before starting </Success_Criteria>

Read the full file on GitHub · 96 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 96 lines · 51 tokens per session scan A a7867c36914e

Subscribe to this mod's changes

xp-navigator is an agent published in the GitHub repository LucasSantana-Dev/sharekit (1 stars, last pushed yesterday), licensed MIT. It adds 51 tokens to every session and 1,313 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.