Agent skill

Implementation

by EmeaAppGbb in EmeaAppGbb/spec2cloud

Write application code to make failing tests pass using contract-driven, slice-based architecture.

MITAuto-check passedTesting & QA

Install Implementation

skills CLI
$ npx skills add EmeaAppGbb/spec2cloud --skill implementation -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install EmeaAppGbb/spec2cloud implementation --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/EmeaAppGbb/spec2cloud.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.github/skills/implementation .claude/skills/implementation && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
implementation
GitHub stars
100
Token cost
~2.8k tokens
SKILL.md length
1,107 words
Files
5 (incl. references)
Skills in repo
39
Repo updated
First seen
Licence
MIT

At a glance

Write application code to make failing tests pass using contract-driven, slice-based architecture.

  • Works in 4 steps: Read all Gherkin features, step… → Order features so dependencies are… → Start with foundational features (auth,… → …
  • Implementing features
  • SKILL.md covers Role, Slice Architecture, Feature Ordering and Test Infrastructure Setup, plus 13 more sections
  • Calls npm and git

What it does

Implementation is an agent skill from EmeaAppGbb/spec2cloud. Write application code to make failing tests pass using contract-driven, slice-based architecture. Implement API slice (Express routes, services), Web slice (Next.js pages, components), and Integration slice (wire API+Web via Aspire). Use when implementing features, making tests green, or wiring frontend to backend.

Its SKILL.md is about 2.8k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `references/api-slice.md`, `references/integration-slice.md` and `references/stack-patterns.md`).

It sits in Testing & QA, covering Failing and flaky tests. It works with Next.js. The licence is MIT.

When your agent uses it

  • Implementing features
  • Making tests green
  • Wiring frontend to backend

Example prompts

  • “/implementation”

Requirements

  • Node.js

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Read all Gherkin features, step definitions, and e2e specs. Cross-reference
  2. Order features so dependencies are satisfied first.
  3. Start with foundational features (auth, core models, shared utilities) before
  4. Within a single feature

What it can do on your machine

Read from SKILL.md and the folder at commit 8e76618. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use npm and git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Implementation loads about 2.8k tokens when it runs, and up to ~6.4k if it reads all its reference files. Until then it costs about 83 tokens; SKILL.md has 1,107 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~83
When it runs · the whole SKILL.md, loaded when a task matches
~2.8k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from EmeaAppGbb/spec2cloud at commit 8e76618, republished under its MIT licence (© EmeaAppGbb). 1,107 words, ~2,798 tokens.

Download SKILL.mdSave it as .claude/skills/implementation/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
implementation
description
Write application code to make failing tests pass using contract-driven, slice-based architecture. Implement API slice (Express routes, services), Web slice (Next.js pages, components), and Integration slice (wire API+Web via Aspire). Use when implementing features, making tests green, or wiring frontend to backend.

Implementation

Role

You are the Implementation Agent. You write application code to make failing tests pass. You do NOT write tests — they already exist from Step 1. Your goal: all unit tests, Gherkin step definitions, and Playwright e2e tests pass — for this increment AND all previous increments (full regression).

You receive a codebase where the current increment's tests are failing (red baseline) and all previous increments' tests are passing (green). Write the minimum production code to make the new tests green without breaking existing tests.

Slice Architecture

Each increment decomposes into three slices executed in dependency order:

[Contracts (Step 2)] ──┬──> [API Slice]  ──┬──> [Integration Slice]
                       └──> [Web Slice]  ──┘
SliceWhat It DoesTestsParallel?
APIBackend routes, services, modelsVitest + SupertestYes (with Web)
WebFrontend pages, componentsBuild + component testsYes (with API)
IntegrationWire API + Web via AspireCucumber + Playwright e2eNo (needs both)

See references/api-slice.md, references/web-slice.md, and references/integration-slice.md for detailed procedures per slice.

Feature Ordering

Before writing any code, determine the correct implementation order:

  1. Read all Gherkin features, step definitions, and e2e specs. Cross-reference FRDs and specs/prd.md for dependency declarations and overall product flow.
  2. Order features so dependencies are satisfied first.
  3. Start with foundational features (auth, core models, shared utilities) before dependent features (dashboards, reports, workflows).
  4. Within a single feature:
    • Happy-path @smoke scenarios first
    • Edge-case scenarios second
    • Error-handling scenarios last

Test Infrastructure Setup

Run once before the first feature. Non-negotiable.

1. Install dependencies:      npm install
2. Install Playwright browsers: npx playwright install --with-deps
3. Verify each runner executes:
   a. Unit tests:    cd src/api && npm test       (expect: runs, tests fail)
   b. Cucumber:      npx cucumber-js --dry-run    (expect: scenarios parse)
   c. Playwright:    npx playwright test --list    (expect: tests listed)
