contributing-to-pi
БесплатноБез исполняемых скриптовНе проверенContribute fixes, bug reports, and upstream discussions to badlogic/pi-mono without wasting maintainer time. Use when filing pi issues, preparing pi PRs…
от joelhooks★ 69 звёзд на GitHubОб этом скилле
Contributing to pi
This skill exists to stop us sending half-baked upstream reports to Mario.
The maintainer standard is reasonable: understand the bug, isolate the boundary that actually breaks, and show a concrete repro. If we can't do that yet, we are still in local debugging mode — not upstream contribution mode.
When to Use
Use this skill when:
- working in
~/Code/badlogic/pi-mono - filing or updating an issue on
badlogic/pi-mono - preparing a PR meant for upstream
- deciding whether a failure belongs in pi core, a provider adapter, an extension, or our local patches
- responding to maintainer questions like "which provider/model triggered this?" or "how is this possible?"
Read These First
Always read both files in the local clone before touching upstream threads:
~/Code/badlogic/pi-mono/CONTRIBUTING.md~/Code/badlogic/pi-mono/AGENTS.md
The important bits:
- first-time contributors open an issue first and wait for maintainer approval (
lgtm) - issue and PR text must be concise and written in a human voice
- new issues should carry the right
pkg:*labels - after code changes run
npm run check - do not run the repo's blanket
npm test - if you need tests, run targeted tests from the relevant package root
For the repo/maintainer deep dive, read:
references/pi-mono-research.md
Non-Negotiables
1. Reproduce on clean upstream before claiming a core bug
If the failure only happened in one of these environments, say that plainly and do more work before filing upstream:
- local repo build wired into
~/.local/bin/pi - globally patched installs under
~/.bun/install/global/... - sessions with custom extensions enabled
- branches with local instrumentation or emergency guards applied
Use a clean worktree when in doubt:
cd ~/Code/badlogic/pi-mono
git fetch origin
git worktree add /tmp/pi-mono-main origin/main
cd /tmp/pi-mono-main
npm install
If the bug disappears on clean origin/main, it is not yet an upstream core bug.
2. Identify the broken boundary, not just the crash site
"It crashed in packages/agent/src/agent-loop.ts" is not enough.
If a type-level invariant says the state is impossible, prove where reality violated the invariant:
- provider adapter emitted an invalid
AssistantMessage - extension mutated message state incorrectly
- local patch/build mismatch changed runtime behaviour
- external API returned something the adapter normalized badly
Upstream wants the cause chain, not just a defensive ?? [] around the symptom.
3. Capture provider/model and runtime conditions every time
For any LLM/runtime bug, record:
- provider
- model
- command path (
pi, local repo build, published install) - whether extensions were enabled
- relevant local patches
- commit SHA / branch
If you cannot answer "which provider/model triggered this?", you are not ready to open the issue.
4. Do not open a PR before the issue gets approval
CONTRIBUTING.md is explicit. New contributors start with an issue. A PR opened before approval is churn and will be closed.
5. Repeated AI slop after maintainer feedback can get you banned
Mario made this explicit on X on 2026-03-09 while linking issue #1993:
you will be banned from the pi-mono repo if:
- you are a dick
- you keep submitting clanker slop repeatedly for the same "issue" to which you got a reply and workaround from yours truely there is no way to appeal my decision.
Source: https://x.com/badlogicgames/status/2031085220221563021
Treat that as policy, not vibes.
If a maintainer already gave a workaround, explanation, or boundary call, do not re-litigate the same thing with a slightly reworded agent-generated issue. Either bring a new repro with stronger evidence, or shut up and go debug more.
Workflow
Step 1: confirm this belongs upstream
Ask, in order:
- Does the failure reproduce on clean
origin/main? - Does it reproduce with extensions disabled?
- Does it reproduce with the published build, not just our repo-wired binary?
- Can I point to the exact layer that produced the bad state?
If any answer is "no" or "not sure", keep digging locally.
Step 2: gather the evidence pack
Before filing an issue, collect this in a scratch note:
- one-sentence problem statement
- exact repro steps from repo root
- provider/model
- extension state (
--no-extensionsrepro or not) - clean vs patched build
- expected result
- actual result
- minimal log or message payload showing the bad state
- hypothesis for where the invariant broke
- package ownership (
pkg:agent,pkg:ai,pkg:coding-agent, etc.)
For GitHub reading, use the maintainer-friendly command from AGENTS.md:
gh issue view <number> --json title,body,comments,labels,state
Read all comments before replying.
Step 3: reduce the repro
Strip it down until another person can run it without our whole machine state.
Good repros usually look like one of these:
- a small fa
Установить contributing-to-pi в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл contributing-to-pi?
Contribute fixes, bug reports, and upstream discussions to badlogic/pi-mono without wasting maintainer time. Use when filing pi issues, preparing pi PRs, debugging whether a bug belongs upstream, or responding to maintainer pushback. Triggers on: 'contribute to pi', 'pi-mono issue', 'upstream pi fix', 'open a pi issue', 'why did Mario reject this', or any work in ~/Code/badlogic/pi-mono meant for upstream.
Как установить скилл contributing-to-pi?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл contributing-to-pi запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic