Files
dss/dss-claude-plugin/commands/dss-reset.md
DSS 08ce228df1
Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled
feat: Add DSS infrastructure, remove legacy admin-ui code
- Remove legacy admin-ui/js/ vanilla JS components
- Add .dss/ directory with core tokens, skins, themes
- Add Storybook configuration and generated stories
- Add DSS management scripts (dss-services, dss-init, dss-setup, dss-reset)
- Add MCP command definitions for DSS plugin
- Add Figma sync architecture and scripts
- Update pre-commit hooks with documentation validation
- Fix JSON trailing commas in skin files

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-10 22:15:11 -03:00

69 lines
1.7 KiB
Markdown

---
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. `.dss/dss.db` - SQLite database
3. `admin-ui/css/dss-*.css` - Generated CSS files
4. `admin-ui/src/components/*.stories.js` - Generated stories
5. `admin-ui/src/components/ds-*.js` - Generated components
6. `dss/core_tokens/tokens.json` - Reset to empty
7. `dss-claude-plugin/core/skins/*.json` - Reset to awaiting sync
8. `.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/* ...
2. Resetting database...
Would run: rm -f .dss/dss.db
...
DRY RUN COMPLETE
Run with --confirm to execute
```