new-memory-feature

Scaffold a memory-feature vertical slice with service, route, typings, and server registration.

1|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/jaaroncara/NH-RAG-Memory-Engine --skill new-memory-feature
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-memory-feature
Source: https://github.com/jaaroncara/NH-RAG-Memory-Engine/tree/main/.claude/skills/new-memory-feature
Command: npx skills add https://github.com/jaaroncara/NH-RAG-Memory-Engine --skill new-memory-feature

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffolds a full memory-feature vertical slice (service file, route file, memoryService.ts typings, and server.ts registration) that follows the patterns in this codebase, enabling rapid, consistent API feature development across STM (PostgreSQL/Drizzle), MTM (Neo4j), and LTM (pgvector).

Core Features & Use Cases

  • Generates a production-ready service layer for PostgreSQL/Drizzle, Neo4j, and pgvector storage backends
  • Creates a route layer with file-scoped schemas, error handling, and standard handlers
  • Provides a MemoryService interface with typed static methods for list, create, and fetch operations
  • Registers the feature in the server with consistent imports and module resolution
  • Delivers a repeatable template for adding new API-backed capabilities (e.g., /api/<domain>)

Quick Start

Run the skill to scaffold a complete memory-tier feature with a new service, route, memoryService typings, and server registration.

Frequently Asked Questions about new-memory-feature

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

FAQPage Schema
How do I scaffold a TypeScript API module for PostgreSQL, Neo4j, and pgvector?

This skill scaffolds a complete memory-feature vertical slice for PostgreSQL, Neo4j, and pgvector, generating service, route, memoryService typings, and server registration with strong TypeScript typing and ES module imports.

What is a memory-feature vertical slice in a TypeScript API?

A memory-feature vertical slice is a full API module spanning STM, MTM, and LTM storage tiers, delivering a complete domain capability with service, route, memoryService typings, and server registration.

How do I structure routes and services for a memory feature using Drizzle ORM?

It structures routes and services by creating a clear separation of logic, providing routes with file-scoped schemas and error handling, and services with typed static methods for list, create, and fetch operations.

Does this scaffolding pattern support short-term, mid-term, and long-term memory tiers?

Yes, the scaffolding pattern supports STM, MTM, and LTM memory tiers by applying across PostgreSQL/Drizzle, Neo4j, and pgvector storage backends to deliver a consistent API feature pattern.

Do I need to manually register new memory API routes in the server file?

No, manual server registration is unnecessary. The scaffolding process handles server registration automatically, applying consistent imports and module resolution using ES module imports with .js extensions.

Why use .js extensions in ES module imports for a TypeScript API?

Using .js extensions in ES module imports ensures correct Node.js module resolution at runtime. The scaffolding enforces strong TypeScript typing and ES module imports with .js extensions for maintainability.