Skip to content
Back to skills

Implement

ASecurity

Full feature pipeline — pre-flight checks, TDD cycle, scope guard, quality commit. Combines pre-flight + tdd + scope-check + quality-commit into one flow. Use when implementing a feature, adding an endpoint, or building any non-trivial code change.

  • 225 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 4, 2026
testingtestinggitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 13 files and shows the line behind each finding

Scanned September 4, 2026

npx -y skills add NeverSight/skills_feed --skill implement --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Implement?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Implement
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/neversight-implement/badge)](https://www.skillsdirectory.com/skills/neversight-implement)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: implement
description: "Full feature pipeline — pre-flight checks, TDD cycle, scope guard, quality commit. Combines pre-flight + tdd + scope-check + quality-commit into one flow. Use when implementing a feature, adding an endpoint, or building any non-trivial code change."
---

# Implement

End-to-end feature implementation pipeline. Runs pre-flight validation, TDD cycle, scope enforcement, and quality commit as a single orchestrated flow.

## Pipeline Phases

### Phase 0: Pre-flight (< 30 seconds)

Before writing any code, validate the workspace is ready:

1. **Git status** — check for uncommitted changes that might conflict
2. **Monorepo freshness** — if shared/library packages exist, check if source is newer than compiled output. If yes, rebuild first.
3. **Workspace typecheck** — run `tsc --noEmit` (or equivalent) on the target workspace
4. **Existing test check** — if a test file exists for the target module, run it to confirm green baseline

If any check fails, report and ask the user how to proceed before writing code.

### Phase 1: Understand & Plan (no code yet)

1. Read the target file(s) mentioned in `$ARGUMENTS`
2. Identify the module type (route handler, repository, plugin, utility, service, component)
3. Determine the mock strategy — check nearest test files for established patterns
4. Plan what tests to write and what implementation to add

Present a brief summary: "I'll add X tests covering Y, then implement Z." Wait for user confirmation if the scope seems large (> 3 files).

### Phase 2: Bootstrap Mock (1 test)

Follow `/tdd` Step 3 exactly:

1. Check test runner config for mock reset/restore settings
2. Write ONE minimal test that imports the module and verifies mocks resolve
3. Run it, confirm it passes
4. If it fails, diagnose mock wiring before proceeding

### Phase 3: Red — Write Failing Tests

Write test cases for:

- Happy path
- Edge cases
- Error cases

Run the test file — all new tests MUST fail. If any pass unexpectedly, the tests aren't testing new behavior.

### Phase 4: Green — Minimum Implementation

Write the minimum code to make all tests pass. Do NOT:

- Add features not covered by tests
- Optimize prematurely
- Refactor existing code

Run the test file — all tests MUST pass.

### Phase 5: Scope Guard

Before committing, self-audit the changes:

1. Run `git diff --name-only` to see all modified files
2. Compare against the original task from `$ARGUMENTS`
3. Flag any files that don't relate to the task:
   - Formatting-only changes → revert with `git checkout -- <file>`
   - Unrelated refactors → revert or split into separate commit
   - Docstring additions to untouched code → revert

If scope creep is detected, report it and ask the user whether to keep or revert the extra changes.

### Phase 6: Full Suite + Quality Gates

1. Run the full test suite (e.g., `npx vitest run --reporter=dot`)
2. Run workspace typecheck (`tsc --noEmit` or equivalent)
3. Run linter on changed files only

If any gate fails:

- Test failure: determine if your change caused it (regression) or pre-existing
- Type error: fix it
- Lint error in your files: fix it
- Lint error in files you didn't touch: ignore, note in commit message

### Phase 7: Commit

Stage only the files you changed (NEVER `git add -A`). Commit with conventional format:

```
type(scope): description

Co-Authored-By: Claude <noreply@anthropic.com>
```

## Abort Conditions

STOP the pipeline and ask the user if:

- Pre-flight finds the workspace in a broken state
- More than 5 files need modification (scope may be too large)
- Bootstrap mock test fails after 2 attempts
- Full suite regression is caused by your changes

## Arguments

- `$ARGUMENTS`: What to implement
  - Example: `/implement add rate limiting to POST /api/search`
  - Example: `/implement src/routes/admin/settings.ts — add PATCH endpoint for theme`
  - If empty, ask the user what to implement

## Integration

This skill orchestrates:

- `/tdd` — Phase 2-4 (mock bootstrap, red, green)
- `/quality-commit` — Phase 7 (stage + commit with gates)

Use `/implement` instead of calling these individually for full pipeline coverage.

Files in this skill

  • SKILL.md4.1 KB
  • description_ar.txt447 B
  • description_cn.txt229 B
  • description_de.txt318 B
  • description_en.txt251 B
  • description_es.txt328 B
  • description_fr.txt359 B
  • description_it.txt350 B
  • description_ja.txt367 B
  • description_ko.txt321 B
  • description_ru.txt575 B
  • description_tw.txt232 B
  • stats.json65 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in testing →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.