Reset Skill
This skill reinitializes the second-brain project by removing all user data and content.
What it does
- Deletes the user profile (
profile.md) - Deletes all notes (entire
notesfolder) - Deletes the Obsidian vault (entire
obsidian/vaultfolder)
Usage
When the user asks to reset the project or start fresh, use this skill to clean up all user-generated content.
Implementation Steps
Confirm with the user before proceeding, as this operation is destructive and cannot be undone
Determine the workspace root:
- Use the workspace path from user information (e.g.,
alexandreroman/second-brain) - This ensures portability across different operating systems
- Use the workspace path from user information (e.g.,
Delete the user profile:
- Remove
<workspace-root>/.profile.md
- Remove
Delete all notes:
- Remove the entire
<workspace-root>/notesdirectory
- Remove the entire
Delete the Obsidian vault:
- Remove the entire
<workspace-root>/obsidian/vaultdirectory
- Remove the entire
Confirm completion and inform the user that the project has been reset
Platform-Specific Commands
Use platform-appropriate commands based on the user's OS:
Windows (PowerShell)
Remove-Item -Path "<path>" -Recurse -Force -ErrorAction SilentlyContinue
macOS/Linux (Bash)
rm -rf "<path>"
Important Notes
- This operation is irreversible - all user data will be permanently deleted
- Always ask for explicit confirmation before executing
- After reset, the user may want to run the
setupskill to set up their profile again - Consider suggesting a backup before proceeding with the reset
Safety
- Use OS-appropriate commands to delete files and directories
- Check if files/directories exist before attempting to delete them
- Provide clear feedback about what was deleted
- Handle errors gracefully (e.g., if a file/directory doesn't exist)