Orchestrates NeoHaskell feature implementation using a structured 17-phase pipeline. Use when implementing new features, types, or modules for NeoHaskell. Triggers on requests like 'implement feature', 'new NeoHaskell feature', 'feature pipeline', 'implement issue
This skill orchestrates the full 17-phase pipeline for implementing new features in NeoHaskell. It coordinates specialized review phases, enforces quality gates, and ensures every feature passes security, performance, and DevEx review before merging. Tests are designed BEFORE implementation (outside-in TDD).
Run the pipeline script for state management:
python3 ${CLAUDE_SKILL_DIR}/scripts/pipeline.py <command>
Commands:
init "Feature Name" --issue N --module path --test path --adr NNNN - Initialize pipelinestatus - Check current progressnext - Get next phase(s) as JSON with promptscomplete N - Mark phase N completeapprove N - Approve a PAUSE-gated phaseset key value| # | Phase | Focus | PAUSE? |
|---|---|---|---|
| 1 | ADR Draft | Architecture decision record | Yes |
| 2 | Security Review (ADR) | OWASP/NIST evaluation | |
| 3 | Performance Review (ADR) | 50k req/s target analysis | |
| 4 | DevEx Review | API intuitiveness check | Yes |
| 5 | Architecture Design | Module map, API signatures | Yes |
| 6 | Test Spec Design | Comprehensive test specification | Yes |
| 7 | Test Suite Writing | Implement tests from spec (all fail) | |
| 8 | Implementation | Write source code | |
| 9 | Build & Test Loop | Iterate until green | |
| 10 | Security Review (Impl) | Code-level security audit | Yes |
| 11 | Performance Review (Impl) | INLINE pragmas, allocation patterns | Yes |
| 12 | Fix Review Notes | Address findings | |
| 13 | Final Build & Test | Clean build verification | |
| 14 | Create PR | Branch, commit, PR creation | Yes |
| 15 | Bot Review | Wait for CI | |
| 16 | Fix Bot Comments | Address CodeRabbit/CI issues | |
| 17 | Final Approval | Human merge | Yes |
pipeline.py init with feature detailspipeline.py next for phase info and promptspipeline.py complete Npipeline.py approve N{"status": "complete"}Set these before starting:
| Variable | Description | Example |
|---|---|---|
FEATURE_NAME | Human-readable name | Decimal Type |
ISSUE_NUMBER | GitHub issue | 330 |
MODULE_PATH | Main module location | core/decimal/Decimal.hs |
TEST_PATH | Test file location | core/test/DecimalSpec.hs |
ADR_TITLE | ADR description | Decimal Type for Financial Calculations |
BRANCH_NAME | Git branch | feature/decimal-type |
Find next ADR number:
ls docs/decisions/*.md | tail -1
Create the Architecture Decision Record at docs/decisions/NNNN-slug.md.
Requirements:
neohaskell-adr-template skill)PAUSE after: Report ADR path to maintainer for review.
Can run in parallel. Read-only analysis of the ADR.
Security Review (Phase 2):
Performance Review (Phase 3):
Evaluate API quality:
PAUSE after: Report pass/fail count to maintainer.
Create detailed architecture document:
PAUSE after: Report architecture to maintainer.
Design comprehensive test specification (outside-in TDD entry point):
PAUSE after: Report test count summary to maintainer.
Translate test spec to Haskell test code:
it blockImplement the feature and iterate until green:
cabal build all && cabal testhlint on changed filesCan run in parallel. Code-level reviews with file:line references.
Security Review (Phase 10):
Performance Review (Phase 11):
toEncoding vs toJSON for serializationPAUSE after each: Report findings to maintainer.
Apply all security and performance fixes. If files changed significantly, re-trigger relevant reviews.
Final verification:
cabal build all succeedshlint . clean on changed filesCloses #ISSUE_NUMBERgh pr createPAUSE after: Report PR URL to maintainer.
Wait for CI, then address any CodeRabbit or CI comments:
gh pr checks PR_NUMBER --watch
gh api repos/neohaskell/NeoHaskell/pulls/PR_NUMBER/comments
Human gate. Maintainer reviews, approves, and merges the PR.
These phases can run simultaneously:
| Phase | Recovery |
|---|---|
| ADR rejected | Revise based on feedback, re-submit |
| Critical security finding | Revise ADR, re-run review |
| Build loop exhausted (10 iterations) | STOP, report details, request guidance |
| Can't fix a finding | Escalate to maintainer |
| CI still failing after 5 attempts | Escalate with full output |
At completion, verify:
docs/decisions/NNNN-slug.mdMODULE_PATHTEST_PATHnhcore.cabal updated with new modulesneohaskell-adr-template - ADR format and structureneohaskell-style-guide - Code style conventions