smithery.ai

implement-and-test

Implement feature with interleaved testing

First seen Mar 21, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,454 B
  • docs SUMMARY.md 68 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 1 installs

SKILL.md

Implement Feature with Interleaved Testing

Implement the current feature by following the spec, with interleaved testing after each user story.

User arguments: $ARGUMENTS

Instructions for Claude

You MUST follow these steps:

  1. Get current feature number from branch:

``bash BRANCH=$(git rev-parse --abbrev-ref HEAD) NUM=$(echo "$BRANCH" | grep -oE 'alg-([0-9]+)' | grep -oE '[0-9]+') ``

  1. Read context files:

- Read specs/alg-${NUM}-/spec.md - User stories, requirements, acceptance criteria (REQUIRED) - Check if specs/alg-${NUM}-/research.md exists - Implementation patterns, files to modify (OPTIONAL)

  1. Create a todo list with all user stories from the spec (P1 first, then P2, P3)
  1. For each user story, follow this interleaved pattern:

- Mark the todo as in_progress - Implement the functionality (follow research.md patterns if present, otherwise existing codebase patterns) - Commit implementation: git commit -m "feat(scope): description ALG-${NUM}" - Write unit tests for the implemented functionality - Write integration tests if needed (multi-component, database, API, or e2e) - Run tests: npm test --workspaces --if-present - Fix any failing tests before proceeding - Commit tests: git commit -m "test(scope): description ALG-${NUM}" - Mark the todo as completed

  1. Final verification:

- Run: npm run type-check --workspaces --if-present - Run: npm test --workspaces --if-present - Ensure all checks pass

CRITICAL: Do NOT batch all implementation then all tests. Interleave them - implement one story, test it, commit, then move to the next.


Commit Conventions

Follow Conventional Commits:

Types: feat, fix, test, refactor, perf, docs, chore, ci, build

Examples:

git commit -m "feat(search): add semantic search service ALG-27"
git commit -m "test(search): add semantic search tests ALG-27"
git commit -m "fix(api): handle null response from Tidal ALG-27"

When to Write Integration Tests

Write integration tests when the user story involves:

  • Database operations (TypeORM entities, queries)
  • External API calls (Tidal, Qdrant, etc.)
  • Multi-service coordination
  • GraphQL resolver chains
  • End-to-end user flows