Feature manifest

From curiositech/windags-skills · View interactive version

Feature manifest is an AI agent skill from the GitHub repository curiositech/windags-skills. 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.

How to use this skill

Skill file

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:

FAILURE MODES

1. Orphan File Syndrome

2. Ghost Manifest References

3. Stale Dependency Web

4. Test Coverage Blind Spot

5. Manifest Explosion

WORKED EXAMPLES

Example: Adding authentication middleware to existing API feature

  1. Identify impact: New middleware affects multiple API routes

```bash

npm run feature:info -- --files src/app/api

# Shows: api-core.yaml owns most API files

```

  1. Check current manifest:

```bash

npm run feature:info -- api-core

# Review current files list and dependencies

```

  1. Decision: This is modifying existing feature (middleware is part of API infrastructure)
  1. Update manifest: Add new middleware files to api-core.yaml:

```yaml

implementation:

files:

# ... existing files

```

  1. Update metadata:

```yaml

dependencies:

internal:

history:

last_modified: "2024-12-23" # TODAY

changelog:

date: "2024-12-23"

changes:

```

  1. 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:

For cross-cutting concerns spanning multiple features:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.