Feature Manifest Management
This skill manages the feature manifest system that tracks the relationship between features and their implementations.
DECISION POINTS
When working with code changes, use this decision tree:
Is this code change happening?
├── Creating new feature directory/component
│ ├── New feature has >5 files OR touches multiple domains
│ │ └── → CREATE new manifest (npm run feature:create)
│ └── Small utility/helper (<5 files, single purpose)
│ └── → ADD to existing related manifest
├── Modifying existing tracked files
│ ├── Files belong to known feature (check with: npm run feature:info -- --files <path>)
│ │ ├── Adding/removing files to feature
│ │ │ └── → UPDATE manifest files list + last_modified date
│ │ └── Just changing file contents
│ │ └── → UPDATE last_modified date only
│ └── Files are orphaned (not in any manifest)
│ └── → Determine owner with npm run feature:health, then UPDATE appropriate manifest
└── Removing/deprecating code
├── Entire feature being removed
│ └── → SET status to 'deprecated', add deprecation changelog entry
└── Some files being removed from feature
└── → UPDATE manifest files list, add changelog entry
For manifest validation failures:
- Missing files → Add files to manifest or remove from filesystem
- Extra files → Remove from manifest files list
- Stale manifest (>90 days) → Update last_modified and add changelog entry
- No tests listed → Add test files or mark as technical debt
FAILURE MODES
1. Orphan File Syndrome
- Detection:
npm run feature:health shows files in "Orphaned Files" section
- Cause: Files created without updating any manifest
- Fix: Run
npm run feature:info -- --files <path> to find logical owner, then add files to appropriate manifest
2. Ghost Manifest References
- Detection: Validation errors about missing files that were deleted
- Cause: Files removed from codebase but not from manifest
- Fix: Edit manifest to remove deleted files from
implementation.files, update last_modified, add changelog entry
3. Stale Dependency Web
- Detection: Features referencing deprecated or renamed dependencies in
dependencies.internal
- Cause: Feature refactoring without updating dependent manifests
- Fix: Search codebase for references to old feature ID, update all dependent manifests
4. Test Coverage Blind Spot
- Detection:
npm run feature:health shows features in "Without Tests" section
- Cause: Tests exist but not listed in manifest, or no tests written
- Fix: If tests exist, add to appropriate test section; if missing, create tests or document as technical debt
5. Manifest Explosion
- Detection: Too many tiny manifests (>20 manifests for <100 files)
- Cause: Creating manifests for every small utility
- Fix: Consolidate related small features into logical groupings, deprecate overly granular manifests
WORKED EXAMPLES
Example: Adding authentication middleware to existing API feature
Identify impact: New middleware affects multiple API routes
npm run feature:info -- --files src/app/api
# Shows: api-core.yaml owns most API files
Check current manifest:
npm run feature:info -- api-core
# Review current files list and dependencies
Decision: This is modifying existing feature (middleware is part of API infrastructure)
Update manifest: Add new middleware files to api-core.yaml:
implementation:
files:
- src/app/api/middleware/auth.ts # NEW
- src/lib/auth-utils.ts # NEW
# ... existing files
Update metadata:
dependencies:
internal:
- features/user-management.yaml # NEW dependency
history:
last_modified: "2024-12-23" # TODAY
changelog:
- version: "1.2.0" # NEW entry
date: "2024-12-23"
changes:
- "Added authentication middleware for API routes"
Validate: npm run feature:validate confirms no errors
What novice misses: Updating dependencies.internal when middleware uses user auth
What expert catches: All affected API routes need the auth dependency listed
QUALITY GATES
Task is complete when ALL conditions are met:
NOT-FOR BOUNDARIES
Do NOT use this skill for:
- Archived/legacy code → Use
git-archaeology skill instead for historical analysis
- Third-party vendor files (node_modules, .next, etc.) → These are build artifacts, not features
- Configuration files (package.json, tsconfig.json, etc.) → Use
project-config skill instead
- Documentation-only changes (README, docs/) → Use
documentation skill instead
- Build/deployment scripts → Use
devops-automation skill instead
- Test files that don't belong to features (setup files, mocks) → Use
test-infrastructure skill instead
For cross-cutting concerns spanning multiple features:
- Use
architecture-analysis skill to understand system boundaries first
- Then update multiple manifests consistently using this skill
1---2license: Apache-2.03name: feature-manifest4description: Manage feature manifests for code traceability. Use when creating new features, updating existing features, checking feature health, or exploring the feature-to-code relationship. Activates for manifest validation, feature creation, changelog updates, and traceability queries.5allowed-tools: Read,Write,Edit,Bash(npm:*,npx:*)6category: Productivity & Meta7tags:8 - feature-manifest9 - planning10 - requirements11 - specification12 - tracking13metadata:14 source: https://skillmd.com/skills/curiositech/feature-manifest15---1617# Feature Manifest Management1819This skill manages the feature manifest system that tracks the relationship between features and their implementations.2021## DECISION POINTS2223**When working with code changes, use this decision tree:**2425```26Is this code change happening?27├── Creating new feature directory/component28│ ├── New feature has >5 files OR touches multiple domains29│ │ └── → CREATE new manifest (npm run feature:create)30│ └── Small utility/helper (<5 files, single purpose)31│ └── → ADD to existing related manifest32├── Modifying existing tracked files33│ ├── Files belong to known feature (check with: npm run feature:info -- --files <path>)34│ │ ├── Adding/removing files to feature35│ │ │ └── → UPDATE manifest files list + last_modified date36│ │ └── Just changing file contents37│ │ └── → UPDATE last_modified date only38│ └── Files are orphaned (not in any manifest)39│ └── → Determine owner with npm run feature:health, then UPDATE appropriate manifest40└── Removing/deprecating code41 ├── Entire feature being removed42 │ └── → SET status to 'deprecated', add deprecation changelog entry43 └── Some files being removed from feature44 └── → UPDATE manifest files list, add changelog entry45```4647**For manifest validation failures:**48- Missing files → Add files to manifest or remove from filesystem49- Extra files → Remove from manifest files list50- Stale manifest (>90 days) → Update last_modified and add changelog entry51- No tests listed → Add test files or mark as technical debt5253## FAILURE MODES5455**1. Orphan File Syndrome**56- *Detection:* `npm run feature:health` shows files in "Orphaned Files" section57- *Cause:* Files created without updating any manifest58- *Fix:* Run `npm run feature:info -- --files <path>` to find logical owner, then add files to appropriate manifest5960**2. Ghost Manifest References**61- *Detection:* Validation errors about missing files that were deleted62- *Cause:* Files removed from codebase but not from manifest63- *Fix:* Edit manifest to remove deleted files from `implementation.files`, update `last_modified`, add changelog entry6465**3. Stale Dependency Web**66- *Detection:* Features referencing deprecated or renamed dependencies in `dependencies.internal`67- *Cause:* Feature refactoring without updating dependent manifests68- *Fix:* Search codebase for references to old feature ID, update all dependent manifests6970**4. Test Coverage Blind Spot**71- *Detection:* `npm run feature:health` shows features in "Without Tests" section72- *Cause:* Tests exist but not listed in manifest, or no tests written73- *Fix:* If tests exist, add to appropriate test section; if missing, create tests or document as technical debt7475**5. Manifest Explosion**76- *Detection:* Too many tiny manifests (>20 manifests for <100 files)77- *Cause:* Creating manifests for every small utility78- *Fix:* Consolidate related small features into logical groupings, deprecate overly granular manifests7980## WORKED EXAMPLES8182**Example: Adding authentication middleware to existing API feature**83841. **Identify impact:** New middleware affects multiple API routes85 ```bash86 npm run feature:info -- --files src/app/api87 # Shows: api-core.yaml owns most API files88 ```89902. **Check current manifest:**91 ```bash92 npm run feature:info -- api-core93 # Review current files list and dependencies94 ```95963. **Decision:** This is modifying existing feature (middleware is part of API infrastructure)97984. **Update manifest:** Add new middleware files to api-core.yaml:99 ```yaml100 implementation:101 files:102 - src/app/api/middleware/auth.ts # NEW103 - src/lib/auth-utils.ts # NEW104 # ... existing files105 ```1061075. **Update metadata:**108 ```yaml109 dependencies:110 internal:111 - features/user-management.yaml # NEW dependency112 history:113 last_modified: "2024-12-23" # TODAY114 changelog:115 - version: "1.2.0" # NEW entry116 date: "2024-12-23"117 changes:118 - "Added authentication middleware for API routes"119 ```1201216. **Validate:** `npm run feature:validate` confirms no errors122123**What novice misses:** Updating dependencies.internal when middleware uses user auth124**What expert catches:** All affected API routes need the auth dependency listed125126## QUALITY GATES127128Task is complete when ALL conditions are met:129130- [ ] `npm run feature:validate` passes with no errors131- [ ] `npm run feature:health` shows no new orphaned files132- [ ] All implementation files listed in manifest exist in codebase133- [ ] All files in manifest have been modified more recently than `last_modified` date OR manifest updated134- [ ] If adding dependencies, all internal deps reference existing manifests135- [ ] If modifying feature, changelog has new entry with today's date136- [ ] If creating feature, manifest has at least entry_point and one implementation file137- [ ] Status field matches reality (complete features have tests, deprecated features noted)138- [ ] Any new environment variables are documented in dependencies.env_vars139- [ ] Database tables/API routes are documented if feature touches them140141## NOT-FOR BOUNDARIES142143**Do NOT use this skill for:**144145- **Archived/legacy code** → Use `git-archaeology` skill instead for historical analysis146- **Third-party vendor files** (node_modules, .next, etc.) → These are build artifacts, not features147- **Configuration files** (package.json, tsconfig.json, etc.) → Use `project-config` skill instead148- **Documentation-only changes** (README, docs/) → Use `documentation` skill instead149- **Build/deployment scripts** → Use `devops-automation` skill instead150- **Test files that don't belong to features** (setup files, mocks) → Use `test-infrastructure` skill instead151152**For cross-cutting concerns spanning multiple features:**153- Use `architecture-analysis` skill to understand system boundaries first154- Then update multiple manifests consistently using this skill