| workflow | {"version":1,"steps":[{"id":"read-current","role":"system","intent":"Read current CLAUDE.md and agent files to identify existing zones.","produces":["current-claude-md","current-agents"]},{"id":"explore-project","role":"system","intent":"Scan project for current stack, dependencies, architecture, conventions.","produces":["detected-stack","detected-architecture","detected-conventions"],"gate":true},{"id":"check-zones","role":"system","intent":"Check if CLAUDE.md has guild zone markers. If not, offer to inject them.","requires":["current-claude-md"],"produces":["zone-status"],"gate":true},{"id":"regenerate-zones","role":"tech-lead","intent":"Generate new content for each auto zone based on fresh project scan. Present diff to user.","requires":["current-claude-md","detected-stack","detected-architecture","detected-conventions","zone-status"],"produces":["updated-claude-md","zone-diffs"],"model-tier":"reasoning"},{"id":"update-agents","role":"tech-lead","intent":"Update agent-context zones in agent files with fresh project context.","requires":["detected-stack","detected-architecture","detected-conventions"],"produces":["updated-agents"],"model-tier":"execution"},{"id":"confirm","role":"system","intent":"Present summary of changes and get user confirmation.","requires":["zone-diffs","updated-agents"],"produces":["confirmation"],"gate":true},{"id":"commit","role":"system","intent":"Commit re-specialized files.","requires":["updated-claude-md","updated-agents","confirmation"],"produces":["re-specialize-commit"]}]} |