Manage feature manifests for code traceability. Use when creating new features, updating existing features, checking feature health, or exploring the feature-to-code relationship...
This skill helps you work with the feature manifest system that tracks the relationship between features and their implementations.
# List all features
npm run feature:info -- --list
# Get details about a feature
npm run feature:info -- <feature-id>
# Find which feature owns a file
npm run feature:info -- --files <filepath>
# Validate all manifests
npm run feature:validate
# Check feature health (staleness, orphans, coverage)
npm run feature:health
# Create a new feature manifest
npm run feature:create
Create the manifest first:
npm run feature:create -- --id=my-feature --name="My Feature"
Implement the feature, adding files as you go
Update the manifest with:
implementation.filestests.unit/integration/e2edependencies.internal/externaldependencies.env_varsValidate before committing:
npm run feature:validate
Read the manifest first:
npm run feature:info -- <feature-id>
Make your changes to the implementation files
Update the manifest:
implementation.fileshistory.last_modified to today's dateValidate:
npm run feature:validate
id: feature-id
name: Human Readable Name
status: complete # planned | in-progress | complete | deprecated
priority: P1
description: |
What this feature does and why it exists.
implementation:
files:
- src/app/api/feature/route.ts
- src/lib/feature.ts
entry_point: src/lib/feature.ts
database_tables:
- tableName
api_routes:
- POST /api/feature
tests:
unit:
- src/lib/__tests__/feature.test.ts
integration: []
e2e: []
dependencies:
internal:
- features/authentication.yaml
external:
- package-name
env_vars:
- FEATURE_SECRET
secrets:
- feature-api-key
history:
created: "2024-12-01"
last_modified: "2024-12-23"
changelog:
- version: "1.0.0"
date: "2024-12-23"
changes:
- "Initial implementation"
When running npm run feature:health:
src/ not tracked by any manifest