Check if a proposed change aligns with mangrove-agent's stated principles, architecture, and trading-bot safety invariants. Use when the user describes a change and asks "does this fit", "check alignment", "review this approach", or "/check-alignment <description>". Read-only analysis - does NOT modify anything. Adapted from the Mangrove workspace `check-alignment` skill with trading-bot-specific documents.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Check Alignment?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/mangrovetechnologies-check-alignment)
---
name: check-alignment
description: Check if a proposed change aligns with mangrove-agent's stated principles, architecture, and trading-bot safety invariants. Use when the user describes a change and asks "does this fit", "check alignment", "review this approach", or "/check-alignment <description>". Read-only analysis - does NOT modify anything. Adapted from the Mangrove workspace `check-alignment` skill with trading-bot-specific documents.
user_invocable: true
argument-hint: "<description of proposed change>"
---
# Check Alignment
Parse `$ARGUMENTS` as a natural-language description of a proposed change - could be a new feature, a refactor, a dependency change, a workflow tweak.
Review the proposal against each of these documents. For every one that exists, state whether the proposal **aligns** or **conflicts**. If it conflicts, cite the specific principle or decision it violates and suggest a concrete adjustment.
## Documents to check
### 1. `SAGE.md` - project identity + persona
- "What This Is" section: does the proposal still describe a local trading bot? Any scope drift toward cloud / hosted / multi-tenant breaks the v1 framing.
- "Architecture" section: dual-protocol (REST + MCP), three-tier access (free / auth / x402), service-layer pattern. Does the proposal respect these layers, or does it duplicate logic?
- "Project Context" + "Agent Identity": does the proposal change the user's project context or agent persona? Flag if yes - shared persona rules live in `SAGE.md`; the user chooses the agent's name, saved locally through `set_agent_name`. Identity changes are explicit, deliberate edits, not side effects of feature work.
### 2. `.claude/rules/trading-bot-workflow.md` - the 9 operating principles
Check each principle if relevant:
1. Strategy-first, always (no manual-swap-by-default)
2. Bulk candidate evaluation (no label-pick)
3. Every recommendation cites Mangrove intelligence
4. Paper before live
5. Explicit confirmation at status transitions
6. Small first allocation
7. Wallet secrets NEVER in chat
8. **Signing validates intent inside isolated custody** (`transaction_intent` plus independent protected policy)
9. **Testnet-first for learning** (Base Sepolia 84532 by default)
Plus the stage machine (Stage 0 tour -> 1 Orient -> 2 Author -> 3 Review -> 4 Paper -> 4.5 Wallet -> 5 Live -> 6 Monitor). Does the change preserve the stage boundaries?
### 3. `.claude/rules/wallet-presentation.md` - wallet handling
- Never expose plaintext keys or export capabilities to the agent.
- Default to testnet for new wallets.
- Transaction signing routes through strict decoded intent validation and the separate-UID custody broker; x402, SIWX and marketplace proofs have their own narrow guards.
- Chain/router/function support and independently authorized wallet/spending policy may only expand through explicit review. Human import, backup and confirmation have no agent authority.
### 4. `CONTRIBUTING.md` - branching + PR flow
- Feature branch + PR for every change (no direct commits to main).
- Worktree workflows use `git -C <path>` form so the hook recognizes the target.
- CI must pass before merge.
### 5. `docs/contributing.md` - extension workflow
- Routes + services + MCP tools + tests mirror the repo structure.
- Never duplicate business logic across REST and MCP - service layer owns it.
## For each document
If the document exists, give a per-doc paragraph:
```
### <doc name>
**Aligns** / **Conflicts** with <specific principle>
Reasoning: <one or two sentences>
Suggested adjustment (if conflict): <concrete change>
```
If the document doesn't exist, note it and skip:
```
### <doc name>
Not present in this repo - skipping.
```
## Summary
End with a one-sentence verdict: **Aligns**, **Conflicts**, or **Partially aligns** (with which specific concerns).
Do NOT modify any file. Do NOT implement the proposed change. This is analysis only - the user decides whether to proceed after reading the alignment check.