Build feature end to end

From FerroxLabs/murage · View interactive version

Build feature end to end is an AI agent skill from the GitHub repository FerroxLabs/murage. Orchestrates the full software feature development lifecycle from specification through production deployment, chaining five engineering skills into a cohesive build pipeline. Covers requirements gathering, branch strategy, test-driven implementation, peer review, and deployment. Use when the user n

How to use this skill

Skill file

Build Feature End to End

Estimated time: 1-4 weeks (depending on feature scope, team size, and review cycles)

This workflow chains five atomic skills into the complete lifecycle of building a software feature from initial specification through production deployment. Each step produces artifacts that feed directly into the next, creating a traceable path from business requirement to deployed code. The workflow enforces engineering discipline at every stage: requirements are formalized before coding begins, tests are written before implementation, code is reviewed before merging, and deployment follows a verified strategy.

Critical note: This workflow assumes you are building a non-trivial feature that warrants formal specification, testing, and review. For trivial changes (typo fixes, config updates), skip directly to the deployment step with an abbreviated review.

When to Use

Prerequisites

Before starting this workflow, ensure:

  1. Product context exists: The feature request or user story has been discussed and prioritized. You know what the feature should accomplish and who benefits from it.
  2. Codebase is accessible: You have a working development environment with the repository cloned, dependencies installed, and tests passing on the main branch.
  3. Branching strategy is defined: The team has an agreed-upon branching model (or you will define one in Step 2). You know where feature branches originate from and where they merge to.
  4. CI pipeline is operational: Automated tests run on every push or pull request. If no CI pipeline exists, consider using the setup-ci-cd-pipeline workflow first.

Steps

Step 1: Write the Feature Specification (uses: feature-spec)

Translate the business requirement into a formal feature specification that developers can implement against. This step eliminates ambiguity before any code is written by defining acceptance criteria, data model changes, API contracts, and user-facing behavior in a structured document.

Step 2: Create the Feature Branch (uses: git-branching-strategy)

Set up the version control structure for the feature work. This step establishes the branch, naming convention, and merge strategy based on the team's branching model. The branch isolates the feature work from the main development line until it passes review.

Step 3: Implement Using Test-Driven Development (uses: tdd-workflow)

Build the feature using a red-green-refactor cycle. Write failing tests first based on the acceptance criteria from Step 1, then write the minimum code to make them pass, then refactor for clarity and maintainability. This step produces both the implementation and a comprehensive test suite.

Step 4: Conduct Code Review (uses: code-review-patterns)

Submit the feature for peer review. This step ensures the implementation meets quality standards, follows team conventions, handles edge cases, and does not introduce security vulnerabilities or performance regressions. The review covers both the code and the test suite.

Step 5: Deploy to Production (uses: deployment-strategies)

Merge the approved feature and deploy it to production using the team's deployment strategy. This step covers the merge, deployment verification, and post-deployment monitoring to confirm the feature works correctly in the production environment.

Decision Points

Failure Handling

Expected Outcome

When this workflow is complete, the user will have:

  1. A formal feature specification with measurable acceptance criteria that serves as documentation
  2. A clean feature branch with atomic commits following the team's branching and commit conventions
  3. A comprehensive test suite covering all acceptance criteria, serving as executable documentation
  4. A reviewed and approved pull request with documented review feedback and resolution
  5. The feature deployed to production with post-deployment verification confirming correct behavior
  6. Monitoring baselines updated to include the new feature's metrics for ongoing observability

Output Format

FEATURE BUILD TRACKER
=====================

Feature: [feature name]
Ticket: [ticket ID]
Branch: feature/[ticket-id]-[description]

[ ] Step 1: Feature Specification
    Status: [pending/in-progress/complete]
    Artifact: docs/specs/[feature-name].md

[ ] Step 2: Branch Setup
    Status: [pending/in-progress/complete]
    Branch: feature/[ticket-id]-[description]

[ ] Step 3: TDD Implementation
    Status: [pending/in-progress/complete]
    Tests: [count] passing, [count] failing

[ ] Step 4: Code Review
    Status: [pending/in-progress/complete]
    PR: #[number]
    Reviewers: [names]

[ ] Step 5: Production Deployment
    Status: [pending/in-progress/complete]
    Environment: [staging/production]
    Verification: [pass/fail]

Timeline: ______ days
Overall Status: [IN PROGRESS / COMPLETE]

Adaptation notes:

Edge Cases

Example

Scenario: "Build a user notification preferences feature for a SaaS application. Users should be able to choose which notifications they receive and through which channels (email, in-app, push)."

Input: Product requirement: users want control over notification frequency and channels. Current system sends all notifications to all users with no preferences. Tech stack: React frontend, Node.js API, PostgreSQL database. Team: 3 developers, weekly release cycle.

Output: Deployed notification preferences feature with full test coverage.

Step 1 (feature-spec): Specification defines: database schema (notification_preferences table with user_id, notification_type, channel, enabled columns), API endpoints (GET/PUT /v1/users/:id/notification-preferences), UI component (preferences page with toggles per notification type per channel), acceptance criteria (user can enable/disable email notifications for each type, preferences persist across sessions, default preferences are all-enabled for new users).

Step 2 (git-branching-strategy): Feature branch created: feature/NOTIFY-42-notification-preferences from develop. Squash merge strategy selected to keep main branch history clean. Branch protection requires 1 reviewer approval and all CI checks passing.

Step 3 (tdd-workflow): Tests written first: unit tests for preference model (default creation, toggle logic, validation), API integration tests (CRUD operations, authorization checks, invalid input handling), UI component tests (toggle interaction, loading states, error display). Implementation follows: migration creates notification_preferences table, API endpoints with validation, React component with optimistic UI updates.

Step 4 (code-review-patterns): Pull request submitted with 347 lines changed across 12 files. Reviewer feedback: add rate limiting to PUT endpoint, add index on (user_id, notification_type) for query performance, extract preference validation into shared utility. Feedback addressed in 2 follow-up commits. CI passes, reviewer approves.

Step 5 (deployment-strategies): Deployed to staging, QA verifies all acceptance criteria. Deployed to production via rolling update. Post-deployment monitoring confirms: no error rate increase, notification preference API responds in under 50ms (p95), 23 users update preferences in the first hour. Feature flag removed after 48 hours of stable operation.

Result: Notification preferences feature live in production with 12 tests covering all acceptance criteria, zero post-deployment issues, and monitoring confirming expected usage patterns.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.