ailang-packages
БесплатноЗапускает вложенные скриптыНе проверенCreate, validate, and publish AILANG packages with correct conventions. Use when user asks to create a new package, fix package errors, add dependencies…
от sunholo-data★ 39 звёзд на GitHubОб этом скилле
AILANG Package Development
Create, validate, and publish AILANG packages with correct conventions. Use when user asks to create a new package, fix package errors, add dependencies, publish to registry, or import packages. Also use when encountering IMP010, LDR001, MOD010, or export type errors during package development.
When to Use This Skill
- User wants to create a new AILANG package
- User encounters package-related errors (IMP010, LDR001, MOD010, type unification across packages)
- User asks about
ailang.toml,ailang.lock, package imports, or package publishing - User wants to add dependencies between packages
- User asks "how do I import from another package" or "how do I export types"
- Code has
import pkg/orimport ./paths that aren't resolving
Start with the installed binary
Read ailang docs package-authoring first. If unavailable on an older binary,
read the whole ailang prompt, including its contracts, testing and package
sections. Use ailang docs --all-functions <term> and ailang pkg-docs --help
before web search or guessing APIs. Verify historic limitations with a minimal
reproducer against the installed version.
Native quality evidence
Separate pure logic from effectful adapters. Use ADTs for closed states/errors, meaningful requires/ensures for pure functions, boundary/invalid examples in native tests and properties for algebraic invariants. Declare minimal effect ceilings and bounded effect counts with @limit where meaningful. Never add vacuous contracts just to satisfy a count.
Run ailang pkg quality --strict . for the package quality report: compile,
contracts, interface, effects, docs, style, and attested *_test.ail tests and
smoke. It does not run inline test blocks in source modules, and it is not
coverage or proof. Older binaries lacking this command require a manual
evidence review; report that limitation explicitly.
ailang test --package . only discovers test.ail. Run source modules with
inline tests explicitly (ailang test module.ail) too. A plain function named
test is not a native test declaration. Report actual totals, failures and skips;
zero discovered tests does not validate behavior. Use ailang verify --help for
SMT verification and report proved/unknown/skipped outcomes separately.
Quick Reference
Create a Package
ailang init package --name vendor/name
ailang init package --name sunholo/mylib --module-prefix mylib --dep sunholo/config
Install Dependencies
ailang install sunholo/auth # Install latest version (resolves from registry)
ailang install sunholo/auth@latest # Same as above
ailang install sunholo/[email protected] # Install exact version
@latest resolves once and writes the exact version to ailang.toml. Semver ranges (^, ~, >=) are not supported — AILANG requires exact versions in manifests for determinism.
Package Lifecycle
ailang lock # Resolve dependencies → ailang.lock
ailang check --package . # Type-check all modules (cross-module resolution)
ailang test --package . # Run *_test.ail files
ailang pkg quality --strict . # Inventory missing authoring evidence
ailang publish --dry-run # Packaging preview, not remote validation or proof
ailang publish # Publish to registry
Critical Rules (learned from production)
1. Module names use underscores, never hyphens
Hyphens parse as subtraction. Directory names can have hyphens, but module paths must use underscores.
Directory: packages/billing-store/
Module: module sunholo/billing_store/customers_repo
Import: import pkg/sunholo/billing_store/customers_repo (getCustomer)
2. Use ./ for intra-package sibling imports
Three-way import distinction — locality is explicit at the point of use:
import ./plan (Plan, lookupPlan) -- LOCAL: sibling in same package
import pkg/sunholo/firestore/client (getDoc) -- EXTERNAL: different package
import std/result (Ok, Err) -- STDLIB: bundled
./ resolves in module namespace (not filesystem): if current module is sunholo/billing_entitlements/entitlement, then ./plan normalizes to sunholo/billing_entitlements/plan.
import ./plan (Plan, lookupPlan, freePlan) -- sibling
import ./sub/helpers (validate) -- child directory
pkg/ self-imports also work (backward compatible) but ./ is preferred.
3. Cross-package types MUST use export type
Types used by other packages need export type, not just type. Without it, consumers get IMP010: symbol not exported.
-- WRONG: only visible within this module
type Customer = { name: string, email: string }
-- CORRECT: visible to importing packages
export type Customer = { name: string, email: string }
This applies to record types AND ADTs:
export type ProposalStatus = PendingApproval | AwaitingPaym
Установить ailang-packages в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл ailang-packages?
Create, validate, and publish AILANG packages with correct conventions. Use when user asks to create a new package, fix package errors, add dependencies, publish to registry, or import packages. Also use when encountering IMP010, LDR001, MOD010, or export type errors during package development.
Как установить скилл ailang-packages?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл ailang-packages запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
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