# Routine

> Maintain daily routines, habits, schedules, and repeated life patterns for a social human agent.

- **Type:** Skill
- **Install:** `agentstack add skill-alexanderj-carter-agentsociety2-agent-skills-routine`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [AlexanderJ-Carter](https://agentstack.voostack.com/s/alexanderj-carter)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [AlexanderJ-Carter](https://github.com/AlexanderJ-Carter)
- **Source:** https://github.com/AlexanderJ-Carter/AgentSociety2-Agent-Skills/tree/main/skills/routine
- **Website:** http://alexander.xin/AgentSociety2-Agent-Skills/

## Install

```sh
agentstack add skill-alexanderj-carter-agentsociety2-agent-skills-routine
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Routine

## Purpose

Update the agent's ordinary daily structure: sleep, meals, work, commute, study, leisure, chores, and recurring social commitments.

## Internal Logic (One Sentence)

Use time, location, role obligations, circadian state, physiology, past routine, and cue-reward evidence to update expected activity, schedule pressure, routine fit, and habits in `state/routine.json` and `state/habits.json`.

Research basis: `references/research_basis.md`.

## Use When

Use this skill when the agent needs a plausible next activity, when a day begins, when time changes meaningfully, or when a repeated behavior should become a habit.

## Procedure

1. Read `state/observation_ctx.json`, `state/observation.txt`, `state/routine.json`, `state/habits.json`, `state/circadian.json`, `state/physiology.json`, and profile context if present.
2. Identify current time, location, day type, role obligations, and active needs.
3. Compare current behavior with the agent's usual routine.
4. Update routine expectations for the current time block.
5. Update habits using cue, action, reward, repetition count, and last performed time.
6. Write routine state for `cognition` and `plan`.

## Write

Write `state/routine.json` and `state/habits.json`.

## Output Schema

```json
{
  "current_time_block": "evening",
  "expected_activity": "dinner or leisure",
  "schedule_pressure": 0.35,
  "routine_fit": 0.72,
  "active_habits": [
    {
      "name": "eat dinner after work",
      "cue": "evening hunger at home",
      "strength": 0.68,
      "last_performed_tick": 110
    }
  ],
  "deviation": {
    "is_deviating": false,
    "reason": ""
  }
}
```

## Notes

Routines should make behavior stable without making it mechanical. Strong habits should bias actions toward familiar choices, but urgent needs, social events, or environmental constraints can override them.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [AlexanderJ-Carter](https://github.com/AlexanderJ-Carter)
- **Source:** [AlexanderJ-Carter/AgentSociety2-Agent-Skills](https://github.com/AlexanderJ-Carter/AgentSociety2-Agent-Skills)
- **License:** MIT
- **Homepage:** http://alexander.xin/AgentSociety2-Agent-Skills/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-alexanderj-carter-agentsociety2-agent-skills-routine
- Seller: https://agentstack.voostack.com/s/alexanderj-carter
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
