feat(cli): add Baidu Comate support (trellis init --comate)
Feature Description
Add first-class Baidu Comate support to the Trellis CLI:
trellis init --comateThe integration should generate Comate project configuration under .comate/ while continuing to share Trellis specs, tasks, workflow, and workspace memory under .trellis/.
Proposed mapping
| Trellis capability | Baidu Comate capability |
|---|---|
| Workflow/spec injection | Always-active project Rule in .comate/rules/*.mdr |
| Workflow skills | Project Skills in .comate/skills/<skill_name>/SKILL.md |
| Commands | Comate Commands |
| Implementation/review roles | Comate Subagents |
| Project memory | .trellis/workspace/ |
| Task specifications | .trellis/tasks/ |
Proposed CLI usage
trellis init --comate
trellis init --codex --comate
trellis init --opencode --comate
trellis init --all
trellis updateProposed MVP
- Register
comatein the platform registry. - Add the
--comateinit option. - Generate an always-active Trellis Rule under
.comate/rules/. - Install Trellis workflow Skills under
.comate/skills/. - Support idempotent
initandupdate. - Add tests and documentation.
Lifecycle hooks, Commands, and deeper Subagent integration could be added later if Comate exposes stable public interfaces.
Questions
- Would the maintainers accept Baidu Comate as a first-class platform?
- Which existing platform adapter should be used as the preferred reference?
- Should the initial PR focus on Rules and Skills, or also include Commands and Subagents?
I am willing to work on the implementation and submit a PR after the scope is confirmed.
References
- https://comate.baidu.com/zh
- https://cloud.baidu.com/doc/COMATE/s/Zm9l4agw3
- https://cloud.baidu.com/doc/COMATE/s/Nmma28iqe
- https://cloud.baidu.com/doc/COMATE/s/emsseobso
Motivation
Baidu Comate now provides the main primitives needed for a Trellis integration: project-level Rules, portable Agent Skills, Subagents, Commands, MCP, Memory, Spec Mode, and a CLI.
Its official documentation states that Skills follow the portable Agent Skills standard and can be stored in the repository. First-class support would let Comate users adopt the same Trellis workflow and project memory used across the other supported coding agents, without manually copying or translating Trellis files.
Alternatives Considered
- Manually copy Trellis guidance into
.comate/rules/*.mdr. - Manually install Trellis-compatible Skills into
.comate/skills/. - Ask Comate to read
.trellis/workflow.mdat the start of every session.
These workarounds lack automatic setup, reliable updates, platform detection, and consistent team onboarding.
Source: mindfold-ai/Trellis