Quick Add Path to Memory Bank
Quickly add a file or directory path to the memory bank and link it to a feature.
Parsed Arguments
!bun run ${CLAUDE_PLUGIN_ROOT}/scripts/parse-quick-add-args.ts '$ARGUMENTS'
Instructions
- •
Check Parse Result:
- •If the parsed JSON has
success: false, display the error message and stop - •Extract:
path,type,description,feature_slugfrom the JSON
- •If the parsed JSON has
- •
Verify Feature Exists:
- •
Call
mcp__memory-bank__get_featurewith thefeature_slug - •
If the feature doesn't exist, display error and stop:
codeError: Feature '<feature_slug>' does not exist. Available options: - Create the feature first with: mcp__memory-bank__create_features - Use /add-feature to create a feature with full context - List existing features with: mcp__memory-bank__list_features
- •
- •
Create Path:
- •Call
mcp__memory-bank__create_pathswith:json{ "paths": [ { "path": "<path>", "type": "<type>", "description": "<description>" } ] } - •Extract the path ID from the response
- •Call
- •
Link to Feature:
- •Call
mcp__memory-bank__link_paths_to_featurewith:json{ "feature_slug": "<feature_slug>", "path_ids": ["<path_id>"] }
- •Call
- •
Confirm:
- •Display: "Added
<path>to feature<feature_slug>"
- •Display: "Added
Example Usage
code
/mb-quick-add src/auth/oauth.ts "OAuth token validation" auth