4. Fix infrastructure issues BEFORE writing application code:
   - "browserType.launch: Executable doesn't exist" → npx playwright install --with-deps
   - "Cannot find module" → npm install
   - "TypeScript compilation failed" → fix tsconfig.json references

If you skip this and a runner fails later, you cannot distinguish between broken code and broken infrastructure.

Resume Protocol

This phase is fully resumable. On entry (first run or resume):

1. Read .spec2cloud/state.json → parse increments and current increment.
2. Determine position:
   a. Features with status "done" → skip.
   b. Feature with status "in-progress" → current feature.
      Read its slices to find which slice is in-progress or pending.
      Read failingTests[], modifiedFiles[], and iteration count.
   c. Features with status "pending" → queued by dependsOn order.
3. Re-validate by running the test suite for the current slice:
   a. API slice:         run unit tests for the slice's testFiles paths.
   b. Web slice:         run component tests or build check.
   c. Integration slice: run Cucumber + Playwright for the slice's testFiles.
4. If results match state → continue the TDD loop from iteration N+1.
5. If results differ → update state.json to reflect actual results, continue.
6. Run test infrastructure setup if this is a fresh session.

Key principle: The increments object in state.json contains everything needed — no prior session memory required.

Contract Verification

Before implementing any code for an increment, verify contracts from Step 2:

1. Verify contract files exist:
   a. API contract:    specs/contracts/api/{feature}.yaml
   b. Shared types:    src/shared/types/{feature}.ts
   c. Infra contract:  specs/contracts/infra/resources.yaml
2. Verify shared types compile: tsc --noEmit
3. If any file is missing → STOP. Contracts must be generated first.

API Slice — Overview

Implement backend routes, services, and models using contract types. Runs independently — no browser or frontend needed.

Key rules:

  • Write MINIMUM code to pass each test — no gold-plating.
  • ALWAYS run tests — never assume correctness.
  • Do NOT modify tests. Only modify application code.
  • Import types from src/shared/types/{feature}.ts — the contract types.
  • Flag discrepancies between test expectations and contracts.

See references/api-slice.md for the full procedure.

Web Slice — Overview

Implement frontend pages and components using contract types. MAY run in parallel with the API slice — uses mocks for API calls.

Key rules:

  • Import types from src/shared/types/{feature}.ts — never define inline types.
  • Build UI to satisfy Playwright spec expectations (data-testid, roles, text).
  • API calls may use mocks during this slice (replaced in integration).
  • Isolate mock logic for easy replacement (e.g., src/web/src/mocks/).
  • Do NOT start a dev server — build verification is sufficient.

See references/web-slice.md for the full procedure.

Integration Slice — Overview

Wire API + Web together via the Aspire environment. Replace all mocks with real API calls. All tests run against aspire start.

Key rules:

  • Mock removal is mandatory. No mock API calls may remain after this slice.
  • Use API_URL env var — never hardcode localhost.
  • Keep Aspire environment running across iterations.
  • Run only the relevant feature's e2e tests during this slice.
  • A feature is only "done" when all three slices are green.

See references/integration-slice.md for the full procedure.

Regression Check

After ALL features pass their integration slices, run the complete suite:

1. cd src/api && npm test           # All unit tests
2. cd src/web && npm test           # All frontend tests
3. npx cucumber-js                  # All Gherkin scenarios
4. npx playwright test              # All Playwright e2e tests
5. If any fail → identify broken feature, fix, re-run full suite.
6. Loop until ALL tests green.

After regression passes, generate documentation: npm run docs:generate

PRD Implementation Diagram Update

After regression passes and before the final implementation handoff, review specs/prd.md.

Add or update an ## Implementation Diagram section when the implemented flow is non-trivial — for example:

  • request/response chains spanning multiple components
  • async workflows, queues, or webhooks
  • cross-layer orchestration that is easier to understand visually
  • critical user flows whose runtime behavior is clearer as a diagram

Use Mermaid text. Prefer:

  • sequenceDiagram for request, command, and event interactions
  • flowchart for branching pipelines
  • stateDiagram-v2 for lifecycle-driven behavior

Rules:

  • Diagram actual as-built behavior, not intended architecture.
  • Keep it consistent with contracts, tests, and the running code.
  • Update only the implementation diagram section; do not rewrite approved product requirements unless the human separately changed scope.
  • If the runtime flow is trivial, the section may remain absent.
Show full SKILL.md (468 more words)Show less

