Install
$ agentstack add skill-alexanderj-carter-agentsociety2-agent-skills-reflection ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Reflection
Purpose
Convert repeated experiences into higher-level understanding. This skill lets the agent learn patterns about self, others, places, routines, culture, and consequences.
Internal Logic (One Sentence)
Compress repeated memories, emotions, plans, relationship changes, and routine outcomes into concise reflections, then append state/reflections.jsonl and update beliefs, preferences, or self-concept when evidence is strong.
Research basis: references/research_basis.md.
Use When
Use this skill periodically, after major events, after repeated similar memories, at the end of a day, or before long-horizon planning.
Procedure
- Read
state/memory.jsonl,memory/memory.jsonl,state/relationships.json,state/routine.json,state/emotion.json,state/physiology.json, and existingstate/reflections.jsonlif present. - Look for repeated patterns, contradictions, strong emotions, completed goals, failures, and social consequences.
- Create concise reflections that can guide future choices.
- Update beliefs, preferences, and self-concept only when evidence is strong enough.
- Write new reflections and current belief state.
Write
Append state/reflections.jsonl. Write state/beliefs.json, state/preferences.json, and state/self_concept.json when changed.
Output Schema
Reflection JSONL line:
{
"tick": 180,
"type": "pattern",
"summary": "I often become tired and irritable after skipping lunch.",
"evidence": ["missed lunch", "anger rose", "plan interrupted"],
"confidence": 0.74,
"tags": ["physiology", "routine", "emotion"]
}
state/beliefs.json:
{
"self": {
"late_meals_reduce_mood": {
"belief": "Skipping lunch tends to make me tired and irritable.",
"confidence": 0.74
}
},
"others": {},
"places": {}
}
Notes
Do not reflect every tick. Reflection should be slower than memory. It should compress experience into useful patterns without erasing the raw memory trail.
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
- Source: 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.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.