Enablement: help coding agents write idiomatic Mellea code

オープン
#1,433 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
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時間
マージ済み PR(30日)
45

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

generative-computing/mellea のほかの issue

generative-computing/mellea の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。