Fast Feedback Practices

  • Watch mode: cd src/api && npm run test:watch for rapid API iteration.
  • Targeted runs: Run only slice-relevant tests until integration.
  • Dev server: Start Aspire once; keep running across features.
  • Parallel slices: API and Web slices can run simultaneously.
  • Error reading: Read complete error output before changing code.
  • Incremental commits: Commit after each slice passes.
  • TypeScript LSP: Use ide-get_diagnostics after every code change to catch type errors before running tests.

State Updates

After each slice completes (all its tests green):

  1. Update .spec2cloud/state.json:
    • Set slice status to "done", clear failingTests, update lastTestRun.
    • Update modifiedFiles with all source files created or changed.
    • If all three slices done → set feature status to "done".
    • Update top-level testsStatus with aggregate counts.
  2. Append to .spec2cloud/audit.log:
    [ISO-timestamp] increment={id} slice={name} action=slice-implemented result=pass:{N}/fail:{N}
  3. Commit per slice:
    git add -A && git commit -m "[impl] {feature-id}/{slice} — slice green"

After each iteration within a slice (pass or fail):

  1. Update failingTests[], lastTestRun, modifiedFiles[].
  2. Increment iteration count.
  3. Write state.json — do NOT commit mid-iteration.

What NOT to Do

  • Do NOT modify tests unless the human explicitly instructs you to.
  • Do NOT skip failing tests or mark them as ignored/pending.
  • Do NOT skip running a test layer — fix infrastructure issues first.
  • Do NOT claim a feature "done" without all three test layers green.
  • Do NOT add features, endpoints, or behaviors not in Gherkin/FRDs.
  • Do NOT optimize prematurely — make it work first.
  • Do NOT use hardcoded delays or setTimeout — use async patterns.
  • Do NOT ignore TypeScript compiler warnings — treat as errors.

Human Code Intervention

If a human edits code while you are in the implementation phase:

  1. Detect file changes on next loop iteration.
  2. Re-run all tests for features affected by the changed files.
  3. If all tests pass → accept changes and continue.
  4. If any tests fail → treat as new red tests; enter the fix loop.
  5. Do NOT revert human changes — tests are the contract, not your code.

Stack Patterns

See references/stack-patterns.md for detailed frontend, backend, API integration, state management, and test command reference.

Mandatory Completion Checklist

The orchestrator MUST verify ALL of the following before marking implementation as complete:

  • All tests from Step 1 (e2e, Gherkin, unit) pass — zero failures, zero skipped
  • API slice builds and all API-specific tests pass
  • Web slice builds and all Web-specific tests pass
  • Integration slice passes (API + Web wired together via Aspire)
  • Full regression suite passes (not just tests for the current increment)
  • No test.skip(), xit(), @pending, or commented-out tests exist in the codebase
  • State JSON and audit log are updated with per-slice completion
  • If the implemented flow is non-trivial, specs/prd.md includes an up-to-date Mermaid implementation diagram that matches the actual code path

BLOCKING: If any item is unchecked, the skill has NOT completed successfully. The orchestrator must loop back and complete the missing items before advancing to deployment.

© EmeaAppGbb, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in .github/skills/implementation of EmeaAppGbb/spec2cloud.

  • SKILL.md
  • references/api-slice.md
  • references/integration-slice.md
  • references/stack-patterns.md
  • references/web-slice.md

Open the folder on GitHubat commit 8e76618

Compare with similar skills

Implementation next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Implementation compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Implementation this skillEmeaAppGbb/spec2cloud100—~2.8kAutomated safety check: PassMIT
Testingtrieb-work/nextjs-turbo-redis-cache151—~1.1kAutomated safety check: PassMIT
Playwrightpproenca/dot-skills214—~1.7kAutomated safety check: PassMIT
Runtime DebugOpenHikmah/openhikmah-web181—~618Automated safety check: PassGPL-3.0
Suede Code ReviewJasonColapietro/suede-creator-skills127—~7.1kAutomated safety check: PassMIT
Pester Failure AnalysisPowerShell/PowerShell56k—~5.1kAutomated safety check: PassMIT

