playbook/outfitter-agents/plugins/outfitter-stack/skills/stack-audit/templates/audit-report.md

2.0 KiB

Migration Audit Report

Project: {{PROJECT_NAME}} Date: {{DATE}} Generated by: @outfitter/migrate init

Summary

Category Count Files
Exceptions (throw) {{THROW_COUNT}} {{THROW_FILES}}
Try/Catch blocks {{TRY_CATCH_COUNT}} {{TRY_CATCH_FILES}}
Console logging {{CONSOLE_COUNT}} {{CONSOLE_FILES}}
Hardcoded paths {{PATH_COUNT}} {{PATH_FILES}}
Custom error classes {{ERROR_CLASS_COUNT}}
Documentation files {{DOC_COUNT}}
Unknowns {{UNKNOWN_COUNT}}

Estimated Effort

Stage Scope Effort
Foundation Setup Low
Handlers {{HANDLER_COUNT}} functions {{HANDLER_EFFORT}}
Errors {{ERROR_CLASS_COUNT}} classes {{ERROR_EFFORT}}
Paths {{PATH_COUNT}} usages {{PATH_EFFORT}}
Adapters {{ADAPTER_COUNT}} commands/tools {{ADAPTER_EFFORT}}
Documents {{DOC_COUNT}} files {{DOC_EFFORT}}
Unknowns {{UNKNOWN_COUNT}} items Review required

Dependencies to Add

bun add @outfitter/contracts @outfitter/logging @outfitter/config

Optional:

bun add @outfitter/cli      # If building CLI
bun add @outfitter/mcp      # If building MCP server
bun add @outfitter/file-ops # If file operations with path security
bun add @outfitter/daemon   # If building background services

Migration Plan

See plan/ for stage-by-stage breakdown:

  1. Foundation — Dependencies, context, logger
  2. Handlers — Convert to Result-returning handlers
  3. Errors — Map to error taxonomy
  4. Paths — XDG-compliant paths
  5. Adapters — CLI/MCP transport layers
  6. Documents — Update documentation
  7. Unknowns — Items requiring review

Next Steps

  1. Review this report for accuracy
  2. Adjust priorities in 00-overview.md
  3. Begin with Stage 1 (Foundation)