Logo Linear Agent Writes

Linear Agent Writes

Tổ chứcPhổ biến
langfuse
linear-agent-writes

The org policy for what an agent may write to Linear, and how it must be marked. Read this before creating a ticket, editing a description, or commenting on a ticket as an agent — "file this in Linear", "comment on the ticket", "create a subticket", "write the handover". Default those writes to a short human description; expand with research only when asked. Also covers the required Linear connection and what to do when there isn't one.

Tổng quan

Nhà phát hànhlangfuse
Kho mãlangfuse
Tên kỹ nănglinear-agent-writes
Sao
37.4K
Bản fork
4.2K
Tệp đi kèm
1
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI là Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 1 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được langfuse công bố trên GitHub. Hãy đọc nội dung nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Linear Agent Writes trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL thư mục kỹ năng bên dưới và xác nhận.
    https://github.com/langfuse/langfuse/tree/main/.agents/skills/linear-agent-writes
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/langfuse/langfuse.git /tmp/langfuse
mkdir -p .claude/skills
cp -r /tmp/langfuse/.agents/skills/linear-agent-writes .claude/skills/linear-agent-writes
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Linear Agent Writes trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự tải Linear Agent Writes ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên Linear Agent Writes không bị giới hạn ở mô hình mà kỹ năng này được viết cho. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên kỹ năng chưa dùng không tốn chi phí.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Linear agent writes

Agents may write to Linear, but most writes are proposals first. Show the text you intend to land, get an explicit go-ahead, then write it yourself. Do not silently mutate a ticket the human is mid-session with.

The one exception is a subticket of an existing ticket — that shape is free, because planning a stack is useless if every child needs its own yes.

The guardrail is propose-then-write, plus marking, plus a bounded set of shapes: three permitted write shapes, each stamped with a label, each marked as agent-written in the text. Everything outside those three shapes still belongs to a human.

This file is the single authority for that policy. Other skills and repo instructions point here; none of them restate the rules. If another document disagrees with this one, this one wins — fix the other document.

It is maintainer-facing: it binds anyone whose agent can reach the Langfuse issue tracker, and it has nothing to ask of an outside contributor.

Provenance: the "Agentic Coding and Linear" RFC (LFE-15914), which replaced the earlier "Linear is read-only for agents" posture; tightened after feedback that auto-updating tickets mid-implementation was worse than proposing the update (LFE-16058).

Default length

Ordinary Linear writes are short. A new ticket or subticket is a title and two to four sentences: what to do, and why in one line if it is not obvious. Comments stay to the thing the watcher needs today.

Expand — research, file lists — only when they ask ("expand this", "add context"). Do not invent an implementation-ready brief.

Wrong (they said "create a subticket"): six fields, entry-point files, a stack position, a research essay.

Right: "Warn sunset event types on POST /ingestion request body. Fern still lists trace-create as if it works; say those event types stop on Nov 16."

Why the taboo went away — and why a gate came back for updates

Linear used to be human-only for agents, and every skill that touched it had to stop and present a review table first. That cost more than it protected: the expensive thinking in an agent session — the decisions, the reversals, the traps — evaporated when the session ended, because the one place it could have been written down was closed.

Breaking the taboo is not removing every boundary. Marking is what stops misattribution: a human must always be able to tell, at a glance, which text on a ticket is theirs and which an agent wrote.

Auto-writing comments and description edits turned out to be a different failure mode: the agent lands context the human did not choose, notifies watchers, and can scramble the description another session is treating as memory. So updates of an existing ticket are proposals — show the block, get a yes, then write. The content still survives the session; the human hand-selects what lands.

An explicit ask such as "write the handover", "comment on the ticket", or "update Linear" is the go-ahead for that write. Do not ask twice.

End of session: ask once whether to preserve on tickets

When a session produced decisions, reversals, or other reasoning that should survive the chat — and you have not already been told to update Linear — close with a clear yes/no ask, not a silent write and not a buried aside.

Use wording close to:

Should I update the ticket(s) with the results of this session so they are preserved?

If yes, show the exact comment or description block (or the batch table), then write. If no or unanswered, leave the block in the reply. Skip the ask only when nothing durable came out of the session, or when they already approved the write for this wrap-up.

The three shapes

They compose. Stamp every shape you used, so the labels read as a log of what agents did to the ticket.

1. Comment — propose, then post (only when a human must be told something now)

Label AI commented. Mark the comment body itself as agent-written.

A comment notifies every watcher. Use one when someone genuinely needs to see something today: a blocker, a question that stops the work, a finding that changes their plan.

Show the comment body in your reply, get a yes, then post it. Do not post unsolicited comments.

Durable post-context does not go here. A wrap-up handover posted as a comment sprays every watcher's inbox for something nobody needs to read today, and inbox spam is how a good practice gets switched off. That goes in the description.

2. Edit a description — propose the block, then append

Label AI edited. Add a clearly separated agent block; never rewrite, reflow, or "improve" the human's prose around it.