Similar skills

  • Testing

    trieb-work/nextjs-turbo-redis-cache

    Run tests and add Next.js version coverage for the cache handler.

    151 GitHub stars~1.1k tokensUpdated 13 days ago
    Testing & QAAuto-check passed
  • Playwright

    pproenca/dot-skills

    Playwright testing best practices for Next.js applications (formerly test-playwright).

    214 GitHub stars~1.7k tokensUpdated 1 mo ago
    Testing & QAAuto-check passed
  • Runtime Debug

    OpenHikmah/openhikmah-web

    Debug and verification workflow for runtime-bundle and module-resolution regressions.

    181 GitHub stars~618 tokensUpdated today
    DevelopmentAuto-check passed
  • Suede Code Review

    JasonColapietro/suede-creator-skills

    Suede AI findings-only code review with full context: changed files, callers, contracts, and deploy surface.

    127 GitHub stars~7.1k tokensUpdated 3 days ago
    DevelopmentAuto-check passed
  • Pester Failure Analysis

    PowerShell/PowerShell

    Investigates failing Pester tests in PowerShell CI jobs by following a six-step workflow from pull request status to documented fix recommendations.

    56k GitHub stars~5.1k tokensUpdated yesterday
    Testing & QAAuto-check passed
  • Guides changes and reviews of the Cucumber and Playwright end-to-end suite under `e2e/`: feature files, step definitions, support code, tags, locators and assertions.

    158k GitHub stars~682 tokensUpdated today
    Testing & QAAuto-check passed

More from EmeaAppGbb/spec2cloud

All 39 skills in this repo
  • Azure Deployment

    EmeaAppGbb/spec2cloud

    Provision Azure infrastructure, deploy to Azure Container Apps, and verify via smoke tests.

    100 GitHub stars~1.8k tokensUpdated 5 mo ago
    Auto-check passed
  • Contract Generation

    EmeaAppGbb/spec2cloud

    Generate API contracts, shared TypeScript types, and infrastructure resource definitions from Gherkin scenarios and test files.

    100 GitHub stars~1.6k tokensUpdated 5 mo ago
    Auto-check passed
  • Ddd Modeling

    EmeaAppGbb/spec2cloud

    Create Domain-Driven Design proposals from product specs or brownfield extraction outputs.

    100 GitHub stars~2.4k tokensUpdated 5 mo ago
    Auto-check passed
  • Spec Refinement

    EmeaAppGbb/spec2cloud

    Review PRDs and FRDs through product and technical lenses. An agent skill from EmeaAppGbb/spec2cloud.

    100 GitHub stars~2.2k tokensUpdated 5 mo ago
    Auto-check passed
  • State Management

    EmeaAppGbb/spec2cloud

    Read, write, and maintain .spec2cloud/state.json across phases and increments.

    100 GitHub stars~1.5k tokensUpdated 5 mo ago
    Auto-check passed
  • Tech Stack Resolution

    EmeaAppGbb/spec2cloud

    Identify, research, and resolve every technology needed by the application.

    100 GitHub stars~1.8k tokensUpdated 5 mo ago
    Auto-check passed

Works with

Categories

Questions about Implementation

What does Implementation do?

Write application code to make failing tests pass using contract-driven, slice-based architecture. Implementation is an agent skill from EmeaAppGbb/spec2cloud. Write application code to make failing tests pass using contract-driven, slice-based architecture.

When should I use Implementation?

Implementation fits situations like: implementing features; making tests green; wiring frontend to backend.

How do I install Implementation in Claude Code?

Run `npx skills add EmeaAppGbb/spec2cloud --skill implementation -a claude-code`. Or copy the skill folder (.github/skills/implementation in EmeaAppGbb/spec2cloud) into .claude/skills/implementation in your project. Claude Code loads it when a task matches its description.

How do I install Implementation in Codex?

Run `npx skills add EmeaAppGbb/spec2cloud --skill implementation -a codex`. Or copy the skill folder (.github/skills/implementation in EmeaAppGbb/spec2cloud) into .agents/skills/implementation in your project. Codex loads it when a task matches its description.

Can I use Implementation in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add EmeaAppGbb/spec2cloud --skill implementation -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/implementation, .gemini/skills/implementation, .github/skills/implementation and .opencode/skills/implementation in your project.

What does Implementation need to run?

Going by SKILL.md and its folder, Implementation needs the command-line tools its instructions call (npm and git). Our summary lists: Node.js.

Does Implementation access the network?

SKILL.md contains no URLs. Its commands use npm and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Implementation safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Implementation use?

Implementation is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Implementation use?

About 2.8k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.7k tokens, read only when the agent opens those files.

What are the alternatives to Implementation?

Skills that share tags, products or a category with Implementation: Testing (trieb-work/nextjs-turbo-redis-cache, 151 stars), Playwright (pproenca/dot-skills, 214 stars), Runtime Debug (OpenHikmah/openhikmah-web, 181 stars) and Suede Code Review (JasonColapietro/suede-creator-skills, 127 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Implementation?

EmeaAppGbb (a GitHub organization) maintains it in EmeaAppGbb/spec2cloud, which has 100 GitHub stars. The repository holds 39 skills in this directory. The repository was last updated on April 16, 2026.

Source: EmeaAppGbb/spec2cloud on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.