AI Agent Hub
Back to skills
Basal Ganglia Habit Recorder · Behavior Automation and Habit Formation icon

Basal Ganglia Habit Recorder · Behavior Automation and Habit Formation

Life Service Updated 2026.08.29

Paste the following prompt into your AI chat to install this skill:

Please follow https://skillhub.cn/install/skillhub.md to install @user_faa89036/habit-loop.

About this skill

Problem

In long-running AI agent workflows, many actions are not novel: the same cleanup, lookup, templated generation, or style-dependent output repeats. Re-running full intent decoding, prechecks, and confirmation every time makes the path longer and forces users to repeat the same preferences. habit-loop addresses the repetition cost of high-frequency workflows by turning verified task paths into reusable rules instead of re-deriving them on every turn.

How It Works

The skill works around a local habit store at .workbuddy/dreams/habit-store.json. Its core loop is:

  • Automatic formation: when a similar task appears at least three times, or task-frequency-tracker.json reveals a recognizable pattern, the system marks the candidate task as a habit rule.
  • Hit execution: later matching tasks can run the verified path directly, skipping some prechecks and confirmation steps, reducing flow overhead in the low single-digit second range.
  • Learning and maintenance: user overrides are logged as exceptions; repeated hits strengthen confidence; stale rules decay so outdated logic does not pollute later execution.

It can also coordinate with related skills: high-confidence, high-frequency habits may be suggested for promotion to formal skills, while working memory, REM insights, and style preferences can seed habit candidates.

Boundaries

This mechanism fits repetitive, well-scoped, verifiable tasks such as fixed-format cleanup, common lookups, templated output, and preference capture. For high-risk actions, heavily context-dependent work, or one-off complex decisions, it should not default to bypassing checks. Keep habit-store.json auditable and retain a fallback path back to the full verification flow when rules misbehave.

Use Cases

  • When a similar spreadsheet cleanup task appears three times, convert column renaming and deduplication into a reusable habit rule.
  • After reading `task-frequency-tracker.json`, check whether repeated lookups can skip prechecks and return fixed results directly.
  • When a user overrides a fixed output rule, log the habit exception and evaluate whether the rule needs updating or decay.
  • For high-confidence workflows with five or more hits, suggest promotion to a formal Skill via `auto-skill-creator`.

Best For

  • AI engineers maintaining local WorkBuddy workflows who want fewer confirmations and prechecks for repeated tasks.
  • Agent developers building multi-skill chains who need to promote high-frequency candidates into formal Skills.
  • Product engineers generating templated reports who want the same style parameters to avoid reloading every time.
  • Research users working with `dream-memory` and `working-memory-buffer` who want automatic behavior learning from frequent patterns.