This is the durable half of the practice. AI edited is the filter a future session uses to find prior agent reasoning, so the label is not decoration — it is the index.

Show the exact block you would append (and which ticket), get a yes, then append it. Do not edit a description unsolicited — including wrap-up handovers. If the human declines or does not answer, leave the block in your reply so nothing is lost.

What belongs in such a block, how to append it without destroying the description, and why an attachment is not optional are linear-context-handover.

3. Create a ticket — a subticket freely, a top-level one after a yes

Label AI created. Say in the description that an agent created it and who it is for. Default length is the short human ticket in Default length above.

A subticket of an existing ticket needs no permission. File the short ticket. "Create a subticket" / "file this" / "add a ticket" is this shape.

A ticket with no parent needs the human's yes first — a top-level issue, or one filed straight into a project. Show the title and the short description you intend to file, get an explicit go-ahead, then create it yourself; do not hand the text back for them to paste, which is the cost you were meant to remove.

A parentless ticket lands in somebody's triage queue — cost on people who did not ask for it. A comment or description edit lands on a ticket someone is already working — cost on their focus and on cross-session context. Both need a yes. A child of an existing ticket does not.

What still belongs to a human

Assigning, moving state, closing, estimating, re-prioritising, deleting, projects, and creating new labels.

Surface these as suggestions in your reply — do not do them, and do not ask for permission to do them as a way of getting them done. (A gated write is different: asking is exactly the right move there, and then you perform the write.)

Sweeps: ask once for the batch, not once per ticket

A skill that reviews a whole queue — production errors, the alerts that fired last week, a scaling review — comes back with many findings at once. Parentless filings need a yes; so do description appends and comments onto tickets that already exist.

Ask for the set, in one go. Present a table with the title and body (or the append block / comment) you would land for each, and get a single go-ahead — or a go-ahead for named rows. Then write those rows yourself and report what you wrote. Asking twelve separate times is worse than the pasting it replaced.

You need a Linear connection

The practice only works if your agent can actually reach Linear — reading history before you start, writing the handover when you finish. In this repo the server is already declared for you: .agents/config.json lists linear as an HTTP MCP server, and scripts/agents/sync-agent-shims.mjs projects it into each tool's config on pnpm install. Those generated files are gitignored build artifacts — never hand-edit them.

What is left per developer is authorizing it, which the first connection prompts for. On a headless surface there is nobody to approve that prompt, and a remote MCP can report itself connected before any token exists — so prove access with a real read rather than trusting an indicator, and use a token in an Authorization header there instead of the interactive flow. Do not commit that header: an unset variable is passed through literally and fails with no fallback. Never print or echo the secret value (LINEAR_API_KEY / LINEAR_TOKEN / LINEAR_API_TOKEN) while debugging or reporting the read — say only whether access worked.

When there is no Linear connection: say so, loudly

If the Linear tools are absent, do not silently skip the reconstruct or the handover. Silent non-compliance is indistinguishable from compliance, and that is how a practice quietly dies.

Say, in your reply, in plain language:

  • that this environment has no Linear access;
  • which step you could not complete (history reconstruction, the handover, the subtickets);
  • and then the content itself, ready to paste — the handover block, the subticket bodies, the comment.

The work is not lost that way, and the missing configuration becomes visible instead of invisible.

text
No Linear access in this environment, so the handover was not written.
Here is the block that should go on the parent ticket's description
(label it `AI edited`):

<the handover block>

Never guess at a ticket's history from the code alone and present it as recovered context. Say the history could not be read.

Marking in the text, not only the label

The Linear MCP writes as the authenticated human, not as a bot. An unmarked agent block reads as that person's own words to everyone who sees it. The label is for filtering; the in-text marking is what stops the misattribution. Do both, every time.

Where preferences live

Org defaults for agent behaviour — including this propose-then-write gate — live in .agents/skills/** (and the maintainer handbook that points at them). Edit the skill when the team wants a different default. Ask the person for one-off personal preferences; do not maintain a local identity or preferences file for them.

Tệp đi kèm

Mô hình đọc các tệp này khi cần trong lúc kỹ năng được tải. Các tệp được cung cấp ở dạng có thể đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Linear Agent Writes làm được gì?

The org policy for what an agent may write to Linear, and how it must be marked. Read this before creating a ticket, editing a description, or commenting on a ticket as an agent — "file this in Linear", "comment on the ticket", "create a subticket", "write the handover". Default those writes to a short human description; expand with research only when asked. Also covers the required Linear connection and what to do when there isn't one.

Vì sao nên dùng Linear Agent Writes trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Linear Agent Writes là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Linear Agent Writes trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/langfuse/langfuse/tree/main/.agents/skills/linear-agent-writes. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm và cài đặt thành một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Linear Agent Writes?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Bạn có thể dùng Linear Agent Writes với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Linear Agent Writes với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Linear Agent Writes có miễn phí không?

Kỹ năng này được langfuse phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp cho mô hình các công cụ mới để gọi — mã được chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và tiêu chí của đầu ra tốt. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