agentleFS
skyllwtskyllwt/AutoSci/.claude/skills/reset/SKILL.md

reset

Skill1.7k starsChanged 2 months agoMITView on GitHub

Reset wiki state to a clean scaffold by scope (wiki / raw / log / checkpoints / all). Useful during development or carefree restarts after a botched setup.

  • Reads credentials

8 other projects use a version of this, 1 of them edited.

Trending

Quiet since June.thin dataabout the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 0 mentionsMay 2026: 4 mentionsJun 2026: 1 mentionJul 2026: 0 mentionsAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the skyllwt/AutoSci repository that our weekly crawl found: only 5 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 0 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the user says no, exit.

    line 59
  2. Very specific:

    If the executed scope did not include log, append a log entry so future sessions can see the reset happened:

    line 71
  3. Very specific:

    Confirm before destructive action: never call --yes without showing the plan and asking the user.

    line 95
  4. Very specific:

    Scope is required: no default action (/reset with no flag prompts for scope rather than guessing).

    line 99

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/reset

Resets the wiki to a clean scaffold by scope. Designed for development iteration and recovery after a failed setup — not a routine operation.

Trigger

Manual: /reset --scope wiki / --scope raw / --scope log / --scope checkpoints / --scope all. Multiple scopes may be combined comma-separated: --scope wiki,log.

Inputs

  • --scope (required): one of
    • wiki — delete every *.md under wiki/<entity>/ and wiki/outputs/, plus wiki/index.md, wiki/log.md, and wiki/graph/ files. Preserves .gitkeep and wiki/CLAUDE.md.
    • raw — delete every entry under raw/papers/, raw/discovered/, raw/tmp/, raw/notes/, raw/web/ (except .gitkeep).
    • log — reset wiki/log.md to the empty header.
    • checkpoints — clear batch state via research_wiki.py checkpoint-clear.
    • all — every scope above.

Outputs

  • Cleared / reset files on disk.
  • Console summary of deleted files and reset files.

Wiki Interaction

Reads

  • All wiki/<entity>/*.md (to enumerate the deletion plan).
  • raw/<sub>/* (to enumerate raw deletions).

Writes

  • Deletes wiki/<entity>/*.md (preserves .gitkeep).
  • Rewrites wiki/index.md, wiki/graph/*, optionally wiki/log.md.
  • Deletes raw/<sub>/* (except .gitkeep).

Workflow

Pre-conditions: working directory contains wiki/, tools/. Set WIKI_ROOT=wiki/.

Step 1: Build the deletion plan (dry-run)

python3 tools/reset_wiki.py --scope <scope>

This prints a JSON plan listing every file that would be deleted or reset, without modifying anything. Display the plan to the user grouped by scope (wiki entity dirs, raw subdirs, log, checkpoints).

Step 2: Confirm with the user

Print the plan summary and ask for explicit confirmation:

About to delete N files and reset M files. Continue? [y/N]

If the user says no, exit. Never proceed without explicit approval — /reset is destructive and raw/ deletions are not tracked by git.

Step 3: Execute

python3 tools/reset_wiki.py --scope <scope> --yes

The tool prints a JSON status report ({deleted_files, reset_files}).

Step 4: Log (unless log scope was reset)

If the executed scope did not include log, append a log entry so future sessions can see the reset happened:

python3 tools/research_wiki.py log wiki/ "reset | scope: <scope>"

Step 5: Report

Print the result and suggest next steps:

## Reset complete — scope: <scope>

Deleted: N files
Reset:   M files

Next steps:
- /init       — bootstrap wiki from raw/
- /prefill    — seed foundational background
- /ingest     — add a single source manually

Constraints

  • Confirm before destructive action: never call --yes without showing the plan and asking the user.
  • Preserves: .gitkeep placeholders, wiki/CLAUDE.md, .claude/ (skills are never touched).
  • raw/ deletes are irreversible: PDFs are not in git history. Warn the user before executing raw or all scopes.
  • /reset does not touch tools/, mcp-servers/, i18n/, .env, or git state.
  • Scope is required: no default action (/reset with no flag prompts for scope rather than guessing).

Error Handling

  • Unknown scope: print valid scopes and exit nonzero.
  • Missing wiki directory: report and suggest running /init.
  • checkpoint-clear failure: log a warning but do not fail other scopes.

Dependencies

Tools (via Bash)

  • python3 tools/reset_wiki.py --scope <scope> [--yes] [--project-root .] — deterministic destructive helper
  • python3 tools/research_wiki.py log wiki/ "<message>" — append log
  • reset_wiki.py clears wiki/.checkpoints/*.json directly for checkpoints scope (no CLI dispatch — the checkpoint-clear subcommand requires a specific task_id, while /reset --scope checkpoints semantics is "clear everything")

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.