--- name: dss-reset description: Reset DSS to clean state (clear all data, skins, tokens) arguments: - name: confirm description: Pass --confirm to execute (otherwise dry-run) required: false --- # DSS Reset Command Clear all DSS data, skins, tokens, and generated files. Returns to clean state awaiting Figma sync. ## Usage ``` /dss-reset [--confirm] ``` Without `--confirm`, runs in dry-run mode showing what would be deleted. ## What This Clears 1. `.dss/data/` - Projects, teams, cache, activity 2. `admin-ui/css/dss-*.css` - Generated CSS files 3. `admin-ui/src/components/*.stories.js` - Generated stories 4. `admin-ui/src/components/ds-*.js` - Generated components 5. `dss/core_tokens/tokens.json` - Reset to empty 6. `dss-claude-plugin/core/skins/*.json` - Reset to awaiting sync 7. `.dss/logs/` - Clear log files ## Instructions for Claude When the user runs this command: 1. Check if `--confirm` flag is provided 2. Execute reset script: ```bash scripts/dss-reset.sh [--confirm] ``` 3. Show what was cleared (or would be cleared in dry-run) 4. Remind user to run `/dss-init` to re-initialize structure ## Safety - Default is DRY RUN - no changes unless `--confirm` is passed - Regenerates hash manifest after reset - Stops any running Storybook processes ## Example Output (Dry Run) ``` DSS Full Reset ========================================== DRY RUN MODE - No changes will be made Run with --confirm to execute 1. Clearing .dss/data/ structure... Would run: rm -rf .dss/data/projects/* ... ... DRY RUN COMPLETE Run with --confirm to execute ```