Agent-agnostic journaling policy for AI assistants.
This repo works with Codex, Claude, Cursor agents, and any agent that can read Markdown instructions and run shell scripts.
- domain-scoped memory
- meaningfulness gate (no noisy logs)
- promise integrity (no fake "I will remember")
- sensitive-data redaction
- weekly review cadence
- monthly history hygiene report
Share this repo URL and say:
Install and use this repo as my default journaling policy. Run scripts/bootstrap_memory.sh, then enforce SKILL.md + UNIVERSAL_AGENT_PROMPT.md rules on meaningful tasks.
- Anyone can open an issue: https://github.com/MehmetSecgin/journal-default-skill/issues
- Anyone can submit a pull request: https://github.com/MehmetSecgin/journal-default-skill/pulls
Ask your agent to contribute with this prompt:
Read this repo, propose one concrete improvement, open a GitHub issue describing the change, implement it in a branch, and open a PR with rationale and before/after behavior.
- Clone this repo.
- Set optional memory path:
export MEMORY_ROOT=~/agent-memory- or
export OBSIDIAN_MEMORY_ROOT=~/memory-root
- Bootstrap storage:
./scripts/bootstrap_memory.sh- add
--forceonly when intentionally resetting baseline files
- add
- Use policy docs:
SKILL.mdUNIVERSAL_AGENT_PROMPT.md
- Run periodic checks:
./scripts/weekly_memory_review.sh./scripts/monthly_memory_history_review.sh
- Prefer deterministic session operations:
./scripts/write_session.sh --domain engineering --title "..." --summary "..."./scripts/check_index_consistency.sh
bashpython3rg(ripgrep)git(recommended for memory history checks/lint)obsidian-cli(optional; used when available for vault discovery)
When an agent is asked to "update the skill from its repo", run:
git fetch --all --prunegit pull --ff-onlybash -n scripts/*.sh./scripts/check_index_consistency.sh --help- Re-read
SKILL.mdandUNIVERSAL_AGENT_PROMPT.mdand apply the new policy.
If this repo is copied into another tool-specific skills folder, sync these files exactly:
SKILL.mdUNIVERSAL_AGENT_PROMPT.mdreferences/domain-routing.mdscripts/*.sh
SKILL.md: core policyUNIVERSAL_AGENT_PROMPT.md: copy-paste policy for non-Codex agentsreferences/domain-routing.md: routing hintsscripts/bootstrap_memory.sh: deterministic memory layout + trackersscripts/memory_lint.sh: commit-blocking linter for memory reposscripts/weekly_memory_review.sh: weekly review generatorscripts/monthly_memory_history_review.sh: monthly history hygiene reportscripts/resolve_memory_root.sh: shared memory-root resolverscripts/write_session.sh: deterministic session write + index appendscripts/check_index_consistency.sh: verify/fix session index links
All scripts use MEMORY_ROOT when set.
Then OBSIDIAN_MEMORY_ROOT if set.
Fallback default is ~/memory-root.
Copy this folder into $CODEX_HOME/skills/journal-default.