agentleFS
lost-rob0tlost-rob0t/skills/skills/discover-workflows/SKILL.md

discover-workflows

Skill0 starsChanged 14 days agoBSD-3-ClauseView on GitHub

discover-workflows, bash-history, emacs-history, activitywatch, dotfiles

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Run scripts/discover_workflows.py from this skill directory.

    line 16
  2. Distinctive:

    Ask the user which suggestions to implement.

    line 23
  3. Distinctive:

    Treat all history as sensitive local input.

    line 31
  4. Distinctive:

    Prefer a small alias, shell function, Emacs command/keybinding, project jump, or Qtile rule only when the repeated pattern is stable enough …

    line 34
  5. Distinctive:

    Keep suggestions reversible and specific.

    line 36
  6. Distinctive:

    If a history source is missing or ActivityWatch is unavailable, say so and continue with the sources that are present.

    line 38

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “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

Discover Workflows

Goal

Find repeated local workflows and turn them into concise, user-approved dotfiles suggestions that reduce typing, navigation, or context switching.

Workflow

  1. Run scripts/discover_workflows.py from this skill directory. It reads Bash history, Emacs savehist/recentf data, and local ActivityWatch when available. Pass explicit paths when the user's configuration uses another history location.
  2. Present the ranked suggestions with frequency evidence, the proposed dotfiles owner, and the expected benefit. Describe patterns, not raw history lines, prompts, URLs, credentials, or private paths.
  3. Ask the user which suggestions to implement. Do not edit dotfiles merely because a command is frequent; frequency is evidence, not authorization.
  4. For approved changes, follow the user's existing dotfiles ownership and literate-source rules. Validate the generated/runtime result and report any pre-existing failures separately.

Rules

  • Treat all history as sensitive local input. The script skips likely secrets, redacts paths, and emits only command families, safe Emacs command names, broad project roots, and application categories.
  • Prefer a small alias, shell function, Emacs command/keybinding, project jump, or Qtile rule only when the repeated pattern is stable enough to name.
  • Keep suggestions reversible and specific. Do not install packages, publish history, or modify a configuration without explicit user approval.
  • If a history source is missing or ActivityWatch is unavailable, say so and continue with the sources that are present.

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.