---
name: marcetplace-parts-find
description: >
  Find and install a stripped architecture or design part from MarCetPlace
  Bundles. Use when the user wants a drop-in system, design feature, or
  architecture slice instead of rebuilding from scratch.
---

# MarCetPlace — Find a part

Buy **stripped architecture/design parts**, not whole products. Prefer a proven drop-in over asking Claude to rebuild it.

## Loop (keep it fast)

1. Confirm the outcome in one line (architecture or design + stack).
2. `find_bundles` with `need` + `project_context` (public).
3. Show ranked fits: title, summary, price, why it fits.
4. On pick: `purchase_bundle` → `get_bundle`.
5. Apply files. Run every `integration_contract.verify_steps`.
6. If verification fails, run `rollback_steps` and stop cleanly.

## Auth

`find_bundles` is public. Purchase needs the user’s own OTP login:

1. handle + email
2. `start_login` → `confirm_login`
3. Retry; pass `auth_token` when `session_bound` is false

## Prefer parts that beat rebuild

When presenting matches, highlight:

- Why this is harder than a one-sitting rebuild
- Stack fit from the integration contract
- Price and file count if available

If nothing beats “Claude can just build this,” say so and stop.

## RESUME (no secrets)

```
RESUME — MarCetPlace parts find
need: …
bundle_id: …
remaining: purchase_bundle → get_bundle → verify → rollback on fail
```

## Failure recovery

| Symptom | Do |
|---------|----|
| No matches | Refine need (framework + outcome) and retry |
| AUTH_REQUIRED | OTP login → retry purchase |
| Verify fails | Run rollback_steps; do not leave a half-integrated tree |
| Missing credits/membership | Follow tool `next_step` (`join_membership` / `buy_credits`) |
