Skip to content

OffchainLabs/arbitrum-docs / .agents/skills/arbitrum-best-practices

arbitrum-best-practices

Verified

Arbitrum L2 development best practices. Use when implementing bridges, Orbit chains, SDK integrations, or debugging cross-chain transactions. Triggers on Arbitrum, L2, rollup, bridge, retryable, Orbit, Nitro, or cross-chain contexts.

rules/chain-anytrust-vs-rollup.md

View on GitHub
---
title: Choose Rollup for High-Value, AnyTrust for High-Throughput
impact: CRITICAL
impactDescription: fundamental architecture decision
tags: chain, anytrust, rollup, architecture
---

## Choose Rollup for High-Value, AnyTrust for High-Throughput

Rollup mode posts all data to L1—full Ethereum security. AnyTrust uses a Data Availability Committee (DAC)—lower cost, higher throughput, but requires trusting the committee. This choice is hard to change post-deployment.

**Incorrect (choosing based on cost alone):**

```typescript
// Bad: AnyTrust purely for lower fees
const config = { dataAvailabilityCommittee: true }
// Wrong if handling high-value DeFi with permissionless access
```

**Correct (security-first decision):**

```typescript
// Good: Match chain type to security requirements
// Rollup: >$10M TVL, permissionless, bridges, DeFi
// AnyTrust: Gaming, social, trusted operators, <$1M TVL
const config = {
  dataAvailabilityCommittee: requirements.canTrustDac && requirements.lowValue
}
```

| Aspect | Rollup | AnyTrust |
|--------|--------|----------|
| Data availability | L1 (full security) | DAC (trust assumption) |
| L1 costs | Higher | Lower |
| Use case | DeFi, bridges | Gaming, social |

For detailed comparison, see [Orbit Chain Types](https://docs.arbitrum.io/launch-orbit-chain/orbit-chain-types).
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall