Feature Structure

Organize LivestockAI features into a standardized six-file directory layout.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/captjay98/livestockai --skill feature-structure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Feature Structure
Source: https://github.com/captjay98/livestockai/tree/main/.kiro/skills/feature-structure
Command: npx skills add https://github.com/captjay98/livestockai --skill feature-structure

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Organize LivestockAI features into a standardized directory layout to promote maintainable architecture and easier onboarding for new contributors.

Core Features & Use Cases

  • Enforces a canonical 6-file feature model per feature: server.ts, service.ts, repository.ts, types.ts, constants.ts, and index.ts to standardize exports and module boundaries.
  • Documents typical directory layouts and responsibilities to reduce cognitive load when extending features.
  • Supports optional shared component resources via sibling directories (scripts/, references/, assets/) for richer functionality when needed.

Quick Start

Create a new feature directory under app/features, populate server.ts, service.ts, repository.ts, types.ts, constants.ts, and index.ts, and export the feature from index.ts.

Frequently Asked Questions about Feature Structure

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

FAQPage Schema
What is a standardized directory layout for TypeScript feature architecture?

A standardized directory layout organizes each feature under app/features into a canonical 6-file model: server.ts, service.ts, repository.ts, types.ts, constants.ts, and index.ts. This structure establishes explicit module boundaries and a defined index export pattern for type-safe composition.

How do I organize LivestockAI features to reduce cognitive load for new contributors?

To organize LivestockAI features, create a directory under app/features and populate it with server.ts, service.ts, repository.ts, types.ts, constants.ts, and index.ts. This standardizes module boundaries and documents directory responsibilities to reduce onboarding friction.

Does the modular feature structure support optional shared resources like scripts and assets?

Yes, the modular feature structure supports optional shared component resources. You can use sibling directories such as scripts/, references/, and assets/ alongside the standardized feature files to provide richer functionality when needed.

Why use a 6-file feature model for modular TypeScript architecture?

You use a 6-file feature model to enforce a frontmatter-driven metadata contract and consistent infrastructure across server, service, repository, types, and constants files. This promotes maintainable architecture and reliable feature discovery.

What's the best way to enforce explicit module boundaries in a LivestockAI feature directory?

The best way to enforce explicit module boundaries is adopting a canonical 6-file model per feature directory, utilizing index.ts to standardize exports. This defined index export pattern enables reliable discovery and type-safe composition across the application.