anoma-intents
БесплатноБез исполняемых скриптовНе проверенAnoma intent-centric architecture for cross-chain obstruction passing with Geb semantics and Juvix compilation
от plurigrid★ 73 звезды на GitHubОб этом скилле
Anoma Intents (0)
Intent-centric cross-chain messaging with categorical semantics
Trit: 0 (ERGODIC - coordination) Role: Cross-chain obstruction routing
Core Concept
Anoma's intent-centric architecture enables cross-chain obstruction passing:
┌─────────────────────────────────────────────────────────────────────────────┐
│ ANOMA INTENT ARCHITECTURE │
├─────────────────────────────────────────────────────────────────────────────┤
│ │
│ APTOS ANOMA TARGET CHAIN │
│ ┌────────────────┐ ┌────────────────┐ ┌────────────────┐ │
│ │ Obstruction │ │ Intent Machine │ │ Obstruction │ │
│ │ Hot Potato │─────►│ │───────►│ Receiver │ │
│ │ │ │ - Match │ │ │ │
│ │ Intent: │ │ - Route │ │ Intent: │ │
│ │ nullify(obs) │ │ - Verify GF(3) │ │ commit(obs) │ │
│ └────────────────┘ └────────────────┘ └────────────────┘ │
│ │ │
│ ▼ │
│ ┌────────────┐ │
│ │ Solver │ │
│ │ VCG fee │ │
│ │ (-1 trit) │ │
│ └────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────────┘
Intent as Categorical Morphism
From Geb: intents are morphisms in a bicartesian closed category.
;; Intent structure in Geb
(define intent-type
(prod
(prod address address) ; (owner, solver)
(prod resource-type ; nullify (give)
resource-type))) ; commit (receive)
;; Obstruction pass intent
(define (obstruction-pass-intent owner obs target-chain)
(make-intent
:owner owner
:nullify (obstruction-resource obs)
:commit (receipt-resource target-chain obs)
:constraint (vcg-payment-constraint (h1-class obs))))
Cross-Chain Obstruction Flow
Step 1: Create Intent on Aptos
// From obstruction_hot_potato.move
public entry fun create_pass_intent(
player: &signer,
obstruction_idx: u64,
target_chain: vector<u8>,
max_vcg_payment: u64,
) acquires Player {
let player_data = borrow_global_mut<Player>(signer::address_of(player));
let obs = vector::borrow(&player_data.obstructions, obstruction_idx);
// Create intent: nullify obstruction, receive receipt
let intent = Intent {
owner: signer::address_of(player),
nullify: obs,
commit: CrossChainReceipt { chain: target_chain, obs_hash: hash(obs) },
vcg_constraint: compute_externality(obs.h1_class),
};
emit_intent(intent);
}
Step 2: Solver Matches on Anoma
class AnomaObstructionSolver:
"""Match cross-chain obstruction pass intents."""
def match_intents(self,
aptos_nullify: Intent,
target_commit: Intent) -> Optional[Transaction]:
# Verify complementary structure
if not self.complementary(aptos_nullify, target_commit):
return None
# Compute VCG payment
h1_class = aptos_nullify.obstruction.h1_class
vcg_payment = vcg_externality(h1_class)
# Extract solver fee
solver_fee = vcg_payment * self.extraction_rate
# Build matched transaction
return Transaction(
nullifications=[aptos_nullify.nullify],
commitments=[target_commit.commit],
payments=[
Payment(aptos_nullify.owner, vcg_payment),
Payment(self.address, solver_fee)
],
gf3_sum=aptos_nullify.trit + target_commit.trit + (-1) # Must be 0 mod 3
)
def verify_gf3(self, tx: Transaction) -> bool:
return tx.gf3_sum % 3 == 0
Step 3: Execute on Target Chain
-- Commit obstruction on target chain
commitObstruction : Obstruction -> ChainState -> ChainState
commitObstruction obs state :=
let newState := addObstruction state obs
in if gf3Conserved newState
then newState
else abort "GF(3) violation";
-- GF(3) check
gf3Conserved : ChainState -> Bool
gf3Conserved state :=
let sum := foldr (+) 0 (map trit (obstructions state))
in sum `mod` 3 == 0;
Juvix Intent DSL
-- Intent type
type Intent := mkIntent {
owner : Ad
Установить anoma-intents в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл anoma-intents?
Anoma intent-centric architecture for cross-chain obstruction passing with Geb semantics and Juvix compilation
Как установить скилл anoma-intents?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл anoma-intents запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic