Skip to content

feat: add agent skills for MO development workflow #25267

Description

@XuPeng-SH

Summary

Introduce structured agent skills to improve development velocity and reduce common pitfalls when working with the MatrixOne codebase.

Background

MatrixOne has several project-specific complexities that cause repeated friction in day-to-day development:

  • CGo multi-layer linking: three separate variables (CGO_CFLAGS, CGO_LDFLAGS, -ldflags + -extldflags) must be configured correctly, with platform-specific differences between macOS (DYLD_LIBRARY_PATH) and Linux (LD_LIBRARY_PATH).
  • Pipeline operator lifecycle contracts: operators like Connector/Dispatch/Merge have strict Call() vs Reset() separation — violating this causes spool timeouts and data leaks.
  • Completion gating: the habitual pattern of declaring work "done" without running actual tests leads to uncaught regressions.

Agent skills provide structured, always-available knowledge that agents can consult at decision points to avoid these traps.

Proposed Skills

mo-dev (Astra + Codex compatible)

Covers all MatrixOne-specific development concerns:

  1. Project structure & dependency chains (compile → colexec → process → container, with CGo boundaries)
  2. CGo environment setup — symptom→root cause table for all common link errors, platform-specific (macOS/Linux) one-liners for go test
  3. Layered testing strategy — pure Go → CGo-transitive → CGo-direct, each with correct env variables
  4. Operator lifecycle contracts — Call() vs Reset() hard boundary, PipelineSpool.Abort() vs CloseWithTimeout()
  5. Completion gate — 5-step checklist before declaring work done
  6. Forbidden patterns — operator contract violation, async cleanup with removed protocol, stale test output, unexplained errors

Acceptance Criteria

  • mo-dev skill documents CGo setup for both macOS and Linux
  • Skill covers operator lifecycle contracts (Call/Reset, Abort/CloseWithTimeout)
  • Skill includes completion gate checklist
  • Codex-compatible version has correct YAML frontmatter (name, description for implicit trigger matching)
  • .gitignore changes only expose the two skill files, nothing else under .claude/ or .agents/

References

Activity

  1. added a commit that references this issue on Jun 30, 2026
    792db95
  2. self-assigned this
    on Jun 30, 2026
  3. added
    priority/p0
    on Jun 30, 2026
  4. added this to the Backlog milestone on Jun 30, 2026
  5. added a commit that references this issue on Aug 2, 2026
    20f0bb8
  6. added 12 commits that reference this issue on Sep 17, 2026
    aea44db
    b14eb52
    5b7de80
    f7eef6e
    286131e
    d1ee90a
    7974666
    3253095
    9b15958
    4cfb81c
    6fddf35
    209f109
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/featurepriority/p0

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions