use-ailang
БесплатноЗапускает вложенные скриптыНе проверенWrite and run AILANG code with correct syntax. Use when user asks to write AILANG programs, fix AILANG syntax errors, run AILANG code, or needs help with…
от sunholo-data★ 39 звёзд на GitHubОб этом скилле
AILANG Code Writing
Write correct AILANG code using the live MCP server as the canonical reference.
Quick Start
ailang run --caps IO --entry main solution.ail # Run with effects
ailang repl # Interactive development
ailang check solution.ail # Type-check only
ailang verify solution.ail # Prove contracts with Z3
When to Use This Skill
- User asks to write AILANG code, fix syntax errors, or run programs
- User asks about AILANG features, capabilities, or version
- User wants to add Z3 verification or contracts
Source of Truth: the AILANG MCP Server
mcp.ailang.sunholo.com is the canonical, live, version-locked source of truth for AILANG syntax, stdlib, examples, and limitations. Prefer it over any embedded reference in this file.
If the user's harness supports remote MCP (Claude Desktop, Cursor, Cline, Continue, Claude Code), have them add it once:
{
"mcpServers": {
"ailang-docs": {
"url": "https://mcp.ailang.sunholo.com/mcp/",
"transport": "streamable-http"
}
}
}
Or use the one-click button at ailang.sunholo.com.
Then the agent has typed tools to query AILANG knowledge directly:
| Tool | When to call |
|---|---|
prompt_get(for_version, kind="agent") |
Need full syntax reference (replaces reading resources/syntax_quick_ref.md) |
stdlib_modules(for_version) |
Discover what's available in stdlib |
stdlib_module(name, for_version) |
Look up exports of a specific module before importing |
stdlib_search(query, for_version) |
Find a function by name/keyword |
examples_for_concept(concept, for_version) |
Find a working example of a feature |
example_get(path, for_version) |
Read full source of a specific example |
limitations_list(for_version) |
Check what AILANG can't do (Y-combinator etc.) before proposing it |
effects_catalog(for_version) |
Find which capability flag a function needs |
submit_feedback(...) |
File a bug/limitation report mid-session — lands in our triage queue |
Pass for_version=$(ailang prompt --version-active) (or empty for "latest") so the response is guaranteed to match the user's CLI capabilities.
If the harness does NOT support remote MCP — fall back to the local CLI:
ailang prompt # Full teaching prompt (embedded)
ailang prompt --source mcp # Force fresh copy from MCP if reachable
ailang prompt --source embedded # Force embedded copy (eval reproducibility)
ailang docs std/list # Inspect a stdlib module locally
ailang examples search "pattern matching"
ailang mcp status # Check MCP reachability + drift
ailang prompt --source auto (the default) prefers MCP-served content when reachable AND its served_for matches the CLI version, otherwise silently falls back to embedded. Reproducible eval runs MUST set --source embedded.
Local CLI Reference (always works, even offline)
Core commands
ailang repl # Interactive
ailang run --caps IO,FS --entry main file.ail # Flags BEFORE filename!
ailang check file.ail # Type-check only
ailang verify file.ail # Z3 contract verification
ailang watch file.ail # Auto-reload on change
ailang iface mymodule # Module interface as JSON
Critical: ailang run flags MUST come before the filename. ailang run file.ail --caps IO silently ignores the flags.
Examples (already on disk)
ailang examples search "pattern matching"
ailang examples list --tags adt
ailang examples show adt_option --run
Three Module Conventions (memorize these — they bite)
1. REPL — no module declaration
ailang repl
2. Module file — standard
module myapp/main
import std/io (println)
export func main() -> () ! {IO} = println("Hello, AILANG!")
Module path uses underscores, not hyphens (mcp_tools/lib, not mcp-tools/lib).
3. Eval-harness benchmark — must use module benchmark/solution
module benchmark/solution
import std/io (println)
export func main() -> () ! {IO} = println("Benchmark solution")
Workflow
When the user asks for AILANG code:
- Check that the agent has MCP access (if applicable):
ailang mcp statusor look formcp.ailang.sunholo.comin the agent's MCP config. - Get current syntax reference: call
prompt_get(for_version=...)via MCP, orailang promptlocally. - Discover stdlib + examples before writing: call
stdlib_search/examples_for_conceptinstead of guessing imports. - Write the code following the prompt's syntax. Prefer pure functions (
! {}) for core logic — these are Z3-verifiable; keep effectful code (! {IO}) as thin wrappers.
Установить use-ailang в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл use-ailang?
Write and run AILANG code with correct syntax. Use when user asks to write AILANG programs, fix AILANG syntax errors, run AILANG code, or needs help with AILANG syntax. Includes version checking, syntax validation, and common patterns.
Как установить скилл use-ailang?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл use-ailang запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic