feature · git:20260907.8b98b2c · 2026-09-07 · sha256 93da47bcfb8ed3d6

feature git:20260907.8b98b2cB

Immutable. This exact content never changes and is served at /api/v1/blob/93da47bcfb8ed3d6.

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_2wes2nx3hrdortkh/93da47bcfb8ed3d69f7009db02631cb9f367f499697f8662ff3722f5fe9c1a18.json

Then /plugin install feature@markdownregistry-2wes2nx3hrdortkh in Claude Code. It installs this exact version, the one graded B here, pinned to the commit it was graded at, and leaves it there.

---
description: Deliver a feature or chore end to end, from branch creation to PR readiness, starting from an issue URL or a plain description
argument-hint: "<issue-url | description> [additional instructions]"
---

## Input Format

```
/rpi:feature <FEATURE_DESCRIPTION> [additional instructions]
```

- **FEATURE_DESCRIPTION**: issue URL or plain description (required)
- **additional instructions** (optional): constraints, focus areas, or any custom guidance

Examples:
```
/rpi:feature https://linear.app/team/ENG-1234
/rpi:feature ENG-1234 the SpaceshipLauncher class must inherit from BaseVehicle
```

## Context

Create and complete a new feature or chore for this project, from branch creation to PR readiness. Input can be an issue URL or a plain description.

With issue URL: Extract ID, fetch ticket details.
With description only: Create new issue in the appropriate project.

Pass any additional instructions from user input through to all subagents and apply them during implementation.

## Workflow

### Step 1: Setup

Pull latest base branch (usually `main` or `master`)
Create feature branch: `<type>/<issue-id>-<short-description>` (e.g., `feature/eng-1234-add-api-endpoint`)
Update the ticket: assign to "me", change status to "In Progress"

### Step 2: Gather Historical Context

Spawn `rpi:thoughts-analyzer` with ticket reference, title, description, acceptance criteria, and any additional instructions from user input.

DO NOT proceed to Step 3 until this subagent returns. Its output is required input for Step 3.

### Step 3: Research Codebase

After Step 2 completes, spawn research subagents in parallel, passing ticket info, historical context output from Step 2, and any additional instructions from user input:

`rpi:codebase-pattern-finder` - find similar implementations to model after
`rpi:codebase-analyzer` - analyze the area being modified

Wait for both subagents to complete before proceeding.

### Step 4: Implementation

Activate the `rpi:document-code` skill before modifying any file.
Follow Rails best practices, CLAUDE.md, and any additional instructions from user input.
Keep code clean and DRY.
When modifying code: fix lurking bugs, refactor, add missing tests and regression tests.
Ensure solid RSpec coverage with well-documented business logic (viewable with `--format documentation`).
Review changes for completeness.

### Step 5: Testing & Quality

Run specs for changed/affected files only (never full suite locally): `bundle exec rspec spec/path/to/changed_spec.rb`
`bundle exec reek` – Code smell detection
`bundle exec standardrb --fix`
`npx @herb-tools/linter --fix app/views/**/*.erb` (if views changed)
Fix all issues, even flaky tests.

### Step 6: Translations (i18n)

`bundle exec i18n-tasks missing` – Check for missing translations
`bundle exec i18n-tasks normalize` – Normalize locale files
Add missing translations (manually or via OpenAI)

### Step 7: Pull Request

Push branch.
`gh pr create --draft`
Title: `<issue-id> feat: <description>` or `<issue-id> chore: <description>` or `<issue-id> fix: <description>`
Description: summary, test plan, breaking changes. Link to the issue.

### Step 8: CI Monitoring

Monitor checks until all pass.
If tests fail, investigate root cause vs flakiness.
Fix flaky tests – don't just retry; stabilize the test.
When all checks are green, proceed to "Step 9: Self-Review & Finalization". If the repo has no CI, proceed there directly after Step 7.

### Step 9: Self-Review & Finalization

Run the `/rpi:review-pr` command in `self-review` mode on the PR, passing through any additional instructions from user input — the pipeline isn't done at green, it's done at ready.
Update PR title/description if needed.

## Requirements

No direct pushes to `master`.
Always branch per task.
All tests must pass.
All i18n translations must be present and normalized.
Flaky tests must be fixed, not ignored.

## Conventions (Beautiful Code)

Boy Scout Rule: Leave the code cleaner than you found it.
Favor Plain Old Ruby Objects (POROs) and service objects; keep controllers and models thin.
Avoid N+1 queries by using includes (and consider Bullet for detection).
Use clear, explicit naming; avoid magic values.
Documentation follows the `rpi:document-code` skill.
Use squash merges to keep commit history clean.
Write small, focused commits using Conventional Commits (feat:, chore:, fix:)

## Arguments

`$ARGUMENTS`