Skip to content

feat: add mops-cli agent skill#493

Merged
Kamirus merged 1 commit into
mainfrom
add-mops-cli-skill
Apr 15, 2026
Merged

feat: add mops-cli agent skill#493
Kamirus merged 1 commit into
mainfrom
add-mops-cli-skill

Conversation

@Kamirus
Copy link
Copy Markdown
Collaborator

@Kamirus Kamirus commented Apr 15, 2026

Summary

  • Add an opinionated agent skill (.agents/skills/mops-cli/SKILL.md) that teaches AI agents how to use the mops CLI
  • Covers the focused workflow: no dfx (pin moc in toolchain), no mo:base (use mo:core), all config in mops.toml, canister-centric check/build
  • Documents moc args layering, check-stable setup, warning flags (M0223/M0236/M0237), toolchain management, and common patterns

Details

Key opinions encoded in the skill:

  • Always pin moc and lintoko in [toolchain]; use latest for non-interactive setup
  • Never pass file paths to mops check (exception: library packages without [canisters])
  • Use mops check --fix as the primary correctness command (type-check + stable + lint in one pass)
  • Create a trivial .most file for new projects instead of skipIfMissing = true
  • Includes agent-specific notes (e.g. toolchain use without version is interactive — avoid)

Skipped commands: bench, publish, owner, maintainer, bump, set-network, get-network, search, info, cache, user, self, template, docs, sources, moc-args, check-candid, watch.

Test plan

  • Verified all documented commands work (mops check, mops check backend, mops build, mops toolchain bin moc, etc.)
  • Tested check-stable integration with deployed-compatible fixture
  • Tested mops check src/**/*.mo for library packages in motoko-core
  • Confirmed toolchain use moc latest is supported in the code
  • Reviewed and simplified with post-implementation-reviewer subagent

Made with Cursor

Opinionated guide for AI agents on how to use the mops CLI — covers
toolchain pinning, dependency management, type-checking, building,
and linting workflows.

Made-with: Cursor
@Kamirus Kamirus requested a review from a team as a code owner April 15, 2026 09:43
@Kamirus Kamirus enabled auto-merge (squash) April 15, 2026 09:46
@Kamirus Kamirus merged commit 47ce420 into main Apr 15, 2026
25 checks passed
@Kamirus Kamirus deleted the add-mops-cli-skill branch April 15, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant