一键导入
cli-guide
Get exact CLI commands for any Andamio operation. Translates developer questions to commands with flags, exit codes, and composability patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Get exact CLI commands for any Andamio operation. Translates developer questions to commands with flags, exit codes, and composability patterns.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
The public front door for contributing to Andamio's public repos. Show what's open across public repos, orient contributors, and help file new issues — reflecting only public state.
Welcome to Andamio Dev. Detect what the developer needs, whether they're learning or operating, and route to the right skill.
Calculate ADA costs for Andamio operations. Estimate total cost for courses, projects, and user scenarios with four-component breakdowns.
Project lifecycle guidance — create projects, manage tasks, handle contributors, fund treasury, and issue credentials. CLI-first with API alternatives.
Compatibility wrapper for the portable Build on Andamio assignment assessment protocol. Canonical instructions live in skills/assess-assignment/SKILL.md.
Compatibility wrapper for the portable Build on Andamio lesson delivery protocol. Canonical instructions live in skills/deliver-lesson/SKILL.md.
| name | cli-guide |
| description | Get exact CLI commands for any Andamio operation. Translates developer questions to commands with flags, exit codes, and composability patterns. |
| license | MIT |
| compatibility | Requires the Andamio CLI binary (v0.10.1+). Install via brew install andamio-platform/tap/andamio. |
| metadata | {"author":"Andamio","version":"0.2.0"} |
Interactive CLI guidance from the bundled agent reference. Developers ask what they want to do and get exact andamio commands with flags, expected output, exit codes, and composability patterns.
${CLAUDE_PLUGIN_ROOT} is set): Read reference from ${CLAUDE_PLUGIN_ROOT}/reference/.reference/ relative to project root.reference/andamio-cli-context.md — complete CLI command reference (v0.10.1).knowledge/gotchas.yaml for CLI-related gotchas (category: cli). Proceed without it if missing.When the developer asks how to do something:
Find the matching command from the CLI reference.
Present the command with:
--output json variant for scripting/agent useFormat consistently:
Command: andamio course list --output json
Auth: API Key (read-only OK)
Exit: 0 = success, 2 = not found, 3 = auth required
Output:
{
"data": [
{ "course_id": "013f0a...", "content": { "title": "My Course" } }
]
}
Cover the full CLI surface:
| Group | Commands | Auth |
|---|---|---|
auth | login, status | none / api-key |
config | show, set-url, set-submit-url, set-submit-header, remove-submit-header | none |
user | login (browser + headless), logout, status, me, exists | varies |
course (read) | list, get, modules, slts, lesson, assignment, intro | either |
course (write) | create-module, export, import, import-all | jwt |
course owner | list, create, register, update, teachers | jwt |
course teacher | commitments, review, register-module, publish-module, delete-module, update-module-status | jwt |
course student | courses, credentials, commitments, commitment, create, submit, update, claim, leave | jwt |
course credential | verify-hash | either |
teacher | courses, assignments list/get | jwt |
project (read) | list, get, tasks | either |
project owner | list, create, register, update | jwt |
project task | list, get, create, update, delete, export, import, verify-hash | jwt |
project contributor | list, commitments, commitment, commit, update, delete | jwt |
project manager | commitments | jwt |
manager | projects | jwt |
token | list | either |
tx | run, build, sign, submit, register, pending, types, status | varies |
apikey | usage, profile | api-key |
spec | fetch, paths | none |
When the developer is building scripts or pipelines, show composability:
# Two-step discovery: find ID, then use it
COURSE_ID=$(andamio course list --output json | jq -r '.data[0].course_id')
andamio course modules "$COURSE_ID" --output json
# Pipe to jq for field extraction
andamio course slts "$COURSE_ID" 100 --output json | jq '.data[].slt_text'
# Check exit codes in scripts
if ! andamio user status >/dev/null 2>&1; then
echo "Auth required" >&2
andamio user login
fi
Key rules:
stdout = structured data only (JSON, CSV, tables)stderr = progress messages, status updates--output json is the stable scripting surfaceWhen the developer asks about content management, show the round-trip:
# Export a module to local files
andamio course export <course-id> <module-code>
# Alt: andamio course export <module-code> --course "Course Name"
# Creates: compiled/<slug>/<code>/outline.md, lesson-N.md, assignment.md, introduction.md
# Edit locally
vim compiled/<slug>/<code>/lesson-1.md
# Re-import (updates existing content)
andamio course import ./compiled/<slug>/<code> --course-id <id>
# Import with module creation if missing
andamio course import ./compiled/<slug>/<code> --course-id <id> --create
# Bulk import all modules
andamio course import-all ./compiled/<slug> --course-id <id> --create
File format rules:
outline.md: No # H1 — title from YAML title: field. Start with ## SLTs.lesson-N.md: Must have # H1 — this becomes the lesson title.introduction.md: # H1 becomes intro title.assignment.md: # H1 becomes assignment title.When the developer asks about transactions, prefer tx run:
# Preferred: single command for the full lifecycle
andamio tx run /v2/tx/course/teacher/assignments/assess \
--body-file payload.json \
--skey payment.skey \
--tx-type assessment_assess \
--instance-id "$COURSE_ID"
For advanced use, show the individual steps:
# 1. Build unsigned transaction
TX_HEX=$(andamio tx build /v2/tx/course/teacher/assignments/assess \
--body-file payload.json --output json | jq -r '.tx_hex')
# 2. Sign with local key
SIGNED=$(andamio tx sign --tx "$TX_HEX" --skey payment.skey --output json | jq -r '.tx_hex')
# 3. Submit to network
andamio tx submit --tx "$SIGNED"
# 4. Register for tracking
andamio tx register --tx-hash "$TX_HASH" --tx-type assessment_assess
# 5. Check status
andamio tx status "$TX_HASH" --output json
Some operations have on-chain prerequisites. Always mention ordering when relevant:
Course: enroll → submit evidence → teacher accepts → assess on-chain → claim credential Project: create task → manage on-chain → contributor commits → submit evidence → manager assesses
Task commits require the contributor to hold a credential. Without it: 422 "Prerequisites not achieved."
When the developer is in CI/CD, scripting, or agent context:
andamio user login --skey ./payment.skey --alias myalias --address $(cat wallet.addr)
No browser needed. Signs a CIP-8 nonce with the .skey file.
--output json for agent/scripting contextstx run over manual build/sign/submit steps--course "Name" alternative when course-id is needed (for export/import commands)