| name | auto-init |
| description | Auto-checks project context, logs activity via scribe, and manages the activity log and artifact directories. Loaded by Optimus and Megatron on every command. |
| user-invocable | false |
Project Context Check
Before starting any work:
-
Does .claude/transformers/context/project.md exist?
- If NO โ tell the user: "This project hasn't been initialized for Transformers yet. Run
/transformers:init first for best results, or I can proceed without project context."
- If YES โ load it silently and proceed.
-
Is it stale? Check the "Generated on" date in the file.
- If older than 24 hours โ mention once: "Project context is from [date]. Run
/transformers:init --update to refresh, or I'll work with what we have."
- Don't block โ just mention it.
-
Does .claude/transformers/context/skills-registry.md exist?
- If YES โ load it silently. Pass the available skills and local agents as context to the orchestrator.
- If NO โ check
.claude/transformers/context/init-prompted.md for a last-prompted date.
-
If last-prompted is today's date โ skip silently and proceed.
-
Otherwise โ write today's date to init-prompted.md (create if missing), then tell the user:
"Transformers hasn't been initialized for this project yet. Running /transformers:init once analyzes your project's architecture, tech stack, and git workflow โ so every agent starts informed instead of exploring from scratch. It also discovers any skills and local agents you have installed. It's a one-time setup (refresh anytime with /transformers:init --update). Want me to run it now, or continue without it?"
-
If user says yes โ invoke /transformers:init via the Skill tool, then continue.
-
If user says no โ continue. Won't ask again until tomorrow.
Memory Check
Before starting work, load project memory:
-
Skills & agents registry โ already loaded in Project Context Check above (step 3). If loaded, keep it in context โ orchestrators will consult it when routing tasks.
-
Long-term memory index โ read .claude/transformers/memory/long-term/index.md if it exists
- Silently absorb relevant learnings. Don't announce them unless directly relevant to the current task.
- If a learning is relevant, read the full category file for details.
-
User patterns โ always read .claude/transformers/memory/long-term/user-patterns.md in full if it exists
- These are behavioral preferences learned from past corrections and redirects. Apply them immediately.
- Don't announce them โ just use them.
-
Temp memory โ read .claude/transformers/memory/temp.md if it exists
- These are learnings from earlier in this conversation. Apply them.
If none exist โ no memory yet. Proceed normally. Memory will grow as agents work.
Artifact Directory Check
For lifecycle commands (feature, bugfix, research):
-
Prune stale .temp/ entries โ spawn Scribe to delete any subdirectory under .claude/transformers/.temp/ whose status.md has a timestamp older than 2 days. If no status.md exists in a folder, delete it too.
-
Check for in-progress work in .claude/transformers/.temp/
- If a matching artifact directory exists with
status.md showing incomplete work โ "Found in-progress work for [name]. Want to resume or start fresh?"
- If starting fresh with a name collision โ append a number (
features/search-2)
-
Ensure directory structure exists:
.claude/transformers/
โโโ context/
โ โโโ project.md โ from /transformers:init
โ โโโ pr-preferences.md โ from /transformers:pr-generator
โโโ memory/
โ โโโ temp.md โ per-conversation learnings
โ โโโ long-term/ โ cross-conversation learnings
โ โโโ index.md โ one-line summaries (loaded on every command)
โ โโโ [category].md โ detailed learnings by topic
โโโ reports/ โ from /transformers:report
โ โโโ activity.log โ scribe appends after every command
โโโ .temp/ โ in-progress and completed feature/bugfix artifacts
โโโ features/
โโโ bugfix/
Activity Logging
After completing any command, spawn scribe to log what was done.
Tell scribe exactly what to write โ one line in this format:
YYYY-MM-DD HH:MM [command] [brief description] [files touched count] [Xk tokens, N agents]
The token/agent count is optional for standalone commands but required for lifecycle commands (feature, bugfix) and test.
Example instructions to scribe:
- "Append to
.claude/transformers/reports/activity.log: 2026-03-16 14:30 feature Built dark mode toggle โ 4 files changed [85k tokens, 6 agents]"
- "Append to
.claude/transformers/reports/activity.log: 2026-03-16 16:00 bugfix Fixed null pointer in auth flow โ 2 files changed [42k tokens, 4 agents]"
- "Append to
.claude/transformers/reports/activity.log: 2026-03-16 17:00 debug Fixed typo in config โ 1 file changed"
Scribe handles directory creation, appending, and pruning entries older than 7 days.