evolve
CommandEvolve skill files by integrating validated lessons from real usage
Initialize .autocontext/ in the current project for knowledge persistence
> /plugin marketplace add jamditis/claude-skills-journalism
description: Initialize .autocontext/ in the current project for knowledge persistence
Initialize the autocontext knowledge directory in the current project. Use AskUserQuestion for setup decisions.
First, the script checks if `.autocontext/` already exists in the project root. If it does, you'll be informed and asked:
**Question:** This project already has autocontext initialized. Reinitialize?
**Options:**
If you choose to reinitialize, existing lessons in `.autocontext/lessons.json` will be preserved but all config files will be reset.
If a `CLAUDE.md` file exists in the project root:
**Question:** This project has a CLAUDE.md. Seed initial lessons from it?
**Options:**
This helps bootstrap project knowledge from existing documentation.
**Question:** Will other developers use Claude Code on this repo?
**Options:**
Cross-developer sharing allows multiple Claude instances to work on the same lessons.json without conflicts.
**Question:** Track test/build performance baselines?
**Options:**
Performance baselines help detect regressions in test suite and build times over time.
The script will create the following structure in `.autocontext/`:
.autocontext/
├── config.json # Project configuration (shared)
├── config.local.json # Local developer identity
├── lessons.json # Accumulated lessons (git-tracked)
├── playbook.md # Curated lesson playbook (auto-generated)
├── .gitignore # Ignore cache and local files
├── .gitattributes # (if sharing enabled) Configure merge driver
├── cache/ # Temporary files (not git-tracked)
│ ├── pending-lessons.json # (if ask_before_persist) Awaiting approval
│ └── curated-pending.json # From /autocontext:review sessions
└── archive/ # Tombstoned lessons (git-tracked)
└── superseded.json # Deleted lessons for referenceThe script copies template files from `${CLAUDE_PLUGIN_ROOT}/templates/`:
The `project_name` in config.json will be set to the git repository name or directory basename if not in a git repo.
After copying the config template, merge values from `~/.claude/autocontext.json` (if it exists) into the project's `config.json`. Global settings provide defaults; per-project config can override them later.
Mapping from global to project config:
If you selected cross-developer sharing, the script will:
1. Copy `.gitattributes` template 2. Install the union merge driver via git config:
git config merge.autocontext-union.name "Autocontext lessons.json union merge"
git config merge.autocontext-union.driver "python3 ${CLAUDE_PLUGIN_ROOT}/scripts/merge-driver.py %O %A %B"This allows `lessons.json` to be merged non-destructively when multiple developers commit lessons in parallel.
If you selected CLAUDE.md seeding, the script runs:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/seed-from-claude-md.py CLAUDE.md .autocontext/lessons.jsonThis parses the CLAUDE.md file and extracts structured lessons. If you chose "extract and review," each lesson will be presented for approval before being added.
After all setup is complete, the script generates an initial playbook:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/generate-playbook.py .autocontext/lessons.json .autocontext/playbook.mdThe playbook is a curated, readable summary of your project's lessons. It's automatically regenerated after each `/autocontext:review` session.
Once initialization is complete, you'll see a summary of what was created:
You can now use the autocontext plugin in this project. Lessons will automatically accumulate during sessions.
A collection of Agent Skills for journalists, researchers, academics, media professionals, and communications practitioners. The same repository serves Claude Code and Codex while keeping Claude-only commands, agents, and hooks clearly labeled.
Evolve skill files by integrating validated lessons from real usage
Create event materials (flyers, posters, signage) with your organization's branding
Create an HTML email newsletter with your organization's branding
Initialize the current project with Scientific Writer - a deep research and writing tool that combines AI-driven research with…