[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CYBJ1KP7W3X8HEG49KST9Q":3,"skill-same:01M6CYBJ1KP7W3X8HEG49KST9Q":63},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":26,"linkOnly":27,"markdownContent":28,"markdownBody":29,"frontMatter":30,"refName":31,"commitSha":32,"skillDirectory":33,"forksCount":13,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":36,"install":37,"resources":50},"01M6CYBJ1KP7W3X8HEG49KST9Q","workflows-review",null,"Perform exhaustive code reviews using multi-agent analysis, ultra-thinking, and worktrees","The-Rabak\u002Fnaysmith","The-Rabak","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F44833742?v=4","01M6CY211HB58Y8JNWWEV9FGN1","01M6CY8HJW3TE1AQW1F13PHYB2",0,"GPL-2.0","https:\u002F\u002Fgithub.com\u002FThe-Rabak\u002Fnaysmith\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fworkflows-review\u002FSKILL.md",[],[18,19,20,21,22,23,24,25],"review","workflows","workflows review","code","analysis","multi-agent","worktrees","thinking","2026-11-10 10:12:30",false,"---\nname: workflows-review\ndescription: Perform exhaustive code reviews using multi-agent analysis, ultra-thinking, and worktrees\n---\n\n## Arguments\n[branch name, file path, or empty for current branch]\n\n# Review Command\n\n\u003Ccommand_purpose> Perform exhaustive code reviews using multi-agent analysis, ultra-thinking, and Git worktrees for deep local inspection. \u003C\u002Fcommand_purpose>\n\n## Introduction\n\n\u003Crole>Senior Code Review Architect with expertise in security, performance, architecture, and quality assurance\u003C\u002Frole>\n\n## Prerequisites\n\n\u003Crequirements>\n- Git repository\n- Clean main\u002Fmaster branch (for diff baseline)\n- Proper permissions to create worktrees and access the repository\n- For document reviews: Path to a markdown file or document\n\u003C\u002Frequirements>\n\n## Main Tasks\n\n### 1. Determine Review Target & Setup (ALWAYS FIRST)\n\n\u003Creview_target> #$ARGUMENTS \u003C\u002Freview_target>\n\n\u003Cthinking>\nFirst, I need to determine the review target type and set up the code for analysis.\n\u003C\u002Fthinking>\n\n#### Immediate Actions:\n\n\u003Ctask_list>\n\n- [ ] Determine review type: branch name, file path (.md), or empty (current branch)\n- [ ] Check current git branch\n- [ ] Determine the default branch:\n  ```bash\n  default_branch=$(git symbolic-ref refs\u002Fremotes\u002Forigin\u002FHEAD 2>\u002Fdev\u002Fnull | sed 's@^refs\u002Fremotes\u002Forigin\u002F@@')\n  [ -z \"$default_branch\" ] && default_branch=$(git rev-parse --verify origin\u002Fmain >\u002Fdev\u002Fnull 2>&1 && echo \"main\" || echo \"master\")\n  ```\n- [ ] If ALREADY on the target branch → proceed with analysis\n- [ ] If DIFFERENT branch → offer to use worktree: \"Use git-worktree skill for isolated analysis\" or `git checkout [branch]`\n- [ ] Get the list of changed files:\n  ```bash\n  git diff --name-only ${default_branch}...HEAD\n  ```\n- [ ] Get the full diff for review:\n  ```bash\n  git diff ${default_branch}...HEAD\n  ```\n- [ ] Get commit messages for context:\n  ```bash\n  git log --oneline ${default_branch}..HEAD\n  ```\n- [ ] Set up language-specific analysis tools\n- [ ] Prepare security scanning environment\n\nEnsure that the code is ready for analysis (either in worktree or on current branch). ONLY then proceed to the next step.\n\n\u003C\u002Ftask_list>\n\n#### Protected Artifacts\n\n\u003Cprotected_artifacts>\nThe following paths are compound-engineering pipeline artifacts and must never be flagged for deletion, removal, or gitignore by any review agent:\n\n- `docs\u002Fplans\u002F*.md` — Plan files created by `\u002Fworkflows-plan`. These are living documents that track implementation progress (checkboxes are checked off by `\u002Fworkflows-work`).\n- `docs\u002Fsolutions\u002F*.md` — Solution documents created during the pipeline.\n\nIf a review agent flags any file in these directories for cleanup or removal, discard that finding during synthesis. Do not create a todo for it.\n\u003C\u002Fprotected_artifacts>\n\n#### Load Review Agents\n\nRead `compound-engineering.local.md` in the project root. If found, use `review_agents` from YAML frontmatter. If the markdown body contains review context, pass it to each agent as additional instructions.\n\nIf no settings file exists, invoke the `setup` skill to create one. Then read the newly created file and continue.\n\n#### Parallel Agents to review the branch changes:\n\n\u003Cparallel_tasks>\n\nRun all configured review agents in parallel using Task tool. For each agent in the `review_agents` list:\n\n```\nTask {agent-name}(branch diff content + review context from settings body)\n```\n\nAdditionally, always run these regardless of settings:\n- Use the agent-native-reviewer skill to: branch diff content - Verify new features are agent-accessible\n- Use the learnings-researcher skill to: branch diff content - Search docs\u002Fsolutions\u002F for past issues related to this PR's modules and patterns\n\n\u003C\u002Fparallel_tasks>\n\n#### Conditional Agents (Run if applicable):\n\n\u003Cconditional_agents>\n\nThese agents are run ONLY when the branch changes match specific criteria. Check the changed files list to determine if they apply:\n\n**MIGRATIONS: If PR contains database migrations or data backfills:**\n\n- Use the data-integrity-guardian skill to: branch diff content - Reviews migration safety, constraint naming, and migration conventions\n- Use the data-migration-expert skill to: branch diff content - Validates ID mappings match production, checks for swapped values, verifies rollback safety\n- Use the deployment-verification-agent skill to: branch diff content - Creates Go\u002FNo-Go deployment checklist with SQL verification queries\n\n\n**When to run:**\n- Changed files include `database\u002Fmigrations\u002F*.php`\n- Changes modify columns that store IDs, enums, or mappings\n- Changes include data backfill scripts or artisan commands\n- Commit messages mention: migration, backfill, data transformation, ID mapping\n\n**What these agents check:**\n- `data-integrity-guardian`: Reviews migration safety, project conventions (separate files for table\u002Findexes\u002FFKs, constraint naming with `unq_`\u002F`fk_`\u002F`idx_` prefixes)\n- `data-migration-expert`: Verifies hard-coded mappings match production reality (prevents swapped IDs), checks for orphaned associations, validates dual-write patterns\n- `deployment-verification-agent`: Produces executable pre\u002Fpost-deploy checklists with SQL queries, rollback procedures, Horizon monitoring plans\n\n\u003C\u002Fconditional_agents>\n\n### 4. Ultra-Thinking Deep Dive Phases\n\n\u003Cultrathink_instruction> For each phase below, spend maximum cognitive effort. Think step by step. Consider all angles. Question assumptions. And bring all reviews in a synthesis to the user.\u003C\u002Fultrathink_instruction>\n\n\u003Cdeliverable>\nComplete system context map with component interactions\n\u003C\u002Fdeliverable>\n\n#### Phase 3: Stakeholder Perspective Analysis\n\n\u003Cthinking_prompt> ULTRA-THINK: Put yourself in each stakeholder's shoes. What matters to them? What are their pain points? \u003C\u002Fthinking_prompt>\n\n\u003Cstakeholder_perspectives>\n\n1. **Developer Perspective** \u003Cquestions>\n\n   - How easy is this to understand and modify?\n   - Are the APIs intuitive?\n   - Is debugging straightforward?\n   - Can I test this easily? \u003C\u002Fquestions>\n\n2. **Operations Perspective** \u003Cquestions>\n\n   - How do I deploy this safely?\n   - What metrics and logs are available?\n   - How do I troubleshoot issues?\n   - What are the resource requirements? \u003C\u002Fquestions>\n\n3. **End User Perspective** \u003Cquestions>\n\n   - Is the feature intuitive?\n   - Are error messages helpful?\n   - Is performance acceptable?\n   - Does it solve my problem? \u003C\u002Fquestions>\n\n4. **Security Team Perspective** \u003Cquestions>\n\n   - What's the attack surface?\n   - Are there compliance requirements?\n   - How is data protected?\n   - What are the audit capabilities? \u003C\u002Fquestions>\n\n5. **Business Perspective** \u003Cquestions>\n   - What's the ROI?\n   - Are there legal\u002Fcompliance risks?\n   - How does this affect time-to-market?\n   - What's the total cost of ownership? \u003C\u002Fquestions> \u003C\u002Fstakeholder_perspectives>\n\n#### Phase 4: Scenario Exploration\n\n\u003Cthinking_prompt> ULTRA-THINK: Explore edge cases and failure scenarios. What could go wrong? How does the system behave under stress? \u003C\u002Fthinking_prompt>\n\n\u003Cscenario_checklist>\n\n- [ ] **Happy Path**: Normal operation with valid inputs\n- [ ] **Invalid Inputs**: Null, empty, malformed data\n- [ ] **Boundary Conditions**: Min\u002Fmax values, empty collections\n- [ ] **Concurrent Access**: Race conditions, deadlocks\n- [ ] **Scale Testing**: 10x, 100x, 1000x normal load\n- [ ] **Network Issues**: Timeouts, partial failures\n- [ ] **Resource Exhaustion**: Memory, disk, connections\n- [ ] **Security Attacks**: Injection, overflow, DoS\n- [ ] **Data Corruption**: Partial writes, inconsistency\n- [ ] **Cascading Failures**: Downstream service issues \u003C\u002Fscenario_checklist>\n\n### 6. Multi-Angle Review Perspectives\n\n#### Technical Excellence Angle\n\n- Code craftsmanship evaluation\n- Engineering best practices\n- Technical documentation quality\n- Tooling and automation assessment\n\n#### Business Value Angle\n\n- Feature completeness validation\n- Performance impact on users\n- Cost-benefit analysis\n- Time-to-market considerations\n\n#### Risk Management Angle\n\n- Security risk assessment\n- Operational risk evaluation\n- Compliance risk verification\n- Technical debt accumulation\n\n#### Team Dynamics Angle\n\n- Code review etiquette\n- Knowledge sharing effectiveness\n- Collaboration patterns\n- Mentoring opportunities\n\n### 4. Simplification and Minimalism Review\n\nRun the Task code-simplicity-reviewer() to see if we can simplify the code.\n\n### 5. Findings Synthesis and Todo Creation Using file-todos Skill\n\n\u003Ccritical_requirement> ALL findings MUST be stored in the todos\u002F directory using the file-todos skill. Create todo files immediately after synthesis - do NOT present findings for user approval first. Use the skill for structured todo management. \u003C\u002Fcritical_requirement>\n\n#### Step 1: Synthesize All Findings\n\n\u003Cthinking>\nConsolidate all agent reports into a categorized list of findings.\nRemove duplicates, prioritize by severity and impact.\n\u003C\u002Fthinking>\n\n\u003Csynthesis_tasks>\n\n- [ ] Collect findings from all parallel agents\n- [ ] Surface learnings-researcher results: if past solutions are relevant, flag them as \"Known Pattern\" with links to docs\u002Fsolutions\u002F files\n- [ ] Discard any findings that recommend deleting or gitignoring files in `docs\u002Fplans\u002F` or `docs\u002Fsolutions\u002F` (see Protected Artifacts above)\n- [ ] Categorize by type: security, performance, architecture, quality, etc.\n- [ ] Assign severity levels: ? CRITICAL (P1), ? IMPORTANT (P2), ? NICE-TO-HAVE (P3)\n- [ ] Remove duplicate or overlapping findings\n- [ ] Estimate effort for each finding (Small\u002FMedium\u002FLarge)\n\n\u003C\u002Fsynthesis_tasks>\n\n#### Step 2: Create Todo Files Using file-todos Skill\n\n\u003Ccritical_instruction> Use the file-todos skill to create todo files for ALL findings immediately. Do NOT present findings one-by-one asking for user approval. Create all todo files in parallel using the skill, then summarize results to user. \u003C\u002Fcritical_instruction>\n\n**Implementation Options:**\n\n**Option A: Direct File Creation (Fast)**\n\n- Create todo files directly using Write tool\n- All findings in parallel for speed\n- Use standard template from `.github\u002Fskills\u002Ffile-todos\u002Fassets\u002Ftodo-template.md`\n- Follow naming convention: `{issue_id}-pending-{priority}-{description}.md`\n\n**Option B: Sub-Agents in Parallel (Recommended for Scale)** For large PRs with 15+ findings, use sub-agents to create finding files in parallel:\n\n```bash\n# Launch multiple finding-creator agents in parallel\nTask() - Create todos for first finding\nTask() - Create todos for second finding\nTask() - Create todos for third finding\netc. for each finding.\n```\n\nSub-agents can:\n\n- Process multiple findings simultaneously\n- Write detailed todo files with all sections filled\n- Organize findings by severity\n- Create comprehensive Proposed Solutions\n- Add acceptance criteria and work logs\n- Complete much faster than sequential processing\n\n**Execution Strategy:**\n\n1. Synthesize all findings into categories (P1\u002FP2\u002FP3)\n2. Group findings by severity\n3. Launch 3 parallel sub-agents (one per severity level)\n4. Each sub-agent creates its batch of todos using the file-todos skill\n5. Consolidate results and present summary\n\n**Process (Using file-todos Skill):**\n\n1. For each finding:\n\n   - Determine severity (P1\u002FP2\u002FP3)\n   - Write detailed Problem Statement and Findings\n   - Create 2-3 Proposed Solutions with pros\u002Fcons\u002Feffort\u002Frisk\n   - Estimate effort (Small\u002FMedium\u002FLarge)\n   - Add acceptance criteria and work log\n\n2. Use file-todos skill for structured todo management:\n\n   ```bash\n   skill: file-todos\n   ```\n\n   The skill provides:\n\n   - Template location: `.github\u002Fskills\u002Ffile-todos\u002Fassets\u002Ftodo-template.md`\n   - Naming convention: `{issue_id}-{status}-{priority}-{description}.md`\n   - YAML frontmatter structure: status, priority, issue_id, tags, dependencies\n   - All required sections: Problem Statement, Findings, Solutions, etc.\n\n3. Create todo files in parallel:\n\n   ```bash\n   {next_id}-pending-{priority}-{description}.md\n   ```\n\n4. Examples:\n\n   ```\n   001-pending-p1-path-traversal-vulnerability.md\n   002-pending-p1-api-response-validation.md\n   003-pending-p2-concurrency-limit.md\n   004-pending-p3-unused-parameter.md\n   ```\n\n5. Follow template structure from file-todos skill: `.github\u002Fskills\u002Ffile-todos\u002Fassets\u002Ftodo-template.md`\n\n**Todo File Structure (from template):**\n\nEach todo must include:\n\n- **YAML frontmatter**: status, priority, issue_id, tags, dependencies\n- **Problem Statement**: What's broken\u002Fmissing, why it matters\n- **Findings**: Discoveries from agents with evidence\u002Flocation\n- **Proposed Solutions**: 2-3 options, each with pros\u002Fcons\u002Feffort\u002Frisk\n- **Recommended Action**: (Filled during triage, leave blank initially)\n- **Technical Details**: Affected files, components, database changes\n- **Acceptance Criteria**: Testable checklist items\n- **Work Log**: Dated record with actions and learnings\n- **Resources**: Links to PR, issues, documentation, similar patterns\n\n**File naming convention:**\n\n```\n{issue_id}-{status}-{priority}-{description}.md\n\nExamples:\n- 001-pending-p1-security-vulnerability.md\n- 002-pending-p2-performance-optimization.md\n- 003-pending-p3-code-cleanup.md\n```\n\n**Status values:**\n\n- `pending` - New findings, needs triage\u002Fdecision\n- `ready` - Approved by manager, ready to work\n- `complete` - Work finished\n\n**Priority values:**\n\n- `p1` - Critical (blocks merge, security\u002Fdata issues)\n- `p2` - Important (should fix, architectural\u002Fperformance)\n- `p3` - Nice-to-have (enhancements, cleanup)\n\n**Tagging:** Always add `code-review` tag, plus: `security`, `performance`, `architecture`, `laravel`, `vue`, `quality`, etc.\n\n#### Step 3: Summary Report\n\nAfter creating all todo files, present comprehensive summary:\n\n````markdown\n## ✅ Code Review Complete\n\n**Review Target:** Branch `[branch-name]` (vs `[default-branch]`)\n\n### Findings Summary:\n\n- **Total Findings:** [X]\n- **? CRITICAL (P1):** [count] - BLOCKS MERGE\n- **? IMPORTANT (P2):** [count] - Should Fix\n- **? NICE-TO-HAVE (P3):** [count] - Enhancements\n\n### Created Todo Files:\n\n**P1 - Critical (BLOCKS MERGE):**\n\n- `001-pending-p1-{finding}.md` - {description}\n- `002-pending-p1-{finding}.md` - {description}\n\n**P2 - Important:**\n\n- `003-pending-p2-{finding}.md` - {description}\n- `004-pending-p2-{finding}.md` - {description}\n\n**P3 - Nice-to-Have:**\n\n- `005-pending-p3-{finding}.md` - {description}\n\n### Review Agents Used:\n\n- rabak-laravel-reviewer\n- rabak-vue-reviewer\n- security-sentinel\n- performance-oracle\n- architecture-strategist\n- agent-native-reviewer\n- [other agents]\n\n### Next Steps:\n\n1. **Address P1 Findings**: CRITICAL - must be fixed before merge\n\n   - Review each P1 todo in detail\n   - Implement fixes or request exemption\n   - Verify fixes before merging PR\n\n2. **Triage All Todos**:\n   ```bash\n   ls todos\u002F*-pending-*.md  # View all pending todos\n   \u002Ftriage                  # Use slash command for interactive triage\n   ```\n````\n\n3. **Work on Approved Todos**:\n\n   ```bash\n   \u002Fresolve_todo_parallel  # Fix all approved items efficiently\n   ```\n\n4. **Track Progress**:\n   - Rename file when status changes: pending → ready → complete\n   - Update Work Log as you work\n   - Commit todos: `git add todos\u002F && git commit -m \"refactor: add code review findings\"`\n\n### Severity Breakdown:\n\n**? P1 (Critical - Blocks Merge):**\n\n- Security vulnerabilities\n- Data corruption risks\n- Breaking changes\n- Critical architectural issues\n\n**? P2 (Important - Should Fix):**\n\n- Performance issues\n- Significant architectural concerns\n- Major code quality problems\n- Reliability issues\n\n**? P3 (Nice-to-Have):**\n\n- Minor improvements\n- Code cleanup\n- Optimization opportunities\n- Documentation updates\n\n```\n\n### 7. End-to-End Testing (Optional)\n\n\u003Coffer_testing>\n\nAfter presenting the Summary Report, offer browser testing:\n\n```markdown\n**\"Want to run browser tests on the affected pages?\"**\n1. Yes - run `\u002Ftest-browser`\n2. No - skip\n```\n\n\u003C\u002Foffer_testing>\n\n#### If User Accepts Testing:\n\nSpawn a subagent to run browser tests (preserves main context):\n\n```\nUse the general-purpose skill to: \"Run \u002Ftest-browser for the current branch. Test all affected pages, check for console errors, handle failures by creating todos and fixing.\"\n```\n\nThe subagent will:\n1. Identify pages affected by the PR\n2. Navigate to each page and capture snapshots (using agent-browser CLI)\n3. Check for console errors\n4. Test critical interactions\n5. Pause for human verification on OAuth\u002Femail\u002Fpayment flows\n6. Create P1 todos for any failures\n7. Fix and retry until all tests pass\n\n**Standalone:** `\u002Ftest-browser`\n\n### Important: P1 Findings Block Merge\n\nAny **? P1 (CRITICAL)** findings must be addressed before merging. Present these prominently and ensure they're resolved before the MR is accepted.\n```\n","## Arguments\n[branch name, file path, or empty for current branch]\n\n# Review Command\n\n\u003Ccommand_purpose> Perform exhaustive code reviews using multi-agent analysis, ultra-thinking, and Git worktrees for deep local inspection. \u003C\u002Fcommand_purpose>\n\n## Introduction\n\n\u003Crole>Senior Code Review Architect with expertise in security, performance, architecture, and quality assurance\u003C\u002Frole>\n\n## Prerequisites\n\n\u003Crequirements>\n- Git repository\n- Clean main\u002Fmaster branch (for diff baseline)\n- Proper permissions to create worktrees and access the repository\n- For document reviews: Path to a markdown file or document\n\u003C\u002Frequirements>\n\n## Main Tasks\n\n### 1. Determine Review Target & Setup (ALWAYS FIRST)\n\n\u003Creview_target> #$ARGUMENTS \u003C\u002Freview_target>\n\n\u003Cthinking>\nFirst, I need to determine the review target type and set up the code for analysis.\n\u003C\u002Fthinking>\n\n#### Immediate Actions:\n\n\u003Ctask_list>\n\n- [ ] Determine review type: branch name, file path (.md), or empty (current branch)\n- [ ] Check current git branch\n- [ ] Determine the default branch:\n  ```bash\n  default_branch=$(git symbolic-ref refs\u002Fremotes\u002Forigin\u002FHEAD 2>\u002Fdev\u002Fnull | sed 's@^refs\u002Fremotes\u002Forigin\u002F@@')\n  [ -z \"$default_branch\" ] && default_branch=$(git rev-parse --verify origin\u002Fmain >\u002Fdev\u002Fnull 2>&1 && echo \"main\" || echo \"master\")\n  ```\n- [ ] If ALREADY on the target branch → proceed with analysis\n- [ ] If DIFFERENT branch → offer to use worktree: \"Use git-worktree skill for isolated analysis\" or `git checkout [branch]`\n- [ ] Get the list of changed files:\n  ```bash\n  git diff --name-only ${default_branch}...HEAD\n  ```\n- [ ] Get the full diff for review:\n  ```bash\n  git diff ${default_branch}...HEAD\n  ```\n- [ ] Get commit messages for context:\n  ```bash\n  git log --oneline ${default_branch}..HEAD\n  ```\n- [ ] Set up language-specific analysis tools\n- [ ] Prepare security scanning environment\n\nEnsure that the code is ready for analysis (either in worktree or on current branch). ONLY then proceed to the next step.\n\n\u003C\u002Ftask_list>\n\n#### Protected Artifacts\n\n\u003Cprotected_artifacts>\nThe following paths are compound-engineering pipeline artifacts and must never be flagged for deletion, removal, or gitignore by any review agent:\n\n- `docs\u002Fplans\u002F*.md` — Plan files created by `\u002Fworkflows-plan`. These are living documents that track implementation progress (checkboxes are checked off by `\u002Fworkflows-work`).\n- `docs\u002Fsolutions\u002F*.md` — Solution documents created during the pipeline.\n\nIf a review agent flags any file in these directories for cleanup or removal, discard that finding during synthesis. Do not create a todo for it.\n\u003C\u002Fprotected_artifacts>\n\n#### Load Review Agents\n\nRead `compound-engineering.local.md` in the project root. If found, use `review_agents` from YAML frontmatter. If the markdown body contains review context, pass it to each agent as additional instructions.\n\nIf no settings file exists, invoke the `setup` skill to create one. Then read the newly created file and continue.\n\n#### Parallel Agents to review the branch changes:\n\n\u003Cparallel_tasks>\n\nRun all configured review agents in parallel using Task tool. For each agent in the `review_agents` list:\n\n```\nTask {agent-name}(branch diff content + review context from settings body)\n```\n\nAdditionally, always run these regardless of settings:\n- Use the agent-native-reviewer skill to: branch diff content - Verify new features are agent-accessible\n- Use the learnings-researcher skill to: branch diff content - Search docs\u002Fsolutions\u002F for past issues related to this PR's modules and patterns\n\n\u003C\u002Fparallel_tasks>\n\n#### Conditional Agents (Run if applicable):\n\n\u003Cconditional_agents>\n\nThese agents are run ONLY when the branch changes match specific criteria. Check the changed files list to determine if they apply:\n\n**MIGRATIONS: If PR contains database migrations or data backfills:**\n\n- Use the data-integrity-guardian skill to: branch diff content - Reviews migration safety, constraint naming, and migration conventions\n- Use the data-migration-expert skill to: branch diff content - Validates ID mappings match production, checks for swapped values, verifies rollback safety\n- Use the deployment-verification-agent skill to: branch diff content - Creates Go\u002FNo-Go deployment checklist with SQL verification queries\n\n\n**When to run:**\n- Changed files include `database\u002Fmigrations\u002F*.php`\n- Changes modify columns that store IDs, enums, or mappings\n- Changes include data backfill scripts or artisan commands\n- Commit messages mention: migration, backfill, data transformation, ID mapping\n\n**What these agents check:**\n- `data-integrity-guardian`: Reviews migration safety, project conventions (separate files for table\u002Findexes\u002FFKs, constraint naming with `unq_`\u002F`fk_`\u002F`idx_` prefixes)\n- `data-migration-expert`: Verifies hard-coded mappings match production reality (prevents swapped IDs), checks for orphaned associations, validates dual-write patterns\n- `deployment-verification-agent`: Produces executable pre\u002Fpost-deploy checklists with SQL queries, rollback procedures, Horizon monitoring plans\n\n\u003C\u002Fconditional_agents>\n\n### 4. Ultra-Thinking Deep Dive Phases\n\n\u003Cultrathink_instruction> For each phase below, spend maximum cognitive effort. Think step by step. Consider all angles. Question assumptions. And bring all reviews in a synthesis to the user.\u003C\u002Fultrathink_instruction>\n\n\u003Cdeliverable>\nComplete system context map with component interactions\n\u003C\u002Fdeliverable>\n\n#### Phase 3: Stakeholder Perspective Analysis\n\n\u003Cthinking_prompt> ULTRA-THINK: Put yourself in each stakeholder's shoes. What matters to them? What are their pain points? \u003C\u002Fthinking_prompt>\n\n\u003Cstakeholder_perspectives>\n\n1. **Developer Perspective** \u003Cquestions>\n\n   - How easy is this to understand and modify?\n   - Are the APIs intuitive?\n   - Is debugging straightforward?\n   - Can I test this easily? \u003C\u002Fquestions>\n\n2. **Operations Perspective** \u003Cquestions>\n\n   - How do I deploy this safely?\n   - What metrics and logs are available?\n   - How do I troubleshoot issues?\n   - What are the resource requirements? \u003C\u002Fquestions>\n\n3. **End User Perspective** \u003Cquestions>\n\n   - Is the feature intuitive?\n   - Are error messages helpful?\n   - Is performance acceptable?\n   - Does it solve my problem? \u003C\u002Fquestions>\n\n4. **Security Team Perspective** \u003Cquestions>\n\n   - What's the attack surface?\n   - Are there compliance requirements?\n   - How is data protected?\n   - What are the audit capabilities? \u003C\u002Fquestions>\n\n5. **Business Perspective** \u003Cquestions>\n   - What's the ROI?\n   - Are there legal\u002Fcompliance risks?\n   - How does this affect time-to-market?\n   - What's the total cost of ownership? \u003C\u002Fquestions> \u003C\u002Fstakeholder_perspectives>\n\n#### Phase 4: Scenario Exploration\n\n\u003Cthinking_prompt> ULTRA-THINK: Explore edge cases and failure scenarios. What could go wrong? How does the system behave under stress? \u003C\u002Fthinking_prompt>\n\n\u003Cscenario_checklist>\n\n- [ ] **Happy Path**: Normal operation with valid inputs\n- [ ] **Invalid Inputs**: Null, empty, malformed data\n- [ ] **Boundary Conditions**: Min\u002Fmax values, empty collections\n- [ ] **Concurrent Access**: Race conditions, deadlocks\n- [ ] **Scale Testing**: 10x, 100x, 1000x normal load\n- [ ] **Network Issues**: Timeouts, partial failures\n- [ ] **Resource Exhaustion**: Memory, disk, connections\n- [ ] **Security Attacks**: Injection, overflow, DoS\n- [ ] **Data Corruption**: Partial writes, inconsistency\n- [ ] **Cascading Failures**: Downstream service issues \u003C\u002Fscenario_checklist>\n\n### 6. Multi-Angle Review Perspectives\n\n#### Technical Excellence Angle\n\n- Code craftsmanship evaluation\n- Engineering best practices\n- Technical documentation quality\n- Tooling and automation assessment\n\n#### Business Value Angle\n\n- Feature completeness validation\n- Performance impact on users\n- Cost-benefit analysis\n- Time-to-market considerations\n\n#### Risk Management Angle\n\n- Security risk assessment\n- Operational risk evaluation\n- Compliance risk verification\n- Technical debt accumulation\n\n#### Team Dynamics Angle\n\n- Code review etiquette\n- Knowledge sharing effectiveness\n- Collaboration patterns\n- Mentoring opportunities\n\n### 4. Simplification and Minimalism Review\n\nRun the Task code-simplicity-reviewer() to see if we can simplify the code.\n\n### 5. Findings Synthesis and Todo Creation Using file-todos Skill\n\n\u003Ccritical_requirement> ALL findings MUST be stored in the todos\u002F directory using the file-todos skill. Create todo files immediately after synthesis - do NOT present findings for user approval first. Use the skill for structured todo management. \u003C\u002Fcritical_requirement>\n\n#### Step 1: Synthesize All Findings\n\n\u003Cthinking>\nConsolidate all agent reports into a categorized list of findings.\nRemove duplicates, prioritize by severity and impact.\n\u003C\u002Fthinking>\n\n\u003Csynthesis_tasks>\n\n- [ ] Collect findings from all parallel agents\n- [ ] Surface learnings-researcher results: if past solutions are relevant, flag them as \"Known Pattern\" with links to docs\u002Fsolutions\u002F files\n- [ ] Discard any findings that recommend deleting or gitignoring files in `docs\u002Fplans\u002F` or `docs\u002Fsolutions\u002F` (see Protected Artifacts above)\n- [ ] Categorize by type: security, performance, architecture, quality, etc.\n- [ ] Assign severity levels: ? CRITICAL (P1), ? IMPORTANT (P2), ? NICE-TO-HAVE (P3)\n- [ ] Remove duplicate or overlapping findings\n- [ ] Estimate effort for each finding (Small\u002FMedium\u002FLarge)\n\n\u003C\u002Fsynthesis_tasks>\n\n#### Step 2: Create Todo Files Using file-todos Skill\n\n\u003Ccritical_instruction> Use the file-todos skill to create todo files for ALL findings immediately. Do NOT present findings one-by-one asking for user approval. Create all todo files in parallel using the skill, then summarize results to user. \u003C\u002Fcritical_instruction>\n\n**Implementation Options:**\n\n**Option A: Direct File Creation (Fast)**\n\n- Create todo files directly using Write tool\n- All findings in parallel for speed\n- Use standard template from `.github\u002Fskills\u002Ffile-todos\u002Fassets\u002Ftodo-template.md`\n- Follow naming convention: `{issue_id}-pending-{priority}-{description}.md`\n\n**Option B: Sub-Agents in Parallel (Recommended for Scale)** For large PRs with 15+ findings, use sub-agents to create finding files in parallel:\n\n```bash\n# Launch multiple finding-creator agents in parallel\nTask() - Create todos for first finding\nTask() - Create todos for second finding\nTask() - Create todos for third finding\netc. for each finding.\n```\n\nSub-agents can:\n\n- Process multiple findings simultaneously\n- Write detailed todo files with all sections filled\n- Organize findings by severity\n- Create comprehensive Proposed Solutions\n- Add acceptance criteria and work logs\n- Complete much faster than sequential processing\n\n**Execution Strategy:**\n\n1. Synthesize all findings into categories (P1\u002FP2\u002FP3)\n2. Group findings by severity\n3. Launch 3 parallel sub-agents (one per severity level)\n4. Each sub-agent creates its batch of todos using the file-todos skill\n5. Consolidate results and present summary\n\n**Process (Using file-todos Skill):**\n\n1. For each finding:\n\n   - Determine severity (P1\u002FP2\u002FP3)\n   - Write detailed Problem Statement and Findings\n   - Create 2-3 Proposed Solutions with pros\u002Fcons\u002Feffort\u002Frisk\n   - Estimate effort (Small\u002FMedium\u002FLarge)\n   - Add acceptance criteria and work log\n\n2. Use file-todos skill for structured todo management:\n\n   ```bash\n   skill: file-todos\n   ```\n\n   The skill provides:\n\n   - Template location: `.github\u002Fskills\u002Ffile-todos\u002Fassets\u002Ftodo-template.md`\n   - Naming convention: `{issue_id}-{status}-{priority}-{description}.md`\n   - YAML frontmatter structure: status, priority, issue_id, tags, dependencies\n   - All required sections: Problem Statement, Findings, Solutions, etc.\n\n3. Create todo files in parallel:\n\n   ```bash\n   {next_id}-pending-{priority}-{description}.md\n   ```\n\n4. Examples:\n\n   ```\n   001-pending-p1-path-traversal-vulnerability.md\n   002-pending-p1-api-response-validation.md\n   003-pending-p2-concurrency-limit.md\n   004-pending-p3-unused-parameter.md\n   ```\n\n5. Follow template structure from file-todos skill: `.github\u002Fskills\u002Ffile-todos\u002Fassets\u002Ftodo-template.md`\n\n**Todo File Structure (from template):**\n\nEach todo must include:\n\n- **YAML frontmatter**: status, priority, issue_id, tags, dependencies\n- **Problem Statement**: What's broken\u002Fmissing, why it matters\n- **Findings**: Discoveries from agents with evidence\u002Flocation\n- **Proposed Solutions**: 2-3 options, each with pros\u002Fcons\u002Feffort\u002Frisk\n- **Recommended Action**: (Filled during triage, leave blank initially)\n- **Technical Details**: Affected files, components, database changes\n- **Acceptance Criteria**: Testable checklist items\n- **Work Log**: Dated record with actions and learnings\n- **Resources**: Links to PR, issues, documentation, similar patterns\n\n**File naming convention:**\n\n```\n{issue_id}-{status}-{priority}-{description}.md\n\nExamples:\n- 001-pending-p1-security-vulnerability.md\n- 002-pending-p2-performance-optimization.md\n- 003-pending-p3-code-cleanup.md\n```\n\n**Status values:**\n\n- `pending` - New findings, needs triage\u002Fdecision\n- `ready` - Approved by manager, ready to work\n- `complete` - Work finished\n\n**Priority values:**\n\n- `p1` - Critical (blocks merge, security\u002Fdata issues)\n- `p2` - Important (should fix, architectural\u002Fperformance)\n- `p3` - Nice-to-have (enhancements, cleanup)\n\n**Tagging:** Always add `code-review` tag, plus: `security`, `performance`, `architecture`, `laravel`, `vue`, `quality`, etc.\n\n#### Step 3: Summary Report\n\nAfter creating all todo files, present comprehensive summary:\n\n````markdown\n## ✅ Code Review Complete\n\n**Review Target:** Branch `[branch-name]` (vs `[default-branch]`)\n\n### Findings Summary:\n\n- **Total Findings:** [X]\n- **? CRITICAL (P1):** [count] - BLOCKS MERGE\n- **? IMPORTANT (P2):** [count] - Should Fix\n- **? NICE-TO-HAVE (P3):** [count] - Enhancements\n\n### Created Todo Files:\n\n**P1 - Critical (BLOCKS MERGE):**\n\n- `001-pending-p1-{finding}.md` - {description}\n- `002-pending-p1-{finding}.md` - {description}\n\n**P2 - Important:**\n\n- `003-pending-p2-{finding}.md` - {description}\n- `004-pending-p2-{finding}.md` - {description}\n\n**P3 - Nice-to-Have:**\n\n- `005-pending-p3-{finding}.md` - {description}\n\n### Review Agents Used:\n\n- rabak-laravel-reviewer\n- rabak-vue-reviewer\n- security-sentinel\n- performance-oracle\n- architecture-strategist\n- agent-native-reviewer\n- [other agents]\n\n### Next Steps:\n\n1. **Address P1 Findings**: CRITICAL - must be fixed before merge\n\n   - Review each P1 todo in detail\n   - Implement fixes or request exemption\n   - Verify fixes before merging PR\n\n2. **Triage All Todos**:\n   ```bash\n   ls todos\u002F*-pending-*.md  # View all pending todos\n   \u002Ftriage                  # Use slash command for interactive triage\n   ```\n````\n\n3. **Work on Approved Todos**:\n\n   ```bash\n   \u002Fresolve_todo_parallel  # Fix all approved items efficiently\n   ```\n\n4. **Track Progress**:\n   - Rename file when status changes: pending → ready → complete\n   - Update Work Log as you work\n   - Commit todos: `git add todos\u002F && git commit -m \"refactor: add code review findings\"`\n\n### Severity Breakdown:\n\n**? P1 (Critical - Blocks Merge):**\n\n- Security vulnerabilities\n- Data corruption risks\n- Breaking changes\n- Critical architectural issues\n\n**? P2 (Important - Should Fix):**\n\n- Performance issues\n- Significant architectural concerns\n- Major code quality problems\n- Reliability issues\n\n**? P3 (Nice-to-Have):**\n\n- Minor improvements\n- Code cleanup\n- Optimization opportunities\n- Documentation updates\n\n```\n\n### 7. End-to-End Testing (Optional)\n\n\u003Coffer_testing>\n\nAfter presenting the Summary Report, offer browser testing:\n\n```markdown\n**\"Want to run browser tests on the affected pages?\"**\n1. Yes - run `\u002Ftest-browser`\n2. No - skip\n```\n\n\u003C\u002Foffer_testing>\n\n#### If User Accepts Testing:\n\nSpawn a subagent to run browser tests (preserves main context):\n\n```\nUse the general-purpose skill to: \"Run \u002Ftest-browser for the current branch. Test all affected pages, check for console errors, handle failures by creating todos and fixing.\"\n```\n\nThe subagent will:\n1. Identify pages affected by the PR\n2. Navigate to each page and capture snapshots (using agent-browser CLI)\n3. Check for console errors\n4. Test critical interactions\n5. Pause for human verification on OAuth\u002Femail\u002Fpayment flows\n6. Create P1 todos for any failures\n7. Fix and retry until all tests pass\n\n**Standalone:** `\u002Ftest-browser`\n\n### Important: P1 Findings Block Merge\n\nAny **? P1 (CRITICAL)** findings must be addressed before merging. Present these prominently and ensure they're resolved before the MR is accepted.\n```\n",{"name":5,"description":7},"main","b097d394a335a9ec3c8a02d64e111f1a9c96703d",".github\u002Fskills\u002Fworkflows-review","https:\u002F\u002Fgithub.com\u002FThe-Rabak\u002Fnaysmith","https:\u002F\u002Fgithub.com\u002FThe-Rabak","2026-03-04 03:03:05",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add The-Rabak\u002Fnaysmith --skill workflows-review",{"tool":43,"command":44},"bunx","bunx skills add The-Rabak\u002Fnaysmith --skill workflows-review",{"tool":46,"command":47},"pnpm","pnpm dlx skills add The-Rabak\u002Fnaysmith --skill workflows-review","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FThe-Rabak\u002Fnaysmith\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fworkflows-review\u002FSKILL.md",true,[51,57],{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"agents\u002Fopenai.yaml","REFERENCE","参考文档",264,"https:\u002F\u002Fgithub.com\u002Fendman100\u002Fskill-router-nexus\u002Fblob\u002Fmain\u002FVideo-Editing\u002Fra-video-download\u002Fagents\u002Fopenai.yaml",{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"scripts\u002Fdownload_media.py","SCRIPT","脚本",11897,"https:\u002F\u002Fgithub.com\u002Fendman100\u002Fskill-router-nexus\u002Fblob\u002Fmain\u002FVideo-Editing\u002Fra-video-download\u002Fscripts\u002Fdownload_media.py",[64,75,88,100,114,125],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":26},"01M6CYBMHFVAMC4T3J8QFYN42M","workflows-work","Execute work plans efficiently while maintaining quality and finishing features","https:\u002F\u002Fgithub.com\u002FThe-Rabak\u002Fnaysmith\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fworkflows-work\u002FSKILL.md",[],[19,71,72,73,74],"work","workflows work","quality","execute",{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":26},"01M6CYBEW8DDBXW62Q2CA29BPR","workflows-plan","Transform feature descriptions into well-structured project plans following conventions","https:\u002F\u002Fgithub.com\u002FThe-Rabak\u002Fnaysmith\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fworkflows-plan\u002FSKILL.md",[],[19,82,83,84,85,86,87],"plan","workflows plan","structured","following conventions","conventions","project",{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":26},"01M6CYBBKAHJJ85JC2PS380TGZ","workflows-compound","Document a recently solved problem to compound your team's knowledge","https:\u002F\u002Fgithub.com\u002FThe-Rabak\u002Fnaysmith\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fworkflows-compound\u002FSKILL.md",[],[95,96,19,97,98,99],"workflows compound","compound","document","knowledge","team",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":26},"01M6CYB9062GMP8VSA7N7PB4NW","workflows-brainstorm","Explore requirements and approaches through collaborative dialogue before planning implementation","https:\u002F\u002Fgithub.com\u002FThe-Rabak\u002Fnaysmith\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fworkflows-brainstorm\u002FSKILL.md",[],[19,107,108,109,110,111,112,113],"workflows brainstorm","brainstorm","requirements","dialogue","implementation","explore","planning",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":26},"01M6CYB6S7GKWH62CRV3K79MHW","triage","Triage and categorize findings for the CLI todo system","https:\u002F\u002Fgithub.com\u002FThe-Rabak\u002Fnaysmith\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftriage\u002FSKILL.md",[],[116,121,122,123,124],"todo","categorize","system","cli",{"skillNo":126,"name":127,"nameZh":6,"description":128,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":129,"categories":130,"keywords":131,"publishedAt":26},"01M6CYB4GDXS6AYFH7NMJRTXP7","test-browser","Run browser tests on pages affected by current PR or branch","https:\u002F\u002Fgithub.com\u002FThe-Rabak\u002Fnaysmith\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftest-browser\u002FSKILL.md",[],[132,133,134,135,136,137],"test","test browser","browser","branch","run","pr"]