Skip to content

/reset

Subdirectories to clear: tasks, specs, sessions, or all (default: all). Docs are preserved.

shell
$ npx -y skills add brsbl/ottonomous --skill reset --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/reset
How auto-invocation works

Context preview

The summary Claude sees to decide when to auto-load this skill.

Subdirectories to clear: tasks, specs, sessions, or all (default: all). Docs are preserved.

SKILL.md

reset.SKILL.md
name: reset
description: Resets workflow artifacts (.otto/ directory). Removes sessions, tasks, and specs. Use when starting over. Destructive - requires confirmation.
model-invokable: false
arguments:
  - name: targets
    description: "Subdirectories to clear: tasks, specs, sessions, or all (default: all). Docs are preserved."
    required: false

Reset workflow data. Selectively or fully clears the `.otto/` directory.

Available Targets

| Target | Directory | Contents | |--------|-----------|----------| | `tasks` | `.otto/tasks/` | Task lists | | `specs` | `.otto/specs/` | Specifications | | `sessions` | `.otto/sessions/` | Browser sessions | | `all` | Above targets | Everything except docs (default) |

Usage Examples

  • `reset` - Clear everything (prompts for confirmation)
  • `reset tasks` - Clear only task lists
  • `reset specs tasks` - Clear specs and tasks
  • `reset sessions` - Clear browser sessions only
  • `reset all` - Explicit full reset

Workflow

1. Check for .otto/

if [[ ! -d ".otto" ]]; then
  echo "No .otto/ directory found. Nothing to reset."
  exit 0
fi

If no `.otto/` exists, report and stop.

2. Parse Arguments

Map targets to directories:

tasks    -> .otto/tasks/
specs    -> .otto/specs/
sessions -> .otto/sessions/
all      -> tasks + specs + sessions (NOT docs)

If no arguments or `all` specified, target tasks, specs, and sessions. Docs are always preserved.

3. Preview Removal

Show what will be removed with sizes:

du -sh <target_dirs> 2>/dev/null

Display to user:

Will remove:
  .otto/tasks/ (4K)
  .otto/specs/ (8K)

4. Confirm

Prompt the user to confirm before proceeding: > "This will delete the selected workflow data. Continue?" > Options: "Yes, reset" / "Cancel"

5. Remove

After confirmation, remove only the targeted directories:

rm -rf <target_dirs>

For `all`, remove tasks, specs, and sessions (preserving docs):

rm -rf .otto/tasks .otto/specs .otto/sessions .otto/otto

7. Report

Reset complete. Cleared: tasks, specs
Run otto or spec to continue.
Read more
Read it on GitHub ↗
Ships withottonomous

Skills for every stage of product development — spec writing, task prioritization, implementation, testing, code review, and summaries — that work in both Claude Code and OpenAI Codex.

Get the whole plugin, auto-invoked
Stats
14
Stars
0
Views
2
Forks
Active
Maintenance
JavaScript
Language
MIT
License
1d ago
Last commit
6mo ago
Created

Repo: brsbl/ottonomous