Enablement: help coding agents write idiomatic Mellea code

未关闭
#1,433 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
冷清
技术栈
python

调研方向

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.

由索引模型根据 Issue 内容生成。

描述

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.

主要语言
Python
星标
1.8k
派生
161
平均合并
4 天 3 小时
30 天内合并 PR
45

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

generative-computing/mellea 的其他 Issue

查看 generative-computing/mellea 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。