Enablement: help coding agents write idiomatic Mellea code

Đang mở
#1,433 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 3 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
25/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Ít trao đổi
Công nghệ
python

Hướng nghiên cứu

Read docs/AGENTS_TEMPLATE.md, .agents/skills/, mellea/stdlib/tools/mcp.py, and the runnable examples in docs/examples/ to understand the existing guidance and tooling. Compare the proposed distribution options and open questions, then identify a focused sub-task to break out; the success criterion is a low-friction way for coding agents to produce idiomatic, correct, current Mellea code.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

documentation enhancement needs-design p1 triage/needs-user-input

Problem

When developers point a coding agent (Claude, Cursor, Codex, etc.) at a task involving Mellea, the generated code tends to be subpar. They invent APIs that don't exist, reach for antipatterns, don't do things the "melleaic way", etc.

This matters most for new users: their first experience is often mediated through an agent, and a bad first result reads as "Mellea doesn't work" rather than "the agent didn't know how to use Mellea." We need something a developer can drop into their own project's agent with minimal effort.

What we already have

  • docs/AGENTS_TEMPLATE.md: a genuinely good, opinionated guide (the @generative pattern, anti-patterns section, common errors table). But it lives in our repo and requires the developer to know it exists and copy it manually
  • .agents/skills/: we already use the agentskills.io skill standard internally.
  • m serve / mellea/stdlib/tools/mcp.py: Mellea can already expose generative programs as MCP tools. We don't yet have an MCP server that teaches an agent to write Mellea
  • docs/examples/: a large corpus of runnable, idiomatic examples

Areas to investigate

These are the sub-tasks to evaluate and break out; the epic is about picking the right mix, not committing to all of them.

  1. Distributable agent skill(s): publish a "writing Mellea code" skill following the agentskills.io standard so any compatible agent can pick it up. Reuses AGENTS_TEMPLATE.md content; likely the lowest-friction path
  2. MCP server for authoring: an MCP server the developer points their agent at, exposing tools like: search idiomatic examples, look up the correct API for a task, validate a snippet against current APIs, surface anti-pattern warnings
  3. Published, versioned AGENTS.md snippet: a canonical, copy-pasteable block (or uvx-installable command that writes it) kept in sync with each release, so "the melleaic way" travels with the version the developer is actually on
  4. Context/docs optimized for retrieval: a compact, agent-oriented docs bundle (not the full repo), shippable via llms.txt or similar

Open questions

  • Prioritization: which surface(s) do we ship for the next release, and which are follow-ups?
  • Version sync: how do we keep guidance aligned with the version the developer actually has installed? Antipattern advice rots fast — stale guidance may be worse than none.
  • Measurement: how do we know it's working? A likely approach: an eval harness that gives an agent N Mellea tasks with and without the enablement package and scores idiomaticity + correctness. (Scope TBD, could be its own sub-task.)
  • Distribution: bundled with the mellea pip package? A separate install (mellea-agent-kit)? A hosted MCP endpoint?

Success criteria

A developer using a mainstream coding agent can, with a single low-friction step, get their agent to reliably produce idiomatic, correct, and current Mellea code, without hand-holding and without pasting the repo into context.

Ngôn ngữ chính
Python
Star
1.8k
Fork
161
Merge trung bình
4 ngày 3 giờ
Pull request đã merge (30 ngày)
45

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của generative-computing/mellea

Tất cả issue của generative-computing/mellea

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.