implement-feature

Implement production code to make Gherkin BDD scenarios pass.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/foolishimp/ai_sdlc_method --skill implement-feature
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implement-feature
Source: https://github.com/foolishimp/ai_sdlc_method/tree/main/plugins/code-skills/skills/bdd/implement-feature
Command: npx skills add https://github.com/foolishimp/ai_sdlc_method --skill implement-feature

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

After defining behavior with Gherkin scenarios and step definitions, the core production code needs to be written to satisfy these executable specifications, a task that requires precision.

Core Features & Use Cases

  • Feature Code Implementation: Writes the necessary production code to make previously failing BDD scenarios pass.
  • Scenario-Driven Development: Focuses implementation directly on fulfilling the behavior defined by Given/When/Then, preventing over-engineering.
  • BDD Workflow Integration: The "IMPLEMENT" phase in the SCENARIO → STEP DEFINITIONS → IMPLEMENT → REFACTOR cycle, ensuring alignment with business needs.
  • Use Case: With "User Login" Gherkin scenarios and step definitions in place, invoke this skill to generate the actual Python login() function and its helpers, ensuring all scenarios now pass.

Quick Start

Implement the Python feature code for user authentication in 'src/auth/authentication.py' to make all BDD scenarios in 'authentication.feature' pass.

Frequently Asked Questions about implement-feature

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement feature code to make BDD scenarios pass?

Implement feature code by writing production logic that satisfies the Given/When/Then steps defined in your Gherkin scenarios. After step definitions are in place and scenarios are failing, generate the actual functions and helpers in your implementation files, tag them with REQ-*/BR-* identifiers, and verify all scenarios now pass.

What's the difference between writing step definitions and implementing the feature code?

Step definitions map Gherkin language to test code and assertions; feature implementation writes the production code those steps invoke. Step definitions verify behavior; implementation delivers it. Both are required in the BDD workflow.

When should I use behavior-driven development with Gherkin scenarios?

Use BDD when requirements need to be executable and testable by non-technical stakeholders, or when you want to prevent over-engineering by tying implementation directly to specified behavior. The Gherkin → step definitions → implementation cycle ensures code aligns with business needs.

Can I implement features without pre-written step definitions?

No. This Skill requires existing step definitions and failing scenarios before implementation. Step definitions must be in place to define what the production code should do; without them, there's no specification to implement against.

How do I tag implemented code with requirement identifiers?

Tag your production code with REQ-* or BR-* identifiers to map implementation back to requirements and business rules. This traceability links each code section to the behavior it satisfies, improving auditability and maintenance.

What file formats and frameworks does feature implementation support?

The Skill works with Gherkin feature files and supports any language with BDD frameworks—Python, JavaScript, Java, and others. Implementation depends on your test framework (Cucumber, Behave, etc.) and production codebase structure.