Effect project example with Amp context

We want to show a simple example of a new halfway migrated project to Effect. The example project should assume the team is using Amp's coding agent. Use @examples/README.md and follow its instructions for a json config to construct the new example to showcase our audit and metrics commands with and without .amp context written for them

✅ Created team-dashboard example! It's a realistic halfway-migrated project showing:

Legacy code (not migrated):

  • auth service with Promise constructors & callbacks
  • database layer with async/await & try/catch
  • auth controller with architectural boundary violation

Migrated code:

  • users & tasks services using Effect.gen
  • user controller using Effect properly through services

Results: 29 violations (3 errors, 26 warnings) across 4 files, showing ~42% migration progress. All .amp context files generated successfully for Amp to understand the migration state.

Can you print pretty output of some of the .amp output for the team dashboard project?

Here's the pretty formatted .amp output for the team-dashboard project:


📋 index.json - MCP-compatible context index

{
  "version": 1,
  "schemaVersion": "1.0.0",
  "toolVersion": "0.1.0",
  "projectRoot": "/Users/metis/Projects/effect-migrate/examples/team-dashboard",
  "timestamp": "2025-11-04T02:12:25.959Z",
  "files": {
    "audit": "audit.json",
    "badges": "badges.md",
    "metrics": "metrics.json"
  }
}

📊 metrics.json - Quantitative migration data

{
  "version": 1,
  "toolVersion": "0.1.0",
  "projectRoot": "/Users/metis/Projects/effect-migrate/examples/team-dashboard",
  "timestamp": "2025-11-04T02:12:36.781Z",
  "summary": {
    "totalViolations": 29,
    "errors": 3,
    "warnings": 26,
    "filesAffected": 4,
    "progressPercentage": 0
  },
  "ruleBreakdown": [
    {
      "id": "async-await-pattern",
      "violations": 7,
      "severity": "warning",
      "filesAffected": 4
    },
    {
      "id": "console-log-pattern",
      "violations": 11,
      "severity": "warning",
      "filesAffected": 4
    },
    {
      "id": "new-promise-pattern",
      "violations": 3,
      "severity": "error",
      "filesAffected": 2
    }
    // ... more rules
  ]
}

🏷️ badges.md - Quick visual reference

# Migration Status

![errors](https://img.shields.io/badge/errors-3-critical) ![warnings](https://img.shields.io/badge/warnings-26-yellow)

Last updated: 11/3/2025, 9:12:25 PM

## Summary

- **Errors**: 3
- **Warnings**: 26
- **Files checked**: 4

## Using with Amp

Reference this context in your Amp threads:

\`\`\`
I'm working on migrating this project to Effect.
Read @.amp/audit.json for current migration state.
\`\`\`

Amp will automatically understand:
- Which files have migration issues
- What patterns to avoid (based on active rules)
- Migration progress and severity breakdown

🔍 audit.json - Complete findings (snippet)

{
  "findings": {
    "byFile": {
      "src/services/auth.ts": [
        {
          "id": "new-promise-pattern",
          "severity": "error",
          "message": "Avoid new Promise - use Effect.async or Effect.tryPromise",
          "file": "src/services/auth.ts",
          "range": { "start": { "line": 9, "column": 24 } },
          "tags": ["async", "anti-pattern"]
        }
      ]
    }
  }
}

Perfect for Amp to understand migration state and provide contextual guidance!