一键导入
aml-installation
Install the AML runtime (Rust parser with Python bindings) so that agents can parse and execute AML tags programmatically.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Install the AML runtime (Rust parser with Python bindings) so that agents can parse and execute AML tags programmatically.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Teach an agent how to emit valid AML (Agent Markup Language) tags for declarative skill invocation inside prompts, including interface definitions, implementation bindings, scoping, nesting, params, and execution policies.
Use this skill when writing or editing AML (Agent Markup Language) content — interface definitions with typed params, returns, reads, writes; implementation definitions with DDE node declarations; skill refs (self-closing or wrapping); tool constraints; or interface/implementation split patterns. Also activate when reviewing AML documents for convention compliance, composing DDE-enforced workflows, or when the user asks about AML syntax or placeholder conventions.
| name | aml-installation |
| description | Install the AML runtime (Rust parser with Python bindings) so that agents can parse and execute AML tags programmatically. |
Use this guide when you need to install the AML runtime for programmatic parsing and execution.
pip install aml
This installs pre-built wheels with the Rust parser compiled for your platform.
Requirements:
pip install maturin)git clone https://github.com/sergio-sisternes-epam/aml.git
cd aml
maturin develop --release
from aml import parse, execute, AmlRegistry
# Parse AML from a prompt
doc = parse('<skill interface="testing" language="python">Run tests</skill>')
print(doc.node_count) # 1
print(doc.invocations()) # ['testing']
# Set up a registry
registry = AmlRegistry()
registry.register_interface("testing", "Run automated tests")
registry.register_implementation(
"pytest-impl", "testing",
language="python", framework="pytest"
)
# Execute (pass-through without custom handlers)
result = execute(doc, registry)
print(result) # "Run tests"
| Platform | Architecture | Status |
|---|---|---|
| Linux | x86_64 | ✅ |
| Linux | aarch64 | ✅ |
| macOS | x86_64 | ✅ |
| macOS | aarch64 (Apple Silicon) | ✅ |
| Windows | x86_64 | ✅ |
Add to your Cargo.toml:
[dependencies]
aml-core = "0.1"
use aml_core::{parse, SkillRegistry, ExecutionContext};
let doc = parse(r#"<skill interface="testing">content</skill>"#).unwrap();
let registry = SkillRegistry::new();
let ctx = ExecutionContext::new(registry);
let result = ctx.execute(&doc).unwrap();