← ClaudeAtlas

agentsuser-acceptlisted

Apply a buffered observation to .agent-user.md after explicit user confirmation; bumps last_updated and drops the applied observations from the buffer.
event4u-app/agent-config · ★ 7 · AI & Automation · score 84
Install: claude install-skill event4u-app/agent-config
# /agents user accept Apply a buffered observation from [`.agent-user.observations.jsonl`](../../../../docs/contracts/agent-user-schema.md#observation-buffer) to `.agent-user.md` after explicit confirmation. Use when: - `/agents user review` surfaced an observation worth applying. - The user invoked `/agents user accept <field>` directly. Never runs autonomously — always asks before writing. ## Steps ### 1. Preconditions ```bash ls .agent-user.md 2>/dev/null ls .agent-user.observations.jsonl 2>/dev/null ``` Either missing → print "Run `/agents user init` and accumulate observations first." and stop. ### 2. Resolve target field | Invocation | Resolved field | |---|---| | Handed off from `/agents user review` option 1 | The most-frequent field | | `/agents user accept <field>` | `<field>` (must match the schema enum) | | `/agents user accept` with no arg | Print the field list, ask which | Invalid field → print the schema enum and stop. ### 3. Compute proposed change For the resolved field: 1. Read every matching observation from the buffer. 2. Pick the **latest** `suggest` value (most recent `ts` wins). 3. Read the current value from `.agent-user.md`. 4. If they match, print "No change — current value already matches the latest observation." and skip to step 6. ### 4. Confirm ``` Apply this change to .agent-user.md? field : {field} current : "{current_value}" proposed: "{proposed_value}" source : {n} observations between {oldest_ts} and {newest_t