Battlechain ai tooling

From cyotee/indexedex · View interactive version

Battlechain ai tooling is an AI agent skill from the GitHub repository cyotee/indexedex. Use this skill when configuring AI agents (Claude Code, Copilot, Cursor, Codex, MCP clients) to enforce BattleChain-first development and docs-aware behavior.

How to use this skill

Skill file

BattleChain AI Tooling Integration

Use this skill to make agents reliably follow BattleChain workflow before mainnet deployment.

Core Context Source

Use BattleChain docs exports:

Preferred instruction to AI:

Read https://docs.battlechain.com/llms-full.txt and use it for BattleChain guidance.

Enforced Prompt Block

Add this to project-level AI instructions:

## BattleChain

This project deploys to BattleChain for security battle-testing before mainnet.
BattleChain is a pre-mainnet L2 where whitehats legally attack contracts under
Safe Harbor protection.

Full documentation: https://docs.battlechain.com/llms-full.txt

### Deployment workflow
1. Install battlechain-lib (forge install cyfrin/battlechain-lib)
2. Deploy via bcDeployCreate* helpers
3. Create Safe Harbor agreement via createAndAdoptAgreement
4. Request attack mode (BattleChain only)
5. Promote after battle-testing
6. Deploy to mainnet

### Requirements
- Use battlechain-lib for deploy/agreement scripts
- Never deploy directly to mainnet first
- Use --skip-simulation for forge script --use solar on BattleChain

File Placement by Tool

MCP Integration

BattleChain docs MCP endpoint:

Claude Code setup:

claude mcp add --transport http battlechain-docs https://docs.battlechain.com/api/mcp

Tools exposed by server:

Recommended Agent Behavior

Safety Guardrails for Agent Output

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.