auto-init
Auto-checks project context, logs activity via scribe, and manages the activity log and artifact directories. Loaded by Optimus and Megatron on every command.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Auto-checks project context, logs activity via scribe, and manages the activity log and artifact directories. Loaded by Optimus and Megatron on every command.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Silent logger skill. Provides Scribe agent with rules for activity logging, memory writes, and report generation within .claude/transformers/.
Deep git and VCS knowledge — worktrees, branching, rebase, conflict resolution, PR review, bisect, release workflow.
Decision intelligence system — agents learn decision rules from every task. Not a cache. Only stores what changes future behavior.
How to create effective Transformers skills — structure, progressive disclosure, bundled resources, testing.
Guided introduction to Transformers for new users — what it is, how to use it, what each agent does.
Pre-completion self-check for all builder agents. Run before marking any task done.
| 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 |
Before starting any work:
Does .claude/transformers/context/project.md exist?
/transformers:init first for best results, or I can proceed without project context."Is it stale? Check the "Generated on" date in the file.
/transformers:init --update to refresh, or I'll work with what we have."Does .claude/transformers/context/skills-registry.md exist?
.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:initonce 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.
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
User patterns — always read .claude/transformers/memory/long-term/user-patterns.md in full if it exists
Temp memory — read .claude/transformers/memory/temp.md if it exists
If none exist → no memory yet. Proceed normally. Memory will grow as agents work.
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/
status.md showing incomplete work → "Found in-progress work for [name]. Want to resume or start fresh?"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/
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:
.claude/transformers/reports/activity.log: 2026-03-16 14:30 feature Built dark mode toggle — 4 files changed [85k tokens, 6 agents]".claude/transformers/reports/activity.log: 2026-03-16 16:00 bugfix Fixed null pointer in auth flow — 2 files changed [42k tokens, 4 agents]".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.